2 lines
3.0 MiB
2 lines
3.0 MiB
/*! For license information please see pdfjs-annotation-extension.js.LICENSE.txt */
|
||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.PdfjsAnnotationExtension=t():e.PdfjsAnnotationExtension=t()}(self,(()=>(()=>{var e,t,r={289:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,".EditorFreeText-Modal{margin:0 auto}.EditorFreeText-Modal-Toolbar{border-top:0;display:flex;justify-content:space-between;margin:0 auto}.EditorFreeText-Modal-Toolbar .colorPalette{display:flex;margin:8px}.EditorFreeText-Modal-Toolbar .colorPalette .cell{cursor:pointer;width:22px;height:22px;margin-right:5px;border-radius:100px;display:flex;align-items:center;justify-content:center;border:1px solid #fff}.EditorFreeText-Modal-Toolbar .colorPalette .cell span{width:12px;height:12px;display:inline-block;border-radius:100px}.EditorFreeText-Modal-Toolbar .colorPalette .active{border:1px solid #bbb}",""]);const s=a},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var r,n=a.meridiem;if(n){for(var o=1;o<=24;o+=1)if(e.indexOf(n(o,0,t))>-1){r=o>12;break}}else r=e===(t?"pm":"PM");return r},f={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[n,l("day")],Do:[i,function(e){var t=a.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[o,l("week")],ww:[n,l("week")],M:[o,l("month")],MM:[n,l("month")],MMM:[i,function(e){var t=u("months"),r=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(r){var n,o;n=r,o=a&&a.formats;for(var i=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var i=n&&n.toUpperCase();return r||o[n]||e[n]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=f[c],d=u&&u[0],h=u&&u[1];i[l]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<s;r+=1){var o=i[r];if("string"==typeof o)n+=o.length;else{var a=o.regex,l=o.parser,c=e.slice(n),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,o=n.parse;n.parse=function(e){var t=e.date,n=e.utc,i=e.args;this.$u=n;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=r.Ls[d]),this.$d=function(e,t,r,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=h(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,f=o.zone,p=o.week,m=new Date,g=s||(i||a?1:m.getDate()),v=i||m.getFullYear(),b=0;i&&!a||(b=a>0?a-1:m.getMonth());var y,w=l||0,x=c||0,S=u||0,C=d||0;return f?new Date(Date.UTC(v,b,g,w,x,S,C+60*f.offset*1e3)):r?new Date(Date.UTC(v,b,g,w,x,S,C)):(y=new Date(v,b,g,w,x,S,C),p&&(y=n(y).week(p).toDate()),y)}catch(e){return new Date("")}}(t,s,n,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var f=s.length,p=1;p<=f;p+=1){i[1]=s[p-1];var m=r.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===f&&(this.$d=new Date(""))}else o.call(this,e)}}}()},517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Solarize=void 0,t.Solarize=function(e){const t=e.data,r=e.width,n=4*r;let o=e.height;do{const e=(o-1)*n;let i=r;do{const r=e+4*(i-1);let n=t[r],o=t[r+1],a=t[r+2];n>127&&(n=255-n),o>127&&(o=255-o),a>127&&(a=255-a),t[r]=n,t[r+1]=o,t[r+2]=a}while(--i)}while(--o)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Threshold=void 0;const n=r(4892),o=r(6536),i=r(5483);t.Threshold=function(e){const t=255*this.threshold(),r=e.data,n=r.length;for(let e=0;e<n;e+=1)r[e]=r[e]<t?0:255},n.Factory.addGetterSetter(o.Node,"threshold",.5,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const n=r(8871),o=r(4060),i=r(6536),a=r(4473),s=r(7324),l=r(6267),c=r(7457),u=r(7949),d=r(1268),f=r(4723),h=r(9696),p=r(8665),m=r(9869),g=r(8604);t.Konva=o.Util._assign(n.Konva,{Util:o.Util,Transform:o.Transform,Node:i.Node,Container:a.Container,Stage:s.Stage,stages:s.stages,Layer:l.Layer,FastLayer:c.FastLayer,Group:u.Group,DD:d.DD,Shape:f.Shape,shapes:f.shapes,Animation:h.Animation,Tween:p.Tween,Easings:p.Easings,Context:m.Context,Canvas:g.Canvas}),t.default=t.Konva},961:(e,t,r)=>{"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(e){console.error(e)}}(),e.exports=r(2551)},983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emboss=void 0;const n=r(4892),o=r(6536),i=r(4060),a=r(5483);t.Emboss=function(e){const t=10*this.embossStrength(),r=255*this.embossWhiteLevel(),n=this.embossDirection(),o=this.embossBlend(),a=e.data,s=e.width,l=e.height,c=4*s;let u=0,d=0,f=l;switch(n){case"top-left":u=-1,d=-1;break;case"top":u=-1,d=0;break;case"top-right":u=-1,d=1;break;case"right":u=0,d=1;break;case"bottom-right":u=1,d=1;break;case"bottom":u=1,d=0;break;case"bottom-left":u=1,d=-1;break;case"left":u=0,d=-1;break;default:i.Util.error("Unknown emboss direction: "+n)}do{const e=(f-1)*c;let n=u;f+n<1&&(n=0),f+n>l&&(n=0);const i=(f-1+n)*s*4;let h=s;do{const n=e+4*(h-1);let l=d;h+l<1&&(l=0),h+l>s&&(l=0);const c=i+4*(h-1+l),u=a[n]-a[c],f=a[n+1]-a[c+1],p=a[n+2]-a[c+2];let m=u;const g=m>0?m:-m;if((f>0?f:-f)>g&&(m=f),(p>0?p:-p)>g&&(m=p),m*=t,o){const e=a[n]+m,t=a[n+1]+m,r=a[n+2]+m;a[n]=e>255?255:e<0?0:e,a[n+1]=t>255?255:t<0?0:t,a[n+2]=r>255?255:r<0?0:r}else{let e=r-m;e<0?e=0:e>255&&(e=255),a[n]=a[n+1]=a[n+2]=e}}while(--h)}while(--f)},n.Factory.addGetterSetter(o.Node,"embossStrength",.5,(0,a.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"embossWhiteLevel",.5,(0,a.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"embossDirection","top-left",void 0,n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"embossBlend",!1,void 0,n.Factory.afterSetFilter)},1020:(e,t,r)=>{"use strict";var n=r(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1268:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const n=r(8871),o=r(4060);t.DD={get isDragging(){let e=!1;return t.DD._dragElements.forEach((t=>{"dragging"===t.dragStatus&&(e=!0)})),e},justDragged:!1,get node(){let e;return t.DD._dragElements.forEach((t=>{e=t.node})),e},_dragElements:new Map,_drag(e){const r=[];t.DD._dragElements.forEach(((t,n)=>{const{node:i}=t,a=i.getStage();a.setPointersPositions(e),void 0===t.pointerId&&(t.pointerId=o.Util._getFirstPointerId(e));const s=a._changedPointerPositions.find((e=>e.id===t.pointerId));if(s){if("dragging"!==t.dragStatus){const r=i.dragDistance();if(Math.max(Math.abs(s.x-t.startPointerPos.x),Math.abs(s.y-t.startPointerPos.y))<r)return;if(i.startDrag({evt:e}),!i.isDragging())return}i._setDragPosition(e,t),r.push(i)}})),r.forEach((t=>{t.fire("dragmove",{type:"dragmove",target:t,evt:e},!0)}))},_endDragBefore(e){const r=[];t.DD._dragElements.forEach((o=>{const{node:i}=o,a=i.getStage();if(e&&a.setPointersPositions(e),!a._changedPointerPositions.find((e=>e.id===o.pointerId)))return;"dragging"!==o.dragStatus&&"stopped"!==o.dragStatus||(t.DD.justDragged=!0,n.Konva._mouseListenClick=!1,n.Konva._touchListenClick=!1,n.Konva._pointerListenClick=!1,o.dragStatus="stopped");const s=o.node.getLayer()||o.node instanceof n.Konva.Stage&&o.node;s&&-1===r.indexOf(s)&&r.push(s)})),r.forEach((e=>{e.draw()}))},_endDragAfter(e){t.DD._dragElements.forEach(((r,n)=>{"stopped"===r.dragStatus&&r.node.fire("dragend",{type:"dragend",target:r.node,evt:e},!0),"dragging"!==r.dragStatus&&t.DD._dragElements.delete(n)}))}},n.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("touchcancel",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1),window.addEventListener("touchcancel",t.DD._endDragAfter,!1))},1447:(e,t,r)=>{"use strict";var n=r(9805),o=r(3269),i=r(4823),a=r(7293),s=r(1998),l=-2,c=12,u=30;function d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):l}function m(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):l}function g(e,t){var r,n;return e?(n=new f,e.state=n,n.window=null,0!==(r=m(e,t))&&(e.state=null),r):l}var v,b,y=!0;function w(e){if(y){var t;for(v=new n.Buf32(512),b=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,v,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),y=!1}e.lencode=v,e.lenbits=9,e.distcode=b,e.distbits=5}function x(e,t,r,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),o>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),n.arraySet(a.window,t,r-o,i,a.wnext),(o-=i)?(n.arraySet(a.window,t,r-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}t.inflateReset=p,t.inflateReset2=m,t.inflateResetKeep=h,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var r,f,h,p,m,g,v,b,y,S,C,k,E,O,A,T,j,P,M,R,_,I,N,F,D=0,B=new n.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;(r=e.state).mode===c&&(r.mode=13),m=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,b=r.hold,y=r.bits,S=g,C=v,I=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(2&r.wrap&&35615===b){r.check=0,B[0]=255&b,B[1]=b>>>8&255,r.check=i(r.check,B,2,0),b=0,y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=u;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=u;break}if(y-=4,_=8+(15&(b>>>=4)),0===r.wbits)r.wbits=_;else if(_>r.wbits){e.msg="invalid window size",r.mode=u;break}r.dmax=1<<_,e.adler=r.check=1,r.mode=512&b?10:c,b=0,y=0;break;case 2:for(;y<16;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(r.flags=b,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=u;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=u;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(B[0]=255&b,B[1]=b>>>8&255,r.check=i(r.check,B,2,0)),b=0,y=0,r.mode=3;case 3:for(;y<32;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}r.head&&(r.head.time=b),512&r.flags&&(B[0]=255&b,B[1]=b>>>8&255,B[2]=b>>>16&255,B[3]=b>>>24&255,r.check=i(r.check,B,4,0)),b=0,y=0,r.mode=4;case 4:for(;y<16;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(B[0]=255&b,B[1]=b>>>8&255,r.check=i(r.check,B,2,0)),b=0,y=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(B[0]=255&b,B[1]=b>>>8&255,r.check=i(r.check,B,2,0)),b=0,y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((k=r.length)>g&&(k=g),k&&(r.head&&(_=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,p,k,_)),512&r.flags&&(r.check=i(r.check,f,k,p)),g-=k,p+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;k=0;do{_=f[p+k++],r.head&&_&&r.length<65536&&(r.head.name+=String.fromCharCode(_))}while(_&&k<g);if(512&r.flags&&(r.check=i(r.check,f,k,p)),g-=k,p+=k,_)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===g)break e;k=0;do{_=f[p+k++],r.head&&_&&r.length<65536&&(r.head.comment+=String.fromCharCode(_))}while(_&&k<g);if(512&r.flags&&(r.check=i(r.check,f,k,p)),g-=k,p+=k,_)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(b!==(65535&r.check)){e.msg="header crc mismatch",r.mode=u;break}b=0,y=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=c;break;case 10:for(;y<32;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}e.adler=r.check=d(b),b=0,y=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=m,e.avail_out=v,e.next_in=p,e.avail_in=g,r.hold=b,r.bits=y,2;e.adler=r.check=1,r.mode=c;case c:if(5===t||6===t)break e;case 13:if(r.last){b>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}switch(r.last=1&b,y-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(w(r),r.mode=20,6===t){b>>>=2,y-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=u}b>>>=2,y-=2;break;case 14:for(b>>>=7&y,y-=7&y;y<32;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",r.mode=u;break}if(r.length=65535&b,b=0,y=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(k>g&&(k=g),k>v&&(k=v),0===k)break e;n.arraySet(h,f,p,k,m),g-=k,p+=k,v-=k,m+=k,r.length-=k;break}r.mode=c;break;case 17:for(;y<14;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(r.nlen=257+(31&b),b>>>=5,y-=5,r.ndist=1+(31&b),b>>>=5,y-=5,r.ncode=4+(15&b),b>>>=4,y-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=u;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}r.lens[L[r.have++]]=7&b,b>>>=3,y-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},I=s(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,I){e.msg="invalid code lengths set",r.mode=u;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(D=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,j=65535&D,!((A=D>>>24)<=y);){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(j<16)b>>>=A,y-=A,r.lens[r.have++]=j;else{if(16===j){for(F=A+2;y<F;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(b>>>=A,y-=A,0===r.have){e.msg="invalid bit length repeat",r.mode=u;break}_=r.lens[r.have-1],k=3+(3&b),b>>>=2,y-=2}else if(17===j){for(F=A+3;y<F;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}y-=A,_=0,k=3+(7&(b>>>=A)),b>>>=3,y-=3}else{for(F=A+7;y<F;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}y-=A,_=0,k=11+(127&(b>>>=A)),b>>>=7,y-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=u;break}for(;k--;)r.lens[r.have++]=_}}if(r.mode===u)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=u;break}if(r.lenbits=9,N={bits:r.lenbits},I=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,I){e.msg="invalid literal/lengths set",r.mode=u;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},I=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,I){e.msg="invalid distances set",r.mode=u;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(g>=6&&v>=258){e.next_out=m,e.avail_out=v,e.next_in=p,e.avail_in=g,r.hold=b,r.bits=y,a(e,C),m=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,b=r.hold,y=r.bits,r.mode===c&&(r.back=-1);break}for(r.back=0;T=(D=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,j=65535&D,!((A=D>>>24)<=y);){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(T&&!(240&T)){for(P=A,M=T,R=j;T=(D=r.lencode[R+((b&(1<<P+M)-1)>>P)])>>>16&255,j=65535&D,!(P+(A=D>>>24)<=y);){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}b>>>=P,y-=P,r.back+=P}if(b>>>=A,y-=A,r.back+=A,r.length=j,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=c;break}if(64&T){e.msg="invalid literal/length code",r.mode=u;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(F=r.extra;y<F;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(D=r.distcode[b&(1<<r.distbits)-1])>>>16&255,j=65535&D,!((A=D>>>24)<=y);){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(!(240&T)){for(P=A,M=T,R=j;T=(D=r.distcode[R+((b&(1<<P+M)-1)>>P)])>>>16&255,j=65535&D,!(P+(A=D>>>24)<=y);){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}b>>>=P,y-=P,r.back+=P}if(b>>>=A,y-=A,r.back+=A,64&T){e.msg="invalid distance code",r.mode=u;break}r.offset=j,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(F=r.extra;y<F;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=u;break}r.mode=25;case 25:if(0===v)break e;if(k=C-v,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=u;break}k>r.wnext?(k-=r.wnext,E=r.wsize-k):E=r.wnext-k,k>r.length&&(k=r.length),O=r.window}else O=h,E=m-r.offset,k=r.length;k>v&&(k=v),v-=k,r.length-=k;do{h[m++]=O[E++]}while(--k);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;h[m++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===g)break e;g--,b|=f[p++]<<y,y+=8}if(C-=v,e.total_out+=C,r.total+=C,C&&(e.adler=r.check=r.flags?i(r.check,h,C,m-C):o(r.check,h,C,m-C)),C=v,(r.flags?b:d(b))!==r.check){e.msg="incorrect data check",r.mode=u;break}b=0,y=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===g)break e;g--,b+=f[p++]<<y,y+=8}if(b!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=u;break}b=0,y=0}r.mode=29;case 29:I=1;break e;case u:I=-3;break e;case 31:return-4;default:return l}return e.next_out=m,e.avail_out=v,e.next_in=p,e.avail_in=g,r.hold=b,r.bits=y,(r.wsize||C!==e.avail_out&&r.mode<u&&(r.mode<27||4!==t))&&x(e,e.output,e.next_out,C-e.avail_out)?(r.mode=31,-4):(S-=e.avail_in,C-=e.avail_out,e.total_in+=S,e.total_out+=C,r.total+=C,r.wrap&&C&&(e.adler=r.check=r.flags?i(r.check,h,C,e.next_out-C):o(r.check,h,C,e.next_out-C)),e.data_type=r.bits+(r.last?64:0)+(r.mode===c?128:0)+(20===r.mode||15===r.mode?256:0),(0===S&&0===C||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?(r.head=t,t.done=!1,0):l},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&o(1,t,n,0)!==r.check?-3:x(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):l},t.inflateInfo="pako inflate (from Nodeca project)"},1486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Path=void 0;const n=r(4892),o=r(4723),i=r(8871),a=r(5570);class s extends o.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute()}))}_readDataAttribute(){this.dataArray=s.parsePathData(this.data()),this.pathLength=s.getPathLength(this.dataArray)}_sceneFunc(e){const t=this.dataArray;e.beginPath();let r=!1;for(let p=0;p<t.length;p++){const m=t[p].command,g=t[p].points;switch(m){case"L":e.lineTo(g[0],g[1]);break;case"M":e.moveTo(g[0],g[1]);break;case"C":e.bezierCurveTo(g[0],g[1],g[2],g[3],g[4],g[5]);break;case"Q":e.quadraticCurveTo(g[0],g[1],g[2],g[3]);break;case"A":var n=g[0],o=g[1],i=g[2],a=g[3],s=g[4],l=g[5],c=g[6],u=g[7],d=i>a?i:a,f=i>a?1:i/a,h=i>a?a/i:1;e.translate(n,o),e.rotate(c),e.scale(f,h),e.arc(0,0,d,s,s+l,1-u),e.scale(1/f,1/h),e.rotate(-c),e.translate(-n,-o);break;case"z":r=!0,e.closePath()}}r||this.hasFill()?e.fillStrokeShape(this):e.strokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach((function(t){if("A"===t.command){const r=t.points[4],n=t.points[5],o=t.points[4]+n;let i=Math.PI/180;if(Math.abs(r-o)<i&&(i=Math.abs(r-o)),n<0)for(let n=r-i;n>o;n-=i){const r=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],n,0);e.push(r.x,r.y)}else for(let n=r+i;n<o;n+=i){const r=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],n,0);e.push(r.x,r.y)}}else if("C"===t.command)for(let r=0;r<=1;r+=.01){const n=s.getPointOnCubicBezier(r,t.start.x,t.start.y,t.points[0],t.points[1],t.points[2],t.points[3],t.points[4],t.points[5]);e.push(n.x,n.y)}else e=e.concat(t.points)}));let t,r,n=e[0],o=e[0],i=e[1],a=e[1];for(let s=0;s<e.length/2;s++)t=e[2*s],r=e[2*s+1],isNaN(t)||(n=Math.min(n,t),o=Math.max(o,t)),isNaN(r)||(i=Math.min(i,r),a=Math.max(a,r));return{x:n,y:i,width:o-n,height:a-i}}getLength(){return this.pathLength}getPointAtLength(e){return s.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,t,r,n){return Math.sqrt((r-e)*(r-e)+(n-t)*(n-t))}static getPathLength(e){let t=0;for(let r=0;r<e.length;++r)t+=e[r].pathLength;return t}static getPointAtLengthOfDataArray(e,t){let r,n=0,o=t.length;if(!o)return null;for(;n<o&&e>t[n].pathLength;)e-=t[n].pathLength,++n;if(n===o)return r=t[n-1].points.slice(-2),{x:r[0],y:r[1]};if(e<.01)return r=t[n].points.slice(0,2),{x:r[0],y:r[1]};const i=t[n],l=i.points;switch(i.command){case"L":return s.getPointOnLine(e,i.start.x,i.start.y,l[0],l[1]);case"C":return s.getPointOnCubicBezier((0,a.t2length)(e,s.getPathLength(t),(e=>(0,a.getCubicArcLength)([i.start.x,l[0],l[2],l[4]],[i.start.y,l[1],l[3],l[5]],e))),i.start.x,i.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return s.getPointOnQuadraticBezier((0,a.t2length)(e,s.getPathLength(t),(e=>(0,a.getQuadraticArcLength)([i.start.x,l[0],l[2]],[i.start.y,l[1],l[3]],e))),i.start.x,i.start.y,l[0],l[1],l[2],l[3]);case"A":var c=l[0],u=l[1],d=l[2],f=l[3],h=l[4],p=l[5],m=l[6];return h+=p*e/i.pathLength,s.getPointOnEllipticalArc(c,u,d,f,h,m)}return null}static getPointOnLine(e,t,r,n,o,i,a){i=null!=i?i:t,a=null!=a?a:r;const s=this.getLineLength(t,r,n,o);if(s<1e-10)return{x:t,y:r};if(n===t)return{x:i,y:a+(o>r?e:-e)};const l=(o-r)/(n-t),c=Math.sqrt(e*e/(1+l*l))*(n<t?-1:1),u=l*c;if(Math.abs(a-r-l*(i-t))<1e-10)return{x:i+c,y:a+u};const d=((i-t)*(n-t)+(a-r)*(o-r))/(s*s),f=t+d*(n-t),h=r+d*(o-r),p=this.getLineLength(i,a,f,h),m=Math.sqrt(e*e-p*p),g=Math.sqrt(m*m/(1+l*l))*(n<t?-1:1);return{x:f+g,y:h+l*g}}static getPointOnCubicBezier(e,t,r,n,o,i,a,s,l){function c(e){return e*e*e}function u(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function f(e){return(1-e)*(1-e)*(1-e)}return{x:s*c(e)+i*u(e)+n*d(e)+t*f(e),y:l*c(e)+a*u(e)+o*d(e)+r*f(e)}}static getPointOnQuadraticBezier(e,t,r,n,o,i,a){function s(e){return e*e}function l(e){return 2*e*(1-e)}function c(e){return(1-e)*(1-e)}return{x:i*s(e)+n*l(e)+t*c(e),y:a*s(e)+o*l(e)+r*c(e)}}static getPointOnEllipticalArc(e,t,r,n,o,i){const a=Math.cos(i),s=Math.sin(i),l=r*Math.cos(o),c=n*Math.sin(o);return{x:e+(l*a-c*s),y:t+(l*s+c*a)}}static parsePathData(e){if(!e)return[];let t=e;const r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var n=0;n<r.length;n++)t=t.replace(new RegExp(r[n],"g"),"|"+r[n]);const o=t.split("|"),i=[],a=[];let s=0,l=0;const c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let u;for(n=1;n<o.length;n++){let e=o[n],t=e.charAt(0);for(e=e.slice(1),a.length=0;u=c.exec(e);)a.push(u[0]);const r=[];for(let e=0,t=a.length;e<t;e++){if("00"===a[e]){r.push(0,0);continue}const t=parseFloat(a[e]);isNaN(t)?r.push(0):r.push(t)}for(;r.length>0&&!isNaN(r[0]);){let e="",n=[];const o=s,a=l;var d,f,h,p,m,g,v,b,y,w;switch(t){case"l":s+=r.shift(),l+=r.shift(),e="L",n.push(s,l);break;case"L":s=r.shift(),l=r.shift(),n.push(s,l);break;case"m":var x=r.shift(),S=r.shift();if(s+=x,l+=S,e="M",i.length>2&&"z"===i[i.length-1].command)for(let e=i.length-2;e>=0;e--)if("M"===i[e].command){s=i[e].points[0]+x,l=i[e].points[1]+S;break}n.push(s,l),t="l";break;case"M":s=r.shift(),l=r.shift(),e="M",n.push(s,l),t="L";break;case"h":s+=r.shift(),e="L",n.push(s,l);break;case"H":s=r.shift(),e="L",n.push(s,l);break;case"v":l+=r.shift(),e="L",n.push(s,l);break;case"V":l=r.shift(),e="L",n.push(s,l);break;case"C":n.push(r.shift(),r.shift(),r.shift(),r.shift()),s=r.shift(),l=r.shift(),n.push(s,l);break;case"c":n.push(s+r.shift(),l+r.shift(),s+r.shift(),l+r.shift()),s+=r.shift(),l+=r.shift(),e="C",n.push(s,l);break;case"S":f=s,h=l,"C"===(d=i[i.length-1]).command&&(f=s+(s-d.points[2]),h=l+(l-d.points[3])),n.push(f,h,r.shift(),r.shift()),s=r.shift(),l=r.shift(),e="C",n.push(s,l);break;case"s":f=s,h=l,"C"===(d=i[i.length-1]).command&&(f=s+(s-d.points[2]),h=l+(l-d.points[3])),n.push(f,h,s+r.shift(),l+r.shift()),s+=r.shift(),l+=r.shift(),e="C",n.push(s,l);break;case"Q":n.push(r.shift(),r.shift()),s=r.shift(),l=r.shift(),n.push(s,l);break;case"q":n.push(s+r.shift(),l+r.shift()),s+=r.shift(),l+=r.shift(),e="Q",n.push(s,l);break;case"T":f=s,h=l,"Q"===(d=i[i.length-1]).command&&(f=s+(s-d.points[0]),h=l+(l-d.points[1])),s=r.shift(),l=r.shift(),e="Q",n.push(f,h,s,l);break;case"t":f=s,h=l,"Q"===(d=i[i.length-1]).command&&(f=s+(s-d.points[0]),h=l+(l-d.points[1])),s+=r.shift(),l+=r.shift(),e="Q",n.push(f,h,s,l);break;case"A":p=r.shift(),m=r.shift(),g=r.shift(),v=r.shift(),b=r.shift(),y=s,w=l,s=r.shift(),l=r.shift(),e="A",n=this.convertEndpointToCenterParameterization(y,w,s,l,v,b,p,m,g);break;case"a":p=r.shift(),m=r.shift(),g=r.shift(),v=r.shift(),b=r.shift(),y=s,w=l,s+=r.shift(),l+=r.shift(),e="A",n=this.convertEndpointToCenterParameterization(y,w,s,l,v,b,p,m,g)}i.push({command:e||t,points:n,start:{x:o,y:a},pathLength:this.calcLength(o,a,e||t,n)})}"z"!==t&&"Z"!==t||i.push({command:"z",points:[],start:void 0,pathLength:0})}return i}static calcLength(e,t,r,n){let o,i,l,c;const u=s;switch(r){case"L":return u.getLineLength(e,t,n[0],n[1]);case"C":return(0,a.getCubicArcLength)([e,n[0],n[2],n[4]],[t,n[1],n[3],n[5]],1);case"Q":return(0,a.getQuadraticArcLength)([e,n[0],n[2]],[t,n[1],n[3]],1);case"A":o=0;var d=n[4],f=n[5],h=n[4]+f,p=Math.PI/180;if(Math.abs(d-h)<p&&(p=Math.abs(d-h)),i=u.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],d,0),f<0)for(c=d-p;c>h;c-=p)l=u.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),o+=u.getLineLength(i.x,i.y,l.x,l.y),i=l;else for(c=d+p;c<h;c+=p)l=u.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),o+=u.getLineLength(i.x,i.y,l.x,l.y),i=l;return l=u.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),o+=u.getLineLength(i.x,i.y,l.x,l.y),o}return 0}static convertEndpointToCenterParameterization(e,t,r,n,o,i,a,s,l){const c=l*(Math.PI/180),u=Math.cos(c)*(e-r)/2+Math.sin(c)*(t-n)/2,d=-1*Math.sin(c)*(e-r)/2+Math.cos(c)*(t-n)/2,f=u*u/(a*a)+d*d/(s*s);f>1&&(a*=Math.sqrt(f),s*=Math.sqrt(f));let h=Math.sqrt((a*a*(s*s)-a*a*(d*d)-s*s*(u*u))/(a*a*(d*d)+s*s*(u*u)));o===i&&(h*=-1),isNaN(h)&&(h=0);const p=h*a*d/s,m=h*-s*u/a,g=(e+r)/2+Math.cos(c)*p-Math.sin(c)*m,v=(t+n)/2+Math.sin(c)*p+Math.cos(c)*m,b=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},y=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(b(e)*b(t))},w=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))},x=w([1,0],[(u-p)/a,(d-m)/s]),S=[(u-p)/a,(d-m)/s],C=[(-1*u-p)/a,(-1*d-m)/s];let k=w(S,C);return y(S,C)<=-1&&(k=Math.PI),y(S,C)>=1&&(k=0),0===i&&k>0&&(k-=2*Math.PI),1===i&&k<0&&(k+=2*Math.PI),[g,v,a,s,x,k,c,i]}}t.Path=s,s.prototype.className="Path",s.prototype._attrsAffectingSize=["data"],(0,i._registerNode)(s),n.Factory.addGetterSetter(s,"data")},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1665:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,".PdfjsAnnotationExtension_painter_wrapper{position:absolute;text-align:initial;top:0;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:1}.PdfjsAnnotationExtension_selector_hover .PdfjsAnnotationExtension_painter_wrapper{cursor:pointer !important}.PdfjsAnnotationExtension_is_painting .PdfjsAnnotationExtension_painter_wrapper{z-index:999}.PdfjsAnnotationExtension_painting_type_1 .textLayer:not(.free) span,.PdfjsAnnotationExtension_painting_type_2 .textLayer:not(.free) span,.PdfjsAnnotationExtension_painting_type_3 .textLayer:not(.free) span{cursor:var(--editorHighlight-editing-cursor)}.PdfjsAnnotationExtension_painting_type_4 .PdfjsAnnotationExtension_painter_wrapper,.PdfjsAnnotationExtension_painting_type_5 .PdfjsAnnotationExtension_painter_wrapper,.PdfjsAnnotationExtension_painting_type_6 .PdfjsAnnotationExtension_painter_wrapper,.PdfjsAnnotationExtension_painting_type_11 .PdfjsAnnotationExtension_painter_wrapper,.PdfjsAnnotationExtension_painting_type_12 .PdfjsAnnotationExtension_painter_wrapper,.PdfjsAnnotationExtension_painting_type_13 .PdfjsAnnotationExtension_painter_wrapper{cursor:crosshair}.PdfjsAnnotationExtension_painting_type_7 .PdfjsAnnotationExtension_painter_wrapper{cursor:var(--editorInk-editing-cursor)}.PdfjsAnnotationExtension_painting_type_8 .PdfjsAnnotationExtension_painter_wrapper{cursor:var(--editorFreeHighlight-editing-cursor)}.PdfjsAnnotationExtension_painting_type_9 .PdfjsAnnotationExtension_painter_wrapper,.PdfjsAnnotationExtension_painting_type_10 .PdfjsAnnotationExtension_painter_wrapper{cursor:var(--PdfjsAnnotationExtension-image-cursor)}",""]);const s=a},1668:(e,t,r)=>{"use strict";var n={};(0,r(9805).assign)(n,r(3303),r(7083),r(9681)),e.exports=n},1958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0,t.stringToArray=c;const n=r(4060),o=r(4892),i=r(4723),a=r(8871),s=r(5483),l=r(8871);function c(e){return[...e].reduce(((e,t,r,n)=>{if(/\p{Emoji}/u.test(t)){const o=n[r+1];o&&/\p{Emoji_Modifier}|\u200D/u.test(o)?(e.push(t+o),n[r+1]=""):e.push(t)}else/\p{Regional_Indicator}{2}/u.test(t+(n[r+1]||""))?e.push(t+n[r+1]):r>0&&/\p{Mn}|\p{Me}|\p{Mc}/u.test(t)?e[e.length-1]+=t:t&&e.push(t);return e}),[])}const u="auto",d="inherit",f="justify",h="left",p="middle",m="normal",g=" ",v="none",b=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],y=b.length;let w;function x(){return w||(w=n.Util.createCanvasElement().getContext("2d"),w)}class S extends i.Shape{constructor(e){super(function(e){return(e=e||{}).fillLinearGradientColorStops||e.fillRadialGradientColorStops||e.fillPatternImage||(e.fill=e.fill||"black"),e}(e)),this._partialTextX=0,this._partialTextY=0;for(let e=0;e<y;e++)this.on(b[e]+"Change.konva",this._setTextData);this._setTextData()}_sceneFunc(e){const t=this.textArr,r=t.length;if(!this.text())return;let n,o=this.padding(),i=this.fontSize(),s=this.lineHeight()*i,l=this.verticalAlign(),u=this.direction(),m=0,g=this.align(),v=this.getWidth(),b=this.letterSpacing(),y=this.fill(),w=this.textDecoration(),x=-1!==w.indexOf("underline"),S=-1!==w.indexOf("line-through");u=u===d?e.direction:u;let C=s/2,k=p;if(a.Konva._fixTextRendering){const e=this.measureSize("M");k="alphabetic",C=(e.fontBoundingBoxAscent-e.fontBoundingBoxDescent)/2+s/2}var E=0,O=0;for("rtl"===u&&e.setAttr("direction",u),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",k),e.setAttr("textAlign",h),l===p?m=(this.getHeight()-r*s-2*o)/2:"bottom"===l&&(m=this.getHeight()-r*s-2*o),e.translate(o,m+o),n=0;n<r;n++){E=0,O=0;var A,T,j=t[n],P=j.text,M=j.width,R=j.lastInParagraph;if(e.save(),"right"===g?E+=v-M-2*o:"center"===g&&(E+=(v-M-2*o)/2),x){e.save(),e.beginPath();const t=E,r=C+O+(a.Konva._fixTextRendering?Math.round(i/4):Math.round(i/2));e.moveTo(t,r),A=P.split(" ").length-1,T=g!==f||R?M:v-2*o,e.lineTo(t+Math.round(T),r),e.lineWidth=i/15;const n=this._getLinearGradient();e.strokeStyle=n||y,e.stroke(),e.restore()}if(S){e.save(),e.beginPath();const t=a.Konva._fixTextRendering?-Math.round(i/4):0;e.moveTo(E,C+O+t),A=P.split(" ").length-1,T=g!==f||R?M:v-2*o,e.lineTo(E+Math.round(T),C+O+t),e.lineWidth=i/15;const r=this._getLinearGradient();e.strokeStyle=r||y,e.stroke(),e.restore()}if("rtl"===u||0===b&&g!==f)0!==b&&e.setAttr("letterSpacing",`${b}px`),this._partialTextX=E,this._partialTextY=C+O,this._partialText=P,e.fillStrokeShape(this);else{A=P.split(" ").length-1;const t=c(P);for(let r=0;r<t.length;r++){const n=t[r];" "!==n||R||g!==f||(E+=(v-2*o-M)/A),this._partialTextX=E,this._partialTextY=C+O,this._partialText=n,e.fillStrokeShape(this),E+=this.measureSize(n).width+b}}e.restore(),r>1&&(C+=s)}}_hitFunc(e){const t=this.getWidth(),r=this.getHeight();e.beginPath(),e.rect(0,0,t,r),e.closePath(),e.fillStrokeShape(this)}setText(e){const t=n.Util._isString(e)?e:null==e?"":e+"";return this._setAttr("text",t),this}getWidth(){return this.attrs.width===u||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){return this.attrs.height===u||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return n.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t,r,n,o,i,a,s,l,c,u,d;let f,h=x(),p=this.fontSize();h.save(),h.font=this._getContextFont(),f=h.measureText(e),h.restore();const m=p/100;return{actualBoundingBoxAscent:null!==(t=f.actualBoundingBoxAscent)&&void 0!==t?t:71.58203125*m,actualBoundingBoxDescent:null!==(r=f.actualBoundingBoxDescent)&&void 0!==r?r:0,actualBoundingBoxLeft:null!==(n=f.actualBoundingBoxLeft)&&void 0!==n?n:-7.421875*m,actualBoundingBoxRight:null!==(o=f.actualBoundingBoxRight)&&void 0!==o?o:75.732421875*m,alphabeticBaseline:null!==(i=f.alphabeticBaseline)&&void 0!==i?i:0,emHeightAscent:null!==(a=f.emHeightAscent)&&void 0!==a?a:100*m,emHeightDescent:null!==(s=f.emHeightDescent)&&void 0!==s?s:-20*m,fontBoundingBoxAscent:null!==(l=f.fontBoundingBoxAscent)&&void 0!==l?l:91*m,fontBoundingBoxDescent:null!==(c=f.fontBoundingBoxDescent)&&void 0!==c?c:21*m,hangingBaseline:null!==(u=f.hangingBaseline)&&void 0!==u?u:72.80000305175781*m,ideographicBaseline:null!==(d=f.ideographicBaseline)&&void 0!==d?d:-21*m,width:f.width,height:p}}_getContextFont(){return this.fontStyle()+g+this.fontVariant()+g+(this.fontSize()+"px ")+this.fontFamily().split(",").map((e=>{const t=(e=e.trim()).indexOf(" ")>=0,r=e.indexOf('"')>=0||e.indexOf("'")>=0;return t&&!r&&(e=`"${e}"`),e})).join(", ")}_addTextLine(e){this.align()===f&&(e=e.trim());const t=this._getTextWidth(e);return this.textArr.push({text:e,width:t,lastInParagraph:!1})}_getTextWidth(e){const t=this.letterSpacing(),r=e.length;return x().measureText(e).width+t*r}_setTextData(){let e=this.text().split("\n"),t=+this.fontSize(),r=0,n=this.lineHeight()*t,o=this.attrs.width,i=this.attrs.height,a=o!==u&&void 0!==o,s=i!==u&&void 0!==i,l=this.padding(),d=o-2*l,f=i-2*l,h=0,p=this.wrap(),m="char"!==p&&p!==v,b=this.ellipsis();this.textArr=[],x().font=this._getContextFont();const y=b?this._getTextWidth("…"):0;for(let t=0,o=e.length;t<o;++t){let i=e[t],l=this._getTextWidth(i);if(a&&l>d)for(;i.length>0;){let e=0,t=c(i).length,o="",a=0;for(;e<t;){const r=e+t>>>1,l=c(i).slice(0,r+1).join(""),u=this._getTextWidth(l);(b&&s&&h+n>f?u+y:u)<=d?(e=r+1,o=l,a=u):t=r}if(!o)break;if(m){const t=c(i),r=c(o),n=t[r.length];let s;if((n===g||"-"===n)&&a<=d)s=r.length;else{const e=r.lastIndexOf(g),t=r.lastIndexOf("-");s=Math.max(e,t)+1}s>0&&(e=s,o=t.slice(0,e).join(""),a=this._getTextWidth(o))}if(o=o.trimRight(),this._addTextLine(o),r=Math.max(r,a),h+=n,this._shouldHandleEllipsis(h)){this._tryToAddEllipsisToLastLine();break}if(i=c(i).slice(e).join("").trimLeft(),i.length>0&&(l=this._getTextWidth(i),l<=d)){this._addTextLine(i),h+=n,r=Math.max(r,l);break}}else this._addTextLine(i),h+=n,r=Math.max(r,l),this._shouldHandleEllipsis(h)&&t<o-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),s&&h+n>f)break}this.textHeight=t,this.textWidth=r}_shouldHandleEllipsis(e){const t=+this.fontSize(),r=this.lineHeight()*t,n=this.attrs.height,o=n!==u&&void 0!==n,i=n-2*this.padding();return!(this.wrap()!==v)||o&&e+r>i}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,t=e!==u&&void 0!==e,r=e-2*this.padding(),n=this.ellipsis(),o=this.textArr[this.textArr.length-1];o&&n&&(t&&(this._getTextWidth(o.text+"…")<r||(o.text=o.text.slice(0,o.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(o.text+"…"))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=-1!==this.textDecoration().indexOf("underline")||-1!==this.textDecoration().indexOf("line-through"),t=this.hasShadow();return!(!e||!t)||super._useBufferCanvas()}}t.Text=S,S.prototype._fillFunc=function(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)},S.prototype._strokeFunc=function(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)},S.prototype.className="Text",S.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,l._registerNode)(S),o.Factory.overWriteSetter(S,"width",(0,s.getNumberOrAutoValidator)()),o.Factory.overWriteSetter(S,"height",(0,s.getNumberOrAutoValidator)()),o.Factory.addGetterSetter(S,"direction",d),o.Factory.addGetterSetter(S,"fontFamily","Arial"),o.Factory.addGetterSetter(S,"fontSize",12,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(S,"fontStyle",m),o.Factory.addGetterSetter(S,"fontVariant",m),o.Factory.addGetterSetter(S,"padding",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(S,"align",h),o.Factory.addGetterSetter(S,"verticalAlign","top"),o.Factory.addGetterSetter(S,"lineHeight",1,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(S,"wrap","word"),o.Factory.addGetterSetter(S,"ellipsis",!1,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(S,"letterSpacing",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(S,"text","",(0,s.getStringValidator)()),o.Factory.addGetterSetter(S,"textDecoration","")},1996:(e,t,r)=>{"use strict";var n=r(9805),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,t.string2buf=function(e){var t,r,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),a=0,i=0;a<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r<o;r++)t[r]=e.charCodeAt(r);return t},t.buf2string=function(e,t){var r,n,o,i,s=t||e.length,c=new Array(2*s);for(n=0,r=0;r<s;)if((o=e[r++])<128)c[n++]=o;else if((i=a[o])>4)c[n++]=65533,r+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&r<s;)o=o<<6|63&e[r++],i--;i>1?c[n++]=65533:o<65536?c[n++]=o:(o-=65536,c[n++]=55296|o>>10&1023,c[n++]=56320|1023&o)}return l(c,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},1998:(e,t,r)=>{"use strict";var n=r(9805),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,l,c,u,d,f){var h,p,m,g,v,b,y,w,x,S=f.bits,C=0,k=0,E=0,O=0,A=0,T=0,j=0,P=0,M=0,R=0,_=null,I=0,N=new n.Buf16(16),F=new n.Buf16(16),D=null,B=0;for(C=0;C<=15;C++)N[C]=0;for(k=0;k<l;k++)N[t[r+k]]++;for(A=S,O=15;O>=1&&0===N[O];O--);if(A>O&&(A=O),0===O)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(E=1;E<O&&0===N[E];E++);for(A<E&&(A=E),P=1,C=1;C<=15;C++)if(P<<=1,(P-=N[C])<0)return-1;if(P>0&&(0===e||1!==O))return-1;for(F[1]=0,C=1;C<15;C++)F[C+1]=F[C]+N[C];for(k=0;k<l;k++)0!==t[r+k]&&(d[F[t[r+k]]++]=k);if(0===e?(_=D=d,b=19):1===e?(_=o,I-=257,D=i,B-=257,b=256):(_=a,D=s,b=-1),R=0,k=0,C=E,v=u,T=A,j=0,m=-1,g=(M=1<<A)-1,1===e&&M>852||2===e&&M>592)return 1;for(;;){y=C-j,d[k]<b?(w=0,x=d[k]):d[k]>b?(w=D[B+d[k]],x=_[I+d[k]]):(w=96,x=0),h=1<<C-j,E=p=1<<T;do{c[v+(R>>j)+(p-=h)]=y<<24|w<<16|x}while(0!==p);for(h=1<<C-1;R&h;)h>>=1;if(0!==h?(R&=h-1,R+=h):R=0,k++,0===--N[C]){if(C===O)break;C=t[r+d[k]]}if(C>A&&(R&g)!==m){for(0===j&&(j=A),v+=E,P=1<<(T=C-j);T+j<O&&!((P-=N[T+j])<=0);)T++,P<<=1;if(M+=1<<T,1===e&&M>852||2===e&&M>592)return 1;c[m=R&g]=A<<24|T<<16|v-u}}return 0!==R&&(c[v+R]=C-j<<24|64<<16),f.bits=A,0}},2512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sepia=void 0,t.Sepia=function(e){const t=e.data,r=t.length;for(let e=0;e<r;e+=4){const r=t[e+0],n=t[e+1],o=t[e+2];t[e+0]=Math.min(255,.393*r+.769*n+.189*o),t[e+1]=Math.min(255,.349*r+.686*n+.168*o),t[e+2]=Math.min(255,.272*r+.534*n+.131*o)}}},2551:(e,t,r)=>{"use strict";var n=r(6540),o=r(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 a=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++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===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,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}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 b(e){return e[1].toUpperCase()}function y(e,t,r,n){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.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,r,o,n)&&(r=null),n||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===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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,b);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,b);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,b);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=n.__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"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var _=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var F,D=Object.assign;function B(e){if(void 0===F)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var L=!1;function z(e,t){if(!e||L)return"";L=!0;var r=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(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=n.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{L=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?B(e):""}function H(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function U(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 k:return"StrictMode";case j:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T: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:U(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return U(e(t))}catch(e){}}return null}function V(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 U(t);case 8:return t===k?"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 W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(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=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+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 r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function X(e){if(void 0===(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 r=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function $(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=W(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){Z(e,t);var r=W(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&X(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+W(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function ie(e,t){var r=W(t.value),n=W(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(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,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.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,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=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 be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(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,ke=null;function Ee(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Oe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function je(){}var Pe=!1;function Me(e,t,r){if(Pe)return e(t,r);Pe=!0;try{return Te(e,t,r)}finally{Pe=!1,(null!==Ce||null!==ke)&&(je(),Ae())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var n=So(r);if(null===n)return null;r=n[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":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(i(231,t,typeof r));return r}var _e=!1;if(u)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){_e=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ue){_e=!1}function Ne(e,t,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var Fe=!1,De=null,Be=!1,Le=null,ze={onError:function(e){Fe=!0,De=e}};function He(e,t,r,n,o,i,a,s,l){Fe=!1,De=null,Ne.apply(ze,arguments)}function Ue(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ve(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 We(e){if(Ue(e)!==e)throw Error(i(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return We(o),e;if(a===n)return We(o),t;a=a.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=a;break}if(l===n){s=!0,n=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=o;break}if(l===n){s=!0,n=a,r=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?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,$e=o.unstable_requestPaint,Ze=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,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 r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~o;0!==s?n=dt(s):0!==(i&=a)&&(n=dt(i))}else 0!==(a=r&~o)?n=dt(a):0!==i&&(n=dt(i));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-at(t)),n|=e[r],t&=~o;return n}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!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function vt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function bt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,St,Ct,kt,Et,Ot=!1,At=[],Tt=null,jt=null,Pt=null,Mt=new Map,Rt=new Map,_t=[],It="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":Tt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Ft(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=yo(e.target);if(null!==t){var r=Ue(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ve(r)))return e.blockedOn=t,void Et(e.priority,(function(){Ct(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=wo(r))&&St(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Lt(e,t,r){Bt(e)&&r.delete(t)}function zt(){Ot=!1,null!==Tt&&Bt(Tt)&&(Tt=null),null!==jt&&Bt(jt)&&(jt=null),null!==Pt&&Bt(Pt)&&(Pt=null),Mt.forEach(Lt),Rt.forEach(Lt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ut(e){function t(t){return Ht(t,e)}if(0<At.length){Ht(At[0],e);for(var r=1;r<At.length;r++){var n=At[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Tt&&Ht(Tt,e),null!==jt&&Ht(jt,e),null!==Pt&&Ht(Pt,e),Mt.forEach(t),Rt.forEach(t),r=0;r<_t.length;r++)(n=_t[r]).blockedOn===e&&(n.blockedOn=null);for(;0<_t.length&&null===(r=_t[0]).blockedOn;)Dt(r),null===r.blockedOn&&_t.shift()}var Vt=w.ReactCurrentBatchConfig,Wt=!0;function Gt(e,t,r,n){var o=yt,i=Vt.transition;Vt.transition=null;try{yt=1,Kt(e,t,r,n)}finally{yt=o,Vt.transition=i}}function qt(e,t,r,n){var o=yt,i=Vt.transition;Vt.transition=null;try{yt=4,Kt(e,t,r,n)}finally{yt=o,Vt.transition=i}}function Kt(e,t,r,n){if(Wt){var o=Yt(e,t,r,n);if(null===o)Wn(e,t,n,Xt,r),Nt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Tt=Ft(Tt,e,t,r,n,o),!0;case"dragenter":return jt=Ft(jt,e,t,r,n,o),!0;case"mouseover":return Pt=Ft(Pt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,Ft(Mt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Ft(Rt.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Nt(e,n),4&t&&-1<It.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Yt(e,t,r,n))&&Wn(e,t,n,Xt,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Wn(e,t,n,null,r)}}var Xt=null;function Yt(e,t,r,n){if(Xt=null,null!==(e=yo(e=xe(n))))if(null===(t=Ue(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===r){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 $t(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 rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Zt=null,Qt=null,Jt=null;function er(){if(Jt)return Jt;var e,t,r=Qt,n=r.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tr(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 rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,i){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,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=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),ur=D({},lr,{view:0,detail:0}),dr=or(ur),fr=D({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kr,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!==sr&&(sr&&"mousemove"===e.type?(ir=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=ir=0,sr=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),hr=or(fr),pr=or(D({},fr,{dataTransfer:0})),mr=or(D({},ur,{relatedTarget:0})),gr=or(D({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),vr=D({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),br=or(vr),yr=or(D({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xr={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"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function kr(){return Cr}var Er=D({},ur,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Or=or(Er),Ar=or(D({},fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tr=or(D({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kr})),jr=or(D({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pr=D({},fr,{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}),Mr=or(Pr),Rr=[9,13,27,32],_r=u&&"CompositionEvent"in window,Ir=null;u&&"documentMode"in document&&(Ir=document.documentMode);var Nr=u&&"TextEvent"in window&&!Ir,Fr=u&&(!_r||Ir&&8<Ir&&11>=Ir),Dr=String.fromCharCode(32),Br=!1;function Lr(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hr=!1,Ur={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 Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ur[e.type]:"textarea"===t}function Wr(e,t,r,n){Oe(n),0<(t=qn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,qr=null;function Kr(e){Bn(e,0)}function Xr(e){if(K(xo(e)))return e}function Yr(e,t){if("change"===e)return t}var $r=!1;if(u){var Zr;if(u){var Qr="oninput"in document;if(!Qr){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Qr="function"==typeof Jr.oninput}Zr=Qr}else Zr=!1;$r=Zr&&(!document.documentMode||9<document.documentMode)}function en(){Gr&&(Gr.detachEvent("onpropertychange",tn),qr=Gr=null)}function tn(e){if("value"===e.propertyName&&Xr(qr)){var t=[];Wr(t,qr,e,xe(e)),Me(Kr,t)}}function rn(e,t,r){"focusin"===e?(en(),qr=r,(Gr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(qr)}function on(e,t){if("click"===e)return Xr(t)}function an(e,t){if("input"===e||"change"===e)return Xr(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!d.call(t,o)||!sn(e[o],t[o]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=X((e=t.contentWindow).document)}return t}function hn(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 pn(e){var t=fn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&hn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=un(r,i);var a=un(r,n);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=u&&"documentMode"in document&&11>=document.documentMode,gn=null,vn=null,bn=null,yn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;yn||null==gn||gn!==X(n)||(n="selectionStart"in(n=gn)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},bn&&ln(bn,n)||(bn=n,0<(n=qn(vn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},Cn={},kn={};function En(e){if(Cn[e])return Cn[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in kn)return Cn[e]=r[t];return e}u&&(kn=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var On=En("animationend"),An=En("animationiteration"),Tn=En("animationstart"),jn=En("transitionend"),Pn=new Map,Mn="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 Rn(e,t){Pn.set(e,t),l(t,[e])}for(var _n=0;_n<Mn.length;_n++){var In=Mn[_n];Rn(In.toLowerCase(),"on"+(In[0].toUpperCase()+In.slice(1)))}Rn(On,"onAnimationEnd"),Rn(An,"onAnimationIteration"),Rn(Tn,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(jn,"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 Nn="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(" "),Fn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nn));function Dn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,s,l,c){if(He.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var u=De;Fe=!1,De=null,Be||(Be=!0,Le=u)}}(n,t,void 0,e),e.currentTarget=null}function Bn(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dn(o,s,c),i=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dn(o,s,c),i=l}}}if(Be)throw e=Le,Be=!1,Le=null,e}function Ln(e,t){var r=t[go];void 0===r&&(r=t[go]=new Set);var n=e+"__bubble";r.has(n)||(Vn(t,e,2,!1),r.add(n))}function zn(e,t,r){var n=0;t&&(n|=4),Vn(r,e,n,t)}var Hn="_reactListening"+Math.random().toString(36).slice(2);function Un(e){if(!e[Hn]){e[Hn]=!0,a.forEach((function(t){"selectionchange"!==t&&(Fn.has(t)||zn(t,!1,e),zn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hn]||(t[Hn]=!0,zn("selectionchange",!1,t))}}function Vn(e,t,r,n){switch($t(t)){case 1:var o=Gt;break;case 4:o=qt;break;default:o=Kt}r=o.bind(null,t,r,e),o=void 0,!_e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Wn(e,t,r,n,o){var i=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=yo(s)))return;if(5===(l=a.tag)||6===l){n=i=a;continue e}s=s.parentNode}}n=n.return}Me((function(){var n=i,o=xe(r),a=[];e:{var s=Pn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Or;break;case"focusin":c="focus",l=mr;break;case"focusout":c="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tr;break;case On:case An:case Tn:l=gr;break;case jn:l=jr;break;case"scroll":l=dr;break;case"wheel":l=Mr;break;case"copy":case"cut":case"paste":l=br;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Ar}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=n;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&null!=(m=Re(p,f))&&u.push(Gn(p,m,h))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,r,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(c=r.relatedTarget||r.fromElement)||!yo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?yo(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=hr,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ar,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,r,o)).target=d,s.relatedTarget=h,m=null,yo(o)===n&&((u=new u(f,p+"enter",c,r,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=Kn(h))p++;for(h=0,m=f;m;m=Kn(m))h++;for(;0<p-h;)u=Kn(u),p--;for(;0<h-p;)f=Kn(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kn(u),f=Kn(f)}u=null}else u=null;null!==l&&Xn(a,s,l,u,!1),null!==c&&null!==d&&Xn(a,d,c,u,!0)}if("select"===(l=(s=n?xo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yr;else if(Vr(s))if($r)g=an;else{g=nn;var v=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=on);switch(g&&(g=g(e,n))?Wr(a,g,r,o):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=n?xo(n):window,e){case"focusin":(Vr(v)||"true"===v.contentEditable)&&(gn=v,vn=n,bn=null);break;case"focusout":bn=vn=gn=null;break;case"mousedown":yn=!0;break;case"contextmenu":case"mouseup":case"dragend":yn=!1,wn(a,r,o);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(a,r,o)}var b;if(_r)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hr?Lr(e,r)&&(y="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(y="onCompositionStart");y&&(Fr&&"ko"!==r.locale&&(Hr||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hr&&(b=er()):(Qt="value"in(Zt=o)?Zt.value:Zt.textContent,Hr=!0)),0<(v=qn(n,y)).length&&(y=new yr(y,e,null,r,o),a.push({event:y,listeners:v}),(b||null!==(b=zr(r)))&&(y.data=b))),(b=Nr?function(e,t){switch(e){case"compositionend":return zr(t);case"keypress":return 32!==t.which?null:(Br=!0,Dr);case"textInput":return(e=t.data)===Dr&&Br?null:e;default:return null}}(e,r):function(e,t){if(Hr)return"compositionend"===e||!_r&&Lr(e,t)?(e=er(),Jt=Qt=Zt=null,Hr=!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 Fr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=qn(n,"onBeforeInput")).length&&(o=new yr("onBeforeInput","beforeinput",null,r,o),a.push({event:o,listeners:n}),o.data=b)}Bn(a,t)}))}function Gn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function qn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,r))&&n.unshift(Gn(e,i,o)),null!=(i=Re(e,t))&&n.push(Gn(e,i,o))),e=e.return}return n}function Kn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xn(e,t,r,n,o){for(var i=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(r,i))&&a.unshift(Gn(r,l,s)):o||null!=(l=Re(r,i))&&a.push(Gn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Yn=/\r\n?/g,$n=/\u0000|\uFFFD/g;function Zn(e){return("string"==typeof e?e:""+e).replace(Yn,"\n").replace($n,"")}function Qn(e,t,r){if(t=Zn(t),Zn(e)!==t&&r)throw Error(i(425))}function Jn(){}var eo=null,to=null;function ro(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 no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:no;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ut(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ut(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 r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&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,bo="__reactHandles$"+fo;function yo(e){var t=e[ho];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mo]||r[ho]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=uo(e);null!==e;){if(r=e[ho])return r;e=uo(e)}return t}r=(e=r).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(i(33))}function So(e){return e[po]||null}var Co=[],ko=-1;function Eo(e){return{current:e}}function Oo(e){0>ko||(e.current=Co[ko],Co[ko]=null,ko--)}function Ao(e,t){ko++,Co[ko]=e.current,e.current=t}var To={},jo=Eo(To),Po=Eo(!1),Mo=To;function Ro(e,t){var r=e.type.contextTypes;if(!r)return To;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _o(e){return null!=e.childContextTypes}function Io(){Oo(Po),Oo(jo)}function No(e,t,r){if(jo.current!==To)throw Error(i(168));Ao(jo,t),Ao(Po,r)}function Fo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(i(108,V(e)||"Unknown",o));return D({},r,n)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Mo=jo.current,Ao(jo,e),Ao(Po,Po.current),!0}function Bo(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=Fo(e,t,Mo),n.__reactInternalMemoizedMergedChildContext=e,Oo(Po),Oo(jo),Ao(jo,e)):Oo(Po),Ao(Po,r)}var Lo=null,zo=!1,Ho=!1;function Uo(e){null===Lo?Lo=[e]:Lo.push(e)}function Vo(){if(!Ho&&null!==Lo){Ho=!0;var e=0,t=yt;try{var r=Lo;for(yt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Lo=null,zo=!1}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Ke(Je,Vo),t}finally{yt=t,Ho=!1}}return null}var Wo=[],Go=0,qo=null,Ko=0,Xo=[],Yo=0,$o=null,Zo=1,Qo="";function Jo(e,t){Wo[Go++]=Ko,Wo[Go++]=qo,qo=e,Ko=t}function ei(e,t,r){Xo[Yo++]=Zo,Xo[Yo++]=Qo,Xo[Yo++]=$o,$o=e;var n=Zo;e=Qo;var o=32-at(n)-1;n&=~(1<<o),r+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Zo=1<<32-at(t)+o|r<<o|n,Qo=i+e}else Zo=1<<i|r<<o|n,Qo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ri(e){for(;e===qo;)qo=Wo[--Go],Wo[Go]=null,Ko=Wo[--Go],Wo[Go]=null;for(;e===$o;)$o=Xo[--Yo],Xo[Yo]=null,Qo=Xo[--Yo],Xo[Yo]=null,Zo=Xo[--Yo],Xo[Yo]=null}var ni=null,oi=null,ii=!1,ai=null;function si(e,t){var r=Mc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function li(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==$o?{id:Zo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Mc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ni=e,oi=null,!0);default:return!1}}function ci(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(r.nextSibling);var n=ni;t&&li(e,t)?si(n,r):(e.flags=-4097&e.flags|2,ii=!1,ni=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ni=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function fi(e){if(e!==ni)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ni?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function pi(){oi=ni=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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=_c(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Dc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){var i=r.type;return i===C?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&yi(i)===t.type)?((n=o(t,r.props)).ref=vi(e,t,r),n.return=e,n):((n=Ic(r.type,r.key,r.props,null,e.mode,n)).ref=vi(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Bc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,i){return null===t||7!==t.tag?((t=Nc(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function f(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(r=Ic(t.type,t.key,t.props,null,e.mode,r)).ref=vi(e,null,t),r.return=e,r;case S:return(t=Bc(t,e.mode,r)).return=e,t;case R:return f(e,(0,t._init)(t._payload),r)}if(te(t)||N(t))return(t=Nc(t,e.mode,r,null)).return=e,t;bi(e,t)}return null}function h(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return r.key===o?c(e,t,r,n):null;case S:return r.key===o?u(e,t,r,n):null;case R:return h(e,t,(o=r._init)(r._payload),n)}if(te(r)||N(r))return null!==o?null:d(e,t,r,n,null);bi(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case S:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case R:return p(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||N(n))return d(t,e=e.get(r)||null,n,o,null);bi(t,n)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=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),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return r(o,d),ii&&Jo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,m),c}for(d=n(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),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),c}function g(o,s,l,c){var u=N(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=h(o,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return r(o,m),ii&&Jo(o,g),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=f(o,b.value,c))&&(s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return ii&&Jo(o,g),u}for(m=n(o,m);!b.done;g++,b=l.next())null!==(b=p(m,o,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),u}return function e(n,i,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){r(n,u.sibling),(i=o(u,a.props.children)).return=n,n=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&yi(c)===u.type){r(n,u.sibling),(i=o(u,a.props)).ref=vi(n,u,a),i.return=n,n=i;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===C?((i=Nc(a.props.children,n.mode,l,a.key)).return=n,n=i):((l=Ic(a.type,a.key,a.props,null,n.mode,l)).ref=vi(n,i,a),l.return=n,n=l)}return s(n);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(n,i.sibling),(i=o(i,a.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Bc(a,n.mode,l)).return=n,n=i}return s(n);case R:return e(n,i,(u=a._init)(a._payload),l)}if(te(a))return m(n,i,a,l);if(N(a))return g(n,i,a,l);bi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,a)).return=n,n=i):(r(n,i),(i=Dc(a,n.mode,l)).return=n,n=i),s(n)):r(n,i)}}var xi=wi(!0),Si=wi(!1),Ci=Eo(null),ki=null,Ei=null,Oi=null;function Ai(){Oi=Ei=ki=null}function Ti(e){var t=Ci.current;Oo(Ci),e._currentValue=t}function ji(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Pi(e,t){ki=e,Oi=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Mi(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===ki)throw Error(i(308));Ei=e,ki.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ri=null;function _i(e){null===Ri?Ri=[e]:Ri.push(e)}function Ii(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,_i(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ni(e,n)}function Ni(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Fi=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bi(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 Li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Tl){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ni(e,r)}return null===(o=n.interleaved)?(t.next=t,_i(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ni(e,r)}function Hi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,bt(e,r)}}function Ui(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Vi(e,t,r,n){var o=e.updateQueue;Fi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((n&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=r,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))break e;d=D({},d,f);break e;case 2:Fi=!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,a|=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{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Fl|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(i(191,o));o.call(n)}}}var Gi={},qi=Eo(Gi),Ki=Eo(Gi),Xi=Eo(Gi);function Yi(e){if(e===Gi)throw Error(i(174));return e}function $i(e,t){switch(Ao(Xi,t),Ao(Ki,e),Ao(qi,Gi),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)}Oo(qi),Ao(qi,t)}function Zi(){Oo(qi),Oo(Ki),Oo(Xi)}function Qi(e){Yi(Xi.current);var t=Yi(qi.current),r=le(t,e.type);t!==r&&(Ao(Ki,e),Ao(qi,r))}function Ji(e){Ki.current===e&&(Oo(qi),Oo(Ki))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(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 ra=[];function na(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,ha=0;function pa(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function ga(e,t,r,n,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=r(n,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=r(n,o)}while(da)}if(oa.current=Qa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ya(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"==typeof t?t(e):t}function xa(e){var t=ya(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=la,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=n):c=c.next=f,sa.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(ys=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Fl|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=ya(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sn(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ca(){}function ka(e,t){var r=sa,n=ya(),o=t(),a=!sn(n.memoizedState,o);if(a&&(n.memoizedState=o,ys=!0),n=n.queue,Fa(Aa.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ma(9,Oa.bind(null,r,n,o,t),void 0,null),null===jl)throw Error(i(349));30&aa||Ea(r,t,o)}return o}function Ea(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Oa(e,t,r,n){t.value=r,t.getSnapshot=n,Ta(t)&&ja(e)}function Aa(e,t,r){return r((function(){Ta(t)&&ja(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function ja(e){var t=Ni(e,1);null!==t&&rc(t,e,1,-1)}function Pa(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Xa.bind(null,sa,e),[t.memoizedState,e]}function Ma(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ra(){return ya().memoizedState}function _a(e,t,r,n){var o=ba();sa.flags|=e,o.memoizedState=Ma(1|t,r,void 0,void 0===n?null:n)}function Ia(e,t,r,n){var o=ya();n=void 0===n?null:n;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==n&&ma(n,a.deps))return void(o.memoizedState=Ma(t,r,i,n))}sa.flags|=e,o.memoizedState=Ma(1|t,r,i,n)}function Na(e,t){return _a(8390656,8,e,t)}function Fa(e,t){return Ia(2048,8,e,t)}function Da(e,t){return Ia(4,2,e,t)}function Ba(e,t){return Ia(4,4,e,t)}function La(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,r){return r=null!=r?r.concat([e]):null,Ia(4,4,La.bind(null,t,e),r)}function Ha(){}function Ua(e,t){var r=ya();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Va(e,t){var r=ya();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Wa(e,t,r){return 21&aa?(sn(r,t)||(r=mt(),sa.lanes|=r,Fl|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=r)}function Ga(e,t){var r=yt;yt=0!==r&&4>r?r:4,e(!0);var n=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=r,ia.transition=n}}function qa(){return ya().memoizedState}function Ka(e,t,r){var n=tc(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ya(e)?$a(t,r):null!==(r=Ii(e,t,r,n))&&(rc(r,e,n,ec()),Za(r,t,n))}function Xa(e,t,r){var n=tc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))$a(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(o.next=o,_i(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Ii(e,t,o,n))&&(rc(r,e,n,o=ec()),Za(r,t,n))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function $a(e,t){da=ua=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Za(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,bt(e,r)}}var Qa={readContext:Mi,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Mi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Mi,useEffect:Na,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,_a(4194308,4,La.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _a(4194308,4,e,t)},useInsertionEffect:function(e,t){return _a(4,2,e,t)},useMemo:function(e,t){var r=ba();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ba();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Pa,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ga.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=sa,o=ba();if(ii){if(void 0===r)throw Error(i(407));r=r()}else{if(r=t(),null===jl)throw Error(i(349));30&aa||Ea(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Na(Aa.bind(null,n,a,e),[e]),n.flags|=2048,Ma(9,Oa.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=jl.identifierPrefix;if(ii){var r=Qo;t=":"+t+"R"+(r=(Zo&~(1<<32-at(Zo)-1)).toString(32)+r),0<(r=fa++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Mi,useCallback:Ua,useContext:Mi,useEffect:Fa,useImperativeHandle:za,useInsertionEffect:Da,useLayoutEffect:Ba,useMemo:Va,useReducer:xa,useRef:Ra,useState:function(){return xa(wa)},useDebugValue:Ha,useDeferredValue:function(e){return Wa(ya(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1},ts={readContext:Mi,useCallback:Ua,useContext:Mi,useEffect:Fa,useImperativeHandle:za,useInsertionEffect:Da,useLayoutEffect:Ba,useMemo:Va,useReducer:Sa,useRef:Ra,useState:function(){return Sa(wa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var r in t=D({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:D({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),o=tc(e),i=Li(n,o);i.payload=t,null!=r&&(i.callback=r),null!==(t=zi(e,i,o))&&(rc(t,e,o,n),Hi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),o=tc(e),i=Li(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=zi(e,i,o))&&(rc(t,e,o,n),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),o=Li(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,n))&&(rc(t,e,n,r),Hi(t,e,n))}};function is(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(o,i))}function as(e,t,r){var n=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Mi(i):(o=_o(t)?Mo:jo.current,i=(n=null!=(n=t.contextTypes))?Ro(e,o):To),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Mi(i):(i=_o(t)?Mo:jo.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ns(e,t,i,r),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&&os.enqueueReplaceState(o,o.state,null),Vi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var r="",n=t;do{r+=H(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,r){(r=Li(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Wl||(Wl=!0,Gl=n),ds(0,t)},r}function ps(e,t,r){(r=Li(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!=typeof n&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ms(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new fs;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Ec.bind(null,e,t,r),t.then(e,e))}function gs(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 vs(e,t,r,n,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Li(-1,1)).tag=2,zi(r,t,1))),r.lanes|=1),e)}var bs=w.ReactCurrentOwner,ys=!1;function ws(e,t,r,n){t.child=null===e?Si(t,null,r,n):xi(t,e.child,r,n)}function xs(e,t,r,n,o){r=r.render;var i=t.ref;return Pi(t,o),n=ga(e,t,r,n,i,o),r=va(),null===e||ys?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function Ss(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||Rc(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ic(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,n,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return Ws(e,t,o)}return t.flags|=1,(e=_c(i,n)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(ln(i,n)&&e.ref===t.ref){if(ys=!1,t.pendingProps=n=i,0===(e.lanes&o))return t.lanes=e.lanes,Ws(e,t,o);131072&e.flags&&(ys=!0)}}return Os(e,t,r,n,o)}function ks(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(_l,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Ao(_l,Rl),Rl|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(_l,Rl),Rl|=r;else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ao(_l,Rl),Rl|=n;return ws(e,t,o,r),t.child}function Es(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,r,n,o){var i=_o(r)?Mo:jo.current;return i=Ro(t,i),Pi(t,o),r=ga(e,t,r,n,i,o),n=va(),null===e||ys?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function As(e,t,r,n,o){if(_o(r)){var i=!0;Do(t)}else i=!1;if(Pi(t,o),null===t.stateNode)Vs(e,t),as(t,r,n),ls(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;c="object"==typeof c&&null!==c?Mi(c):Ro(t,c=_o(r)?Mo:jo.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ss(t,a,n,c),Fi=!1;var f=t.memoizedState;a.state=f,Vi(t,n,a,o),l=t.memoizedState,s!==n||f!==l||Po.current||Fi?("function"==typeof u&&(ns(t,r,u,n),l=t.memoizedState),(s=Fi||is(t,r,s,n,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Bi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l="object"==typeof(l=r.contextType)&&null!==l?Mi(l):Ro(t,l=_o(r)?Mo:jo.current);var h=r.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,n,l),Fi=!1,f=t.memoizedState,a.state=f,Vi(t,n,a,o);var p=t.memoizedState;s!==d||f!==p||Po.current||Fi?("function"==typeof h&&(ns(t,r,h,n),p=t.memoizedState),(c=Fi||is(t,r,c,n,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Ts(e,t,r,n,i,o)}function Ts(e,t,r,n,o,i){Es(e,t);var a=!!(128&t.flags);if(!n&&!a)return o&&Bo(t,r,!1),Ws(e,t,i);n=t.stateNode,bs.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=n.state,o&&Bo(t,r,!0),t.child}function js(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),$i(e,t.containerInfo)}function Ps(e,t,r,n,o){return pi(),mi(o),t.flags|=256,ws(e,t,r,n),t.child}var Ms,Rs,_s,Is,Ns={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var n,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ao(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Fc(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Nc(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(r),t.memoizedState=Ns,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Ls(e,t,s,n=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Fc({mode:"visible",children:n.children},o,0,null),(a=Nc(a,o,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&xi(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Ns,a);if(!(1&t.mode))return Ls(e,t,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Ls(e,t,s,n=us(a=Error(i(419)),n,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(n=jl)){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&(n.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ni(e,o),rc(n,e,o,-1))}return mc(),Ls(e,t,s,n=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ni=t,ii=!0,ai=null,null!==e&&(Xo[Yo++]=Zo,Xo[Yo++]=Qo,Xo[Yo++]=$o,Zo=e.id,Qo=e.overflow,$o=t),(t=Bs(t,n.children)).flags|=4096,t)}(e,t,l,o,n,a,r);if(s){s=o.fallback,l=t.mode,n=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=_c(a,c)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==n?s=_c(n,s):(s=Nc(s,l,r,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)?Fs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ns,o}return e=(s=e.child).sibling,o=_c(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ls(e,t,r,n){return null!==n&&mi(n),xi(t,e.child,null,r),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ji(e.return,t,r)}function Hs(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Us(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(ws(e,t,n.children,r),2&(n=ea.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,r,t);else if(19===e.tag)zs(e,r,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}n&=1}if(Ao(ea,n),1&t.mode)switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ta(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Hs(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Hs(t,!0,r,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=_c(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=_c(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Gs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ks(e,t,r){var n=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return _o(t.type)&&Io(),qs(t),null;case 3:return n=t.stateNode,Zi(),Oo(Po),Oo(jo),na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Rs(e,t),qs(t),null;case 5:Ji(t);var o=Yi(Xi.current);if(r=t.type,null!==e&&null!=t.stateNode)_s(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(i(166));return qs(t),null}if(e=Yi(qi.current),fi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[ho]=t,n[po]=a,e=!!(1&t.mode),r){case"dialog":Ln("cancel",n),Ln("close",n);break;case"iframe":case"object":case"embed":Ln("load",n);break;case"video":case"audio":for(o=0;o<Nn.length;o++)Ln(Nn[o],n);break;case"source":Ln("error",n);break;case"img":case"image":case"link":Ln("error",n),Ln("load",n);break;case"details":Ln("toggle",n);break;case"input":$(n,a),Ln("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ln("invalid",n);break;case"textarea":oe(n,a),Ln("invalid",n)}for(var l in be(r,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?n.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,c,e),o=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ln("scroll",n)}switch(r){case"input":q(n),J(n,a,!0);break;case"textarea":q(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Jn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[ho]=t,e[po]=n,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(r,n),r){case"dialog":Ln("cancel",e),Ln("close",e),o=n;break;case"iframe":case"object":case"embed":Ln("load",e),o=n;break;case"video":case"audio":for(o=0;o<Nn.length;o++)Ln(Nn[o],e);o=n;break;case"source":Ln("error",e),o=n;break;case"img":case"image":case"link":Ln("error",e),Ln("load",e),o=n;break;case"details":Ln("toggle",e),o=n;break;case"input":$(e,n),o=Y(e,n),Ln("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=D({},n,{value:void 0}),Ln("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Ln("invalid",e)}for(a in be(r,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==r||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Ln("scroll",e):null!=u&&y(e,a,u,l))}switch(r){case"input":q(e),J(e,n,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+W(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));if(r=Yi(Xi.current),Yi(qi.current),fi(t)){if(n=t.stateNode,r=t.memoizedProps,n[ho]=t,(a=n.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Qn(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qn(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[ho]=t,t.stateNode=n}return qs(t),null;case 13:if(Oo(ea),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Il&&(Il=3):mc())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Zi(),Rs(e,t),null===e&&Un(t.stateNode.containerInfo),qs(t),null;case 10:return Ti(t.type._context),qs(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return qs(t),null;if(n=!!(128&t.flags),null===(l=a.rendering))if(n)Gs(a,!1);else{if(0!==Il||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Gs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ao(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Ul&&(t.flags|=128,n=!0,Gs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ta(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return qs(t),null}else 2*Ze()-a.renderingStartTime>Ul&&1073741824!==r&&(t.flags|=128,n=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,r=ea.current,Ao(ea,n?1&r|2:1&r),t):(qs(t),null);case 22:case 23:return dc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Rl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Xs(e,t){switch(ri(t),t.tag){case 1:return _o(t.type)&&Io(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zi(),Oo(Po),Oo(jo),na(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Zi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ms=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(){},_s=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Yi(qi.current);var i,a=null;switch(r){case"input":o=Y(e,o),n=Y(e,n),a=[];break;case"select":o=D({},o,{value:void 0}),n=D({},n,{value:void 0}),a=[];break;case"textarea":o=ne(e,o),n=ne(e,n),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Jn)}for(u in be(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(r||(r={}),r[i]=c[i])}else r||(a||(a=[]),a.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ln("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ys=!1,$s=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Js(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){kc(e,t,r)}else r.current=null}function el(e,t,r){try{r()}catch(r){kc(e,t,r)}}var tl=!1;function rl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,r,i)}o=o.next}while(o!==n)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ol(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"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[bo]),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(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 ll(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Jn));else if(4!==n&&null!==(e=e.child))for(ll(e,t,r),e=e.sibling;null!==e;)ll(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var ul=null,dl=!1;function fl(e,t,r){for(r=r.child;null!==r;)hl(e,t,r),r=r.sibling}function hl(e,t,r){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,r)}catch(e){}switch(r.tag){case 5:$s||Js(r,t);case 6:var n=ul,o=dl;ul=null,fl(e,t,r),dl=o,null!==(ul=n)&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ul.removeChild(r.stateNode));break;case 18:null!==ul&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),Ut(e)):lo(ul,r.stateNode));break;case 4:n=ul,o=dl,ul=r.stateNode.containerInfo,dl=!0,fl(e,t,r),ul=n,dl=o;break;case 0:case 11:case 14:case 15:if(!$s&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(r,t,a),o=o.next}while(o!==n)}fl(e,t,r);break;case 1:if(!$s&&(Js(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){kc(r,t,e)}fl(e,t,r);break;case 21:fl(e,t,r);break;case 22:1&r.mode?($s=(n=$s)||null!==r.memoizedState,fl(e,t,r),$s=n):fl(e,t,r);break;default:fl(e,t,r)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Zs),t.forEach((function(t){var n=Tc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));hl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){kc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&n){try{rl(3,e,e.return),nl(3,e)}catch(t){kc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&n&&null!==r&&Js(r,r.return);break;case 5:if(ml(t,e),vl(e),512&n&&null!==r&&Js(r,r.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){kc(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(o,a),ye(l,s);var u=ye(l,a);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):y(o,d,f,u)}switch(l){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?re(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(t){kc(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&n){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){kc(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hl=Ze())),4&n&&pl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?($s=(u=$s)||d,ml(t,e),$s=u):ml(t,e),vl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(p=(h=Qs).child,h.tag){case 0:case 11:case 14:case 15:rl(4,h,h.return);break;case 1:Js(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){n=h,r=h.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(n,r,e)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){xl(f);continue}}null!==p?(p.return=h,Qs=p):xl(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(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){kc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){kc(e,e.return,t)}}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:ml(t,e),vl(e),4&n&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(i(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(fe(o,""),n.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Qs=e,yl(e,t,r)}function yl(e,t,r){for(var n=!!(1&e.mode);null!==Qs;){var o=Qs,i=o.child;if(22===o.tag&&n){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||$s;s=Ys;var c=$s;if(Ys=a,($s=l)&&!c)for(Qs=o;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Qs=l):Sl(o);for(;null!==i;)Qs=i,yl(i,t,r),i=i.sibling;Qs=o,Ys=s,$s=c}wl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Qs=i):wl(e)}}function wl(e){for(;null!==Qs;){var t=Qs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$s||nl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!$s)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.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&&Ut(f)}}}break;default:throw Error(i(163))}$s||512&t.flags&&ol(t)}catch(e){kc(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Qs=r;break}Qs=t.return}}function xl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Qs=r;break}Qs=t.return}}function Sl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nl(4,t)}catch(e){kc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){kc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){kc(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){kc(t,a,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var Cl,kl=Math.ceil,El=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Tl=0,jl=null,Pl=null,Ml=0,Rl=0,_l=Eo(0),Il=0,Nl=null,Fl=0,Dl=0,Bl=0,Ll=null,zl=null,Hl=0,Ul=1/0,Vl=null,Wl=!1,Gl=null,ql=null,Kl=!1,Xl=null,Yl=0,$l=0,Zl=null,Ql=-1,Jl=0;function ec(){return 6&Tl?Ze():-1!==Ql?Ql:Ql=Ze()}function tc(e){return 1&e.mode?2&Tl&&0!==Ml?Ml&-Ml:null!==gi.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:$t(e.type):1}function rc(e,t,r,n){if(50<$l)throw $l=0,Zl=null,Error(i(185));vt(e,r,n),2&Tl&&e===jl||(e===jl&&(!(2&Tl)&&(Dl|=r),4===Il&&sc(e,Ml)),nc(e,n),1===r&&0===Tl&&!(1&t.mode)&&(Ul=Ze()+500,zo&&Vo()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&r)&&0===(s&n)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var n=ft(e,e===jl?Ml:0);if(0===n)null!==r&&Xe(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Xe(r),1===t)0===e.tag?function(e){zo=!0,Uo(e)}(lc.bind(null,e)):Uo(lc.bind(null,e)),ao((function(){!(6&Tl)&&Vo()})),r=null;else{switch(wt(n)){case 1:r=Je;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=jc(r,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function oc(e,t){if(Ql=-1,Jl=0,6&Tl)throw Error(i(327));var r=e.callbackNode;if(Sc()&&e.callbackNode!==r)return null;var n=ft(e,e===jl?Ml:0);if(0===n)return null;if(30&n||0!==(n&e.expiredLanes)||t)t=gc(e,n);else{t=n;var o=Tl;Tl|=2;var a=pc();for(jl===e&&Ml===t||(Vl=null,Ul=Ze()+500,fc(e,t));;)try{bc();break}catch(t){hc(e,t)}Ai(),El.current=a,Tl=o,null!==Pl?t=0:(jl=null,Ml=0,t=Il)}if(0!==t){if(2===t&&0!==(o=pt(e))&&(n=o,t=ic(e,o)),1===t)throw r=Nl,fc(e,0),sc(e,n),nc(e,Ze()),r;if(6===t)sc(e,n);else{if(o=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!sn(i(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;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)||(t=gc(e,n),2===t&&(a=pt(e),0!==a&&(n=a,t=ic(e,a))),1!==t)))throw r=Nl,fc(e,0),sc(e,n),nc(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,zl,Vl);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Hl+500-Ze())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(xc.bind(null,e,zl,Vl),t);break}xc(e,zl,Vl);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>o&&(o=s),n&=~a}if(n=o,10<(n=(120>(n=Ze()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=no(xc.bind(null,e,zl,Vl),n);break}xc(e,zl,Vl);break;default:throw Error(i(329))}}}return nc(e,Ze()),e.callbackNode===r?oc.bind(null,e):null}function ic(e,t){var r=Ll;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=zl,zl=r,null!==t&&ac(t)),e}function ac(e){null===zl?zl=e:zl.push.apply(zl,e)}function sc(e,t){for(t&=~Bl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function lc(e){if(6&Tl)throw Error(i(327));Sc();var t=ft(e,0);if(!(1&t))return nc(e,Ze()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=ic(e,n))}if(1===r)throw r=Nl,fc(e,0),sc(e,t),nc(e,Ze()),r;if(6===r)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,zl,Vl),nc(e,Ze()),null}function cc(e,t){var r=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=r)&&(Ul=Ze()+500,zo&&Vo())}}function uc(e){null!==Xl&&0===Xl.tag&&!(6&Tl)&&Sc();var t=Tl;Tl|=1;var r=Al.transition,n=yt;try{if(Al.transition=null,yt=1,e)return e()}finally{yt=n,Al.transition=r,!(6&(Tl=t))&&Vo()}}function dc(){Rl=_l.current,Oo(_l)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==Pl)for(r=Pl.return;null!==r;){var n=r;switch(ri(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Io();break;case 3:Zi(),Oo(Po),Oo(jo),na();break;case 5:Ji(n);break;case 4:Zi();break;case 13:case 19:Oo(ea);break;case 10:Ti(n.type._context);break;case 22:case 23:dc()}r=r.return}if(jl=e,Pl=e=_c(e.current,null),Ml=Rl=t,Il=0,Nl=null,Bl=Dl=Fl=0,zl=Ll=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(n=(r=Ri[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var a=i.next;i.next=o,n.next=a}r.pending=n}Ri=null}return e}function hc(e,t){for(;;){var r=Pl;try{if(Ai(),oa.current=Qa,ua){for(var n=sa.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Ol.current=null,null===r||null===r.return){Il=1,Nl=t,Pl=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Ml,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,f=d.tag;if(!(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=gs(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&ms(a,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(!(1&t)){ms(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Il&&(Il=2),null===Ll?Ll=[a]:Ll.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ui(a,hs(0,c,t));break e;case 1:l=c;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==ql&&ql.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Ui(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(r)}catch(e){t=e,Pl===r&&null!==r&&(Pl=r=r.return);continue}break}}function pc(){var e=El.current;return El.current=Qa,null===e?Qa:e}function mc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===jl||!(268435455&Fl)&&!(268435455&Dl)||sc(jl,Ml)}function gc(e,t){var r=Tl;Tl|=2;var n=pc();for(jl===e&&Ml===t||(Vl=null,fc(e,t));;)try{vc();break}catch(t){hc(e,t)}if(Ai(),Tl=r,El.current=n,null!==Pl)throw Error(i(261));return jl=null,Ml=0,Il}function vc(){for(;null!==Pl;)yc(Pl)}function bc(){for(;null!==Pl&&!Ye();)yc(Pl)}function yc(e){var t=Cl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wc(e):Pl=t,Ol.current=null}function wc(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Xs(r,t)))return r.flags&=32767,void(Pl=r);if(null===e)return Il=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ks(r,t,Rl)))return void(Pl=r);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Il&&(Il=5)}function xc(e,t,r){var n=yt,o=Al.transition;try{Al.transition=null,yt=1,function(e,t,r,n){do{Sc()}while(null!==Xl);if(6&Tl)throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-at(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,a),e===jl&&(Pl=jl=null,Ml=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Kl||(Kl=!0,jc(tt,(function(){return Sc(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=Al.transition,Al.transition=null;var s=yt;yt=1;var l=Tl;Tl|=4,Ol.current=null,function(e,t){if(eo=Wt,hn(e=fn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==r||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==n&&3!==f.nodeType||(c=s+n),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===r&&++u===o&&(l=s),h===a&&++d===n&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Wt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(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,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:rs(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}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(i(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=tl,tl=!1}(e,r),gl(r,e),pn(to),Wt=!!eo,to=eo=null,e.current=r,bl(r,e,o),$e(),Tl=l,yt=s,Al.transition=a}else e.current=r;if(Kl&&(Kl=!1,Xl=e,Yl=o),0===(a=e.pendingLanes)&&(ql=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),nc(e,Ze()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((o=t[r]).value,{componentStack:o.stack,digest:o.digest});if(Wl)throw Wl=!1,e=Gl,Gl=null,e;!!(1&Yl)&&0!==e.tag&&Sc(),1&(a=e.pendingLanes)?e===Zl?$l++:($l=0,Zl=e):$l=0,Vo()}(e,t,r,n)}finally{Al.transition=o,yt=n}return null}function Sc(){if(null!==Xl){var e=wt(Yl),t=Al.transition,r=yt;try{if(Al.transition=null,yt=16>e?16:e,null===Xl)var n=!1;else{if(e=Xl,Xl=null,Yl=0,6&Tl)throw Error(i(331));var o=Tl;for(Tl|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(16&Qs.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var h=(d=Qs).sibling,p=d.return;if(il(d),d===u){Qs=null;break}if(null!==h){h.return=p,Qs=h;break}Qs=p}}}var m=a.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)}}Qs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(2048&(a=Qs).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Qs=b;break e}Qs=a.return}}var y=e.current;for(Qs=y;null!==Qs;){var w=(s=Qs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Qs=w;else e:for(s=y;null!==Qs;){if(2048&(l=Qs).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){kc(l,l.return,e)}if(l===s){Qs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Qs=x;break e}Qs=l.return}}if(Tl=o,Vo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}n=!0}return n}finally{yt=r,Al.transition=t}}return!1}function Cc(e,t,r){e=zi(e,t=hs(0,t=cs(r,t),1),1),t=ec(),null!==e&&(vt(e,1,t),nc(e,t))}function kc(e,t,r){if(3===e.tag)Cc(e,e,r);else for(;null!==t;){if(3===t.tag){Cc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===ql||!ql.has(n))){t=zi(t,e=ps(t,e=cs(r,e),1),1),e=ec(),null!==t&&(vt(t,1,e),nc(t,e));break}}t=t.return}}function Ec(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,jl===e&&(Ml&r)===r&&(4===Il||3===Il&&(130023424&Ml)===Ml&&500>Ze()-Hl?fc(e,0):Bl|=r),nc(e,t)}function Oc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var r=ec();null!==(e=Ni(e,t))&&(vt(e,t,r),nc(e,r))}function Ac(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Oc(e,r)}function Tc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(i(314))}null!==n&&n.delete(t),Oc(e,r)}function jc(e,t){return Ke(e,t)}function Pc(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(e,t,r,n){return new Pc(e,t,r,n)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _c(e,t){var r=e.alternate;return null===r?((r=Mc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ic(e,t,r,n,o,a){var s=2;if(n=e,"function"==typeof e)Rc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Nc(r.children,o,a,t);case k:s=8,o|=8;break;case E:return(e=Mc(12,r,t,2|o)).elementType=E,e.lanes=a,e;case j:return(e=Mc(13,r,t,o)).elementType=j,e.lanes=a,e;case P:return(e=Mc(19,r,t,o)).elementType=P,e.lanes=a,e;case _:return Fc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case A:s=9;break e;case T:s=11;break e;case M:s=14;break e;case R:s=16,n=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Mc(s,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Nc(e,t,r,n){return(e=Mc(7,e,n,t)).lanes=r,e}function Fc(e,t,r,n){return(e=Mc(22,e,n,t)).elementType=_,e.lanes=r,e.stateNode={isHidden:!1},e}function Dc(e,t,r){return(e=Mc(6,e,null,t)).lanes=r,e}function Bc(e,t,r){return(t=Mc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lc(e,t,r,n,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=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zc(e,t,r,n,o,i,a,s,l){return e=new Lc(e,t,r,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Mc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Hc(e){if(!e)return To;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_o(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var r=e.type;if(_o(r))return Fo(e,r,t)}return t}function Uc(e,t,r,n,o,i,a,s,l){return(e=zc(r,n,!0,e,0,i,0,s,l)).context=Hc(null),r=e.current,(i=Li(n=ec(),o=tc(r))).callback=null!=t?t:null,zi(r,i,o),e.current.lanes=o,vt(e,o,n),nc(e,n),e}function Vc(e,t,r,n){var o=t.current,i=ec(),a=tc(o);return r=Hc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Li(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=zi(o,t,a))&&(rc(e,o,a,i),Hi(e,o,a)),a}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function qc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}Cl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)ys=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ys=!1,function(e,t,r){switch(t.tag){case 3:js(t),pi();break;case 5:Qi(t);break;case 1:_o(t.type)&&Do(t);break;case 4:$i(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Ao(Ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ao(ea,1&ea.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Ds(e,t,r):(Ao(ea,1&ea.current),null!==(e=Ws(e,t,r))?e.sibling:null);Ao(ea,1&ea.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return Us(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ea,ea.current),n)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,r)}return Ws(e,t,r)}(e,t,r);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vs(e,t),e=t.pendingProps;var o=Ro(t,jo.current);Pi(t,r),o=ga(null,t,n,e,o,r);var a=va();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,_o(n)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,n,e,r),t=Ts(null,t,n,!0,a,r)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return Rc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===M)return 14}return 2}(n),e=rs(n,e),o){case 0:t=Os(null,t,n,e,r);break e;case 1:t=As(null,t,n,e,r);break e;case 11:t=xs(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,rs(n.type,e),r);break e}throw Error(i(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,Os(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 1:return n=t.type,o=t.pendingProps,As(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 3:e:{if(js(t),null===e)throw Error(i(387));n=t.pendingProps,o=(a=t.memoizedState).element,Bi(e,t),Vi(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,n,r,o=cs(Error(i(423)),t));break e}if(n!==o){t=Ps(e,t,n,r,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ni=t,ii=!0,ai=null,r=Si(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(pi(),n===o){t=Ws(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return Qi(t),null===e&&ui(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==a&&ro(n,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Ds(e,t,r);case 4:return $i(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=xi(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,xs(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Ao(Ci,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===o.children&&!Po.current){t=Ws(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===a.tag){(c=Li(-1,r&-r)).tag=2;var u=a.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}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),ji(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),ji(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Pi(t,r),n=n(o=Mi(o)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return o=rs(n=t.type,t.pendingProps),Ss(e,t,n,o=rs(n.type,o),r);case 15:return Cs(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:rs(n,o),Vs(e,t),t.tag=1,_o(n)?(e=!0,Do(t)):e=!1,Pi(t,r),as(t,n,o),ls(t,n,o,r),Ts(null,t,n,!0,e,r);case 19:return Us(e,t,r);case 22:return ks(e,t,r)}throw Error(i(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Jc(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Wc(a);s.call(e)}}Vc(t,a,e,o)}else a=function(e,t,r,n,o){if(o){if("function"==typeof n){var i=n;n=function(){var e=Wc(a);i.call(e)}}var a=Uc(t,n,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[mo]=a.current,Un(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Wc(l);s.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[mo]=l.current,Un(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,r,n)})),l}(r,t,e,o,n);return Wc(a)}Yc.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Vc(e,t,null,null)},Yc.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[mo]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_t.length&&0!==t&&t<_t[r].priority;r++);_t.splice(r,0,e),0===r&&Dt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(bt(t,1|r),nc(t,Ze()),!(6&Tl)&&(Ul=Ze()+500,Vo()))}break;case 13:uc((function(){var t=Ni(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),qc(e,1)}},St=function(e){if(13===e.tag){var t=Ni(e,134217728);null!==t&&rc(t,e,134217728,ec()),qc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tc(e),r=Ni(e,t);null!==r&&rc(r,e,t,ec()),qc(e,t)}},kt=function(){return yt},Et=function(e,t){var r=yt;try{return yt=e,t()}finally{yt=r}},Se=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=So(n);if(!o)throw Error(i(90));K(n),Q(n,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Te=cc,je=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,So,Oe,Ae,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.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=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{ot=nu.inject(ru),it=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(i(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!$c(e))throw Error(i(299));var r=!1,n="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zc(e,1,!1,null,0,r,0,n,o),e[mo]=t.current,Un(8===e.nodeType?e.parentNode:e),new Xc(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(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,r){if(!Zc(t))throw Error(i(200));return Jc(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!$c(e))throw Error(i(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",s=Kc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Uc(t,null,e,1,null!=r?r:null,o,0,a,s),e[mo]=t.current,Un(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Yc(t)},t.render=function(e,t,r){if(!Zc(t))throw Error(i(200));return Jc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zc(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},2650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contrast=void 0;const n=r(4892),o=r(6536),i=r(5483);t.Contrast=function(e){const t=Math.pow((this.contrast()+100)/100,2),r=e.data,n=r.length;let o=150,i=150,a=150;for(let e=0;e<n;e+=4)o=r[e],i=r[e+1],a=r[e+2],o/=255,o-=.5,o*=t,o+=.5,o*=255,i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,o=o<0?0:o>255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[e]=o,r[e+1]=i,r[e+2]=a},n.Factory.addGetterSetter(o.Node,"contrast",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},2910:e=>{window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.eventEmitter=t.INTERNAL_ERROR_EVENT=t.UNKNOWN_IDX=t.ROOT_IDX=t.getStylesheet=t.getDefaultOptions=t.CAMEL_DATASET_SPLIT_TYPE=t.CAMEL_DATASET_IDENTIFIER_EXTRA=t.CAMEL_DATASET_IDENTIFIER=t.DATASET_SPLIT_TYPE=t.DATASET_IDENTIFIER_EXTRA=t.DATASET_IDENTIFIER=t.STYLESHEET_ID=t.LOCAL_STORE_KEY=t.ID_DIVISION=void 0;var a=i(r(10)),s=i(r(2));t.ID_DIVISION=";",t.LOCAL_STORE_KEY="highlight-mengshou",t.STYLESHEET_ID="highlight-mengshou-style",t.DATASET_IDENTIFIER="highlight-id",t.DATASET_IDENTIFIER_EXTRA="highlight-id-extra",t.DATASET_SPLIT_TYPE="highlight-split-type",t.CAMEL_DATASET_IDENTIFIER=a.default(t.DATASET_IDENTIFIER),t.CAMEL_DATASET_IDENTIFIER_EXTRA=a.default(t.DATASET_IDENTIFIER_EXTRA),t.CAMEL_DATASET_SPLIT_TYPE=a.default(t.DATASET_SPLIT_TYPE),t.getDefaultOptions=function(){return{$root:document||document.documentElement,exceptSelectors:null,wrapTag:"span",verbose:!1,style:{className:"highlight-mengshou-wrap"}}},t.getStylesheet=function(){return"\n ."+t.getDefaultOptions().style.className+" {\n background: #ff9;\n cursor: pointer;\n }\n ."+t.getDefaultOptions().style.className+".active {\n background: #ffb;\n }\n"},t.ROOT_IDX=-2,t.UNKNOWN_IDX=-1,t.INTERNAL_ERROR_EVENT="error";var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.default);t.eventEmitter=new l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInputEvent=t.SelectedNodeType=t.CreateFrom=t.EventType=t.ERROR=t.SplitType=void 0,function(e){e.none="none",e.head="head",e.tail="tail",e.both="both"}(t.SplitType||(t.SplitType={})),function(e){e.DOM_TYPE_ERROR="[DOM] Receive wrong node type.",e.DOM_SELECTION_EMPTY="[DOM] The selection contains no dom node, may be you except them.",e.RANGE_INVALID="[RANGE] Got invalid dom range, can't convert to a valid highlight range.",e.RANGE_NODE_INVALID="[RANGE] Start or end node isn't a text node, it may occur an error.",e.DB_ID_DUPLICATE_ERROR="[STORE] Unique id conflict.",e.CACHE_SET_ERROR="[CACHE] Cache.data can't be set manually, please use .save().",e.SOURCE_TYPE_ERROR="[SOURCE] Object isn't a highlight source instance.",e.HIGHLIGHT_RANGE_FROZEN="[HIGHLIGHT_RANGE] A highlight range must be frozen before render.",e.HIGHLIGHT_SOURCE_RECREATE="[HIGHLIGHT_SOURCE] Recreate highlights from sources error.",e.HIGHLIGHT_SOURCE_NONE_RENDER="[HIGHLIGHT_SOURCE] This highlight source isn't rendered. May be the exception skips it or the dom structure has changed."}(t.ERROR||(t.ERROR={})),function(e){e.CREATE="selection:create",e.REMOVE="selection:remove",e.MODIFY="selection:modify",e.HOVER="selection:hover",e.HOVER_OUT="selection:hover-out",e.CLICK="selection:click"}(t.EventType||(t.EventType={})),function(e){e.STORE="from-store",e.INPUT="from-input"}(t.CreateFrom||(t.CreateFrom={})),function(e){e.text="text",e.span="span"}(t.SelectedNodeType||(t.SelectedNodeType={})),function(e){e.touchend="touchend",e.mouseup="mouseup",e.touchstart="touchstart",e.click="click",e.mouseover="mouseover"}(t.UserInputEvent||(t.UserInputEvent={}))},function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.handlersMap=Object.create(null)}return e.prototype.on=function(e,t){return this.handlersMap[e]||(this.handlersMap[e]=[]),this.handlersMap[e].push(t),this},e.prototype.off=function(e,t){return this.handlersMap[e]&&this.handlersMap[e].splice(this.handlersMap[e].indexOf(t)>>>0,1),this},e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this.handlersMap[e]&&this.handlersMap[e].slice().forEach((function(e){e.apply(void 0,o(t))})),this},e}();t.default=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(5)),i=r(9),a=function(){function e(e,t,r,n,o){this.startMeta=e,this.endMeta=t,this.text=r,this.id=n,this.__isHighlightSource={},o&&(this.extra=o)}return e.prototype.deSerialize=function(e,t){var r=i.queryElementNode(this,e),n=r.start,a=r.end,s=i.getTextChildByOffset(n,this.startMeta.textOffset),l=i.getTextChildByOffset(a,this.endMeta.textOffset);if(!t.Serialize.Restore.isEmpty()){var c=t.Serialize.Restore.call(this,s,l)||[];s=c[0]||s,l=c[1]||l}return new o.default(s,l,this.text,this.id,!0)},e}();t.default=a},function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=t.removeAllClass=t.removeClass=t.addClass=t.addEventListener=t.removeEventListener=t.forEach=t.getHighlightById=t.getHighlightsByRoot=t.getExtraHighlightId=t.getHighlightId=t.isHighlightWrapNode=void 0;var a=r(0);t.isHighlightWrapNode=function(e){return!!e.dataset&&!!e.dataset[a.CAMEL_DATASET_IDENTIFIER]};var s=function(e,r){for(var n=!1,o=null;e;){if(t.isHighlightWrapNode(e)&&(o=e),e===r){n=!0;break}e=e.parentNode}return n?o:null};t.getHighlightId=function(e,t){return(e=s(e,t))?e.dataset[a.CAMEL_DATASET_IDENTIFIER]:""},t.getExtraHighlightId=function(e,t){return(e=s(e,t))?e.dataset[a.CAMEL_DATASET_IDENTIFIER_EXTRA].split(a.ID_DIVISION).filter((function(e){return e})):[]},t.getHighlightsByRoot=function(e,t){var r,o;Array.isArray(e)||(e=[e]);var i=[];try{for(var s=n(e),l=s.next();!l.done;l=s.next()){var c=l.value.querySelectorAll(t+"[data-"+a.DATASET_IDENTIFIER+"]");i.push.apply(i,c)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i},t.getHighlightById=function(e,t,r){var o,i,s=[],l=new RegExp("("+t+"\\"+a.ID_DIVISION+"|\\"+a.ID_DIVISION+"?"+t+"$)"),c=e.querySelectorAll(r+"[data-"+a.DATASET_IDENTIFIER+"]");try{for(var u=n(c),d=u.next();!d.done;d=u.next()){var f=d.value;if(f.dataset[a.CAMEL_DATASET_IDENTIFIER]!==t){var h=f.dataset[a.CAMEL_DATASET_IDENTIFIER_EXTRA];l.test(h)&&s.push(f)}else s.push(f)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return s},t.forEach=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r,e)},t.removeEventListener=function(e,t,r){e.removeEventListener(t,r)},t.addEventListener=function(e,r,n){return e.addEventListener(r,n),function(){t.removeEventListener(e,r,n)}},t.addClass=function(e,t){var r;Array.isArray(t)||(t=[t]),(r=e.classList).add.apply(r,i(t))},t.removeClass=function(e,t){e.classList.remove(t)},t.removeAllClass=function(e){e.className=""},t.hasClass=function(e,t){return e.classList.contains(t)}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(3)),i=r(1),a=r(11),s=n(r(6)),l=r(12),c=r(0),u=function(){function e(e,t,r,n,o){void 0===o&&(o=!1),3===e.$node.nodeType&&3===t.$node.nodeType||c.eventEmitter.emit(c.INTERNAL_ERROR_EVENT,{type:i.ERROR.RANGE_NODE_INVALID}),this.start=l.formatDomNode(e),this.end=l.formatDomNode(t),this.text=r,this.frozen=o,this.id=n}return e.fromSelection=function(t){var r=a.getDomRange();if(!r)return null;var n={$node:r.startContainer,offset:r.startOffset},o={$node:r.endContainer,offset:r.endOffset},i=r.toString(),l=t.call(n,o,i);return new e(n,o,i,l=null!=l?l:s.default())},e.prototype.serialize=function(e,t){var r,n=l.getDomMeta(this.start.$node,this.start.offset,e),i=l.getDomMeta(this.end.$node,this.end.offset,e);return t.Serialize.RecordInfo.isEmpty()||(r=t.Serialize.RecordInfo.call(this.start,this.end,e)),this.frozen=!0,new o.default(n,i,this.text,this.id,r)},e.removeDomRange=a.removeSelection,e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}},function(e,t,r){e.exports=r(8)},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(r(2)),l=a(r(5)),c=a(r(3)),u=a(r(6)),d=a(r(13)),f=a(r(14)),h=a(r(16)),p=a(r(17)),m=r(0),g=r(1),v=r(4),b=function(e){function t(t){var r=e.call(this)||this;r.event=f.default(),r.run=function(){return v.addEventListener(r.options.$root,r.event.PointerEnd,r._handleSelection)},r.stop=function(){v.removeEventListener(r.options.$root,r.event.PointerEnd,r._handleSelection)},r.addClass=function(e,t){r.getDoms(t).forEach((function(t){v.addClass(t,e)}))},r.removeClass=function(e,t){r.getDoms(t).forEach((function(t){v.removeClass(t,e)}))},r.getIdByDom=function(e){return v.getHighlightId(e,r.options.$root)},r.getExtraIdByDom=function(e){return v.getExtraHighlightId(e,r.options.$root)},r.getDoms=function(e){return e?v.getHighlightById(r.options.$root,e,r.options.wrapTag):v.getHighlightsByRoot(r.options.$root,r.options.wrapTag)},r.dispose=function(){var e=r.options.$root;v.removeEventListener(e,r.event.PointerOver,r._handleHighlightHover),v.removeEventListener(e,r.event.PointerEnd,r._handleSelection),v.removeEventListener(e,r.event.PointerTap,r._handleHighlightClick),r.removeAll()},r.setOption=function(e){r.options=i(i({},r.options),e),r.painter=new p.default({$root:r.options.$root,wrapTag:r.options.wrapTag,className:r.options.style.className,exceptSelectors:r.options.exceptSelectors},r.hooks)},r.fromRange=function(e){var t={$node:e.startContainer,offset:e.startOffset},n={$node:e.endContainer,offset:e.endOffset},o=e.toString(),i=r.hooks.Render.UUID.call(t,n,o);i=null!=i?i:u.default();var a=new l.default(t,n,o,i);return a?r._highlightFromHRange(a):(m.eventEmitter.emit(m.INTERNAL_ERROR_EVENT,{type:g.ERROR.RANGE_INVALID}),null)},r.fromStore=function(e,t,n,o,i){var a=new c.default(e,t,n,o,i);try{return r._highlightFromHSource(a),a}catch(e){return m.eventEmitter.emit(m.INTERNAL_ERROR_EVENT,{type:g.ERROR.HIGHLIGHT_SOURCE_RECREATE,error:e,detail:a}),null}},r._getHooks=function(){return{Render:{UUID:new d.default("Render.UUID"),SelectedNodes:new d.default("Render.SelectedNodes"),WrapNode:new d.default("Render.WrapNode")},Serialize:{Restore:new d.default("Serialize.Restore"),RecordInfo:new d.default("Serialize.RecordInfo")},Remove:{UpdateNodes:new d.default("Remove.UpdateNodes")}}},r._highlightFromHRange=function(e){var t=e.serialize(r.options.$root,r.hooks);return 0===r.painter.highlightRange(e).length?(m.eventEmitter.emit(m.INTERNAL_ERROR_EVENT,{type:g.ERROR.DOM_SELECTION_EMPTY}),null):(r.cache.save(t),r.emit(g.EventType.CREATE,{sources:[t],type:g.CreateFrom.INPUT},r),t)},r._handleSelection=function(){var e=l.default.fromSelection(r.hooks.Render.UUID);e&&(r._highlightFromHRange(e),l.default.removeDomRange())},r._handleHighlightHover=function(e){var t=e.target;if(!v.isHighlightWrapNode(t))return r._hoverId&&r.emit(g.EventType.HOVER_OUT,{id:r._hoverId},r,e),void(r._hoverId=null);var n=v.getHighlightId(t,r.options.$root);r._hoverId!==n&&(r._hoverId&&r.emit(g.EventType.HOVER_OUT,{id:r._hoverId},r,e),r._hoverId=n,r.emit(g.EventType.HOVER,{id:r._hoverId},r,e))},r._handleError=function(e){r.options.verbose&&console.warn(e)},r._handleHighlightClick=function(e){var t=e.target;if(v.isHighlightWrapNode(t)){var n=v.getHighlightId(t,r.options.$root);r.emit(g.EventType.CLICK,{id:n},r,e)}},r.options=m.getDefaultOptions(),r.hooks=r._getHooks(),r.setOption(t),r.cache=new h.default;var n=r.options.$root;return v.addEventListener(n,r.event.PointerOver,r._handleHighlightHover),v.addEventListener(n,r.event.PointerTap,r._handleHighlightClick),m.eventEmitter.on(m.INTERNAL_ERROR_EVENT,r._handleError),r}return o(t,e),t.prototype.remove=function(e){if(e){var t=this.painter.removeHighlight(e);this.cache.remove(e),t&&this.emit(g.EventType.REMOVE,{ids:[e]},this)}},t.prototype.removeAll=function(){this.painter.removeAllHighlight();var e=this.cache.removeAll();this.emit(g.EventType.REMOVE,{ids:e},this)},t.prototype._highlightFromHSource=function(e){void 0===e&&(e=[]);var t=this.painter.highlightSource(e);this.emit(g.EventType.CREATE,{sources:t,type:g.CreateFrom.STORE},this),this.cache.save(e)},t.event=g.EventType,t.isHighlightWrapNode=v.isHighlightWrapNode,t.isHighlightSource=function(e){return!!e.__isHighlightSource},t}(s.default);t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queryElementNode=t.getTextChildByOffset=void 0;var n=r(0);t.getTextChildByOffset=function(e,t){for(var r=[e],n=null,o=0,i=0;n=r.pop();){for(var a=n.childNodes,s=a.length-1;s>=0;s--)r.push(a[s]);if(3===n.nodeType&&(i=t-o,(o+=n.textContent.length)>=t))break}return n||(n=e),{$node:n,offset:i}},t.queryElementNode=function(e,t){return{start:e.startMeta.parentIndex===n.ROOT_IDX?t:t.getElementsByTagName(e.startMeta.parentTagName)[e.startMeta.parentIndex],end:e.endMeta.parentIndex===n.ROOT_IDX?t:t.getElementsByTagName(e.endMeta.parentTagName)[e.endMeta.parentIndex]}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.split("-").reduce((function(e,t,r){return e+(0===r?t:t[0].toUpperCase()+t.slice(1))}),"")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSelection=t.getDomRange=void 0,t.getDomRange=function(){var e=window.getSelection();return e.isCollapsed?(console.debug("no text selected"),null):e.getRangeAt(0)},t.removeSelection=function(){window.getSelection().removeAllRanges()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDomNode=t.getDomMeta=void 0;var n=r(0);t.getDomMeta=function(e,t,r){var o=function(e){if(e instanceof HTMLElement&&(!e.dataset||!e.dataset[n.CAMEL_DATASET_IDENTIFIER]))return e;for(var t=e.parentNode;null==t?void 0:t.dataset[n.CAMEL_DATASET_IDENTIFIER];)t=t.parentNode;return t}(e),i=o===r?n.ROOT_IDX:function(e,t){for(var r=e.tagName,o=t.getElementsByTagName(r),i=0;i<o.length;i++)if(e===o[i])return i;return n.UNKNOWN_IDX}(o,r),a=function(e,t){for(var r=[e],n=null,o=0;n=r.pop();){for(var i=n.childNodes,a=i.length-1;a>=0;a--)r.push(i[a]);if(3===n.nodeType&&n!==t)o+=n.textContent.length;else if(3===n.nodeType)break}return o}(o,e);return{parentTagName:o.tagName,parentIndex:i,textOffset:a+t}},t.formatDomNode=function(e){return 3===e.$node.nodeType||4===e.$node.nodeType||8===e.$node.nodeType?e:{$node:e.$node.childNodes[e.offset],offset:0}}},function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.name="",this.ops=[],this.name=e}return e.prototype.tap=function(e){var t=this;return-1===this.ops.indexOf(e)&&this.ops.push(e),function(){t.remove(e)}},e.prototype.remove=function(e){var t=this.ops.indexOf(e);t<0||this.ops.splice(t,1)},e.prototype.isEmpty=function(){return 0===this.ops.length},e.prototype.call=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.ops.forEach((function(r){e=r.apply(void 0,o(t))})),e},e}();t.default=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=n(r(15));t.default=function(){var e=i.default(window.navigator.userAgent);return{PointerEnd:e?o.UserInputEvent.touchend:o.UserInputEvent.mouseup,PointerTap:e?o.UserInputEvent.touchstart:o.UserInputEvent.click,PointerOver:e?o.UserInputEvent.touchstart:o.UserInputEvent.mouseover}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/Android|iPhone|BlackBerry|BB10|Opera Mini|Phone|Mobile|Silk|Windows Phone|Mobile(?:.+)Firefox\b/i;t.default=function(e){return n.test(e)}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(r(2)),l=r(1),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=new Map,t}return o(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.getAll()},set:function(e){throw l.ERROR.CACHE_SET_ERROR},enumerable:!1,configurable:!0}),t.prototype.save=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._data.set(e.id,e)})):this._data.set(e.id,e)},t.prototype.get=function(e){return this._data.get(e)},t.prototype.remove=function(e){this._data.delete(e)},t.prototype.getAll=function(){var e,t,r=[];try{for(var n=i(this._data),o=n.next();!o.done;o=n.next()){var a=o.value;r.push(a[1])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},t.prototype.removeAll=function(){var e,t,r=[];try{for(var n=i(this._data),o=n.next();!o.done;o=n.next()){var a=o.value;r.push(a[0])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this._data=new Map,r},t}(s.default);t.default=c},function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(r(3)),l=r(18),c=r(4),u=r(1),d=r(20),f=r(0),h=function(){function e(e,t){this.options={$root:e.$root,wrapTag:e.wrapTag,exceptSelectors:e.exceptSelectors,className:e.className},this.hooks=t,d.initDefaultStylesheet()}return e.prototype.highlightRange=function(e){var t=this;if(!e.frozen)throw u.ERROR.HIGHLIGHT_RANGE_FROZEN;var r=this.options,n=r.$root,o=r.className,i=r.exceptSelectors,a=this.hooks,s=l.getSelectedNodes(n,e.start,e.end,i);return a.Render.SelectedNodes.isEmpty()||(s=a.Render.SelectedNodes.call(e.id,s)||[]),s.map((function(r){var n=l.wrapHighlight(r,e,o,t.options.wrapTag);return a.Render.WrapNode.isEmpty()||(n=a.Render.WrapNode.call(e.id,n)),n}))},e.prototype.highlightSource=function(e){var t=this,r=Array.isArray(e)?e:[e],n=[];return r.forEach((function(e){if(e instanceof s.default){var r=e.deSerialize(t.options.$root,t.hooks);t.highlightRange(r).length>0?n.push(e):f.eventEmitter.emit(f.INTERNAL_ERROR_EVENT,{type:u.ERROR.HIGHLIGHT_SOURCE_NONE_RENDER,detail:e})}else f.eventEmitter.emit(f.INTERNAL_ERROR_EVENT,{type:u.ERROR.SOURCE_TYPE_ERROR})})),n},e.prototype.removeHighlight=function(e){var t,r,o=new RegExp("("+e+"\\"+f.ID_DIVISION+"|\\"+f.ID_DIVISION+"?"+e+"$)"),a=this.hooks,s=this.options.wrapTag,u=document.querySelectorAll(s+"[data-"+f.DATASET_IDENTIFIER+"]"),d=[],h=[],p=[];try{for(var m=n(u),g=m.next();!g.done;g=m.next()){var v=g.value,b=v.dataset[f.CAMEL_DATASET_IDENTIFIER],y=v.dataset[f.CAMEL_DATASET_IDENTIFIER_EXTRA];b!==e||y?b===e?h.push(v):b!==e&&o.test(y)&&p.push(v):d.push(v)}}catch(e){t={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(t)throw t.error}}return d.forEach((function(t){var r=t.parentNode,n=document.createDocumentFragment();c.forEach(t.childNodes,(function(e){return n.appendChild(e.cloneNode(!1))}));var o=t.previousSibling,i=t.nextSibling;r.replaceChild(n,t),l.normalizeSiblingText(o,!0),l.normalizeSiblingText(i,!1),a.Remove.UpdateNodes.call(e,t,"remove")})),h.forEach((function(t){var r=t.dataset,n=r[f.CAMEL_DATASET_IDENTIFIER_EXTRA].split(f.ID_DIVISION),o=n.shift(),l=document.querySelector(s+"[data-"+f.DATASET_IDENTIFIER+'="'+o+'"]');l&&(c.removeAllClass(t),c.addClass(t,i(l.classList))),r[f.CAMEL_DATASET_IDENTIFIER]=o,r[f.CAMEL_DATASET_IDENTIFIER_EXTRA]=n.join(f.ID_DIVISION),a.Remove.UpdateNodes.call(e,t,"id-update")})),p.forEach((function(t){var r=t.dataset[f.CAMEL_DATASET_IDENTIFIER_EXTRA];t.dataset[f.CAMEL_DATASET_IDENTIFIER_EXTRA]=r.replace(o,""),a.Remove.UpdateNodes.call(e,t,"extra-update")})),d.length+h.length+p.length!==0},e.prototype.removeAllHighlight=function(){var e=this.options,t=e.wrapTag,r=e.$root;c.getHighlightsByRoot(r,t).forEach((function(e){var t=e.parentNode,r=document.createDocumentFragment();c.forEach(e.childNodes,(function(e){return r.appendChild(e.cloneNode(!1))})),t.replaceChild(r,e)}))},e}();t.default=h},function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSiblingText=t.wrapHighlight=t.getSelectedNodes=void 0;var i=r(1),a=r(4),s=r(0),l=r(19),c=function(e,t){if(!e)return!1;if(/^\./.test(t)){var r=t.replace(/^\./,"");return e&&a.hasClass(e,r)}if(/^#/.test(t)){var n=t.replace(/^#/,"");return e&&e.id===n}var o=t.toUpperCase();return e&&e.tagName===o};t.getSelectedNodes=function(e,t,r,n){var o=t.$node,a=r.$node,s=t.offset,l=r.offset;if(o===a&&o instanceof Text)return function(e,t,r,n){for(var o=e,a=function(e){return null==n?void 0:n.some((function(t){return c(e,t)}))};o;){if(1===o.nodeType&&a(o))return[];o=o.parentNode}e.splitText(t);var s=e.nextSibling;return s.splitText(r-t),[{$node:s,type:i.SelectedNodeType.text,splitType:i.SplitType.both}]}(o,s,l,n);for(var u=[e],d=[],f=function(e){return null==n?void 0:n.some((function(t){return c(e,t)}))},h=!1,p=null;p=u.pop();)if(1!==p.nodeType||!f(p)){for(var m=p.childNodes,g=m.length-1;g>=0;g--)u.push(m[g]);if(p===o){if(3===p.nodeType){p.splitText(s);var v=p.nextSibling;d.push({$node:v,type:i.SelectedNodeType.text,splitType:i.SplitType.head})}h=!0}else{if(p===a){3===p.nodeType&&((v=p).splitText(l),d.push({$node:v,type:i.SelectedNodeType.text,splitType:i.SplitType.tail}));break}h&&3===p.nodeType&&d.push({$node:p,type:i.SelectedNodeType.text,splitType:i.SplitType.none})}}return d};var u=function(e,t){var r=Array.isArray(t)?t:[t];return(r=0===r.length?[s.getDefaultOptions().style.className]:r).forEach((function(t){a.addClass(e,t)})),e},d=function(e){return!e||!e.textContent};t.wrapHighlight=function(e,t,r,n){var c=e.$node.parentNode,f=e.$node.previousSibling,h=e.$node.nextSibling;return a.isHighlightWrapNode(c)?!a.isHighlightWrapNode(c)||d(f)&&d(h)?function(e,t,r){var n=e.$node.parentNode,o=n;a.removeAllClass(o),u(o,r);var i=n.dataset,l=i[s.CAMEL_DATASET_IDENTIFIER];return i[s.CAMEL_DATASET_IDENTIFIER]=t.id,i[s.CAMEL_DATASET_IDENTIFIER_EXTRA]=i[s.CAMEL_DATASET_IDENTIFIER_EXTRA]?l+s.ID_DIVISION+i[s.CAMEL_DATASET_IDENTIFIER_EXTRA]:l,o}(e,t,r):function(e,t,r,n){var a=document.createElement(n),c=e.$node.parentNode,d=e.$node.previousSibling,f=e.$node.nextSibling,h=document.createDocumentFragment(),p=c.dataset[s.CAMEL_DATASET_IDENTIFIER],m=c.dataset[s.CAMEL_DATASET_IDENTIFIER_EXTRA],g=m?p+s.ID_DIVISION+m:p;a.setAttribute("data-"+s.DATASET_IDENTIFIER,t.id),a.setAttribute("data-"+s.DATASET_IDENTIFIER_EXTRA,g),a.appendChild(e.$node.cloneNode(!1));var v,b=!1,y=!1;d&&((w=c.cloneNode(!1)).textContent=d.textContent,h.appendChild(w),b=!0);var w,x=[];return Array.isArray(r)?x.push.apply(x,o(r)):x.push(r),u(a,l.unique(x)),h.appendChild(a),f&&((w=c.cloneNode(!1)).textContent=f.textContent,h.appendChild(w),y=!0),v=b&&y?i.SplitType.both:b?i.SplitType.head:y?i.SplitType.tail:i.SplitType.none,a.setAttribute("data-"+s.DATASET_SPLIT_TYPE,v),c.parentNode.replaceChild(h,c),a}(e,t,r,n):function(e,t,r,n){var o=document.createElement(n);return u(o,r),o.appendChild(e.$node.cloneNode(!1)),e.$node.parentNode.replaceChild(o,e.$node),o.setAttribute("data-"+s.DATASET_IDENTIFIER,t.id),o.setAttribute("data-"+s.DATASET_SPLIT_TYPE,e.splitType),o.setAttribute("data-"+s.DATASET_IDENTIFIER_EXTRA,""),o}(e,t,r,n)},t.normalizeSiblingText=function(e,t){if(void 0===t&&(t=!0),e&&3===e.nodeType){var r=t?e.nextSibling:e.previousSibling;if(3===r.nodeType){var n=r.nodeValue;e.nodeValue=t?e.nodeValue+n:n+e.nodeValue,r.parentNode.removeChild(r)}}}},function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.unique=void 0,t.unique=function(e){var t,r,o=[];try{for(var i=n(e),a=i.next();!a.done;a=i.next()){var s=a.value;-1===o.indexOf(s)&&o.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDefaultStylesheet=void 0;var n=r(0);t.initDefaultStylesheet=function(){var e=n.STYLESHEET_ID,t=document.getElementById(e);if(!t){var r=document.createTextNode(n.getStylesheet());(t=document.createElement("style")).id=e,t.appendChild(r),document.head.appendChild(t)}return t}}]).default},3269:e=>{"use strict";e.exports=function(e,t,r,n){for(var o=65535&e,i=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{i=i+(o=o+t[n++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16}},3303:(e,t,r)=>{"use strict";var n=r(8411),o=r(9805),i=r(1996),a=r(4674),s=r(4442),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(a[r]);this._dict_set=!0}}function u(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(e,t){var r,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=c,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},3443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const n=r(4892),o=r(8871),i=r(4723),a=r(5483);function s(e,t,r,n,o,i,a){const s=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),l=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),c=a*s/(s+l),u=a*l/(s+l);return[r-c*(o-e),n-c*(i-t),r+u*(o-e),n+u*(i-t)]}function l(e,t){const r=e.length,n=[];for(let o=2;o<r-2;o+=2){const r=s(e[o-2],e[o-1],e[o],e[o+1],e[o+2],e[o+3],t);isNaN(r[0])||(n.push(r[0]),n.push(r[1]),n.push(e[o]),n.push(e[o+1]),n.push(r[2]),n.push(r[3]))}return n}class c extends i.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(e){let t,r,n,o=this.points(),i=o.length,a=this.tension(),s=this.closed(),l=this.bezier();if(i){if(e.beginPath(),e.moveTo(o[0],o[1]),0!==a&&i>4){for(t=this.getTensionPoints(),r=t.length,n=s?0:4,s||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);n<r-2;)e.bezierCurveTo(t[n++],t[n++],t[n++],t[n++],t[n++],t[n++]);s||e.quadraticCurveTo(t[r-2],t[r-1],o[i-2],o[i-1])}else if(l)for(n=2;n<i;)e.bezierCurveTo(o[n++],o[n++],o[n++],o[n++],o[n++],o[n++]);else for(n=2;n<i;n+=2)e.lineTo(o[n],o[n+1]);s?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():l(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),t=e.length,r=this.tension(),n=s(e[t-2],e[t-1],e[0],e[1],e[2],e[3],r),o=s(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],r),i=l(e,r);return[n[2],n[3]].concat(i).concat([o[0],o[1],e[t-2],e[t-1],o[2],o[3],n[0],n[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};e=0!==this.tension()?[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.points();let t,r,n=e[0],o=e[0],i=e[1],a=e[1];for(let s=0;s<e.length/2;s++)t=e[2*s],r=e[2*s+1],n=Math.min(n,t),o=Math.max(o,t),i=Math.min(i,r),a=Math.max(a,r);return{x:n,y:i,width:o-n,height:a-i}}}t.Line=c,c.prototype.className="Line",c.prototype._attrsAffectingSize=["points","bezier","tension"],(0,o._registerNode)(c),n.Factory.addGetterSetter(c,"closed",!1),n.Factory.addGetterSetter(c,"bezier",!1),n.Factory.addGetterSetter(c,"tension",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(c,"points",[],(0,a.getNumberArrayValidator)())},3665:(e,t,r)=>{"use strict";var n=r(9805);function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var u=new Array(60);o(u);var d=new Array(512);o(d);var f=new Array(256);o(f);var h=new Array(29);o(h);var p,m,g,v=new Array(30);function b(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?d[e]:d[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function C(e,t,r){S(e,r[2*t],r[2*t+1])}function k(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function E(e,t,r){var n,o,i=new Array(16),a=0;for(n=1;n<=15;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=k(i[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function T(e,t,r,n){var o=2*t,i=2*r;return e[o]<e[i]||e[o]===e[i]&&n[t]<=n[r]}function j(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&T(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!T(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function P(e,t,r){var n,o,s,l,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],o=e.pending_buf[e.l_buf+c],c++,0===n?C(e,o,t):(C(e,(s=f[o])+256+1,t),0!==(l=i[s])&&S(e,o-=h[s],l),C(e,s=w(--n),r),0!==(l=a[s])&&S(e,n-=v[s],l))}while(c<e.last_lit);C(e,256,t)}function M(e,t){var r,n,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)j(e,i,r);o=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*o]=i[2*r]+i[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=o,e.heap[1]=o++,j(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,i,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)>p&&(i=p,m++),l[2*n+1]=i,n>c||(e.bl_count[i]++,a=0,n>=h&&(a=f[n-h]),s=l[2*n],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*n+1]+a)));if(0!==m){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(i=p;0!==i;i--)for(n=e.bl_count[i];0!==n;)(o=e.heap[--r])>c||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),n--)}}(e,t),E(i,c,e.bl_count)}function R(e,t,r){var n,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=a,a=t[2*(n+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4))}function _(e,t,r){var n,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(o=a,a=t[2*(n+1)+1],!(++s<l&&o===a)){if(s<c)do{C(e,o,e.bl_tree)}while(0!==--s);else 0!==o?(o!==i&&(C(e,o,e.bl_tree),s--),C(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(C(e,17,e.bl_tree),S(e,s-3,3)):(C(e,18,e.bl_tree),S(e,s-11,7));s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4)}}o(v);var I=!1;function N(e,t,r,o){S(e,0+(o?1:0),3),function(e,t,r){A(e),x(e,r),x(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}t._tr_init=function(e){I||(function(){var e,t,r,n,o,l=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,e=0;e<1<<i[n];e++)f[r++]=n;for(f[r-1]=n,o=0,n=0;n<16;n++)for(v[n]=o,e=0;e<1<<a[n];e++)d[o++]=n;for(o>>=7;n<30;n++)for(v[n]=o<<7,e=0;e<1<<a[n]-7;e++)d[256+o++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,l[8]++;for(;e<=255;)c[2*e+1]=9,e++,l[9]++;for(;e<=279;)c[2*e+1]=7,e++,l[7]++;for(;e<=287;)c[2*e+1]=8,e++,l[8]++;for(E(c,287,l),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=k(e,5);p=new b(c,i,257,286,15),m=new b(u,a,0,30,15),g=new b(new Array(0),s,0,19,7)}(),I=!0),e.l_desc=new y(e.dyn_ltree,p),e.d_desc=new y(e.dyn_dtree,m),e.bl_desc=new y(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,O(e)},t._tr_stored_block=N,t._tr_flush_block=function(e,t,r,n){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),a=function(e){var t;for(R(e,e.dyn_ltree,e.l_desc.max_code),R(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=r+5,r+4<=o&&-1!==t?N(e,t,r,n):4===e.strategy||i===o?(S(e,2+(n?1:0),3),P(e,c,u)):(S(e,4+(n?1:0),3),function(e,t,r,n){var o;for(S(e,t-257,5),S(e,r-1,5),S(e,n-4,4),o=0;o<n;o++)S(e,e.bl_tree[2*l[o]+1],3);_(e,e.dyn_ltree,t-1),_(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),P(e,e.dyn_ltree,e.dyn_dtree)),O(e),n&&A(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(f[r]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){S(e,2,3),C(e,256,c),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},3862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGBA=void 0;const n=r(4892),o=r(6536),i=r(5483);t.RGBA=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let e=0;e<r;e+=4){const r=1-a;t[e]=n*a+t[e]*r,t[e+1]=o*a+t[e+1]*r,t[e+2]=i*a+t[e+2]*r}},n.Factory.addGetterSetter(o.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),n.Factory.addGetterSetter(o.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),n.Factory.addGetterSetter(o.Node,"blue",0,i.RGBComponent,n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"alpha",1,(function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}))},4060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const n=r(8871);class o{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new o(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){const t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){const t=Math.cos(e),r=Math.sin(e),n=this.m[0]*t+this.m[2]*r,o=this.m[1]*t+this.m[3]*r,i=this.m[0]*-r+this.m[2]*t,a=this.m[1]*-r+this.m[3]*t;return this.m[0]=n,this.m[1]=o,this.m[2]=i,this.m[3]=a,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){const r=this.m[0]+this.m[2]*t,n=this.m[1]+this.m[3]*t,o=this.m[2]+this.m[0]*e,i=this.m[3]+this.m[1]*e;return this.m[0]=r,this.m[1]=n,this.m[2]=o,this.m[3]=i,this}multiply(e){const t=this.m[0]*e.m[0]+this.m[2]*e.m[1],r=this.m[1]*e.m[0]+this.m[3]*e.m[1],n=this.m[0]*e.m[2]+this.m[2]*e.m[3],o=this.m[1]*e.m[2]+this.m[3]*e.m[3],i=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],a=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=r,this.m[2]=n,this.m[3]=o,this.m[4]=i,this.m[5]=a,this}invert(){const e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,r=-this.m[1]*e,n=-this.m[2]*e,o=this.m[0]*e,i=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=r,this.m[2]=n,this.m[3]=o,this.m[4]=i,this.m[5]=a,this}getMatrix(){return this.m}decompose(){const e=this.m[0],r=this.m[1],n=this.m[2],o=this.m[3],i=e*o-r*n,a={x:this.m[4],y:this.m[5],rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=e||0!=r){const t=Math.sqrt(e*e+r*r);a.rotation=r>0?Math.acos(e/t):-Math.acos(e/t),a.scaleX=t,a.scaleY=i/t,a.skewX=(e*n+r*o)/i,a.skewY=0}else if(0!=n||0!=o){const t=Math.sqrt(n*n+o*o);a.rotation=Math.PI/2-(o>0?Math.acos(-n/t):-Math.acos(n/t)),a.scaleX=i/t,a.scaleY=t,a.skewX=0,a.skewY=(e*n+r*o)/i}return a.rotation=t.Util._getRotation(a.rotation),a}}t.Transform=o;const i=Math.PI/180,a=180/Math.PI,s="Konva error: ",l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},c=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let u=[];const d="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||function(e){setTimeout(e,60)};t.Util={_isElement:e=>!(!e||1!=e.nodeType),_isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),_isPlainObject:e=>!!e&&e.constructor===Object,_isArray:e=>"[object Array]"===Object.prototype.toString.call(e),_isNumber:e=>"[object Number]"===Object.prototype.toString.call(e)&&!isNaN(e)&&isFinite(e),_isString:e=>"[object String]"===Object.prototype.toString.call(e),_isBoolean:e=>"[object Boolean]"===Object.prototype.toString.call(e),isObject:e=>e instanceof Object,isValidSelector(e){if("string"!=typeof e)return!1;const t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign:e=>0===e||e>0?1:-1,requestAnimFrame(e){u.push(e),1===u.length&&d((function(){const e=u;u=[],e.forEach((function(e){e()}))}))},createCanvasElement(){const e=document.createElement("canvas");try{e.style=e.style||{}}catch(e){}return e},createImageElement:()=>document.createElement("img"),_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,r){const n=t.Util.createImageElement();n.onload=function(){r(n)},n.src=e},_rgbToHex:(e,t,r)=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),_hexToRgb(e){e=e.replace("#","");const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor(){let e=(16777215*Math.random()|0).toString(16);for(;e.length<6;)e="0"+e;return"#"+e},getRGB(e){let t;return e in l?(t=l[e],{r:t[0],g:t[1],b:t[2]}):"#"===e[0]?this._hexToRgb(e.substring(1)):"rgb("===e.substr(0,4)?(t=c.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA:e=>(e=e||"black",t.Util._namedColorToRBA(e)||t.Util._hex3ColorToRGBA(e)||t.Util._hex4ColorToRGBA(e)||t.Util._hex6ColorToRGBA(e)||t.Util._hex8ColorToRGBA(e)||t.Util._rgbColorToRGBA(e)||t.Util._rgbaColorToRGBA(e)||t.Util._hslColorToRGBA(e)),_namedColorToRBA(e){const t=l[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(0===e.indexOf("rgb(")){const t=(e=e.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(0===e.indexOf("rgba(")){const t=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(((e,t)=>"%"===e.slice(-1)?3===t?parseInt(e)/100:parseInt(e)/100*255:Number(e)));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(e){if("#"===e[0]&&9===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if("#"===e[0]&&5===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...r]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),n=Number(r[0])/360,o=Number(r[1])/100,i=Number(r[2])/100;let a,s,l;if(0===o)return l=255*i,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};a=i<.5?i*(1+o):i+o-i*o;const c=2*i-a,u=[0,0,0];for(let e=0;e<3;e++)s=n+1/3*-(e-1),s<0&&s++,s>1&&s--,l=6*s<1?c+6*(a-c)*s:2*s<1?a:3*s<2?c+(a-c)*(2/3-s)*6:c,u[e]=255*l;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection:(e,t)=>!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y),cloneObject(e){const t={};for(const r in e)this._isPlainObject(e[r])?t[r]=this.cloneObject(e[r]):this._isArray(e[r])?t[r]=this.cloneArray(e[r]):t[r]=e[r];return t},cloneArray:e=>e.slice(0),degToRad:e=>e*i,radToDeg:e=>e*a,_degToRad:e=>(t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(e)),_radToDeg:e=>(t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(e)),_getRotation:e=>n.Konva.angleDeg?t.Util.radToDeg(e):e,_capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),throw(e){throw new Error(s+e)},error(e){console.error(s+e)},warn(e){n.Konva.showWarnings&&console.warn("Konva warning: "+e)},each(e,t){for(const r in e)t(r,e[r])},_inRange:(e,t,r)=>t<=e&&e<r,_getProjectionToSegment(e,t,r,n,o,i){let a,s,l;const c=(e-r)*(e-r)+(t-n)*(t-n);if(0==c)a=e,s=t,l=(o-r)*(o-r)+(i-n)*(i-n);else{const u=((o-e)*(r-e)+(i-t)*(n-t))/c;u<0?(a=e,s=t,l=(e-o)*(e-o)+(t-i)*(t-i)):u>1?(a=r,s=n,l=(r-o)*(r-o)+(n-i)*(n-i)):(a=e+u*(r-e),s=t+u*(n-t),l=(a-o)*(a-o)+(s-i)*(s-i))}return[a,s,l]},_getProjectionToLine(e,r,n){const o=t.Util.cloneObject(e);let i=Number.MAX_VALUE;return r.forEach((function(a,s){if(!n&&s===r.length-1)return;const l=r[(s+1)%r.length],c=t.Util._getProjectionToSegment(a.x,a.y,l.x,l.y,e.x,e.y),u=c[0],d=c[1],f=c[2];f<i&&(o.x=u,o.y=d,i=f)})),o},_prepareArrayForTween(e,r,n){const o=[],i=[];if(e.length>r.length){const t=r;r=e,e=t}for(let t=0;t<e.length;t+=2)o.push({x:e[t],y:e[t+1]});for(let e=0;e<r.length;e+=2)i.push({x:r[e],y:r[e+1]});const a=[];return i.forEach((function(e){const r=t.Util._getProjectionToLine(e,o,n);a.push(r.x),a.push(r.y)})),a},_prepareToStringify(e){let r;e.visitedByCircularReferenceRemoval=!0;for(const n in e)if(e.hasOwnProperty(n)&&e[n]&&"object"==typeof e[n])if(r=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||t.Util._isElement(e[n])){if(!r.configurable)return null;delete e[n]}else if(null===t.Util._prepareToStringify(e[n])){if(!r.configurable)return null;delete e[n]}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(const r in t)e[r]=t[r];return e},_getFirstPointerId:e=>e.touches?e.changedTouches[0].identifier:e.pointerId||999,releaseCanvas(...e){n.Konva.releaseCanvasOnDestroy&&e.forEach((e=>{e.width=0,e.height=0}))},drawRoundedRectPath(e,t,r,n){let o=0,i=0,a=0,s=0;"number"==typeof n?o=i=a=s=Math.min(n,t/2,r/2):(o=Math.min(n[0]||0,t/2,r/2),i=Math.min(n[1]||0,t/2,r/2),s=Math.min(n[2]||0,t/2,r/2),a=Math.min(n[3]||0,t/2,r/2)),e.moveTo(o,0),e.lineTo(t-i,0),e.arc(t-i,i,i,3*Math.PI/2,0,!1),e.lineTo(t,r-s),e.arc(t-s,r-s,s,0,Math.PI/2,!1),e.lineTo(a,r),e.arc(a,r-a,a,Math.PI/2,Math.PI,!1),e.lineTo(0,o),e.arc(o,o,o,Math.PI,3*Math.PI/2,!1)}}},4213:function(e,t,r){var n,o;void 0===(o="function"==typeof(n=function(){"use strict";function t(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,r,a){var s=i.URL||i.webkitURL,l=document.createElement("a");r=r||e.name||"download",l.download=r,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):n(l.href)?t(e,r,a):o(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,i){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),r);else if(n(e))t(e,r,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,r,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,r,n);var s="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var d=i.URL||i.webkitURL,f=d.createObjectURL(e);o?o.location=f:location.href=f,o=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});i.saveAs=s.saveAs=s,e.exports=s})?n.apply(t,[]):n)||(e.exports=o)},4353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",l="month",c="quarter",u="year",d="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,l),i=r-o<0,a=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:a,D:d,h:i,m:o,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var w="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[w])},S=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),r&&(y[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},C=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},k=v;k.l=S,k.i=x,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,c=!!k.u(t)||t,f=k.p(e),h=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(a)},p=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case u:return c?h(1,0):h(31,11);case l:return c?h(1,g):h(0,g+1);case s:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(c?v-w:v+(6-w),g);case a:case d:return p(b+"Hours",0);case i:return p(b+"Minutes",1);case o:return p(b+"Seconds",2);case n:return p(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=k.p(e),f="set"+(this.$u?"UTC":""),h=(s={},s[a]=f+"Date",s[d]=f+"Date",s[l]=f+"Month",s[u]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[n]=f+"Seconds",s[r]=f+"Milliseconds",s)[c],p=c===a?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(r,c){var d,f=this;r=Number(r);var h=k.p(c),p=function(e){var t=C(f);return k.w(t.date(t.date()+Math.round(e*r)),f)};if(h===l)return this.set(l,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===a)return p(1);if(h===s)return p(7);var m=(d={},d[o]=e,d[i]=t,d[n]=1e3,d)[h]||1,g=this.$d.getTime()+r*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,d=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},h=function(e){return k.s(i%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,l,2);case"ddd":return d(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,f){var h,p=this,m=k.p(d),g=C(r),v=(g.utcOffset()-this.utcOffset())*e,b=this-g,y=function(){return k.m(p,g)};switch(m){case u:h=y()/12;break;case l:h=y();break;case c:h=y()/3;break;case s:h=(b-v)/6048e5;break;case a:h=(b-v)/864e5;break;case i:h=b/t;break;case o:h=b/e;break;case n:h=b/1e3;break;default:h=b}return f?h:k.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=S(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),O=E.prototype;return C.prototype=O,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",l],["$y",u],["$D",d]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,E,C),e.$i=!0),C},C.locale=S,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C}()},4442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;const n=r(4892),o=r(6536),i=r(5483);class a extends o.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[],r=[];return t.forEach((function(t){e(t)&&r.push(t)})),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.destroy()})),this.children=[],this._requestDraw(),this}add(...e){if(0===e.length)return this;if(e.length>1){for(let t=0;t<e.length;t++)this.add(e[t]);return this}const t=e[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){const r=[];return this._descendants((n=>{const o=n._isMatch(e);return o&&r.push(n),!(!o||!t)})),r}_descendants(e){let t=!1;const r=this.getChildren();for(const n of r){if(t=e(n),t)return!0;if(n.hasChildren()&&(t=n._descendants(e),t))return!0}return!1}toObject(){const e=o.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach((t=>{e.children.push(t.toObject())})),e}isAncestorOf(e){let t=e.getParent();for(;t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){const t=o.Node.prototype.clone.call(this,e);return this.getChildren().forEach((function(e){t.add(e.clone())})),t}getAllIntersections(e){const t=[];return this.find("Shape").forEach((r=>{r.isVisible()&&r.intersects(e)&&t.push(r)})),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),this.isCached()||null===(t=this.children)||void 0===t||t.forEach((function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;null===(e=this.children)||void 0===e||e.forEach((function(e,t){e.index=t})),this._requestDraw()}drawScene(e,t,r){const n=this.getLayer(),o=e||n&&n.getCanvas(),i=o&&o.getContext(),a=this._getCanvasCache(),s=a&&a.scene,l=o&&o.isCache;if(!this.isVisible()&&!l)return this;if(s){i.save();const e=this.getAbsoluteTransform(t).getMatrix();i.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedSceneCanvas(i),i.restore()}else this._drawChildren("drawScene",o,t,r);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;const r=this.getLayer(),n=e||r&&r.hitCanvas,o=n&&n.getContext(),i=this._getCanvasCache();if(i&&i.hit){o.save();const e=this.getAbsoluteTransform(t).getMatrix();o.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",n,t);return this}_drawChildren(e,t,r,n){var o;const i=t&&t.getContext(),a=this.clipWidth(),s=this.clipHeight(),l=this.clipFunc(),c="number"==typeof a&&"number"==typeof s||l,u=r===this;if(c){i.save();const e=this.getAbsoluteTransform(r);let t,n=e.getMatrix();if(i.transform(n[0],n[1],n[2],n[3],n[4],n[5]),i.beginPath(),l)t=l.call(this,i,this);else{const e=this.clipX(),t=this.clipY();i.rect(e||0,t||0,a,s)}i.clip.apply(i,t),n=e.copy().invert().getMatrix(),i.transform(n[0],n[1],n[2],n[3],n[4],n[5])}const d=!u&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===e;d&&(i.save(),i._applyGlobalCompositeOperation(this)),null===(o=this.children)||void 0===o||o.forEach((function(o){o[e](t,r,n)})),d&&i.restore(),c&&i.restore()}getClientRect(e={}){var t;const r=e.skipTransform,n=e.relativeTo;let o,i,a,s,l={x:1/0,y:1/0,width:0,height:0};const c=this;null===(t=this.children)||void 0===t||t.forEach((function(t){if(!t.visible())return;const r=t.getClientRect({relativeTo:c,skipShadow:e.skipShadow,skipStroke:e.skipStroke});0===r.width&&0===r.height||(void 0===o?(o=r.x,i=r.y,a=r.x+r.width,s=r.y+r.height):(o=Math.min(o,r.x),i=Math.min(i,r.y),a=Math.max(a,r.x+r.width),s=Math.max(s,r.y+r.height)))}));const u=this.find("Shape");let d=!1;for(let e=0;e<u.length;e++)if(u[e]._isVisible(this)){d=!0;break}return l=d&&void 0!==o?{x:o,y:i,width:a-o,height:s-i}:{x:0,y:0,width:0,height:0},r?l:this._transformedRect(l,n)}}t.Container=a,n.Factory.addComponentsGetterSetter(a,"clip",["x","y","width","height"]),n.Factory.addGetterSetter(a,"clipX",void 0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(a,"clipY",void 0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(a,"clipWidth",void 0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(a,"clipHeight",void 0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(a,"clipFunc")},4481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const n=r(4892),o=r(4723),i=r(5483),a=r(8871);class s extends o.Shape{_sceneFunc(e){const t=this.innerRadius(),r=this.outerRadius(),n=this.numPoints();e.beginPath(),e.moveTo(0,0-r);for(let o=1;o<2*n;o++){const i=o%2==0?r:t,a=i*Math.sin(o*Math.PI/n),s=-1*i*Math.cos(o*Math.PI/n);e.lineTo(a,s)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Star=s,s.prototype.className="Star",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,a._registerNode)(s),n.Factory.addGetterSetter(s,"numPoints",5,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(s,"innerRadius",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(s,"outerRadius",0,(0,i.getNumberValidator)())},4619:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,".CustomPopbar{position:absolute;top:0;left:0;z-index:999;display:none;width:max-content;background-color:var(--doorhanger-bg-color);box-shadow:0 1px 5px var(--doorhanger-border-color),0 0 0 1px var(--doorhanger-border-color);border:var(--toolbar-border-color);border-radius:6px;font:message-box;padding:4px}.CustomPopbar.show{display:block}.CustomPopbar .buttons{display:flex;gap:4px;padding:0;margin:0;list-style:none;user-select:none}.CustomPopbar .buttons li{display:flex;justify-content:center;align-items:center;width:40px;height:32px;padding:0;border:1px solid rgba(0,0,0,0);color:var(--main-color);cursor:pointer;border-radius:4px;transition:background-color .2s ease}.CustomPopbar .buttons li .icon{font-size:14px;line-height:1}.CustomPopbar .buttons li:hover{background-color:var(--button-hover-color)}.CustomPopbar .buttons li:active{background-color:var(--button-hover-color-active, #ccc)}",""]);const s=a},4674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const n=r(8871),o=r(4060),i=r(4892),a=r(6536),s=r(5483),l=r(8871),c=r(8722),u="hasShadow",d="shadowRGBA",f="patternImage",h="linearGradient",p="radialGradient";let m;function g(){return m||(m=o.Util.createCanvasElement().getContext("2d"),m)}t.shapes={};class v extends a.Node{constructor(e){let r;for(super(e);r=o.Util.getRandomColor(),!r||r in t.shapes;);this.colorKey=r,t.shapes[r]=this}getContext(){return o.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return o.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(u,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(f,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const e=g().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(e&&e.setTransform){const t=new o.Transform;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(n.Konva.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const r=t.getMatrix(),i="undefined"==typeof DOMMatrix?{a:r[0],b:r[1],c:r[2],d:r[3],e:r[4],f:r[5]}:new DOMMatrix(r);e.setTransform(i)}return e}}_getLinearGradient(){return this._getCache(h,this.__getLinearGradient)}__getLinearGradient(){const e=this.fillLinearGradientColorStops();if(e){const t=g(),r=this.fillLinearGradientStartPoint(),n=this.fillLinearGradientEndPoint(),o=t.createLinearGradient(r.x,r.y,n.x,n.y);for(let t=0;t<e.length;t+=2)o.addColorStop(e[t],e[t+1]);return o}}_getRadialGradient(){return this._getCache(p,this.__getRadialGradient)}__getRadialGradient(){const e=this.fillRadialGradientColorStops();if(e){const t=g(),r=this.fillRadialGradientStartPoint(),n=this.fillRadialGradientEndPoint(),o=t.createRadialGradient(r.x,r.y,this.fillRadialGradientStartRadius(),n.x,n.y,this.fillRadialGradientEndRadius());for(let t=0;t<e.length;t+=2)o.addColorStop(e[t],e[t+1]);return o}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const e=o.Util.colorToRGBA(this.shadowColor());return e?"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")":void 0}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const e=this.hitStrokeWidth();return"auto"===e?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){const t=this.getStage();if(!t)return!1;const r=t.bufferHitCanvas;return r.getContext().clear(),this.drawHit(r,void 0,!0),r.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data[3]>0}destroy(){return a.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var t;if(null!==(t=this.attrs.perfectDrawEnabled)&&void 0!==t&&!t)return!1;const r=e||this.hasFill(),n=this.hasStroke(),o=1!==this.getAbsoluteOpacity();if(r&&n&&o)return!0;const i=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(r&&n&&i&&a)}setStrokeHitEnabled(e){o.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){const e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let t=!1,r=this.getParent();for(;r;){if(r.isCached()){t=!0;break}r=r.getParent()}const n=e.skipTransform,o=e.relativeTo||t&&this.getStage()||void 0,i=this.getSelfRect(),a=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,s=i.width+a,l=i.height+a,c=!e.skipShadow&&this.hasShadow(),u=c?this.shadowOffsetX():0,d=c?this.shadowOffsetY():0,f=s+Math.abs(u),h=l+Math.abs(d),p=c&&this.shadowBlur()||0,m={width:f+2*p,height:h+2*p,x:-(a/2+p)+Math.min(u,0)+i.x,y:-(a/2+p)+Math.min(d,0)+i.y};return n?m:this._transformedRect(m,o)}drawScene(e,t,r){const n=this.getLayer();let o,i,a=e||n.getCanvas(),s=a.getContext(),l=this._getCanvasCache(),c=this.getSceneFunc(),u=this.hasShadow();const d=a.isCache,f=t===this;if(!this.isVisible()&&!f)return this;if(l){s.save();const e=this.getAbsoluteTransform(t).getMatrix();return s.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedSceneCanvas(s),s.restore(),this}if(!c)return this;if(s.save(),this._useBufferCanvas()&&!d){o=this.getStage();const e=r||o.bufferCanvas;i=e.getContext(),i.clear(),i.save(),i._applyLineJoin(this);var h=this.getAbsoluteTransform(t).getMatrix();i.transform(h[0],h[1],h[2],h[3],h[4],h[5]),c.call(this,i,this),i.restore();const n=e.pixelRatio;u&&s._applyShadow(this),s._applyOpacity(this),s._applyGlobalCompositeOperation(this),s.drawImage(e._canvas,0,0,e.width/n,e.height/n)}else s._applyLineJoin(this),f||(h=this.getAbsoluteTransform(t).getMatrix(),s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),s._applyOpacity(this),s._applyGlobalCompositeOperation(this)),u&&s._applyShadow(this),c.call(this,s,this);return s.restore(),this}drawHit(e,t,r=!1){if(!this.shouldDrawHit(t,r))return this;const n=this.getLayer(),i=e||n.hitCanvas,a=i&&i.getContext(),s=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),c=l&&l.hit;if(this.colorKey||o.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),c){a.save();const e=this.getAbsoluteTransform(t).getMatrix();return a.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!s)return this;if(a.save(),a._applyLineJoin(this),this!==t){const e=this.getAbsoluteTransform(t).getMatrix();a.transform(e[0],e[1],e[2],e[3],e[4],e[5])}return s.call(this,a,this),a.restore(),this}drawHitFromCache(e=0){const t=this._getCanvasCache(),r=this._getCachedSceneCanvas(),n=t.hit,i=n.getContext(),a=n.getWidth(),s=n.getHeight();i.clear(),i.drawImage(r._canvas,0,0,a,s);try{const t=i.getImageData(0,0,a,s),r=t.data,n=r.length,l=o.Util._hexToRgb(this.colorKey);for(let t=0;t<n;t+=4)r[t+3]>e?(r[t]=l.r,r[t+1]=l.g,r[t+2]=l.b,r[t+3]=255):r[t+3]=0;i.putImageData(t,0,0)}catch(e){o.Util.error("Unable to draw hit graph from cached scene canvas. "+e.message)}return this}hasPointerCapture(e){return c.hasPointerCapture(e,this)}setPointerCapture(e){c.setPointerCapture(e,this)}releaseCapture(e){c.releaseCapture(e,this)}}t.Shape=v,v.prototype._fillFunc=function(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()},v.prototype._strokeFunc=function(e){e.stroke()},v.prototype._fillFuncHit=function(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()},v.prototype._strokeFuncHit=function(e){e.stroke()},v.prototype._centroid=!1,v.prototype.nodeType="Shape",(0,l._registerNode)(v),v.prototype.eventListeners={},v.prototype.on.call(v.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",(function(){this._clearCache(u)})),v.prototype.on.call(v.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",(function(){this._clearCache(d)})),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",(function(){this._clearCache(f)})),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",(function(){this._clearCache(h)})),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",(function(){this._clearCache(p)})),i.Factory.addGetterSetter(v,"stroke",void 0,(0,s.getStringOrGradientValidator)()),i.Factory.addGetterSetter(v,"strokeWidth",2,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"fillAfterStrokeEnabled",!1),i.Factory.addGetterSetter(v,"hitStrokeWidth","auto",(0,s.getNumberOrAutoValidator)()),i.Factory.addGetterSetter(v,"strokeHitEnabled",!0,(0,s.getBooleanValidator)()),i.Factory.addGetterSetter(v,"perfectDrawEnabled",!0,(0,s.getBooleanValidator)()),i.Factory.addGetterSetter(v,"shadowForStrokeEnabled",!0,(0,s.getBooleanValidator)()),i.Factory.addGetterSetter(v,"lineJoin"),i.Factory.addGetterSetter(v,"lineCap"),i.Factory.addGetterSetter(v,"sceneFunc"),i.Factory.addGetterSetter(v,"hitFunc"),i.Factory.addGetterSetter(v,"dash"),i.Factory.addGetterSetter(v,"dashOffset",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"shadowColor",void 0,(0,s.getStringValidator)()),i.Factory.addGetterSetter(v,"shadowBlur",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"shadowOpacity",1,(0,s.getNumberValidator)()),i.Factory.addComponentsGetterSetter(v,"shadowOffset",["x","y"]),i.Factory.addGetterSetter(v,"shadowOffsetX",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"shadowOffsetY",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"fillPatternImage"),i.Factory.addGetterSetter(v,"fill",void 0,(0,s.getStringOrGradientValidator)()),i.Factory.addGetterSetter(v,"fillPatternX",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"fillPatternY",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"fillLinearGradientColorStops"),i.Factory.addGetterSetter(v,"strokeLinearGradientColorStops"),i.Factory.addGetterSetter(v,"fillRadialGradientStartRadius",0),i.Factory.addGetterSetter(v,"fillRadialGradientEndRadius",0),i.Factory.addGetterSetter(v,"fillRadialGradientColorStops"),i.Factory.addGetterSetter(v,"fillPatternRepeat","repeat"),i.Factory.addGetterSetter(v,"fillEnabled",!0),i.Factory.addGetterSetter(v,"strokeEnabled",!0),i.Factory.addGetterSetter(v,"shadowEnabled",!0),i.Factory.addGetterSetter(v,"dashEnabled",!0),i.Factory.addGetterSetter(v,"strokeScaleEnabled",!0),i.Factory.addGetterSetter(v,"fillPriority","color"),i.Factory.addComponentsGetterSetter(v,"fillPatternOffset",["x","y"]),i.Factory.addGetterSetter(v,"fillPatternOffsetX",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"fillPatternOffsetY",0,(0,s.getNumberValidator)()),i.Factory.addComponentsGetterSetter(v,"fillPatternScale",["x","y"]),i.Factory.addGetterSetter(v,"fillPatternScaleX",1,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(v,"fillPatternScaleY",1,(0,s.getNumberValidator)()),i.Factory.addComponentsGetterSetter(v,"fillLinearGradientStartPoint",["x","y"]),i.Factory.addComponentsGetterSetter(v,"strokeLinearGradientStartPoint",["x","y"]),i.Factory.addGetterSetter(v,"fillLinearGradientStartPointX",0),i.Factory.addGetterSetter(v,"strokeLinearGradientStartPointX",0),i.Factory.addGetterSetter(v,"fillLinearGradientStartPointY",0),i.Factory.addGetterSetter(v,"strokeLinearGradientStartPointY",0),i.Factory.addComponentsGetterSetter(v,"fillLinearGradientEndPoint",["x","y"]),i.Factory.addComponentsGetterSetter(v,"strokeLinearGradientEndPoint",["x","y"]),i.Factory.addGetterSetter(v,"fillLinearGradientEndPointX",0),i.Factory.addGetterSetter(v,"strokeLinearGradientEndPointX",0),i.Factory.addGetterSetter(v,"fillLinearGradientEndPointY",0),i.Factory.addGetterSetter(v,"strokeLinearGradientEndPointY",0),i.Factory.addComponentsGetterSetter(v,"fillRadialGradientStartPoint",["x","y"]),i.Factory.addGetterSetter(v,"fillRadialGradientStartPointX",0),i.Factory.addGetterSetter(v,"fillRadialGradientStartPointY",0),i.Factory.addComponentsGetterSetter(v,"fillRadialGradientEndPoint",["x","y"]),i.Factory.addGetterSetter(v,"fillRadialGradientEndPointX",0),i.Factory.addGetterSetter(v,"fillRadialGradientEndPointY",0),i.Factory.addGetterSetter(v,"fillPatternRotation",0),i.Factory.addGetterSetter(v,"fillRule",void 0,(0,s.getStringValidator)()),i.Factory.backCompat(v,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},4821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arc=void 0;const n=r(4892),o=r(4723),i=r(8871),a=r(5483),s=r(8871);class l extends o.Shape{_sceneFunc(e){const t=i.Konva.getAngle(this.angle()),r=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,r),e.arc(0,0,this.innerRadius(),t,0,!r),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),t=this.outerRadius(),r=this.clockwise(),n=i.Konva.getAngle(r?360-this.angle():this.angle()),o=Math.cos(Math.min(n,Math.PI)),a=Math.sin(Math.min(Math.max(Math.PI,n),3*Math.PI/2)),s=Math.sin(Math.min(n,Math.PI/2)),l=o*(o>0?e:t),c=a*(a>0?e:t),u=s*(s>0?t:e);return{x:l,y:r?-1*u:c,width:1*t-l,height:u-c}}}t.Arc=l,l.prototype._centroid=!0,l.prototype.className="Arc",l.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,s._registerNode)(l),n.Factory.addGetterSetter(l,"innerRadius",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(l,"outerRadius",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(l,"angle",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(l,"clockwise",!1,(0,a.getBooleanValidator)())},4823:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,o){var i=t,a=o+n;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^r[s])];return-1^e}},4843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSV=void 0;const n=r(4892),o=r(6536),i=r(5483);t.HSV=function(e){const t=e.data,r=t.length,n=Math.pow(2,this.value()),o=Math.pow(2,this.saturation()),i=Math.abs(this.hue()+360)%360,a=n*o*Math.cos(i*Math.PI/180),s=n*o*Math.sin(i*Math.PI/180),l=.299*n+.701*a+.167*s,c=.587*n-.587*a+.33*s,u=.114*n-.114*a-.497*s,d=.299*n-.299*a-.328*s,f=.587*n+.413*a+.035*s,h=.114*n-.114*a+.293*s,p=.299*n-.3*a+1.25*s,m=.587*n-.586*a-1.05*s,g=.114*n+.886*a-.2*s;let v,b,y,w;for(let e=0;e<r;e+=4)v=t[e+0],b=t[e+1],y=t[e+2],w=t[e+3],t[e+0]=l*v+c*b+u*y,t[e+1]=d*v+f*b+h*y,t[e+2]=p*v+m*b+g*y,t[e+3]=w},n.Factory.addGetterSetter(o.Node,"hue",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"saturation",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"value",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},4892:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const n=r(4060),o=r(5483),i="get",a="set";t.Factory={addGetterSetter(e,r,n,o,i){t.Factory.addGetter(e,r,n),t.Factory.addSetter(e,r,o,i),t.Factory.addOverloadedGetterSetter(e,r)},addGetter(e,t,r){var o=i+n.Util._capitalize(t);e.prototype[o]=e.prototype[o]||function(){const e=this.attrs[t];return void 0===e?r:e}},addSetter(e,r,o,i){var s=a+n.Util._capitalize(r);e.prototype[s]||t.Factory.overWriteSetter(e,r,o,i)},overWriteSetter(e,t,r,o){var i=a+n.Util._capitalize(t);e.prototype[i]=function(e){return r&&null!=e&&(e=r.call(this,e,t)),this._setAttr(t,e),o&&o.call(this),this}},addComponentsGetterSetter(e,r,s,l,c){const u=s.length,d=n.Util._capitalize,f=i+d(r),h=a+d(r);e.prototype[f]=function(){const e={};for(let t=0;t<u;t++){const n=s[t];e[n]=this.getAttr(r+d(n))}return e};const p=(0,o.getComponentValidator)(s);e.prototype[h]=function(e){const t=this.attrs[r];l&&(e=l.call(this,e,r)),p&&p.call(this,e,r);for(const t in e)e.hasOwnProperty(t)&&this._setAttr(r+d(t),e[t]);return e||s.forEach((e=>{this._setAttr(r+d(e),void 0)})),this._fireChangeEvent(r,t,e),c&&c.call(this),this},t.Factory.addOverloadedGetterSetter(e,r)},addOverloadedGetterSetter(e,t){var r=n.Util._capitalize(t),o=a+r,s=i+r;e.prototype[t]=function(){return arguments.length?(this[o](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter(e,r,o,a){n.Util.error("Adding deprecated "+r);const s=i+n.Util._capitalize(r),l=r+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[s]=function(){n.Util.error(l);const e=this.attrs[r];return void 0===e?o:e},t.Factory.addSetter(e,r,a,(function(){n.Util.error(l)})),t.Factory.addOverloadedGetterSetter(e,r)},backCompat(e,t){n.Util.each(t,(function(t,r){const o=e.prototype[r],s=i+n.Util._capitalize(t),l=a+n.Util._capitalize(t);function c(){o.apply(this,arguments),n.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+r+'" instead.')}e.prototype[t]=c,e.prototype[s]=c,e.prototype[l]=c}))},afterSetFilter(){this._filterUpToDate=!1}}},4915:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},4943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pixelate=void 0;const n=r(4892),o=r(4060),i=r(6536),a=r(5483);t.Pixelate=function(e){let t,r,n,i,a,s,l,c,u,d,f,h,p,m,g=Math.ceil(this.pixelSize()),v=e.width,b=e.height,y=Math.ceil(v/g),w=Math.ceil(b/g),x=e.data;if(g<=0)o.Util.error("pixelSize value can not be <= 0");else for(h=0;h<y;h+=1)for(p=0;p<w;p+=1){for(i=0,a=0,s=0,l=0,c=h*g,u=c+g,d=p*g,f=d+g,m=0,t=c;t<u;t+=1)if(!(t>=v))for(r=d;r<f;r+=1)r>=b||(n=4*(v*r+t),i+=x[n+0],a+=x[n+1],s+=x[n+2],l+=x[n+3],m+=1);for(i/=m,a/=m,s/=m,l/=m,t=c;t<u;t+=1)if(!(t>=v))for(r=d;r<f;r+=1)r>=b||(n=4*(v*r+t),x[n+0]=i,x[n+1]=a,x[n+2]=s,x[n+3]=l)}},n.Factory.addGetterSetter(i.Node,"pixelSize",8,(0,a.getNumberValidator)(),n.Factory.afterSetFilter)},4974:(e,t,r)=>{e.exports=function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};t[a][0].call(c.exports,(function(e){return o(t[a][1][e]||e)}),c,c.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,r){"use strict";const n=e("fs"),o=e("fast-csv"),i=e("dayjs/plugin/customParseFormat"),a=e("dayjs/plugin/utc"),s=e("dayjs").extend(i).extend(a),l=e("../utils/stream-buf"),{fs:{exists:c}}=e("../utils/utils"),u={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t=t||{},!await c(e))throw new Error("File not found: "+e);const r=n.createReadStream(e),o=await this.read(r,t);return r.close(),o}read(e,t){return t=t||{},new Promise(((r,n)=>{const i=this.workbook.addWorksheet(t.sheetName),a=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],l=t.map||function(e){if(""===e)return null;const t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;const r=a.reduce(((t,r)=>{if(t)return t;const n=s(e,r,!0);return n.isValid()?n:null}),null);if(r)return new Date(r.valueOf());const n=u[e];return void 0!==n?n:e},c=o.parse(t.parserOptions).on("data",(e=>{i.addRow(e.map(l))})).on("end",(()=>{c.emit("worksheet",i)}));c.on("worksheet",r).on("error",n),e.pipe(c)}))}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise(((r,n)=>{t=t||{};const i=this.workbook.getWorksheet(t.sheetName||t.sheetId),a=o.format(t.formatterOptions);e.on("finish",(()=>{r()})),a.on("error",n),a.pipe(e);const{dateFormat:l,dateUTC:c}=t,u=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return l?c?s.utc(e).format(l):s(e).format(l):c?s.utc(e).format():s(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),d=void 0===t.includeEmptyRows||t.includeEmptyRows;let f=1;i&&i.eachRow(((e,t)=>{if(d)for(;f++<t-1;)a.write([]);const{values:r}=e;r.shift(),a.write(r.map(u)),f=t})),a.end()}))}writeFile(e,t){const r={encoding:(t=t||{}).encoding||"utf8"},o=n.createWriteStream(e,r);return this.write(o,t)}async writeBuffer(e){const t=new l;return await this.write(t,e),t.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,r){"use strict";const n=e("../utils/col-cache");class o{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=e,t)if("string"==typeof t){const e=n.decodeAddress(t);this.nativeCol=e.col+r,this.nativeColOff=0,this.nativeRow=e.row+r,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+r,this.row=t.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(e){return e instanceof o||null==e?e:new o(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}t.exports=o},{"../utils/col-cache":19}],3:[function(e,t,r){"use strict";const n=e("../utils/col-cache"),o=e("../utils/under-dash"),i=e("./enums"),{slideFormula:a}=e("../utils/shared-formula"),s=e("./note");class l{constructor(e,t,r){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,n.validateAddress(r),this._address=r,this._value=c.create(l.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){const n=e&&e.numFmt||t&&t.numFmt;n&&(r.numFmt=n);const o=e&&e.font||t&&t.font;o&&(r.font=o);const i=e&&e.alignment||t&&t.alignment;i&&(r.alignment=i);const a=e&&e.border||t&&t.border;a&&(r.border=a);const s=e&&e.fill||t&&t.fill;s&&(r.fill=s);const l=e&&e.protection||t&&t.protection;return l&&(r.protection=l),r}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(e,t){this._value.release(),this._value=c.create(l.Types.Merge,this,e),t||(this.style=e.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=c.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===l.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==l.Types.Merge?(this._value.release(),this._value=c.create(c.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new s(e)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===l.Types.String&&(this._value=c.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach((e=>{t.addEx(this.fullAddress,e)}))}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){this._value.release(),this._value=c.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type&&(this._comment=s.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}l.Types=i.ValueType;const c={getType:e=>null==e?l.Types.Null:e instanceof String||"string"==typeof e?l.Types.String:"number"==typeof e?l.Types.Number:"boolean"==typeof e?l.Types.Boolean:e instanceof Date?l.Types.Date:e.text&&e.hyperlink?l.Types.Hyperlink:e.formula||e.sharedFormula?l.Types.Formula:e.richText?l.Types.RichText:e.sharedString?l.Types.SharedString:e.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(e){this.model={address:e.address,type:l.Types.Null}}get value(){return null}set value(e){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:l.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},r=r=>{const n=e[r];n&&(t[r]=n)};return r("formula"),r("result"),r("ref"),r("shareType"),r("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(c.getType(e)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?i.FormulaType.Master:this.model.sharedFormula?i.FormulaType.Shared:i.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return l.Types.Formula}get effectiveType(){const e=this.model.result;return null==e?i.ValueType.Null:e instanceof String||"string"==typeof e?i.ValueType.String:"number"==typeof e?i.ValueType.Number:e instanceof Date?i.ValueType.Date:e.text&&e.hyperlink?i.ValueType.Hyperlink:e.formula?i.ValueType.Formula:i.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&a(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof l?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map((e=>e.text)).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce(((e,t)=>(e[t.t]=t.f,e)),[]),create(e,t,r){const n=this.types[e];if(!n)throw new Error("Could not create Value of type "+e);return new n(t,r)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),o=e("./enums"),i=e("../utils/col-cache");class a{constructor(e,t,r){this._worksheet=e,this._number=t,!1!==r&&(this.defn=r)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return i.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){void 0!==e?(this._header=e,this.headers.forEach(((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&n.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,((e,n)=>{t(e.getCell(r),n)}))}get values(){const e=[];return this.eachCell(((t,r)=>{t&&t.type!==o.ValueType.Null&&(e[r]=t.value)})),e}set values(e){if(!e)return;const t=this.number;let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach(((e,n)=>{this._worksheet.getCell(n+r,t).value=e}))}_applyStyle(e,t){return this.style[e]=t,this.eachCell((r=>{r[e]=t})),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;return e&&e.forEach(((e,n)=>{e.isDefault?r&&(r=null):r&&e.equivalentTo(r)?r.max=n+1:(r={min:n+1,max:n+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(r))})),t.length?t:void 0}static fromModel(e,t){const r=[];let n=1,o=0;for(t=(t=t||[]).sort((function(e,t){return e.min-t.min}));o<t.length;){const i=t[o++];for(;n<i.min;)r.push(new a(e,n++));for(;n<=i.max;)r.push(new a(e,n++,i))}return r.length?r:null}}t.exports=a},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,r){"use strict";t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),o=e("../utils/col-cache"),i=e("../utils/cell-matrix"),a=e("./range"),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new i)}add(e,t){const r=o.decodeEx(e);this.addEx(r,t)}addEx(e,t){const r=this.getMatrix(t);if(e.top)for(let t=e.left;t<=e.right;t++)for(let n=e.top;n<=e.bottom;n++){const i={sheetName:e.sheetName,address:o.n2l(t)+n,row:n,col:t};r.addCellEx(i)}else r.addCellEx(e)}remove(e,t){const r=o.decodeEx(e);this.removeEx(r,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){n.each(this.matrixMap,(t=>{t.removeCellEx(e)}))}forEach(e){n.each(this.matrixMap,((t,r)=>{t.forEach((t=>{e(r,t)}))}))}getNames(e){return this.getNamesEx(o.decodeEx(e))}getNamesEx(e){return n.map(this.matrixMap,((t,r)=>t.findCellEx(e)&&r)).filter(Boolean)}_explore(e,t){t.mark=!1;const{sheetName:r}=t,n=new a(t.row,t.col,t.row,t.col,r);let o,i;function s(o,i){const a=e.findCellAt(r,o,t.col);return!(!a||!a.mark||(n[i]=o,a.mark=!1,0))}for(i=t.row-1;s(i,"top");i--);for(i=t.row+1;s(i,"bottom");i++);function l(t,o){const a=[];for(i=n.top;i<=n.bottom;i++){const n=e.findCellAt(r,i,t);if(!n||!n.mark)return!1;a.push(n)}n[o]=t;for(let e=0;e<a.length;e++)a[e].mark=!1;return!0}for(o=t.col-1;l(o,"left");o--);for(o=t.col+1;l(o,"right");o++);return n}getRanges(e,t){return(t=t||this.matrixMap[e])?(t.forEach((e=>{e.mark=!0})),{name:e,ranges:t.map((e=>e.mark&&this._explore(t,e))).filter(Boolean).map((e=>e.$shortRange))}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,((e,t,r)=>{e&&(e.row===t&&e.col===r||(e.row=t,e.col=r,e.address=o.n2l(r)+t))}))}spliceRows(e,t,r,o){n.each(this.matrixMap,(n=>{n.spliceRows(e,t,r,o),this.normaliseMatrix(n,e)}))}spliceColumns(e,t,r,o){n.each(this.matrixMap,(n=>{n.spliceColumns(e,t,r,o),this.normaliseMatrix(n,e)}))}get model(){return n.map(this.matrixMap,((e,t)=>this.getRanges(t,e))).filter((e=>e.ranges.length))}set model(e){const t=this.matrixMap={};e.forEach((e=>{const r=t[e.name]=new i;e.ranges.forEach((e=>{s.test(e.split("!").pop()||"")&&r.addCell(e)}))}))}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,r){"use strict";t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,r){"use strict";const n=e("../utils/col-cache"),o=e("./anchor");t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(e){let{type:t,imageId:r,range:i,hyperlinks:a}=e;if(this.type=t,this.imageId=r,"image"===t)if("string"==typeof i){const e=n.decode(i);this.range={tl:new o(this.worksheet,{col:e.left,row:e.top},-1),br:new o(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,i.tl,0),br:i.br&&new o(this.worksheet,i.br,0),ext:i.ext,editAs:i.editAs,hyperlinks:a||i.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,r){"use strict";const n=e("../utils/under-dash");class o{constructor(e){this.note=e}get model(){let e=null;return e="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},n.deepMerge({},o.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e,{texts:r}=t;1===r.length&&1===Object.keys(r[0]).length?this.note=r[0].text:this.note=t}static fromModel(e){const t=new o;return t.model=e,t}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=o},{"../utils/under-dash":26}],10:[function(e,t,r){"use strict";const n=e("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(e,t,r,o,i){if(arguments.length<4){const o=n.decodeAddress(e),a=n.decodeAddress(t);this.model={top:Math.min(o.row,a.row),left:Math.min(o.col,a.col),bottom:Math.max(o.row,a.row),right:Math.max(o.col,a.col),sheetName:r},this.setTLBR(o.row,o.col,a.row,a.col,i)}else this.model={top:Math.min(e,r),left:Math.min(t,o),bottom:Math.max(e,r),right:Math.max(t,o),sheetName:i}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof o)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=n.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+e.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?e+"!":`'${e}'!`:""}expand(e,t,r,n){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||n>this.right)&&(this.right=n)}expandRow(e){if(e){const{dimensions:t,number:r}=e;t&&this.expand(r,t.min,r,t.max)}}expandToAddress(e){const t=n.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return n.n2l(this.left)+this.top}get $t$l(){return`$${n.n2l(this.left)}$${this.top}`}get br(){return n.n2l(this.right)+this.bottom}get $b$r(){return`$${n.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}contains(e){const t=n.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let r=this.top;r<=this.bottom;r++)e(n.encodeAddress(r,t),r,t)}}t.exports=o},{"../utils/col-cache":19}],11:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),o=e("./enums"),i=e("../utils/col-cache"),a=e("./cell");t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const r=this._worksheet.getColumn(e.col);t=new a(this,r,e.address),this._cells[e.col-1]=t}return t}getCell(e){if("string"==typeof e){const t=this._worksheet.getColumnKey(e);e=t?t.number:i.l2n(e)}return this._cells[e-1]||this.getCellEx({address:i.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){const r=e+t;for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];const a=o.length-t,s=this._cells.length;let l,c,u;if(a<0)for(l=e+o.length;l<=s;l++)u=this._cells[l-1],c=this._cells[l-a-1],c?(u=this.getCell(l),u.value=c.value,u.style=c.style,u._comment=c._comment):u&&(u.value=null,u.style={},u._comment=void 0);else if(a>0)for(l=s;l>=r;l--)c=this._cells[l-1],c?(u=this.getCell(l+a),u.value=c.value,u.style=c.style,u._comment=c._comment):this._cells[l+a-1]=void 0;for(l=0;l<o.length;l++)u=this.getCell(e+l),u.value=o[l],u.style={},u._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++)t(this.getCell(r),r)}else this._cells.forEach(((e,r)=>{e&&e.type!==o.ValueType.Null&&t(e,r+1)}))}addPageBreak(e,t){const r=this._worksheet,n=Math.max(0,e-1)||0,o=Math.max(0,t-1)||16838,i={id:this._number,max:o,man:1};n&&(i.min=n),r.rowBreaks.push(i)}get values(){const e=[];return this._cells.forEach((t=>{t&&t.type!==o.ValueType.Null&&(e[t.col]=t.value)})),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach(((e,r)=>{void 0!==e&&(this.getCellEx({address:i.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e)}))}else this._worksheet.eachColumnKey(((t,r)=>{void 0!==e[r]&&(this.getCellEx({address:i.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r])}))}get hasValues(){return n.some(this._cells,(e=>e&&e.type!==o.ValueType.Null))}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell((()=>{e++})),e}get dimensions(){let e=0,t=0;return this._cells.forEach((r=>{r&&r.type!==o.ValueType.Null&&((!e||e>r.col)&&(e=r.col),t<r.col&&(t=r.col))})),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach((r=>{r&&(r[e]=t)})),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,r=0;return this._cells.forEach((n=>{if(n){const o=n.model;o&&((!t||t>n.col)&&(t=n.col),r<n.col&&(r=n.col),e.push(o))}})),this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach((e=>{switch(e.type){case a.Types.Merge:break;default:{let r;if(e.address)r=i.decodeAddress(e.address);else if(t){const{row:e}=t,n=t.col+1;r={row:e,col:n,address:i.encodeAddress(e,n),$col$row:`$${i.n2l(n)}$${e}`}}t=r,this.getCellEx(r).model=e;break}}})),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,r){"use strict";const n=e("../utils/col-cache");class o{constructor(e,t,r){this.table=e,this.column=t,this.index=r}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+e.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this,t=(e,t,r)=>{void 0===e[t]&&(e[t]=r)};t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1);const r=(e,t)=>{if(!e)throw new Error(t)};r(e.ref,"Table must have ref"),r(e.columns,"Table must have column definitions"),r(e.rows,"Table must have row definitions"),e.tl=n.decodeAddress(e.ref);const{row:o,col:i}=e.tl;r(o>0,"Table must be on valid row"),r(i>0,"Table must be on valid col");const{width:a,filterHeight:s,tableHeight:l}=this;e.autoFilterRef=n.encode(o,i,o+s-1,i+a-1),e.tableRef=n.encode(o,i,o+l-1,i+a-1),e.columns.forEach(((e,n)=>{r(e.name,`Column ${n} must have a name`),0===n?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))}))}store(){const e=(e,t)=>{t&&Object.keys(t).forEach((r=>{e[r]=t[r]}))},{worksheet:t,table:r}=this,{row:n,col:o}=r.tl;let i=0;if(r.headerRow){const a=t.getRow(n+i++);r.columns.forEach(((t,r)=>{const{style:n,name:i}=t,s=a.getCell(o+r);s.value=i,e(s,n)}))}if(r.rows.forEach((a=>{const s=t.getRow(n+i++);a.forEach(((t,n)=>{const i=s.getCell(o+n);i.value=t,e(i,r.columns[n].style)}))})),r.totalsRow){const a=t.getRow(n+i++);r.columns.forEach(((t,r)=>{const n=a.getCell(o+r);if(0===r)n.value=t.totalsRowLabel;else{const e=this.getFormula(t);n.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(n,t.style)}))}}load(e){const{table:t}=this,{row:r,col:n}=t.tl;let o=0;if(t.headerRow){const i=e.getRow(r+o++);t.columns.forEach(((e,t)=>{i.getCell(n+t).value=e.name}))}if(t.rows.forEach((t=>{const i=e.getRow(r+o++);t.forEach(((e,t)=>{i.getCell(n+t).value=e}))})),t.totalsRow){const i=e.getRow(r+o++);t.columns.forEach(((e,t)=>{const r=i.getCell(n+t);0===t?r.value=e.totalsRowLabel:this.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}))}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const e=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)r.getCell(e.col+t).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)r.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)r.getCell(e.col+t).value=null}}this.store()}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new o(this,t,e)}addColumn(e,t,r){this.cacheState(),void 0===r?(this.table.columns.push(e),this.table.rows.forEach(((e,r)=>{e.push(t[r])}))):(this.table.columns.splice(r,0,e),this.table.rows.forEach(((e,n)=>{e.splice(r,0,t[n])})))}removeColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((r=>{r.splice(e,t)}))}_assign(e,t,r){this.cacheState(),e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,r){"use strict";const n=e("./worksheet"),o=e("./defined-names"),i=e("../xlsx/xlsx"),a=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new i(this)),this._xlsx}get csv(){return this._csv||(this._csv=new a(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){const r=this.nextId;t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));const o=this._worksheets.reduce(((e,t)=>(t&&t.orderNo)>e?t.orderNo:e),0),i=Object.assign({},t,{id:r,name:e,orderNo:o+1,workbook:this}),a=new n(i);return this._worksheets[r]=a,a}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((t=>t&&t.name===e)):void 0}get worksheets(){return this._worksheets.slice(1).sort(((e,t)=>e.orderNo-t.orderNo)).filter(Boolean)}eachSheet(e){this.worksheets.forEach((t=>{e(t,t.id)}))}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((e=>e.model)),sheets:this.worksheets.map((e=>e.model)).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach((t=>{const{id:r,name:o,state:i}=t,a=e.sheets&&e.sheets.findIndex((e=>e.id===r));(this._worksheets[r]=new n({id:r,name:o,orderNo:a,state:i,workbook:this})).model=t})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),o=e("../utils/col-cache"),i=e("./range"),a=e("./row"),s=e("./column"),l=e("./enums"),c=e("./image"),u=e("./table"),d=e("./data-validations"),f=e("../utils/encryptor"),{copyStyle:h}=e("../utils/copy-style");t.exports=class{constructor(e){e=e||{},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new d,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e="sheet"+this.id),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+e);if(e&&e.length>31&&(console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`),e=e.substring(0,31)),this._workbook._worksheets.find((t=>t&&t.name.toLowerCase()===e.toLowerCase())))throw new Error("Worksheet name already exists: "+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new i;return this._rows.forEach((t=>{if(t){const r=t.dimensions;r&&e.expand(t.number,r.min,t.number,r.max)}})),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const n=new s(this,t++,!1);r.push(n),n.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){n.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=o.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new s(this,t++))}return this._columns[e-1]}spliceColumns(e,t){const r=this._rows.length;for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(o.length>0)for(let n=0;n<r;n++){const r=[e,t];o.forEach((e=>{r.push(e[n]||null)}));const i=this.getRow(n+1);i.splice.apply(i,r)}else this._rows.forEach((r=>{r&&r.splice(e,t)}));const a=o.length-t,s=e+t,l=this._columns.length;if(a<0)for(let t=e+o.length;t<=l;t++)this.getColumn(t).defn=this.getColumn(t-a).defn;else if(a>0)for(let e=l;e>=s;e--)this.getColumn(e+a).defn=this.getColumn(e).defn;for(let t=e;t<e+o.length;t++)this.getColumn(t).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,o.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow((t=>{e=Math.max(e,t.cellCount)})),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow((r=>{r.eachCell((r=>{let{col:n}=r;e[n]||(e[n]=!0,t++)}))})),t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;for(;t>0&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow((()=>{e++})),e}getRow(e){let t=this._rows[e-1];return t||(t=this._rows[e-1]=new a(this,e)),t}getRows(e,t){if(t<1)return;const r=[];for(let n=e;n<e+t;n++)r.push(this.getRow(n));return r}addRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const r=this._nextRow,n=this.getRow(r);return n.values=e,this._setStyleOption(r,"i"===t[0]?t:"n"),n}addRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const r=[];return e.forEach((e=>{r.push(this.addRow(e,t))})),r}insertRow(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,r),this.getRow(e)}insertRows(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(e,0,...t),"n"!==r)for(let n=0;n<t.length;n++)"o"===r[0]&&void 0!==this.findRow(t.length+e+n)?this._copyStyle(t.length+e+n,e+n,"+"===r[1]):"i"===r[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+n,"+"===r[1]);return this.getRows(e,t.length)}_setStyleOption(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.getRow(e),o=this.getRow(t);o.style=h(n.style),n.eachCell({includeEmpty:r},((e,t)=>{o.getCell(t).style=h(e.style)})),o.height=n.height}duplicateRow(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this._rows[e-1],o=new Array(t).fill(n.values);this.spliceRows(e+1,r?0:t,...o);for(let r=0;r<t;r++){const t=this._rows[e+r];t.style=n.style,t.height=n.height,n.eachCell({includeEmpty:!0},((e,r)=>{t.getCell(r).style=e.style}))}}spliceRows(e,t){const r=e+t;for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];const a=o.length,s=a-t,l=this._rows.length;let c,u;if(s<0)for(e===l&&(this._rows[l-1]=void 0),c=r;c<=l;c++)if(u=this._rows[c-1],u){const e=this.getRow(c+s);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},((t,r)=>{e.getCell(r).style=t.style})),this._rows[c-1]=void 0}else this._rows[c+s-1]=void 0;else if(s>0)for(c=l;c>=r;c--)if(u=this._rows[c-1],u){const e=this.getRow(c+s);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},((t,r)=>{if(e.getCell(r).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+a).getCell(r),n=t._value._master,o=this.getRow(n._row._number+a).getCell(n._column._number);e.merge(o)}}))}else this._rows[c+s-1]=void 0;for(c=0;c<a;c++){const t=this.getRow(e+c);t.style={},t.values=o[c]}this.workbook.definedNames.spliceRows(this.name,e,t,a)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++)t(this.getRow(r),r)}else this._rows.forEach((e=>{e&&e.hasValues&&t(e,e.number)}))}getSheetValues(){const e=[];return this._rows.forEach((t=>{t&&(e[t.number]=t.values)})),e}findCell(e,t){const r=o.getAddress(e,t),n=this._rows[r.row-1];return n?n.findCell(r.col):void 0}getCell(e,t){const r=o.getAddress(e,t);return this.getRow(r.row).getCellEx(r)}mergeCells(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=new i(t);this._mergeCellsInternal(n)}mergeCellsWithoutStyle(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=new i(t);this._mergeCellsInternal(n,!0)}_mergeCellsInternal(e,t){n.each(this._merges,(t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")}));const r=this.getCell(e.top,e.left);for(let n=e.top;n<=e.bottom;n++)for(let o=e.left;o<=e.right;o++)(n>e.top||o>e.left)&&this.getCell(n,o).merge(r,t);this._merges[r.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let r=t.left;r<=t.right;r++)this.getCell(e,r).unmerge();delete this._merges[e.address]}}get hasMerges(){return n.some(this._merges,Boolean)}unMergeCells(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=new i(t);for(let e=n.top;e<=n.bottom;e++)for(let t=n.left;t<=n.right;t++){const r=this.findCell(e,t);r&&(r.type===l.ValueType.Merge?this._unMergeMaster(r.master):this._merges[r.address]&&this._unMergeMaster(r))}}fillFormula(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared";const i=o.decode(e),{top:a,left:s,bottom:l,right:c}=i,u=c-s+1,d=o.encodeAddress(a,s),f="shared"===n;let h;h="function"==typeof r?r:Array.isArray(r)?Array.isArray(r[0])?(e,t)=>r[e-a][t-s]:(e,t)=>r[(e-a)*u+(t-s)]:()=>{};let p=!0;for(let r=a;r<=l;r++)for(let o=s;o<=c;o++)p?(this.getCell(r,o).value={shareType:n,formula:t,ref:e,result:h(r,o)},p=!1):this.getCell(r,o).value=f?{sharedFormula:d,result:h(r,o)}:h(r,o)}addImage(e,t){const r={type:"image",imageId:e,range:t};this._media.push(new c(this,r))}getImages(){return this._media.filter((e=>"image"===e.type))}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new c(this,t))}getBackgroundImageId(){const e=this._media.find((e=>"background"===e.type));return e&&e.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),r()}))}unprotect(){this.sheetProtection=null}addTable(e){const t=new u(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((e=>e.model)),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((e=>e.model)),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);const t=e.rows=[],r=e.dimensions=new i;return this._rows.forEach((e=>{const n=e&&e.model;n&&(r.expand(n.number,n.min,n.number,n.max),t.push(n))})),e.merges=[],n.each(this._merges,(t=>{e.merges.push(t.range)})),e}_parseRows(e){this._rows=[],e.rows.forEach((e=>{const t=new a(this,e.number);this._rows[t.number-1]=t,t.model=e}))}_parseMergeCells(e){n.each(e.mergeCells,(e=>{this.mergeCellsWithoutStyle(e)}))}set model(e){this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new d(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((e=>new c(this,e))),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce(((e,t)=>{const r=new u;return r.model=t,e[t.name]=r,e}),{}),this.conditionalFormattings=e.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,r){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const n={Workbook:e("./doc/workbook")},o=e("./doc/enums");Object.keys(o).forEach((e=>{n[e]=o[e]})),t.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,r){"use strict";const n="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");r.bufferToString=function(e){return"string"==typeof e?e:n?n.decode(e):e.toString()}},{}],17:[function(e,t,r){"use strict";const n="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),{Buffer:o}=e("buffer");r.stringToBuffer=function(e){return"string"!=typeof e?e:n?o.from(n.encode(e).buffer):o.from(e)}},{buffer:220}],18:[function(e,t,r){"use strict";const n=e("./under-dash"),o=e("./col-cache");t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(o.decodeEx(e))}getCell(e){return this.findCellEx(o.decodeEx(e),!0)}findCell(e){return this.findCellEx(o.decodeEx(e),!1)}findCellAt(e,t,r){const n=this.sheets[e],o=n&&n[t];return o&&o[r]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let r=e.left;r<=e.right;r++)this.getCellAt(e.sheetName,t,r);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){const r=this.findSheet(e,t),n=this.findSheetRow(r,e,t);return this.findRowCell(n,e,t)}getCellAt(e,t,r){const n=this.sheets[e]||(this.sheets[e]=[]),i=n[t]||(n[t]=[]);return i[r]||(i[r]={sheetName:e,address:o.n2l(r)+t,row:t,col:r})}removeCellEx(e){const t=this.findSheet(e);if(!t)return;const r=this.findSheetRow(t,e);r&&delete r[e.col]}forEachInSheet(e,t){const r=this.sheets[e];r&&r.forEach(((e,r)=>{e&&e.forEach(((e,n)=>{e&&t(e,r,n)}))}))}forEach(e){n.each(this.sheets,((t,r)=>{this.forEachInSheet(r,e)}))}map(e){const t=[];return this.forEach((r=>{t.push(e(r))})),t}findSheet(e,t){const r=e.sheetName;return this.sheets[r]?this.sheets[r]:t?this.sheets[r]=[]:void 0}findSheetRow(e,t,r){const{row:n}=t;return e&&e[n]?e[n]:r?e[n]=[]:void 0}findRowCell(e,t,r){const{col:n}=t;return e&&e[n]?e[n]:r?e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,r,n){const o=this.sheets[e];if(o){const e=[];for(let t=0;t<n;t++)e.push([]);o.splice(t,r,...e)}}spliceColumns(e,t,r,o){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<o;t++)e.push(null);n.each(i,(n=>{n.splice(t,r,...e)}))}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,r){"use strict";const n=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,r,n,o,i,a=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;a<=26;)t=this._dictionary[a-1],this._n2l[a]=t,this._l2n[t]=a,a++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(a=27;a<=702;)r=a-27,n=r%26,o=Math.floor(r/26),t=this._dictionary[o]+this._dictionary[n],this._n2l[a]=t,this._l2n[t]=a,a++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(a=703;a<=16384;)r=a-703,n=r%26,o=Math.floor(r/26)%26,i=Math.floor(r/676),t=this._dictionary[i]+this._dictionary[o]+this._dictionary[n],this._n2l[a]=t,this._l2n[t]=a,a++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: "+e);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!n.test(e))throw new Error("Invalid Address: "+e);return!0},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t)return t;let r=!1,n="",o=0,i=!1,a="",s=0;for(let t,l=0;l<e.length;l++)if(t=e.charCodeAt(l),!i&&t>=65&&t<=90)r=!0,n+=e[l],o=26*o+t-64;else if(t>=48&&t<=57)i=!0,a+=e[l],s=10*s+t-48;else if(i&&r&&36!==t)break;if(r){if(o>16384)throw new Error("Out of bounds. Invalid column letter: "+n)}else o=void 0;i||(s=void 0);const l={address:e=n+a,col:o,row:s,$col$row:`$${n}$${a}`};return o<=100&&s<=100&&(this._hash[e]=l,this._hash[l.$col$row]=l),l},getAddress(e,t){if(t){const r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(2===t.length){const e=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),n={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return n.tl=this.n2l(n.left)+n.top,n.br=this.n2l(n.right)+n.bottom,n.dimensions=`${n.tl}:${n.br}`,n}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=t[1]||t[2],n=t[3],o=n.split(":");if(o.length>1){let e=this.decodeAddress(o[0]),t=this.decodeAddress(o[1]);const n=Math.min(e.row,t.row),i=Math.min(e.col,t.col),a=Math.max(e.row,t.row),s=Math.max(e.col,t.col);return e=this.n2l(i)+n,t=this.n2l(s)+a,{top:n,left:i,bottom:a,right:s,sheetName:r,tl:{address:e,col:i,row:n,$col$row:`$${this.n2l(i)}$${n}`,sheetName:r},br:{address:t,col:s,row:a,$col$row:`$${this.n2l(s)}$${a}`,sheetName:r},dimensions:`${e}:${t}`}}if(n.startsWith("#"))return r?{sheetName:r,error:n}:{error:n};const i=this.decodeAddress(n);return r?{sheetName:r,...i}:i},encodeAddress:(e,t)=>o.n2l(t)+e,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[r,n,,o,i]=e,[a,s]=t;return a>=r&&a<=o&&s>=n&&s<=i}};t.exports=o},{}],20:[function(e,t,r){"use strict";const n=(e,t)=>({...e,...t.reduce(((t,r)=>(e[r]&&(t[r]={...e[r]}),t)),{})}),o=function(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[r]&&(t[r]=n(e[r],o))};r.copyStyle=e=>{if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t;const r={...e};return o(e,r,"font",["color"]),o(e,r,"alignment"),o(e,r,"protection"),e.border&&(o(e,r,"border"),o(e.border,r.border,"top",["color"]),o(e.border,r.border,"left",["color"]),o(e.border,r.border,"bottom",["color"]),o(e.border,r.border,"right",["color"]),o(e.border,r.border,"diagonal",["color"])),e.fill&&(o(e,r,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(r.fill.stops=e.fill.stops.map((e=>n(e,["color"]))))),r}},{}],21:[function(e,t,r){(function(r){(function(){"use strict";const n=e("crypto"),o={hash(e){const t=n.createHash(e);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.update(r.concat(i)),t.digest()},convertPasswordToHash(e,t,o,i){if(t=t.toLowerCase(),n.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const a=r.from(e,"utf16le");let s=this.hash(t,r.from(o,"base64"),a);for(let e=0;e<i;e++){const n=r.alloc(4);n.writeUInt32LE(e,0),s=this.hash(t,s,n)}return s.toString("base64")},randomBytes:e=>n.randomBytes(e)};t.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,r){"use strict";const{SaxesParser:n}=e("saxes"),{PassThrough:o}=e("readable-stream"),{bufferToString:i}=e("./browser-buffer-decode");t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new o));const t=new n;let r;t.on("error",(e=>{r=e}));let a=[];t.on("opentag",(e=>a.push({eventType:"opentag",value:e}))),t.on("text",(e=>a.push({eventType:"text",value:e}))),t.on("closetag",(e=>a.push({eventType:"closetag",value:e})));for await(const n of e){if(t.write(i(n)),r)throw r;yield a,a=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,r){"use strict";const n=e("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,i=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,r){const a=n.decode(t),s=n.decode(r);return e.replace(o,((e,t,r,o,l)=>{if(l)return e;const c=i.exec(o);if(c){const r=c[1],o=c[2].toUpperCase(),i=c[3],l=c[4];if(o.length>3||3===o.length&&o>"XFD")return e;let u=n.l2n(o),d=parseInt(l,10);return r||(u+=s.col-a.col),i||(d+=s.row-a.row),(t||"")+(r||"")+n.n2l(u)+(i||"")+d}return e}))}}},{"./col-cache":19}],24:[function(e,t,r){(function(r,n){(function(){"use strict";const o=e("readable-stream"),i=e("./utils"),a=e("./string-buf");class s{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,n){return this.toBuffer().copy(e,t,r,n)}toBuffer(){return this._buffer||(this._buffer=n.from(this._data,this._encoding)),this._buffer}}class l{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){return this._data._buf.copy(e,t,r,n)}toBuffer(){return this._data.toBuffer()}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){this._data.copy(e,t,r,n)}toBuffer(){return this._data}}class u{constructor(e){this.size=e,this.buffer=n.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const e=n.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=n.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,r){const n=Math.min(r,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}}const d=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};i.inherits(d,o.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map((e=>e.toBuffer())))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new u(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map((function(t){return new Promise((r=>{t.write(e.toBuffer(),(()=>{r()}))}))})))},_writeToBuffers(e){let t=0;const r=e.length;for(;t<r;)t+=this._getWritableBuffer().write(e,t,r-t)},async write(e,t,o){let u;if(t instanceof Function&&(o=t,t="utf8"),o=o||i.nop,e instanceof a)u=new l(e);else if(e instanceof n)u=new c(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");u=new s(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(u);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(u),r.nextTick(o)):(await this._pipe(u),o());else this.paused||this.emit("data",u.toBuffer()),this._writeToBuffers(u),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(e,t,r){const n=e=>{e?r(e):(this._flush(),this.pipes.forEach((e=>{e.end()})),this.emit("finish"))};e?this.write(e,t,n):n()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const r=this.buffers[0],n=r.read(e);e-=n.length,t.push(n),r.eod&&r.full&&this.buffers.shift()}return n.concat(t)}return t=this.buffers.map((e=>e.toBuffer())).filter(Boolean),this.buffers=[],n.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter((t=>t!==e))},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=d}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,r){(function(e){(function(){"use strict";t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(t){let r=2*this._buf.length;for(;r<t;)r*=2;const n=e.alloc(r);this._buf.copy(n,0),this._buf=n}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,r){"use strict";const{toString:n}=Object.prototype,o=/["&<>]/,i={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((r=>{t(e[r],r)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((r=>t(e[r],r))))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((r=>t(e[r],r))))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((r=>t(e[r],r))):[]},keyBy:(e,t)=>e.reduce(((e,r)=>(e[r[t]]=r,e)),{}),isEqual:function(e,t){const r=typeof e,n=typeof t,o=Array.isArray(e),a=Array.isArray(t);let s;if(r!==n)return!1;if("object"==typeof e){if(o||a)return!(!o||!a)&&e.length===t.length&&e.every(((e,r)=>{const n=t[r];return i.isEqual(e,n)}));if(null===e||null===t)return e===t;if(s=Object.keys(e),Object.keys(t).length!==s.length)return!1;for(const e of s)if(!t.hasOwnProperty(e))return!1;return i.every(e,((e,r)=>{const n=t[r];return i.isEqual(e,n)}))}return e===t},escapeHtml(e){const t=o.exec(e);if(!t)return e;let r="",n="",i=0,a=t.index;for(;a<e.length;a++){switch(e.charAt(a)){case'"':n=""";break;case"&":n="&";break;case"'":n="'";break;case"<":n="<";break;case">":n=">";break;default:continue}i!==a&&(r+=e.substring(i,a)),i=a+1,r+=n}return i!==a?r+e.substring(i,a):r},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>"[object Undefined]"===n.call(e),isObject:e=>"[object Object]"===n.call(e),deepMerge(){const e=arguments[0]||{},{length:t}=arguments;let r,n,o;function a(t,a){r=e[a],o=Array.isArray(t),i.isObject(t)||o?(o?(o=!1,n=r&&Array.isArray(r)?r:[]):n=r&&i.isObject(r)?r:{},e[a]=i.deepMerge(n,t)):i.isUndefined(t)||(e[a]=t)}for(let e=0;e<t;e++)i.each(arguments[e],a);return e}};t.exports=i},{}],27:[function(e,t,n){(function(r,n){(function(){"use strict";const o=e("fs"),i=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:e=>new Promise((t=>{r.setImmediate?n((()=>{t(e)})):setTimeout((()=>{t(e)}),1)})),inherits:function(e,t,r,n){e.super_=t,n||(n=r,r=null),r&&Object.keys(r).forEach((t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}));const o={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach((e=>{o[e]=Object.getOwnPropertyDescriptor(n,e)})),e.prototype=Object.create(t.prototype,o)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){const r=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(r)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=a.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=i.exec(e);if(!t)return e;let r="",n="",o=0,a=t.index;for(;a<e.length;a++){const t=e.charCodeAt(a);switch(t){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;case 127:n="";break;default:if(t<=31&&(t<=8||t>=11&&13!==t)){n="";break}continue}o!==a&&(r+=e.substring(o,a)),o=a+1,n&&(r+=n)}return o!==a?r+e.substring(o,a):r},xmlDecode:e=>e.replace(/&([a-z]*);/g,(e=>{switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}})),validInt(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:e=>!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/),fs:{exists:e=>new Promise((t=>{o.access(e,o.constants.F_OK,(e=>{t(!e)}))}))},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};t.exports=a}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,r){"use strict";const n=e("./under-dash"),o=e("./utils");function i(e,t,r){e.push(` ${t}="${o.xmlEncode(r.toString())}"`)}function a(e,t){if(t){const r=[];n.each(t,((e,t)=>{void 0!==e&&i(r,t,e)})),e.push(r.join(""))}}class s{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml"),a(t,e),t.push("?>\n")}openNode(e,t){const r=this.tos,n=this._xml;r&&this.open&&n.push(">"),this._stack.push(e),n.push("<"),n.push(e),a(n,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&i(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");a(this._xml,e)}writeText(e){const t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(o.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){const e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}leafNode(e,t,r){this.openNode(e,t),void 0!==r&&this.writeText(r),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}s.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=s},{"./under-dash":26,"./utils":27}],29:[function(e,t,r){(function(r){(function(){"use strict";const n=e("events"),o=e("jszip"),i=e("./stream-buf"),{stringToBuffer:a}=e("./browser-buffer-encode");class s extends n.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new o,this.stream=new i}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(r.browser&&"string"==typeof e&&(e=a(e)),this.zip.file(t.name,e))}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:s}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,r){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,r){"use strict";t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,r){"use strict";const n=e("../../utils/parse-sax"),o=e("../../utils/xml-stream");class i{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach((e=>{e instanceof i?e.reset():e.xform&&e.xform.reset()}))}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:r}of t)if("opentag"===e)this.parseOpen(r);else if("text"===e)this.parseText(r);else if("closetag"===e&&!this.parseClose(r.name))return this.model;return this.model}async parseStream(e){return this.parse(n(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new o;return this.render(t,e),t.xml}static toAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e.toString()}static toStringAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i.toAttribute(e,t,r)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i.toAttribute(e,t,r)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i.toAttribute(e,t,r)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}t.exports=i},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../../../utils/col-cache");function i(e){try{return o.decodeEx(e),!0}catch(e){return!1}}function a(e){const t=[];let r=!1,n="";return e.split(",").forEach((e=>{if(!e)return;const o=(e.match(/'/g)||[]).length;if(!o)return void(r?n+=e+",":i(e)&&t.push(e));const a=o%2==0;!r&&a&&i(e)?t.push(e):r&&!a?(r=!1,i(n+e)&&t.push(n+e),n=""):(r=!0,n+=e+",")})),t}t.exports=class extends n{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:a(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,r){"use strict";const n=e("../../../utils/utils"),o=e("../base-xform");t.exports=class extends o{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:n.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){const r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(r.visibility=t.visibility),e.leafNode("workbookView",r)}parseOpen(e){if("workbookView"===e.name){const t=this.model={},r=function(e,r,n){const o=void 0!==r?t[e]=r:n;void 0!==o&&(t[e]=o)},n=function(e,r,n){const o=void 0!==r?t[e]=parseInt(r,10):n;void 0!==o&&(t[e]=o)};return n("x",e.attributes.xWindow,0),n("y",e.attributes.yWindow,0),n("width",e.attributes.windowWidth,25e3),n("height",e.attributes.windowHeight,1e4),r("visibility",e.attributes.visibility,"visible"),n("activeTab",e.attributes.activeTab,void 0),n("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("../static-xform"),l=e("../list-xform"),c=e("./defined-name-xform"),u=e("./sheet-xform"),d=e("./workbook-view-xform"),f=e("./workbook-properties-xform"),h=e("./workbook-calc-properties-xform");class p extends a{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new f,bookViews:new l({tag:"bookViews",count:!1,childXform:new d}),sheets:new l({tag:"sheets",count:!1,childXform:new u}),definedNames:new l({tag:"definedNames",count:!1,childXform:new c}),calcPr:new h}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach((e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach((n=>{const o=n.split(":"),i={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${o[0]}:$${o[1]}`],localSheetId:r};t.push(i)})),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const n=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const o={name:"_xlnm.Print_Titles",ranges:n,localSheetId:r};t.push(o)}r++})),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach(((e,t)=>{e.name=e.type+(t+1)}))}render(e,t){e.openXml(i.StdDocAttributes),e.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(e){const t=(e.workbookRels||[]).reduce(((e,t)=>(e[t.Id]=t,e)),{}),r=[];let i,a=0;(e.sheets||[]).forEach((n=>{const o=t[n.rId];o&&(i=e.worksheetHash["xl/"+o.Target.replace(/^(\s|\/xl\/)+/,"")],i&&(i.name=n.name,i.id=n.id,i.state=n.state,r[a++]=i))}));const s=[];n.each(e.definedNames,(e=>{if("_xlnm.Print_Area"===e.name){if(i=r[e.localSheetId],i){i.pageSetup||(i.pageSetup={});const t=o.decodeEx(e.ranges[0]);i.pageSetup.printArea=i.pageSetup.printArea?`${i.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(i=r[e.localSheetId],i){i.pageSetup||(i.pageSetup={});const t=e.ranges.join(","),r=/\$/g,n=/\$\d+:\$\d+/,o=t.match(n);if(o&&o.length){const e=o[0];i.pageSetup.printTitlesRow=e.replace(r,"")}const a=/\$[A-Z]+:\$[A-Z]+/,s=t.match(a);if(s&&s.length){const e=s[0];i.pageSetup.printTitlesColumn=e.replace(r,"")}}}else s.push(e)})),e.definedNames=s,e.media.forEach(((e,t)=>{e.index=t}))}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new s({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,r){"use strict";const n=e("../strings/rich-text-xform"),o=e("../../../utils/utils"),i=e("../base-xform"),a=t.exports=function(e){this.model=e};o.inherits(a,i,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach((t=>{this.richTextXform.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../../../utils/utils"),i=e("../base-xform"),a=e("./comment-xform"),s=t.exports=function(){this.map={comment:new a}};o.inherits(s,i,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(n.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach((t=>{this.map.comment.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){(t===r[2]||"x:SizeWithCells"===this.tag&&t===r[1])&&e.leafNode(this.tag)}parseOpen(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left),r=Math.floor(68*(e.left-t)),n=Math.floor(e.top),o=Math.floor(18*(e.top-n)),i=Math.floor(e.right),a=Math.floor(68*(e.right-i)),s=Math.floor(e.bottom);return[t,r,n,o,i,a,s,Math.floor(18*(e.bottom-s))]}getDefaultRect(e){const t=e.col,r=Math.max(e.row-2,0);return[t,6,r,14,t+2,2,r+4,16]}render(e,t){const r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./vml-anchor-xform"),i=e("./style/vml-protection-xform"),a=e("./style/vml-position-xform"),s=["twoCells","oneCells","absolute"];t.exports=class extends n{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new i({tag:"x:Locked"}),"x:LockText":new i({tag:"x:LockText"}),"x:SizeWithCells":new a({tag:"x:SizeWithCells"}),"x:MoveWithCells":new a({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:r,editAs:n}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,n,s),this.map["x:SizeWithCells"].render(e,n,s),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,r.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,r.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=s[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("./vml-shape-xform");class a extends o{constructor(){super(),this.map={"v:shape":new i}}get tag(){return"xml"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,a.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach(((t,r)=>{this.map["v:shape"].render(e,t,r)})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach((e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}a.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./vml-textbox-xform"),i=e("./vml-client-data-xform");class a extends n{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new i}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",a.V_SHAPE_ATTRIBUTES(t,r)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}a.V_SHAPE_ATTRIBUTES=(e,t)=>({id:"_x0000_s"+(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),t.exports=a},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"v:textbox"}conversionUnit(e,t,r){return`${parseFloat(e)*t.toFixed(2)}${r}`}reverseConversionUnit(e){return(e||"").split(",").map((e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2))))}render(e,t){const r={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map((e=>this.conversionUnit(e,10,"mm"))).join(",")),e&&(r.inset=e)}e.openNode("v:textbox",r),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],48:[function(e,t,r){"use strict";const n=e("./base-xform");t.exports=class extends n{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},{"../base-xform":32}],50:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach((t=>{e.leafNode("vt:lpstr",void 0,t.name)})),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},{"../base-xform":32}],51:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("../simple/string-xform"),a=e("./app-heading-pairs-xform"),s=e("./app-titles-of-parts-xform");class l extends o{constructor(){super(),this.map={Company:new i({tag:"Company"}),Manager:new i({tag:"Manager"}),HeadingPairs:new a,TitleOfParts:new s}}render(e,t){e.openXml(n.StdDocAttributes),e.openNode("Properties",l.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform");class i extends o{render(e,t){e.openXml(n.StdDocAttributes),e.openNode("Types",i.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach((t=>{if("image"===t.type){const n=t.extension;r[n]||(r[n]=!0,e.leafNode("Default",{Extension:n,ContentType:"image/"+n}))}})),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach((t=>{const r=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:r,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})})),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach((t=>{e.leafNode("Override",{PartName:"/xl/tables/"+t.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})})),t.drawings&&t.drawings.forEach((t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})})),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach((t=>{let{commentName:r}=t;e.leafNode("Override",{PartName:`/xl/${r}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}i.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("../simple/date-xform"),a=e("../simple/string-xform"),s=e("../simple/integer-xform");class l extends o{constructor(){super(),this.map={"dc:creator":new a({tag:"dc:creator"}),"dc:title":new a({tag:"dc:title"}),"dc:subject":new a({tag:"dc:subject"}),"dc:description":new a({tag:"dc:description"}),"dc:identifier":new a({tag:"dc:identifier"}),"dc:language":new a({tag:"dc:language"}),"cp:keywords":new a({tag:"cp:keywords"}),"cp:category":new a({tag:"cp:category"}),"cp:lastModifiedBy":new a({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new i({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new s({tag:"cp:revision"}),"cp:version":new a({tag:"cp:version"}),"cp:contentStatus":new a({tag:"cp:contentStatus"}),"cp:contentType":new a({tag:"cp:contentType"}),"dcterms:created":new i({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new i({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(e,t){e.openXml(n.StdDocAttributes),e.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("./relationship-xform");class a extends o{constructor(){super(),this.map={Relationship:new i}}render(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("Relationships",a.RELATIONSHIPS_ATTRIBUTES),t.forEach((t=>{this.map.Relationship.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}a.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){const r=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const e=r[1],n=t.mediaIndex[e];return t.media[n]}}}}},{"../base-xform":32}],57:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./blip-xform");t.exports=class extends n{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],59:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],60:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./hlink-click-xform"),i=e("./ext-lst-xform");t.exports=class extends n{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new i}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../simple/integer-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,r){"use strict";const n=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./two-cell-anchor-xform"),s=e("./one-cell-anchor-xform");class l extends i{constructor(){super(),this.map={"xdr:twoCellAnchor":new a,"xdr:oneCellAnchor":new s}}prepare(e){e.anchors.forEach(((e,t)=>{e.anchorType=function(e){return("string"==typeof e.range?n.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),this.map[e.anchorType].prepare(e,{index:t})}))}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(o.StdDocAttributes),e.openNode(this.tag,l.DRAWING_ATTRIBUTES),t.anchors.forEach((t=>{this.map[t.anchorType].render(e,t)})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach((e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],64:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);const r=Math.floor(9525*t.width),n=Math.floor(9525*t.height);e.addAttribute("cx",r),e.addAttribute("cy",n),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./c-nv-pr-xform"),i=e("./c-nv-pic-pr-xform");t.exports=class extends n{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new i}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,r){"use strict";const n=e("./base-cell-anchor-xform"),o=e("../static-xform"),i=e("./cell-position-xform"),a=e("./ext-xform"),s=e("./pic-xform");t.exports=class extends n{constructor(){super(),this.map={"xdr:from":new i({tag:"xdr:from"}),"xdr:ext":new a({tag:"xdr:ext"}),"xdr:pic":new s,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../static-xform"),i=e("./blip-fill-xform"),a=e("./nv-pic-pr-xform"),s=e("./sp-pr");t.exports=class extends n{constructor(){super(),this.map={"xdr:nvPicPr":new a,"xdr:blipFill":new i,"xdr:spPr":new o(s)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,r){"use strict";t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,r){"use strict";const n=e("./base-cell-anchor-xform"),o=e("../static-xform"),i=e("./cell-position-xform"),a=e("./pic-xform");t.exports=class extends n{constructor(){super(),this.map={"xdr:from":new i({tag:"xdr:from"}),"xdr:to":new i({tag:"xdr:to"}),"xdr:pic":new a,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,r){"use strict";const n=e("./base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const{childXform:r}=this;e&&e.forEach(((e,n)=>{t.index=n,r.prepare(e,t)}))}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const{childXform:r}=this;(t||[]).forEach(((t,n)=>{r.render(e,t,n)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){const{childXform:r}=this;e.forEach((e=>{r.reconcile(e,t)}))}}}},{"./base-xform":32}],72:[function(e,t,r){"use strict";const n=e("../../../utils/col-cache"),o=e("../base-xform");t.exports=class extends o{get tag(){return"autoFilter"}render(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{const r=function(e){return"string"==typeof e?e:n.getAddress(e.row,e.column).address},o=r(t.from),i=r(t.to);o&&i&&e.leafNode("autoFilter",{ref:`${o}:${i}`})}}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,r){"use strict";const n=e("../../../utils/utils"),o=e("../base-xform"),i=e("../../../doc/range"),a=e("../../../doc/enums"),s=e("../strings/rich-text-xform");function l(e){if(null==e)return a.ValueType.Null;if(e instanceof String||"string"==typeof e)return a.ValueType.String;if("number"==typeof e)return a.ValueType.Number;if("boolean"==typeof e)return a.ValueType.Boolean;if(e instanceof Date)return a.ValueType.Date;if(e.text&&e.hyperlink)return a.ValueType.Hyperlink;if(e.formula)return a.ValueType.Formula;if(e.error)return a.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends o{constructor(){super(),this.richTextXForm=new s}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},function(e){return e.type===a.ValueType.Formula?l(e.result):e.type}(e));switch(r&&(e.styleId=r),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case a.ValueType.String:case a.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case a.ValueType.Date:t.date1904&&(e.date1904=!0);break;case a.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case a.ValueType.Merge:t.merges.add(e);break;case a.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r)throw new Error("Shared Formula master must exist above and or left of clone for cell "+e.address);void 0===r.si?(r.shareType="shared",r.si=t.siFormulae++,r.range=new i(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:void 0!==t.si&&(r={t:"shared",si:t.si})}switch(l(t.result)){case a.ValueType.Null:e.leafNode("f",r,t.formula);break;case a.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case a.ValueType.Number:e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case a.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result?1:0);break;case a.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result.error);break;case a.ValueType.Date:e.leafNode("f",r,t.formula),e.leafNode("v",null,n.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==a.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case a.ValueType.Null:break;case a.ValueType.Number:e.leafNode("v",null,t.value);break;case a.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case a.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case a.ValueType.String:case a.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach((t=>{this.richTextXForm.render(e,t)})),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case a.ValueType.Date:e.leafNode("v",null,n.dateToExcel(t.value,t.date1904));break;case a.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case a.ValueType.Formula:this.renderFormula(e,t);case a.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType)e.type=a.ValueType.Formula,e.value&&("str"===this.t?e.result=n.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=a.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=a.ValueType.String,e.value=n.xmlDecode(e.value);break;case"inlineStr":e.type=a.ValueType.String;break;case"b":e.type=a.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=a.ValueType.Error,e.value={error:e.value};break;default:e.type=a.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=a.ValueType.Null:e.type=a.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}reconcile(e,t){const r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(r&&(e.style=r),void 0!==e.styleId&&(e.styleId=void 0),e.type){case a.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=a.ValueType.RichText);break;case a.ValueType.Number:r&&n.isDateFmt(r.numFmt)&&(e.type=a.ValueType.Date,e.value=n.excelToDate(e.value,t.date1904));break;case a.ValueType.Formula:void 0!==e.result&&r&&n.isDateFmt(r.numFmt)&&(e.result=n.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}const o=t.hyperlinkMap[e.address];o&&(e.type===a.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=a.ValueType.Hyperlink,e.hyperlink=o);const i=t.commentsMap&&t.commentsMap[e.address];i&&(e.comment=i)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){let{attributes:t}=e;this.model={iconSet:t.iconSet,iconId:n.toIntValue(t.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,r){"use strict";const{v4:n}=e("uuid"),o=e("../../base-xform"),i=e("../../composite-xform"),a=e("./databar-ext-xform"),s=e("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class c extends i{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new a,"x14:iconSet":this.iconSetXform=new s}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?a.isExt(e):!("iconSet"!==e.type||!e.custom&&!l[e.iconSet])}prepare(e){c.isExt(e)&&(e.x14Id=`{${n()}}`.toUpperCase())}render(e,t){if(c.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${n()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{type:t.type,x14Id:t.id,priority:o.toIntValue(t.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=c},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,r){"use strict";const n=e("../../composite-xform"),o=e("./f-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){"xm:f"===e&&(this.model.value=t.model?parseFloat(t.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,r){"use strict";const n=e("../../composite-xform"),o=e("./sqref-ext-xform"),i=e("./cf-rule-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new i}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach((e=>{this.cfRule.prepare(e,t)}))}render(e,t){t.rules.some(i.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(i.isExt).forEach((t=>this.cfRule.render(e,t))),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,r){"use strict";const n=e("../../composite-xform"),o=e("./cf-rule-ext-xform"),i=e("./conditional-formatting-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new i}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some((e=>e.rules.some(o.isExt)))),e.hasExtContent}prepare(e,t){e.forEach((e=>{this.cfXform.prepare(e,t)}))}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach((t=>this.cfXform.render(e,t))),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,r){"use strict";const n=e("../../base-xform"),o=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-ext-xform");t.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:borderColor":this.borderColorXform=new i("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new i("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new i("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new i("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:n.toIntAttribute(t.minLength,0,!0),maxLength:n.toIntAttribute(t.maxLength,100,!0),border:n.toBoolAttribute(t.border,!1),gradient:n.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(t.axisPosition,"auto"),direction:n.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],minLength:n.toIntValue(t.minLength,0),maxLength:n.toIntValue(t.maxLength,100),border:n.toBoolValue(t.border,!1),gradient:n.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(t.axisPosition,"auto"),direction:n.toStringValue(t.direction,"leftToRight")}}onParserClose(e,t){const[,r]=e.split(":");"cfvo"===r?this.model.cfvo.push(t.model):this.model[r]=t.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,r){"use strict";const n=e("../../base-xform"),o=e("../../composite-xform"),i=e("./cfvo-ext-xform"),a=e("./cf-icon-ext-xform");t.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new i,"x14:cfIcon":this.cfIconXform=new a}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0),custom:n.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),t.icons&&t.icons.forEach(((t,r)=>{t.iconId=r,this.cfIconXform.render(e,t)})),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],iconSet:n.toStringValue(t.iconSet,"3TrafficLights"),reverse:n.toBoolValue(t.reverse,!1),showValue:n.toBoolValue(t.showValue,!0)}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[r]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,r){"use strict";const n=e("../../base-xform"),o=e("../../composite-xform"),i=e("../../../../doc/range"),a=e("./databar-xform"),s=e("./ext-lst-ref-xform"),l=e("./formula-xform"),c=e("./color-scale-xform"),u=e("./icon-set-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},f=e=>{const{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}};class h extends o{constructor(){super(),this.map={dataBar:this.databarXform=new a,extLst:this.extLstRefXform=new s,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new c,iconSet:this.iconSetXform=new u}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!d[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach((t=>{this.formulaXform.render(e,t)})),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:n.toBoolAttribute(t.percent,!1),bottom:n.toBoolAttribute(t.bottom,!1),rank:n.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:n.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){h.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:n.toStringAttribute(t.operator,"containsText")});const r=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new i(e.ref),{tl:r}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${r})))`;case"containsBlanks":return`LEN(TRIM(${r}))=0`;case"notContainsBlanks":return`LEN(TRIM(${r}))>0`;case"containsErrors":return`ISERROR(${r})`;case"notContainsErrors":return`NOT(ISERROR(${r}))`;default:return}})(t);r&&this.formulaXform.render(e,r),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const r=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new i(e.ref),{tl:r}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${r},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${r},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${r},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${r},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${r},1)=TODAY()-1`;case"today":return`FLOOR(${r},1)=TODAY()`;case"tomorrow":return`FLOOR(${r},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${r},1)<=6,FLOOR(${r},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0-1)),YEAR(${r})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${r})=MONTH(TODAY()),YEAR(${r})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0+1)),YEAR(${r})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);r&&this.formulaXform.render(e,r),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{...f(t),dxfId:n.toIntValue(t.dxfId),priority:n.toIntValue(t.priority),timePeriod:t.timePeriod,percent:n.toBoolValue(t.percent),bottom:n.toBoolValue(t.bottom),rank:n.toIntValue(t.rank),aboveAverage:n.toBoolValue(t.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:n.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,r){"use strict";const n=e("../../composite-xform"),o=e("../../style/color-xform"),i=e("./cfvo-xform");t.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new i,color:this.colorXform=new o}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),t.color.forEach((t=>{this.colorXform.render(e,t)})),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,r){"use strict";const n=e("../../composite-xform"),o=e("./cf-rule-xform");t.exports=class extends n{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(o.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach((r=>{o.isPrimitive(r)&&(r.ref=t.ref,this.map.cfRule.render(e,r))})),e.closeNode())}createNewModel(e){let{attributes:t}=e;return{ref:t.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,r){"use strict";const n=e("../../base-xform"),o=e("./conditional-formatting-xform");t.exports=class extends n{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce(((e,t)=>Math.max(e,...t.rules.map((e=>e.priority||0)))),1);e.forEach((e=>{e.rules.forEach((e=>{e.priority||(e.priority=r++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))}))}))}render(e,t){t.forEach((t=>{this.cfXform.render(e,t)}))}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}reconcile(e,t){e.forEach((e=>{e.rules.forEach((e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)}))}))}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,r){"use strict";const n=e("../../composite-xform"),o=e("../../style/color-xform"),i=e("./cfvo-xform");t.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new i,color:this.colorXform=new o}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,r){"use strict";const n=e("../../base-xform"),o=e("../../composite-xform");class i extends n{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class a extends o{constructor(){super(),this.map={"x14:id":this.idXform=new i}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends o{constructor(){super(),this.map={ext:new a}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,r){"use strict";const n=e("../../base-xform"),o=e("../../composite-xform"),i=e("./cfvo-xform");t.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new i}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{iconSet:n.toStringValue(t.iconSet,"3TrafficLights"),reverse:n.toBoolValue(t.reverse),showValue:n.toBoolValue(t.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,r){"use strict";const n=e("../../../utils/utils"),o=e("../base-xform");t.exports=class extends o{get tag(){return"col"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{});r&&(e.styleId=r)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){if("col"===e.name){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),n.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),n.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),n.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../../../utils/utils"),i=e("../../../utils/col-cache"),a=e("../base-xform"),s=e("../../../doc/range");function l(e,t,r,n){const o=t[r];void 0!==o?e[r]=o:void 0!==n&&(e[r]=n)}function c(e,t,r,n){const i=t[r];void 0!==i?e[r]=o.parseBoolean(i):void 0!==n&&(e[r]=n)}t.exports=class extends a{get tag(){return"dataValidations"}render(e,t){const r=function(e){const t=n.map(e,((e,t)=>({address:t,dataValidation:e,marked:!1}))).sort(((e,t)=>n.strcmp(e.address,t.address))),r=n.keyBy(t,"address"),o=(t,r,o)=>{for(let a=0;a<r;a++){const r=i.encodeAddress(t.row+a,o);if(!e[r]||!n.isEqual(e[t.address],e[r]))return!1}return!0};return t.map((t=>{if(!t.marked){const a=i.decodeEx(t.address);if(a.dimensions)return r[a.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let s=1,l=i.encodeAddress(a.row+s,a.col);for(;e[l]&&n.isEqual(t.dataValidation,e[l]);)s++,l=i.encodeAddress(a.row+s,a.col);let c=1;for(;o(a,s,a.col+c);)c++;for(let e=0;e<s;e++)for(let t=0;t<c;t++)l=i.encodeAddress(a.row+e,a.col+t),r[l].marked=!0;if(s>1||c>1){const e=a.row+(s-1),r=a.col+(c-1);return{...t.dataValidation,sqref:`${t.address}:${i.encodeAddress(e,r)}`}}return{...t.dataValidation,sqref:t.address}}return null})).filter(Boolean)}(t);r.length&&(e.openNode("dataValidations",{count:r.length}),r.forEach((t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach(((r,n)=>{e.openNode("formula"+(n+1)),"date"===t.type?e.writeText(o.dateToExcel(new Date(r))):e.writeText(r),e.closeNode()})),e.closeNode()})),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&c(t,e.attributes,"allowBlank"),c(t,e.attributes,"showInputMessage"),c(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:l(t,e.attributes,"operator","between")}return l(t,e.attributes,"promptTitle"),l(t,e.attributes,"prompt"),l(t,e.attributes,"errorStyle"),l(t,e.attributes,"errorTitle"),l(t,e.attributes,"error"),this._dataValidation=t,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach((e=>{e.includes(":")?new s(e).forEachAddress((e=>{this.model[e]=this._dataValidation})):this.model[e]=this._dataValidation})),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=o.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,r){"use strict";const n=e("../composite-xform"),o=e("./cf-ext/conditional-formattings-ext-xform");class i extends n{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends n{constructor(){super(),this.map={ext:this.ext=new i}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),r=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),r=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),r=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),r=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),r=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),r=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),r=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),r=!0),r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../../../doc/range"),i=e("../../../utils/col-cache"),a=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new o(t)}}get mergeCells(){return n.map(this.merges,(e=>e.range))}reconcile(e,t){n.each(e,(e=>{const r=i.decode(e);for(let e=r.top;e<=r.bottom;e++){const n=t[e-1];for(let t=r.left;t<=r.right;t++){const o=n.cells[t-1];o?o.type===a.ValueType.Merge&&(o.master=r.tl):n.cells[t]={type:a.ValueType.Null,address:i.encodeAddress(e,t)}}}}))}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e=>void 0!==e;t.exports=class extends n{get tag(){return"outlinePr"}render(e,t){return!(!t||!o(t.summaryBelow)&&!o(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:o(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:o(t.summaryRight)?Number(t.summaryRight):void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:o(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:o(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../base-xform");t.exports=class extends o{get tag(){return"pageMargins"}render(e,t){if(t){const r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../base-xform");function i(e){return e?"1":void 0}function a(e){if("overThenDown"===e)return e}function s(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function l(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}t.exports=class extends o{get tag(){return"pageSetup"}render(e,t){if(t){const r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:a(t.pageOrder),blackAndWhite:i(t.blackAndWhite),draft:i(t.draft),cellComments:s(t.cellComments),errors:l(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:i(t.firstPageNumber),usePrinterDefaults:i(t.usePrinterDefaults),copies:t.copies};n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../base-xform");function i(e){return e?"1":void 0}t.exports=class extends o{get tag(){return"printOptions"}render(e,t){if(t){const r={headings:i(t.showRowColHeaders),gridLines:i(t.showGridLines),horizontalCentered:i(t.horizontalCentered),verticalCentered:i(t.verticalCentered)};n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,r){"use strict";const n=e("./page-breaks-xform"),o=e("../list-xform");t.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new n})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const{childXform:r}=this;t.forEach((t=>{r.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../../../utils/utils"),i=e("./cell-xform");t.exports=class extends n{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new i}}get tag(){return"row"}prepare(e,t){const r=t.styles.addStyleModel(e.style);r&&(e.styleId=r);const n=this.map.c;e.cells.forEach((e=>{n.prepare(e,t)}))}render(e,t,r){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const n=this.map.c;t.cells.forEach((t=>{n.render(e,t,r)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map((e=>parseInt(e,10))):[void 0,void 0],r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(r.styleId=parseInt(e.attributes.s,10)),o.parseBoolean(e.attributes.hidden)&&(r.hidden=!0),o.parseBoolean(e.attributes.bestFit)&&(r.bestFit=!0),e.attributes.ht&&(r.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(r.outlineLevel=parseInt(e.attributes.outlineLevel,10)),o.parseBoolean(e.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const r=this.map.c;e.cells.forEach((e=>{r.reconcile(e,t)}))}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../base-xform");t.exports=class extends o{get tag(){return"sheetFormatPr"}render(e,t){if(t){const r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(r.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(r.customHeight="1"),n.some(r,(e=>void 0!==e))&&e.leafNode("sheetFormatPr",r)}}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../style/color-xform"),i=e("./page-setup-properties-xform"),a=e("./outline-properties-xform");t.exports=class extends n{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new i,outlinePr:new a}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback(),e.openNode("sheetPr");let r=!1;r=this.map.tabColor.render(e,t.tabColor)||r,r=this.map.pageSetUpPr.render(e,t.pageSetup)||r,r=this.map.outlinePr.render(e,t.outlineProperties)||r,r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../base-xform");function i(e,t){return e?t:void 0}function a(e,t){return e===t||void 0}t.exports=class extends o{get tag(){return"sheetProtection"}render(e,t){if(t){const r={sheet:i(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:i(t.formatCells,"0"),formatColumns:i(t.formatColumns,"0"),formatRows:i(t.formatRows,"0"),insertColumns:i(t.insertColumns,"0"),insertRows:i(t.insertRows,"0"),insertHyperlinks:i(t.insertHyperlinks,"0"),deleteColumns:i(t.deleteColumns,"0"),deleteRows:i(t.deleteRows,"0"),sort:i(t.sort,"0"),autoFilter:i(t.autoFilter,"0"),pivotTables:i(t.pivotTables,"0")};t.sheet&&(r.algorithmName=t.algorithmName,r.hashValue=t.hashValue,r.saltValue=t.saltValue,r.spinCount=t.spinCount,r.objects=i(!1===t.objects,"1"),r.scenarios=i(!1===t.scenarios,"1")),n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={sheet:a(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:a(e.attributes.formatCells,"0"),formatColumns:a(e.attributes.formatColumns,"0"),formatRows:a(e.attributes.formatRows,"0"),insertColumns:a(e.attributes.insertColumns,"0"),insertRows:a(e.attributes.insertRows,"0"),insertHyperlinks:a(e.attributes.insertHyperlinks,"0"),deleteColumns:a(e.attributes.deleteColumns,"0"),deleteRows:a(e.attributes.deleteRows,"0"),sort:a(e.attributes.sort,"0"),autoFilter:a(e.attributes.autoFilter,"0"),pivotTables:a(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,r){"use strict";const n=e("../../../utils/col-cache"),o=e("../base-xform"),i={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends o{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const r=function(t,r,n){n&&e.addAttribute(t,r)};let o,i,a,s;switch(r("rightToLeft","1",!0===t.rightToLeft),r("tabSelected","1",t.tabSelected),r("showRuler","0",!1===t.showRuler),r("showRowColHeaders","0",!1===t.showRowColHeaders),r("showGridLines","0",!1===t.showGridLines),r("zoomScale",t.zoomScale,t.zoomScale),r("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),r("view",t.style,t.style),t.state){case"frozen":i=t.xSplit||0,a=t.ySplit||0,o=t.topLeftCell||n.getAddress(a+1,i+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:o,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":{const t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,r;return"sheetView"!==e||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:i[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),a=e("../../rel-type"),s=e("./merges"),l=e("../base-xform"),c=e("../list-xform"),u=e("./row-xform"),d=e("./col-xform"),f=e("./dimension-xform"),h=e("./hyperlink-xform"),p=e("./merge-cell-xform"),m=e("./data-validations-xform"),g=e("./sheet-properties-xform"),v=e("./sheet-format-properties-xform"),b=e("./sheet-view-xform"),y=e("./sheet-protection-xform"),w=e("./page-margins-xform"),x=e("./page-setup-xform"),S=e("./print-options-xform"),C=e("./auto-filter-xform"),k=e("./picture-xform"),E=e("./drawing-xform"),O=e("./table-part-xform"),A=e("./row-breaks-xform"),T=e("./header-footer-xform"),j=e("./cf/conditional-formattings-xform"),P=e("./ext-lst-xform");class M extends l{constructor(e){super();const{maxRows:t,maxCols:r,ignoreNodes:n}=e||{};this.ignoreNodes=n||[],this.map={sheetPr:new g,dimension:new f,sheetViews:new c({tag:"sheetViews",count:!1,childXform:new b}),sheetFormatPr:new v,cols:new c({tag:"cols",count:!1,childXform:new d}),sheetData:new c({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:r}),maxItems:t}),autoFilter:new C,mergeCells:new c({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new A,hyperlinks:new c({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new w,dataValidations:new m,pageSetup:new x,headerFooter:new T,printOptions:new S,picture:new k,drawing:new E,sheetProtection:new y,tableParts:new c({tag:"tableParts",count:!0,childXform:new O}),conditionalFormatting:new j,extLst:new P}}prepare(e,t){t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function n(e){return"rId"+(e.length+1)}if(e.hyperlinks.forEach((e=>{const t=n(r);e.rId=t,r.push({Id:t,Type:a.Hyperlink,Target:e.target,TargetMode:"External"})})),e.comments.length>0){const i={Id:n(r),Type:a.Comments,Target:`../comments${e.id}.xml`};r.push(i);const s={Id:n(r),Type:a.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(s),e.comments.forEach((e=>{e.refAddress=o.decodeAddress(e.ref)})),t.commentRefs.push({commentName:"comments"+e.id,vmlDrawing:"vmlDrawing"+e.id})}const i=[];let l;e.media.forEach((o=>{if("background"===o.type){const i=n(r);l=t.media[o.imageId],r.push({Id:i,Type:a.Image,Target:`../media/${l.name}.${l.extension}`}),e.background={rId:i},e.image=t.media[o.imageId]}else if("image"===o.type){let{drawing:s}=e;l=t.media[o.imageId],s||(s=e.drawing={rId:n(r),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(s),r.push({Id:s.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${s.name}.xml`}));let c=this.preImageId===o.imageId?i[o.imageId]:i[s.rels.length];c||(c=n(s.rels),i[s.rels.length]=c,s.rels.push({Id:c,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${l.name}.${l.extension}`}));const u={picture:{rId:c},range:o.range};if(o.hyperlinks&&o.hyperlinks.hyperlink){const e=n(s.rels);i[s.rels.length]=e,u.picture.hyperlinks={tooltip:o.hyperlinks.tooltip,rId:e},s.rels.push({Id:e,Type:a.Hyperlink,Target:o.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=o.imageId,s.anchors.push(u)}})),e.tables.forEach((e=>{const o=n(r);e.rId=o,r.push({Id:o,Type:a.Table,Target:"../tables/"+e.target}),e.columns.forEach((e=>{const{style:r}=e;r&&(e.dxfId=t.styles.addDxfStyle(r))}))})),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(i.StdDocAttributes),e.openNode("worksheet",M.WORKSHEET_ATTRIBUTES);const r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(r.defaultColWidth=t.properties.defaultColWidth);const n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},o=t.pageSetup&&t.pageSetup.margins,s={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},l=t.sheetProtection;this.map.sheetPr.render(e,n),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,l),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,s),this.map.pageMargins.render(e,o),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach((t=>{t.Type===a.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(n.each(this.map,(e=>{e.reset()})),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},r=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),n=((e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;const r={},n={};return e.forEach((e=>{r[e.ref]=e,e.rules.forEach((e=>{const{x14Id:t}=e;t&&(n[t]=e)}))})),t.forEach((t=>{t.rules.forEach((o=>{const i=n[o.x14Id];i?((e,t)=>{Object.keys(t).forEach((r=>{const n=e[r],o=t[r];void 0===n&&void 0!==o&&(e[r]=o)}))})(i,o):r[t.ref]?r[t.ref].rules.push(o):e.push({ref:t.ref,rules:[o]})}))})),e})(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:n},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(e,t){const r=(e.relationships||[]).reduce(((r,n)=>{if(r[n.Id]=n,n.Type===a.Comments&&(e.comments=t.comments[n.Target].comments),n.Type===a.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[n.Target].comments;e.comments.forEach(((e,t)=>{e.note=Object.assign({},e.note,r[t])}))}return r}),{});if(t.commentsMap=(e.comments||[]).reduce(((e,t)=>(t.ref&&(e[t.ref]=t),e)),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce(((e,t)=>(t.rId&&(e[t.address]=r[t.rId].Target),e)),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const n=r[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){const r=n[1];t.drawings[r].anchors.forEach((t=>{if(t.medium){const r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}}))}}const n=e.background&&r[e.background.rId];if(n){const r=n.Target.split("/media/")[1],o=t.mediaIndex&&t.mediaIndex[r];void 0!==o&&e.media.push({type:"background",imageId:o})}e.tables=(e.tables||[]).map((e=>{const n=r[e.rId];return t.tables[n.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}M.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=M},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,r){"use strict";const n=e("./base-xform"),o=e("../../utils/xml-stream");t.exports=class extends n{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new o;!function e(t,r){t.openNode(r.tag,r.$),r.c&&r.c.forEach((r=>{e(t,r)})),r.t&&t.writeText(r.t),t.closeNode()}(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){return e!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,r){"use strict";const n=e("./text-xform"),o=e("./rich-text-xform"),i=e("../base-xform");t.exports=class extends i{constructor(){super(),this.map={r:new o,t:new n}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r}=this.map;t.richText.forEach((t=>{r.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,r){"use strict";const n=e("./text-xform"),o=e("../style/font-xform"),i=e("../base-xform");class a extends i{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new n)}get fontXform(){return this._fontXform||(this._fontXform=new o(a.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}a.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=a},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,r){"use strict";const n=e("./text-xform"),o=e("./rich-text-xform"),i=e("./phonetic-text-xform"),a=e("../base-xform");t.exports=class extends a{constructor(e){super(),this.model=e,this.map={r:new o,t:new n,rPh:new i}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach((t=>{this.map.r.render(e,t)})):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("./shared-string-xform");t.exports=class extends o{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new i)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){const t=this.sharedStringXform.toXml(e);let r=this.rich[t];return void 0===r&&(r=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,r}render(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach((t=>{r.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}parseOpen(e){return"t"===e.name&&(this._text=[],!0)}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,r){"use strict";const n=e("../../../doc/enums"),o=e("../../../utils/utils"),i=e("../base-xform"),a={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(((e,t)=>(e[t]=!0,e)),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(((e,t)=>(e[t]=!0,e)),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation:e=>"vertical"===e||(e=o.validInt(e))>=-90&&e<=90?e:void 0,indent:e=>(e=o.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},s={toXml(e){if(e=a.textRotation(e)){if("vertical"===e)return 255;const t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){const t=o.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=class extends i{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let r=!1;function n(t,n){n&&(e.addAttribute(t,n),r=!0)}n("horizontal",a.horizontal(t.horizontal)),n("vertical",a.vertical(t.vertical)),n("wrapText",!!a.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!a.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",a.indent(t.indent)),n("textRotation",s.toXml(t.textRotation)),n("readingOrder",a.readingOrder(t.readingOrder)),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={};let r=!1;function n(e,n,o){e&&(t[n]=o,r=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",o.parseBoolean(e.attributes.wrapText)),n(e.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(e.attributes.shrinkToFit)),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",s.toModel(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=r?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../../../utils/utils"),i=e("./color-xform");class a extends n{constructor(e){super(),this.name=e,this.map={color:new i}}get tag(){return this.name}render(e,t,r){const n=t&&t.color||r||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),n&&this.map.color.render(e,n)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return a.validStyleValues[e]}}a.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(((e,t)=>(e[t]=!0,e)),{}),t.exports=class extends n{constructor(){super(),this.map={top:new a("top"),left:new a("left"),bottom:new a("bottom"),right:new a("right"),diagonal:new a("diagonal")}}render(e,t){const{color:r}=t;function n(n,o){n&&!n.color&&t.color&&(n={...n,color:t.color}),o.render(e,n,r)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),n(t.left,this.map.left),n(t.right,this.map.right),n(t.top,this.map.top),n(t.bottom,this.map.bottom),n(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=o.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,r,n){r&&(n&&Object.assign(r,n),e[t]=r)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./alignment-xform"),i=e("./border-xform"),a=e("./fill-xform"),s=e("./font-xform"),l=e("./numfmt-xform"),c=e("./protection-xform");t.exports=class extends n{constructor(){super(),this.map={alignment:new o,border:new i,fill:new a,font:new s,numFmt:new l,protection:new c}}get tag(){return"dxf"}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){const r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./color-xform");class i extends n{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class a extends n{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class s extends n{constructor(){super(),this.map={stop:new i}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const r=this.map.stop;t.stops.forEach((t=>{r.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":{const t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends n{constructor(){super(),this.map={patternFill:new a,gradientFill:new s}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return l.validPatternValues[e]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(((e,t)=>(e[t]=!0,e)),{}),l.StopXform=i,l.PatternFillXform=a,l.GradientFillXform=s,t.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,r){"use strict";const n=e("./color-xform"),o=e("../simple/boolean-xform"),i=e("../simple/integer-xform"),a=e("../simple/string-xform"),s=e("./underline-xform"),l=e("../../../utils/under-dash"),c=e("../base-xform");class u extends c{constructor(e){super(),this.options=e||u.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new s},charset:{prop:"charset",xform:new i({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new i({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new a({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new a({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new i({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new a({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:r}=this;e.openNode(this.options.tagName),l.each(this.map,((n,o)=>{r[o].xform.render(e,t[n.prop])})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}u.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=u},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),o=e("../../defaultnumformats"),i=e("../base-xform"),a=function(){const e={};return n.each(o,((t,r)=>{t.f&&(e[t.f]=parseInt(r,10))})),e}();class s extends i{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}s.getDefaultFmtId=function(e){return a[e]},s.getDefaultFmtCode=function(e){return o[e]&&o[e].f},t.exports=s},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,r){"use strict";const n=e("../base-xform"),o=(e,t)=>void 0===e?t:e;t.exports=class extends n{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let r=!1;function n(t,n){void 0!==n&&(e.addAttribute(t,n),r=!0)}n("locked",o(t.locked,!0)?void 0:"0"),n("hidden",o(t.hidden,!1)?"1":void 0),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},r=!t.locked||t.hidden;this.model=r?t:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./alignment-xform"),i=e("./protection-xform");t.exports=class extends n{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new o,protection:new i}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,r){"use strict";const n=e("../../../doc/enums"),o=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../static-xform"),s=e("../list-xform"),l=e("./font-xform"),c=e("./fill-xform"),u=e("./border-xform"),d=e("./numfmt-xform"),f=e("./style-xform"),h=e("./dxf-xform");class p extends i{constructor(e){super(),this.map={numFmts:new s({tag:"numFmts",count:!0,childXform:new d}),fonts:new s({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new s({tag:"fills",count:!0,childXform:new c}),borders:new s({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new s({tag:"cellStyleXfs",count:!0,childXform:new f}),cellXfs:new s({tag:"cellXfs",count:!0,childXform:new f({xfId:!0})}),dxfs:new s({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new d,font:new l,fill:new c,border:new u,style:new f({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},e&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(e,t){t=t||this.model,e.openXml(o.StdDocAttributes),e.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach((t=>{e.writeXml(t)})),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach((t=>{e.writeXml(t)})),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach((t=>{e.writeXml(t)})),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach((t=>{e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach((t=>{e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),p.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),p.STATIC_XFORMS.tableStyles.render(e),p.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach((t=>{e[t.id]=t.formatCode}))}return!1}return!0}addStyleModel(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);const r={};if(t=t||n.ValueType.Number,e.numFmt)r.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case n.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(r.fontId=this._addFont(e.font)),e.border&&(r.borderId=this._addBorder(e.border)),e.fill&&(r.fillId=this._addFill(e.fill)),e.alignment&&(r.alignment=e.alignment),e.protection&&(r.protection=e.protection);const o=this._addStyle(r);return this.weakMap&&this.weakMap.set(e,o),o}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(r)return r;if(r=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||d.getDefaultFmtCode(t.numFmtId);e&&(r.numFmt=e)}function n(e,t,n){if(n||0===n){const o=t[n];o&&(r[e]=o)}}return n("font",this.model.fonts,t.fontId),n("border",this.model.borders,t.borderId),n("fill",this.model.fills,t.fillId),t.alignment&&(r.alignment=t.alignment),t.protection&&(r.protection=t.protection),r}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let r=this.index.style[t];return void 0===r&&(r=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),r}_addNumFmtStr(e){let t=d.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;const r=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(r),t}_addFont(e){const t=this.map.font.toXml(e);let r=this.index.font[t];return void 0===r&&(r=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),r}_addBorder(e){const t=this.map.border.toXml(e);let r=this.index.border[t];return void 0===r&&(r=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),r}_addFill(e){const t=this.map.fill.toXml(e);let r=this.index.fill[t];return void 0===r&&(r=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),r}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new a({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new a({tag:"dxfs",$:{count:0}}),tableStyles:new a({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new a({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){return t===n.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:d.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},t.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,r){"use strict";const n=e("../base-xform");class o extends n{constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{const r=o.Attributes[t];r&&e.leafNode("u",r)}}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=o},{"../base-xform":32}],137:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("./filter-column-xform");t.exports=class extends n{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach(((e,t)=>{this.map.filterColumn.prepare(e,{index:t})}))}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach((t=>{this.map.filterColumn.render(e,t)})),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,r){"use strict";const n=e("../base-xform"),o=e("../list-xform"),i=e("./custom-filter-xform"),a=e("./filter-xform");t.exports=class extends n{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new i}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new a})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:t}=e;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("../list-xform"),a=e("./auto-filter-xform"),s=e("./table-column-xform"),l=e("./table-style-info-xform");class c extends o{constructor(){super(),this.map={autoFilter:new a,tableColumns:new i({tag:"tableColumns",count:!0,empty:!0,childXform:new s}),tableStyleInfo:new l}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,{...c.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{name:t,attributes:r}=e;return t===this.tag?(this.reset(),this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:"1"===r.totalsRowCount,headerRow:"1"===r.headerRowCount}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(((e,t)=>{this.model.columns[t].filterButton=e.filterButton}))),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(e,t){e.columns.forEach((e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))}))}}c.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,r){(function(r,n){(function(){"use strict";const o=e("fs"),i=e("jszip"),{PassThrough:a}=e("readable-stream"),s=e("../utils/zip-stream"),l=e("../utils/stream-buf"),c=e("../utils/utils"),u=e("../utils/xml-stream"),{bufferToString:d}=e("../utils/browser-buffer-decode"),f=e("./xform/style/styles-xform"),h=e("./xform/core/core-xform"),p=e("./xform/strings/shared-strings-xform"),m=e("./xform/core/relationships-xform"),g=e("./xform/core/content-types-xform"),v=e("./xform/core/app-xform"),b=e("./xform/book/workbook-xform"),y=e("./xform/sheet/worksheet-xform"),w=e("./xform/drawing/drawing-xform"),x=e("./xform/table/table-xform"),S=e("./xform/comment/comments-xform"),C=e("./xform/comment/vml-notes-xform"),k=e("./xml/theme1");class E{constructor(e){this.workbook=e}async readFile(e,t){if(!await c.fs.exists(e))throw new Error("File not found: "+e);const r=o.createReadStream(e);try{const e=await this.read(r,t);return r.close(),e}catch(e){throw r.close(),e}}parseRels(e){return(new m).parseStream(e)}parseWorkbook(e){return(new b).parseStream(e)}parseSharedStrings(e){return(new p).parseStream(e)}reconcile(e,t){const r=new b,n=new y(t),o=new w,i=new x;r.reconcile(e);const a={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((t=>{const r=e.drawings[t],n=e.drawingRels[t];n&&(a.rels=n.reduce(((e,t)=>(e[t.Id]=t,e)),{}),(r.anchors||[]).forEach((e=>{const t=e.picture&&e.picture.hyperlinks;t&&a.rels[t.rId]&&(t.hyperlink=a.rels[t.rId].Target,delete t.rId)})),o.reconcile(r,a))}));const s={styles:e.styles};Object.values(e.tables).forEach((e=>{i.reconcile(e,s)}));const l={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((t=>{t.relationships=e.worksheetRels[t.sheetNo],n.reconcile(t,l)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,r,n,o){const i=new y(n),a=await i.parseStream(e);a.sheetNo=r,t.worksheetHash[o]=a,t.worksheets.push(a)}async _processCommentEntry(e,t,r){const n=new S,o=await n.parseStream(e);t.comments[`../${r}.xml`]=o}async _processTableEntry(e,t,r){const n=new x,o=await n.parseStream(e);t.tables[`../tables/${r}.xml`]=o}async _processWorksheetRelsEntry(e,t,r){const n=new m,o=await n.parseStream(e);t.worksheetRels[r]=o}async _processMediaEntry(e,t,r){const n=r.lastIndexOf(".");if(n>=1){const o=r.substr(n+1),i=r.substr(0,n);await new Promise(((n,a)=>{const s=new l;s.on("finish",(()=>{t.mediaIndex[r]=t.media.length,t.mediaIndex[i]=t.media.length;const e={type:"image",name:i,extension:o,buffer:s.toBuffer()};t.media.push(e),n()})),e.on("error",(e=>{a(e)})),e.pipe(s)}))}}async _processDrawingEntry(e,t,r){const n=new w,o=await n.parseStream(e);t.drawings[r]=o}async _processDrawingRelsEntry(e,t,r){const n=new m,o=await n.parseStream(e);t.drawingRels[r]=o}async _processVmlDrawingEntry(e,t,r){const n=new C,o=await n.parseStream(e);t.vmlDrawings[`../drawings/${r}.vml`]=o}async _processThemeEntry(e,t,r){await new Promise(((n,o)=>{const i=new l;e.on("error",o),i.on("error",o),i.on("finish",(()=>{t.themes[r]=i.read().toString(),n()})),e.pipe(i)}))}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new a));const r=[];for await(const t of e)r.push(t);return this.load(n.concat(r),t)}async load(e,t){let o;o=t&&t.base64?n.from(e.toString(),"base64"):e;const s={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},l=await i.loadAsync(o);for(const e of Object.values(l.files))if(!e.dir){let n,o=e.name;if("/"===o[0]&&(o=o.substr(1)),o.match(/xl\/media\//)||o.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))n=new a,n.write(await e.async("nodebuffer"));else{let t;n=new a({writableObjectMode:!0,readableObjectMode:!0}),t=r.browser?d(await e.async("nodebuffer")):await e.async("string");const o=16384;for(let e=0;e<t.length;e+=o)n.write(t.substring(e,e+o))}switch(n.end(),o){case"_rels/.rels":s.globalRels=await this.parseRels(n);break;case"xl/workbook.xml":{const e=await this.parseWorkbook(n);s.sheets=e.sheets,s.definedNames=e.definedNames,s.views=e.views,s.properties=e.properties,s.calcProperties=e.calcProperties;break}case"xl/_rels/workbook.xml.rels":s.workbookRels=await this.parseRels(n);break;case"xl/sharedStrings.xml":s.sharedStrings=new p,await s.sharedStrings.parseStream(n);break;case"xl/styles.xml":s.styles=new f,await s.styles.parseStream(n);break;case"docProps/app.xml":{const e=new v,t=await e.parseStream(n);s.company=t.company,s.manager=t.manager;break}case"docProps/core.xml":{const e=new h,t=await e.parseStream(n);Object.assign(s,t);break}default:{let e=o.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(n,s,e[1],t,o);break}if(e=o.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),e){await this._processWorksheetRelsEntry(n,s,e[1]);break}if(e=o.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),e){await this._processThemeEntry(n,s,e[1]);break}if(e=o.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),e){await this._processMediaEntry(n,s,e[1]);break}if(e=o.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),e){await this._processDrawingEntry(n,s,e[1]);break}if(e=o.match(/xl\/(comments\d+)[.]xml/),e){await this._processCommentEntry(n,s,e[1]);break}if(e=o.match(/xl\/tables\/(table\d+)[.]xml/),e){await this._processTableEntry(n,s,e[1]);break}if(e=o.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),e){await this._processDrawingRelsEntry(n,s,e[1]);break}if(e=o.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),e){await this._processVmlDrawingEntry(n,s,e[1]);break}}}}return this.reconcile(s,t),this.workbook.model=s,this.workbook}async addMedia(e,t){await Promise.all(t.media.map((async t=>{if("image"===t.type){const r=`xl/media/${t.name}.${t.extension}`;if(t.filename){const n=await function(e){return new Promise(((t,r)=>{o.readFile(e,undefined,((e,n)=>{e?r(e):t(n)}))}))}(t.filename);return e.append(n,{name:r})}if(t.buffer)return e.append(t.buffer,{name:r});if(t.base64){const n=t.base64,o=n.substring(n.indexOf(",")+1);return e.append(o,{name:r,base64:!0})}}throw new Error("Unsupported media")})))}addDrawings(e,t){const r=new w,n=new m;t.worksheets.forEach((t=>{const{drawing:o}=t;if(o){r.prepare(o,{});let t=r.toXml(o);e.append(t,{name:`xl/drawings/${o.name}.xml`}),t=n.toXml(o.rels),e.append(t,{name:`xl/drawings/_rels/${o.name}.xml.rels`})}}))}addTables(e,t){const r=new x;t.worksheets.forEach((t=>{const{tables:n}=t;n.forEach((t=>{r.prepare(t,{});const n=r.toXml(t);e.append(n,{name:"xl/tables/"+t.target})}))}))}async addContentTypes(e,t){const r=(new g).toXml(t);e.append(r,{name:"[Content_Types].xml"})}async addApp(e,t){const r=(new v).toXml(t);e.append(r,{name:"docProps/app.xml"})}async addCore(e,t){const r=new h;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:k};Object.keys(r).forEach((t=>{const n=r[t],o=`xl/theme/${t}.xml`;e.append(n,{name:o})}))}async addOfficeRels(e){const t=(new m).toXml([{Id:"rId1",Type:E.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:E.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:E.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const n=[{Id:"rId"+r++,Type:E.RelType.Styles,Target:"styles.xml"},{Id:"rId"+r++,Type:E.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&n.push({Id:"rId"+r++,Type:E.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach((e=>{e.rId="rId"+r++,n.push({Id:e.rId,Type:E.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}));const o=(new m).toXml(n);e.append(o,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){const{xml:r}=t.styles;r&&e.append(r,{name:"xl/styles.xml"})}async addWorkbook(e,t){const r=new b;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new y,n=new m,o=new S,i=new C;t.worksheets.forEach((t=>{let a=new u;r.render(a,t),e.append(a.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(a=new u,n.render(a,t.rels),e.append(a.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(a=new u,o.render(a,t),e.append(a.xml,{name:`xl/comments${t.id}.xml`}),a=new u,i.render(a,t),e.append(a.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))}))}_finalize(e){return new Promise(((t,r)=>{e.on("finish",(()=>{t(this)})),e.on("error",r),e.finalize()}))}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new p,e.styles=e.useStyles?new f(!0):new f.Mock;const r=new b,n=new y;r.prepare(e);const o={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};o.drawings=e.drawings=[],o.commentRefs=e.commentRefs=[];let i=0;e.tables=[],e.worksheets.forEach((t=>{t.tables.forEach((t=>{i++,t.target=`table${i}.xml`,t.id=i,e.tables.push(t)})),n.prepare(t,o)}))}async write(e,t){t=t||{};const{model:r}=this.workbook,n=new s.ZipWriter(t.zip);return n.pipe(e),this.prepareModel(r,t),await this.addContentTypes(n,r),await this.addOfficeRels(n,r),await this.addWorkbookRels(n,r),await this.addWorksheets(n,r),await this.addSharedStrings(n,r),await this.addDrawings(n,r),await this.addTables(n,r),await Promise.all([this.addThemes(n,r),this.addStyles(n,r)]),await this.addMedia(n,r),await Promise.all([this.addApp(n,r),this.addCore(n,r)]),await this.addWorkbook(n,r),this._finalize(n)}writeFile(e,t){const r=o.createWriteStream(e);return new Promise(((e,n)=>{r.on("finish",(()=>{e()})),r.on("error",(e=>{n(e)})),this.write(r,t).then((()=>{r.end()})).catch((e=>{n(e)}))}))}async writeBuffer(e){const t=new l;return await this.write(t,e),t.read()}}E.RelType=e("./rel-type"),t.exports=E}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,r){"use strict";t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],146:[function(e,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvFormatterStream=void 0;const n=e("stream"),o=e("./formatter");class i extends n.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new o.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,r,n){let o=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,((e,r)=>e?(o=!0,n(e)):(r&&r.forEach((e=>{this.push(t.from(e,"utf8"))})),o=!0,n())))}catch(e){if(o)throw e;n(e)}}_flush(e){this.rowFormatter.finish(((r,n)=>r?e(r):(n&&n.forEach((e=>{this.push(t.from(e,"utf8"))})),e())))}}r.CsvFormatterStream=i}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FormatterOptions=void 0,r.FormatterOptions=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),void 0===(null==e?void 0:e.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==e?void 0:e.quote)?this.quote='"':!1===(null==e?void 0:e.quote)&&(this.quote=""),"string"!=typeof(null==e?void 0:e.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=e.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=void 0;const o=n(e("lodash.isboolean")),i=n(e("lodash.isnil")),a=n(e("lodash.escaperegexp"));r.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,null!==e.headers&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const t=`[${e.delimiter}${a.default(e.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(t)}set headers(e){this._headers=e}shouldQuote(e,t){const r=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return o.default(r)?r:Array.isArray(r)?r[e]:null!==this._headers&&r[this._headers[e]]}format(e,t,r){const n=(""+(i.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:o}=this;return""!==o.quote&&-1!==n.indexOf(o.quote)?this.quoteField(n.replace(this.REPLACE_REGEXP,o.escapedQuote)):-1!==n.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,r)?this.quoteField(n):n}quoteField(e){const{quote:t}=this.formatterOptions;return`${t}${e}${t}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.RowFormatter=void 0;const o=n(e("lodash.isfunction")),i=n(e("lodash.isequal")),a=e("./FieldFormatter"),s=e("../types");class l{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new a.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return l.isRowHashArray(e)?e.map((e=>e[0])):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return s.isSyncTransform(e)?(t,r)=>{let n=null;try{n=e(t)}catch(e){return r(e)}return r(null,n)}:(t,r)=>{e(t,r)}}set rowTransform(e){if(!o.default(e))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(e)}format(e,t){this.callTransformer(e,((r,n)=>{if(r)return t(r);if(!e)return t(null);const o=[];if(n){const{shouldFormatColumns:e,headers:t}=this.checkHeaders(n);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(o.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){const e=this.gatherColumns(n);o.push(this.formatColumns(e,!1))}}return t(null,o)}))}finish(e){const t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const t=l.gatherHeaders(e);return this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!i.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null}}gatherColumns(e){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(e)?l.isRowHashArray(e)?this.headers.map(((t,r)=>{const n=e[r];return n?n[1]:""})):l.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map(((t,r)=>e[r])):this.headers.map((t=>e[t]))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){const r=e.map(((e,r)=>this.fieldFormatter.format(e,r,t))).join(this.formatterOptions.delimiter),{rowCount:n}=this;return this.rowCount+=1,n?[this.formatterOptions.rowDelimiter,r].join(""):r}}r.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=r.RowFormatter=void 0;var n=e("./RowFormatter");Object.defineProperty(r,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var o=e("./FieldFormatter");Object.defineProperty(r,"FieldFormatter",{enumerable:!0,get:function(){return o.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,r){(function(t){(function(){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(r,"__esModule",{value:!0}),r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=r.FormatterOptions=r.CsvFormatterStream=void 0;const i=e("util"),a=e("stream"),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t}(e("fs")),l=e("./FormatterOptions"),c=e("./CsvFormatterStream");!function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}(e("./types"),r);var u=e("./CsvFormatterStream");Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return u.CsvFormatterStream}});var d=e("./FormatterOptions");Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}}),r.format=e=>new c.CsvFormatterStream(new l.FormatterOptions(e)),r.write=(e,t)=>{const n=r.format(t),o=i.promisify(((e,t)=>{n.write(e,void 0,t)}));return e.reduce(((e,t)=>e.then((()=>o(t)))),Promise.resolve()).then((()=>n.end())).catch((e=>{n.emit("error",e)})),n},r.writeToStream=(e,t,n)=>r.write(t,n).pipe(e),r.writeToBuffer=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],i=new a.Writable({write(e,t,r){o.push(e),r()}});return new Promise(((a,s)=>{i.on("error",s).on("finish",(()=>a(t.concat(o)))),r.write(e,n).pipe(i)}))},r.writeToString=(e,t)=>r.writeToBuffer(e,t).then((e=>e.toString())),r.writeToPath=(e,t,n)=>{const o=s.createWriteStream(e,{encoding:"utf8"});return r.write(t,n).pipe(o)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncTransform=void 0,r.isSyncTransform=e=>1===e.length},{}],153:[function(e,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=void 0;const n=e("string_decoder"),o=e("stream"),i=e("./transforms"),a=e("./parser");class s extends o.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new a.Parser(e),this.headerTransformer=new i.HeaderTransformer(e),this.decoder=new n.StringDecoder(e.encoding),this.rowTransformerValidator=new i.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return super.emit(e,...r)}_transform(e,t,r){if(this.hasHitRowLimit)return r();const n=s.wrapDoneCallback(r);try{const{lines:t}=this,r=t+this.decoder.write(e),o=this.parse(r,!0);return this.processRows(o,n)}catch(e){return n(e)}}_flush(e){const t=s.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{const e=this.lines+this.decoder.end(),r=this.parse(e,!1);return this.processRows(r,t)}catch(e){return t(e)}}parse(e,t){if(!e)return[];const{line:r,rows:n}=this.parser.parse(e,t);return this.lines=r,n}processRows(e,r){const n=e.length,o=i=>{const a=e=>e?r(e):i%100!=0?o(i+1):void t((()=>o(i+1)));if(this.checkAndEmitHeaders(),i>=n||this.hasHitRowLimit)return r();if(this.parsedLineCount+=1,this.shouldSkipLine)return a();const s=e[i];this.rowCount+=1,this.parsedRowCount+=1;const l=this.rowCount;return this.transformRow(s,((e,t)=>{if(e)return this.rowCount-=1,a(e);if(!t)return a(new Error("expected transform result"));if(t.isValid){if(t.row)return this.pushRow(t.row,a)}else this.emit("data-invalid",t.row,l,t.reason);return a()}))};o(0)}transformRow(e,t){try{this.headerTransformer.transform(e,((r,n)=>r?t(r):n?n.isValid?n.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(n.row,t):this.skipRow(t):(this.rowCount-=1,this.parsedRowCount-=1,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(new Error("Expected result from header transform"))))}catch(e){t(e)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}static wrapDoneCallback(e){let t=!1;return function(r){if(r){if(t)throw r;return t=!0,void e(r)}for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];e(...o)}}}r.CsvParserStream=s}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ParserOptions=void 0;const o=n(e("lodash.escaperegexp")),i=n(e("lodash.isnil"));r.ParserOptions=class{constructor(e){var t;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,e||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=o.default(this.delimiter),this.escapeChar=null!==(t=this.escape)&&void 0!==t?t:this.quote,this.supportsComments=!i.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(r,"__esModule",{value:!0}),r.parseString=r.parseFile=r.parseStream=r.parse=r.ParserOptions=r.CsvParserStream=void 0;const i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t}(e("fs")),a=e("stream"),s=e("./ParserOptions"),l=e("./CsvParserStream");!function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}(e("./types"),r);var c=e("./CsvParserStream");Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return c.CsvParserStream}});var u=e("./ParserOptions");Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return u.ParserOptions}}),r.parse=e=>new l.CsvParserStream(new s.ParserOptions(e)),r.parseStream=(e,t)=>e.pipe(new l.CsvParserStream(new s.ParserOptions(t))),r.parseFile=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.createReadStream(e).pipe(new l.CsvParserStream(new s.ParserOptions(t)))},r.parseString=(e,t)=>{const r=new a.Readable;return r.push(e),r.push(null),r.pipe(new l.CsvParserStream(new s.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0;const n=e("./Scanner"),o=e("./RowParser"),i=e("./Token");class a{constructor(e){this.parserOptions=e,this.rowParser=new o.RowParser(this.parserOptions)}static removeBOM(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}parse(e,t){const r=new n.Scanner({line:a.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t});return this.parserOptions.supportsComments?this.parseWithComments(r):this.parseWithoutComments(r)}parseWithoutComments(e){const t=[];let r=!0;for(;r;)r=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){const{parserOptions:t}=this,r=[];for(let n=e.nextCharacterToken;null!==n;n=e.nextCharacterToken)if(i.Token.isTokenComment(n,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:r};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:r};e.truncateToCursor()}else if(!this.parseRow(e,r))break;return{line:e.line,rows:r}}parseRow(e,t){if(!e.nextNonSpaceToken)return!1;const r=this.rowParser.parse(e);return null!==r&&(this.parserOptions.ignoreEmpty&&o.RowParser.isEmptyRow(r)||t.push(r),!0)}}r.Parser=a},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RowParser=void 0;const n=e("./column"),o=e("./Token");r.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new n.ColumnParser(e)}static isEmptyRow(e){return""===e.join("").replace(/\s+/g,"")}parse(e){const{parserOptions:t}=this,{hasMoreData:r}=e,n=e,i=[];let a=this.getStartToken(n,i);for(;a;){if(o.Token.isTokenRowDelimiter(a))return n.advancePastToken(a),!n.hasMoreCharacters&&o.Token.isTokenCarriageReturn(a,t)&&r?null:(n.truncateToCursor(),i);if(!this.shouldSkipColumnParse(n,a,i)){const e=this.columnParser.parse(n);if(null===e)return null;i.push(e)}a=n.nextNonSpaceToken}return r?null:(n.truncateToCursor(),i)}getStartToken(e,t){const r=e.nextNonSpaceToken;return null!==r&&o.Token.isTokenDelimiter(r,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):r}shouldSkipColumnParse(e,t,r){const{parserOptions:n}=this;if(o.Token.isTokenDelimiter(t,n)){e.advancePastToken(t);const i=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==i&&o.Token.isTokenRowDelimiter(i))return r.push(""),!0;if(null!==i&&o.Token.isTokenDelimiter(i,n))return r.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Scanner=void 0;const n=e("./Token"),o=/((?:\r\n)|\n|\r)/;r.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:e}=this,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;const r=t.exec(e);if(null==r)return null;const o=r[1],i=this.cursor+(r.index||0);return new n.Token({token:o,startCursor:i,endCursor:i+o.length-1})}get nextCharacterToken(){const{cursor:e,lineLength:t}=this;return t<=e?null:new n.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const e=o.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Token=void 0,r.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){const t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=void 0,r.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnParser=void 0;const n=e("./NonQuotedColumnParser"),o=e("./QuotedColumnParser"),i=e("../Token");r.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new o.QuotedColumnParser(e),this.nonQuotedColumnParser=new n.NonQuotedColumnParser(e)}parse(e){const{nextNonSpaceToken:t}=e;return null!==t&&i.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NonQuotedColumnParser=void 0;const n=e("./ColumnFormatter"),o=e("../Token");r.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new n.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const{parserOptions:t}=this,r=[];let n=e.nextCharacterToken;for(;n&&!o.Token.isTokenDelimiter(n,t)&&!o.Token.isTokenRowDelimiter(n);n=e.nextCharacterToken)r.push(n.token),e.advancePastToken(n);return this.columnFormatter.format(r.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=void 0;const n=e("./ColumnFormatter"),o=e("../Token");r.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new n.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const t=e.cursor,{foundClosingQuote:r,col:n}=this.gatherDataBetweenQuotes(e);if(!r){if(e.advanceTo(t),!e.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(e),n}gatherDataBetweenQuotes(e){const{parserOptions:t}=this;let r=!1,n=!1;const i=[];let a=e.nextCharacterToken;for(;!n&&null!==a;a=e.nextCharacterToken){const s=o.Token.isTokenQuote(a,t);if(!r&&s)r=!0;else if(r)if(o.Token.isTokenEscapeCharacter(a,t)){e.advancePastToken(a);const r=e.nextCharacterToken;null!==r&&(o.Token.isTokenQuote(r,t)||o.Token.isTokenEscapeCharacter(r,t))?(i.push(r.token),a=r):s?n=!0:i.push(a.token)}else s?n=!0:i.push(a.token);e.advancePastToken(a)}return{col:this.columnFormatter.format(i.join("")),foundClosingQuote:n}}checkForMalformedColumn(e){const{parserOptions:t}=this,{nextNonSpaceToken:r}=e;if(r){const n=o.Token.isTokenDelimiter(r,t),i=o.Token.isTokenRowDelimiter(r);if(!n&&!i){const n=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${r.token}'. at '${n}`)}e.advanceToToken(r)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=void 0;var n=e("./ColumnParser");Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var o=e("./NonQuotedColumnParser");Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}});var i=e("./QuotedColumnParser");Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return i.QuotedColumnParser}});var a=e("./ColumnFormatter");Object.defineProperty(r,"ColumnFormatter",{enumerable:!0,get:function(){return a.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=r.Token=r.Scanner=r.RowParser=r.Parser=void 0;var n=e("./Parser");Object.defineProperty(r,"Parser",{enumerable:!0,get:function(){return n.Parser}});var o=e("./RowParser");Object.defineProperty(r,"RowParser",{enumerable:!0,get:function(){return o.RowParser}});var i=e("./Scanner");Object.defineProperty(r,"Scanner",{enumerable:!0,get:function(){return i.Scanner}});var a=e("./Token");Object.defineProperty(r,"Token",{enumerable:!0,get:function(){return a.Token}});var s=e("./column");Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=void 0;const o=n(e("lodash.isundefined")),i=n(e("lodash.isfunction")),a=n(e("lodash.uniq")),s=n(e("lodash.groupby"));r.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,!0===e.headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):i.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:t}=this;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:t}=this;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const t={},{headers:r,headersLength:n}=this;for(let i=0;i<n;i+=1){const n=r[i];if(!o.default(n)){const r=e[i];o.default(r)?t[n]="":t[n]=r}}return t}setHeaders(e){var t;const r=e.filter((e=>!!e));if(a.default(r).length!==r.length){const e=s.default(r),t=Object.keys(e).filter((t=>e[t].length>1));throw new Error("Duplicate headers found "+JSON.stringify(t))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RowTransformerValidator=void 0;const n=function(e){return e&&e.__esModule?e:{default:e}}(e("lodash.isfunction")),o=e("../types");class i{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return o.isSyncTransform(e)?(t,r)=>{let n=null;try{n=e(t)}catch(e){return r(e)}return r(null,n)}:e}static createValidator(e){return o.isSyncValidate(e)?(t,r)=>{r(null,{row:t,isValid:e(t)})}:(t,r)=>{e(t,((e,n,o)=>e?r(e):r(null,n?{row:t,isValid:n,reason:o}:{row:t,isValid:!1,reason:o})))}}set rowTransform(e){if(!n.default(e))throw new TypeError("The transform should be a function");this._rowTransform=i.createTransform(e)}set rowValidator(e){if(!n.default(e))throw new TypeError("The validate should be a function");this._rowValidator=i.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,((e,r)=>e?t(e):r?this.callValidator(r,((e,n)=>e?t(e):n&&!n.isValid?t(null,{row:r,isValid:!1,reason:n.reason}):t(null,{row:r,isValid:!0}))):t(null,{row:null,isValid:!0})))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}r.RowTransformerValidator=i},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=r.RowTransformerValidator=void 0;var n=e("./RowTransformerValidator");Object.defineProperty(r,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var o=e("./HeaderTransformer");Object.defineProperty(r,"HeaderTransformer",{enumerable:!0,get:function(){return o.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncValidate=r.isSyncTransform=void 0,r.isSyncTransform=e=>1===e.length,r.isSyncValidate=e=>1===e.length},{}],170:[function(e,t,r){"use strict";const n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,r){"use strict";const n=e("./encoders"),o=e("./decoders"),i=e("inherits");function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return i(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(o[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,r){"use strict";const n=e("inherits"),o=e("../base/reporter").Reporter,i=e("safer-buffer").Buffer;function a(e,t){o.call(this,t),i.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=i.byteLength(e);else{if(!i.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,o),r.DecoderBuffer=a,a.isDecoderBuffer=function(e){return e instanceof a||"object"==typeof e&&i.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},a.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},a.prototype.restore=function(e){const t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=s,s.isEncoderBuffer=function(e){return e instanceof s||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=i.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):i.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,r){"use strict";const n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,r){"use strict";const n=e("../base/reporter").Reporter,o=e("../base/buffer").EncoderBuffer,i=e("../base/buffer").DecoderBuffer,a=e("minimalistic-assert"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(r){t[r]=e[r]}));const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;l.forEach((function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,o=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(e,n,r.any),e.isError(a))return a}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(n)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new i(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&a&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,o),o},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,o=!1;return Object.keys(r.choice).some((function(i){const a=e.save(),s=r.choice[i];try{const r=s._decode(e,t);if(e.isError(r))return!1;n={type:i,value:r},o=!0}catch(t){return e.restore(a),!1}return!0}),this),o?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const o=this._encodeValue(e,t,r);return void 0===o||this._skipDefault(o,t,r)?void 0:o},c.prototype._encodeValue=function(e,t,r){const o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);let i=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}let a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const o=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),o}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),r))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){const e=null!==o.implicit?o.implicit:o.tag,r=null===o.implicit?"universal":"context";null===e?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(e,s,r,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,r){"use strict";const n=e("inherits");function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}r.Reporter=o,o.prototype.isError=function(e){return e instanceof i},o.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},o.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof i;if(t=n?e:new i(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},o.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,r){"use strict";function n(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n(r.tag)},{}],177:[function(e,t,r){"use strict";const n=r;n._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t},n.der=e("./der")},{"./der":176}],178:[function(e,t,r){"use strict";const n=e("inherits"),o=e("bn.js"),i=e("../base/buffer").DecoderBuffer,a=e("../base/node"),s=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function u(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const n=s.tagClass[r>>6],o=!(32&r);if(31&~r)r&=31;else{let n=r;for(r=0;!(128&~n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}return{cls:n,primitive:o,tag:r,tagStr:s.tag[r]}}function d(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;const o=127&n;if(o>4)return e.error("length octect is too long");n=0;for(let t=0;t<o;t++){n<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;n|=t}return n}t.exports=l,l.prototype.decode=function(e,t){return i.isDecoderBuffer(e)||(e=new i(e,t)),this.tree._decode(e,t)},n(c,a),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;const n=e.save(),o=u(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(n),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){const n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let o=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==o)return e.skip(o,'Failed to match body of: "'+t+'"');const i=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(o=e.offset-i.offset,e.restore(i),e.skip(o,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){const r=u(e,t);if(e.isError(r))return r;const n=d(e,r.primitive,t);if(e.isError(n))return n;let o;if(o=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(o))return o;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){const o=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const i=r.decode(e,"der",n);if(e.isError(i)&&t)break;o.push(i)}return o},c.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){let n;const o=[];let i=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),i<<=7,i|=127&a,!(128&a)&&(o.push(i),i=0);128&a&&o.push(i);const s=o[0]/40|0,l=o[0]%40;if(n=r?o:[s,l].concat(o.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},c.prototype._decodeTime=function(e,t){const r=e.raw().toString();let n,o,i,a,s,l;if("gentime"===t)n=0|r.slice(0,4),o=0|r.slice(4,6),i=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),o=0|r.slice(2,4),i=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),l=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,o-1,i,a,s,l,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){const r=e.raw();let n=new o(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,r){"use strict";const n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,r){"use strict";const n=e("inherits"),o=e("safer-buffer").Buffer,i=e("./der");function a(e){i.call(this,e),this.enc="pem"}n(a,i),t.exports=a,a.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,l=-1;for(let e=0;e<r.length;e++){const t=r[e].match(a);if(null!==t&&t[2]===n){if(-1!==s){if("END"!==t[1])break;l=e;break}if("BEGIN"!==t[1])break;s=e}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+n);const c=r.slice(s+1,l).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const u=o.from(c,"base64");return i.prototype.decode.call(this,u,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,r){"use strict";const n=e("inherits"),o=e("safer-buffer").Buffer,i=e("../base/node"),a=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){i.call(this,"der",e)}function c(e){return e<10?"0"+e:e}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,i),l.prototype._encodeComposite=function(e,t,r,n){const i=function(e,t,r,n){let o;if("seqof"===e?e="seq":"setof"===e&&(e="set"),a.tagByName.hasOwnProperty(e))o=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);o=e}return o>=31?n.error("Multi-octet tag encoding unsupported"):(t||(o|=32),o|=a.tagClassByName[r||"universal"]<<6,o)}(e,t,r,this.reporter);if(n.length<128){const e=o.alloc(2);return e[0]=i,e[1]=n.length,this._createEncoderBuffer([e,n])}let s=1;for(let e=n.length;e>=256;e>>=8)s++;const l=o.alloc(2+s);l[0]=i,l[1]=128|s;for(let e=1+s,t=n.length;t>0;e--,t>>=8)l[e]=255&t;return this._createEncoderBuffer([l,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=o.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t<e.length;t++){let r=e[t];for(n++;r>=128;r>>=7)n++}const i=o.alloc(n);let a=i.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(i[a--]=127&r;(r>>=7)>0;)i[a--]=128|127&r}return this._createEncoderBuffer(i)},l.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=o.from(t)}if(o.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=o.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;const n=new Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){const n=this._baseState;let o;if(null===n.default)return!1;const i=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),i.length!==n.defaultBuffer.length)return!1;for(o=0;o<i.length;o++)if(i[o]!==n.defaultBuffer[o])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,r){"use strict";const n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,r){"use strict";const n=e("inherits"),o=e("./der");function i(e){o.call(this,e),this.enc="pem"}n(i,o),t.exports=i,i.prototype.encode=function(e,t){const r=o.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let e=0;e<r.length;e+=64)n.push(r.slice(e,e+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,r){"use strict";!function(t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var i;"object"==typeof t?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var o=0,i=Math.min(e.length,r),a=t;a<i;a++){var s=e.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===t?this._parseHex(e,o,n):(this._parseBase(e,t,o),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===n)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)o=s(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)o=s(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,s=Math.min(i,i-a)+r,c=0,u=r;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(o),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(o=0|e.words[p])*(i=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|i)).toString(16);n=0!=(i=s>>>24-o&16777215)||a!==this.length-1?c[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:c[f-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),i=n||Math.max(1,o);r(o<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(i),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[i-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return!(8191&t)&&(r+=13,t>>>=13),!(127&t)&&(r+=7,t>>>=7),!(15&t)&&(r+=4,t>>>=4),!(3&t)&&(r+=2,t>>>=2),!(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)i=(t=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<r.length;a++)i=(t=(0|r.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,o,i,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,x=y>>>13,S=0|a[4],C=8191&S,k=S>>>13,E=0|a[5],O=8191&E,A=E>>>13,T=0|a[6],j=8191&T,P=T>>>13,M=0|a[7],R=8191&M,_=M>>>13,I=0|a[8],N=8191&I,F=I>>>13,D=0|a[9],B=8191&D,L=D>>>13,z=0|s[0],H=8191&z,U=z>>>13,V=0|s[1],W=8191&V,G=V>>>13,q=0|s[2],K=8191&q,X=q>>>13,Y=0|s[3],$=8191&Y,Z=Y>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(d,H))|0)+((8191&(o=(o=Math.imul(d,U))+Math.imul(f,H)|0))<<13)|0;c=((i=Math.imul(f,U))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,H),o=(o=Math.imul(p,U))+Math.imul(m,H)|0,i=Math.imul(m,U);var ve=(c+(n=n+Math.imul(d,W)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(f,W)|0))<<13)|0;c=((i=i+Math.imul(f,G)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,H),o=(o=Math.imul(v,U))+Math.imul(b,H)|0,i=Math.imul(b,U),n=n+Math.imul(p,W)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,G)|0;var be=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(f,K)|0))<<13)|0;c=((i=i+Math.imul(f,X)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),o=(o=Math.imul(w,U))+Math.imul(x,H)|0,i=Math.imul(x,U),n=n+Math.imul(v,W)|0,o=(o=o+Math.imul(v,G)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,G)|0,n=n+Math.imul(p,K)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,X)|0;var ye=(c+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,Z)|0)+Math.imul(f,$)|0))<<13)|0;c=((i=i+Math.imul(f,Z)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(C,H),o=(o=Math.imul(C,U))+Math.imul(k,H)|0,i=Math.imul(k,U),n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,G)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,G)|0,n=n+Math.imul(v,K)|0,o=(o=o+Math.imul(v,X)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,X)|0,n=n+Math.imul(p,$)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(o=(o=o+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,H),o=(o=Math.imul(O,U))+Math.imul(A,H)|0,i=Math.imul(A,U),n=n+Math.imul(C,W)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(w,K)|0,o=(o=o+Math.imul(w,X)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,X)|0,n=n+Math.imul(v,$)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,J)|0,i=i+Math.imul(m,ee)|0;var xe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(o=(o=o+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((i=i+Math.imul(f,ne)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,H),o=(o=Math.imul(j,U))+Math.imul(P,H)|0,i=Math.imul(P,U),n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,G)|0,n=n+Math.imul(C,K)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(x,$)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(v,J)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(m,re)|0,i=i+Math.imul(m,ne)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(o=(o=o+Math.imul(d,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,H),o=(o=Math.imul(R,U))+Math.imul(_,H)|0,i=Math.imul(_,U),n=n+Math.imul(j,W)|0,o=(o=o+Math.imul(j,G)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(O,K)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(A,K)|0,i=i+Math.imul(A,X)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(w,J)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(x,J)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,o=(o=o+Math.imul(v,ne)|0)+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ce=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(o=(o=o+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,H),o=(o=Math.imul(N,U))+Math.imul(F,H)|0,i=Math.imul(F,U),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,G)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(j,K)|0,o=(o=o+Math.imul(j,X)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(A,$)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(x,re)|0,i=i+Math.imul(x,ne)|0,n=n+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,n=n+Math.imul(p,le)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,le)|0,i=i+Math.imul(m,ce)|0;var ke=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(o=(o=o+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,H),o=(o=Math.imul(B,U))+Math.imul(L,H)|0,i=Math.imul(L,U),n=n+Math.imul(N,W)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(F,W)|0,i=i+Math.imul(F,G)|0,n=n+Math.imul(R,K)|0,o=(o=o+Math.imul(R,X)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,X)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,Z)|0)+Math.imul(P,$)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(O,J)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(C,re)|0,o=(o=o+Math.imul(C,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,ae)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,ae)|0,n=n+Math.imul(v,le)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(b,le)|0,i=i+Math.imul(b,ce)|0,n=n+Math.imul(p,de)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,de)|0,i=i+Math.imul(m,fe)|0;var Ee=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(o=(o=o+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,W),o=(o=Math.imul(B,G))+Math.imul(L,W)|0,i=Math.imul(L,G),n=n+Math.imul(N,K)|0,o=(o=o+Math.imul(N,X)|0)+Math.imul(F,K)|0,i=i+Math.imul(F,X)|0,n=n+Math.imul(R,$)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(_,$)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(j,J)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ne)|0)+Math.imul(A,re)|0,i=i+Math.imul(A,ne)|0,n=n+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,n=n+Math.imul(w,le)|0,o=(o=o+Math.imul(w,ce)|0)+Math.imul(x,le)|0,i=i+Math.imul(x,ce)|0,n=n+Math.imul(v,de)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,fe)|0;var Oe=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,K),o=(o=Math.imul(B,X))+Math.imul(L,K)|0,i=Math.imul(L,X),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(F,$)|0,i=i+Math.imul(F,Z)|0,n=n+Math.imul(R,J)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(j,re)|0,o=(o=o+Math.imul(j,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,ae)|0,n=n+Math.imul(C,le)|0,o=(o=o+Math.imul(C,ce)|0)+Math.imul(k,le)|0,i=i+Math.imul(k,ce)|0,n=n+Math.imul(w,de)|0,o=(o=o+Math.imul(w,fe)|0)+Math.imul(x,de)|0,i=i+Math.imul(x,fe)|0;var Ae=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,$),o=(o=Math.imul(B,Z))+Math.imul(L,$)|0,i=Math.imul(L,Z),n=n+Math.imul(N,J)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(F,J)|0,i=i+Math.imul(F,ee)|0,n=n+Math.imul(R,re)|0,o=(o=o+Math.imul(R,ne)|0)+Math.imul(_,re)|0,i=i+Math.imul(_,ne)|0,n=n+Math.imul(j,ie)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,ae)|0,n=n+Math.imul(O,le)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(A,le)|0,i=i+Math.imul(A,ce)|0,n=n+Math.imul(C,de)|0,o=(o=o+Math.imul(C,fe)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,fe)|0;var Te=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((i=i+Math.imul(x,me)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,J),o=(o=Math.imul(B,ee))+Math.imul(L,J)|0,i=Math.imul(L,ee),n=n+Math.imul(N,re)|0,o=(o=o+Math.imul(N,ne)|0)+Math.imul(F,re)|0,i=i+Math.imul(F,ne)|0,n=n+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,ae)|0,n=n+Math.imul(j,le)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(P,le)|0,i=i+Math.imul(P,ce)|0,n=n+Math.imul(O,de)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(A,de)|0,i=i+Math.imul(A,fe)|0;var je=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),o=(o=Math.imul(B,ne))+Math.imul(L,re)|0,i=Math.imul(L,ne),n=n+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,ae)|0)+Math.imul(F,ie)|0,i=i+Math.imul(F,ae)|0,n=n+Math.imul(R,le)|0,o=(o=o+Math.imul(R,ce)|0)+Math.imul(_,le)|0,i=i+Math.imul(_,ce)|0,n=n+Math.imul(j,de)|0,o=(o=o+Math.imul(j,fe)|0)+Math.imul(P,de)|0,i=i+Math.imul(P,fe)|0;var Pe=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(A,pe)|0))<<13)|0;c=((i=i+Math.imul(A,me)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,ie),o=(o=Math.imul(B,ae))+Math.imul(L,ie)|0,i=Math.imul(L,ae),n=n+Math.imul(N,le)|0,o=(o=o+Math.imul(N,ce)|0)+Math.imul(F,le)|0,i=i+Math.imul(F,ce)|0,n=n+Math.imul(R,de)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(_,de)|0,i=i+Math.imul(_,fe)|0;var Me=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(o=(o=o+Math.imul(j,me)|0)+Math.imul(P,pe)|0))<<13)|0;c=((i=i+Math.imul(P,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,le),o=(o=Math.imul(B,ce))+Math.imul(L,le)|0,i=Math.imul(L,ce),n=n+Math.imul(N,de)|0,o=(o=o+Math.imul(N,fe)|0)+Math.imul(F,de)|0,i=i+Math.imul(F,fe)|0;var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((i=i+Math.imul(_,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,de),o=(o=Math.imul(B,fe))+Math.imul(L,de)|0,i=Math.imul(L,fe);var _e=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,me)|0)+Math.imul(F,pe)|0))<<13)|0;c=((i=i+Math.imul(F,me)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863;var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(o=(o=Math.imul(B,me))+Math.imul(L,pe)|0))<<13)|0;return c=((i=Math.imul(L,me))+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,l[0]=ge,l[1]=ve,l[2]=be,l[3]=ye,l[4]=we,l[5]=xe,l[6]=Se,l[7]=Ce,l[8]=ke,l[9]=Ee,l[10]=Oe,l[11]=Ae,l[12]=Te,l[13]=je,l[14]=Pe,l[15]=Me,l[16]=Re,l[17]=_e,l[18]=Ie,0!==c&&(l[19]=c,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,l=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=l;c++){var u=i-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a<i;a++)n[a]=t[e[a]],o[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<o;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=r[u+h],m=n[u+h],g=r[u+h+a],v=n[u+h+a],b=d*g-f*v;v=d*v+f*g,g=b,r[u+h]=p+g,n[u+h]=m+v,r[u+h+a]=p-g,n[u+h+a]=m-v,h!==s&&(b=l*d-c*f,f=l*f+c*d,d=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},m.prototype.convert13b=function(e,t,n,o){for(var i=0,a=0;a<t;a++)i+=0|e[a],n[2*a]=8191&i,i>>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<o;++a)n[a]=0;r(0===i),r(!(-8192&i))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,i,s,l,n,o),this.transform(c,i,u,d,n,o);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,i,n,o),this.conjugate(f,i,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),p(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var o=(0|this.words[n])*e,i=(67108863&o)+(67108863&t);t>>=26,t+=o/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=(e.words[n]&1<<o)>>>o}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,o=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this.strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,l=n;if(o-=a,o=Math.max(0,o),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=o);c--){var d=0|this.words[c];this.words[c]=u<<26-i|d>>>i,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<<t;return!(this.length<=n||!(this.words[n]&o))},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var o,i,a=e.length+n;this._expand(a);var s=0;for(o=0;o<e.length;o++){i=(0|this.words[o+n])+s;var l=(0|e.words[o])*t;s=((i-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&i}for(;o<this.length-n;o++)s=(i=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*t;this.words[n]=o/e|0,t=o%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var i=o,a=n;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(b,v),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,n=10;n<e.length;n++){var i=0|e.words[n];e.words[n-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,v),n(w,v),n(x,v),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return g[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(d,new o(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new C(e)},n(C,S),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],185:[function(e,t,r){"use strict";r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=l(e),a=n[0],s=n[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===s&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(c(e,a,a+16383>s?s:a+16383));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],186:[function(e,t,r){"use strict";!function(t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var i;"object"==typeof t?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,n,o){for(var i=0,a=0,s=Math.min(e.length,n),l=t;l<s;l++){var c=e.charCodeAt(l)-48;i*=o,a=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a<o,"Invalid character"),i+=a}return i}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===t?this._parseHex(e,o,n):(this._parseBase(e,t,o),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===n)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)o=s(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)o=s(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,s=Math.min(i,i-a)+r,c=0,u=r;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(o),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(o=0|e.words[p])*(i=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|i)).toString(16);i=s>>>24-o&16777215,(o+=2)>=26&&(o-=26,a--),n=0!==i||a!==this.length-1?d[6-l.length]+l+n:l+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],u=h[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){this._strip();var o=this.byteLength(),i=n||Math.max(1,o);r(o<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,o),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===i?(r<e.length&&(e[r++]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===i?(r>=0&&(e[r--]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return!(8191&t)&&(r+=13,t>>>=13),!(127&t)&&(r+=7,t>>>=7),!(15&t)&&(r+=4,t>>>=4),!(3&t)&&(r+=2,t>>>=2),!(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)i=(t=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<r.length;a++)i=(t=(0|r.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,o,i,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,x=y>>>13,S=0|a[4],C=8191&S,k=S>>>13,E=0|a[5],O=8191&E,A=E>>>13,T=0|a[6],j=8191&T,P=T>>>13,M=0|a[7],R=8191&M,_=M>>>13,I=0|a[8],N=8191&I,F=I>>>13,D=0|a[9],B=8191&D,L=D>>>13,z=0|s[0],H=8191&z,U=z>>>13,V=0|s[1],W=8191&V,G=V>>>13,q=0|s[2],K=8191&q,X=q>>>13,Y=0|s[3],$=8191&Y,Z=Y>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(d,H))|0)+((8191&(o=(o=Math.imul(d,U))+Math.imul(f,H)|0))<<13)|0;c=((i=Math.imul(f,U))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,H),o=(o=Math.imul(p,U))+Math.imul(m,H)|0,i=Math.imul(m,U);var ve=(c+(n=n+Math.imul(d,W)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(f,W)|0))<<13)|0;c=((i=i+Math.imul(f,G)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,H),o=(o=Math.imul(v,U))+Math.imul(b,H)|0,i=Math.imul(b,U),n=n+Math.imul(p,W)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,G)|0;var be=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(f,K)|0))<<13)|0;c=((i=i+Math.imul(f,X)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),o=(o=Math.imul(w,U))+Math.imul(x,H)|0,i=Math.imul(x,U),n=n+Math.imul(v,W)|0,o=(o=o+Math.imul(v,G)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,G)|0,n=n+Math.imul(p,K)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,X)|0;var ye=(c+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,Z)|0)+Math.imul(f,$)|0))<<13)|0;c=((i=i+Math.imul(f,Z)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(C,H),o=(o=Math.imul(C,U))+Math.imul(k,H)|0,i=Math.imul(k,U),n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,G)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,G)|0,n=n+Math.imul(v,K)|0,o=(o=o+Math.imul(v,X)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,X)|0,n=n+Math.imul(p,$)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(o=(o=o+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,H),o=(o=Math.imul(O,U))+Math.imul(A,H)|0,i=Math.imul(A,U),n=n+Math.imul(C,W)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(w,K)|0,o=(o=o+Math.imul(w,X)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,X)|0,n=n+Math.imul(v,$)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,J)|0,i=i+Math.imul(m,ee)|0;var xe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(o=(o=o+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((i=i+Math.imul(f,ne)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,H),o=(o=Math.imul(j,U))+Math.imul(P,H)|0,i=Math.imul(P,U),n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,G)|0,n=n+Math.imul(C,K)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(x,$)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(v,J)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(m,re)|0,i=i+Math.imul(m,ne)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(o=(o=o+Math.imul(d,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,H),o=(o=Math.imul(R,U))+Math.imul(_,H)|0,i=Math.imul(_,U),n=n+Math.imul(j,W)|0,o=(o=o+Math.imul(j,G)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(O,K)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(A,K)|0,i=i+Math.imul(A,X)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(w,J)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(x,J)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,o=(o=o+Math.imul(v,ne)|0)+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ce=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(o=(o=o+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,H),o=(o=Math.imul(N,U))+Math.imul(F,H)|0,i=Math.imul(F,U),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,G)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(j,K)|0,o=(o=o+Math.imul(j,X)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(A,$)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(x,re)|0,i=i+Math.imul(x,ne)|0,n=n+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,n=n+Math.imul(p,le)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,le)|0,i=i+Math.imul(m,ce)|0;var ke=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(o=(o=o+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,H),o=(o=Math.imul(B,U))+Math.imul(L,H)|0,i=Math.imul(L,U),n=n+Math.imul(N,W)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(F,W)|0,i=i+Math.imul(F,G)|0,n=n+Math.imul(R,K)|0,o=(o=o+Math.imul(R,X)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,X)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,Z)|0)+Math.imul(P,$)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(O,J)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(C,re)|0,o=(o=o+Math.imul(C,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,ae)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,ae)|0,n=n+Math.imul(v,le)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(b,le)|0,i=i+Math.imul(b,ce)|0,n=n+Math.imul(p,de)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,de)|0,i=i+Math.imul(m,fe)|0;var Ee=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(o=(o=o+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,W),o=(o=Math.imul(B,G))+Math.imul(L,W)|0,i=Math.imul(L,G),n=n+Math.imul(N,K)|0,o=(o=o+Math.imul(N,X)|0)+Math.imul(F,K)|0,i=i+Math.imul(F,X)|0,n=n+Math.imul(R,$)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(_,$)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(j,J)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ne)|0)+Math.imul(A,re)|0,i=i+Math.imul(A,ne)|0,n=n+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,n=n+Math.imul(w,le)|0,o=(o=o+Math.imul(w,ce)|0)+Math.imul(x,le)|0,i=i+Math.imul(x,ce)|0,n=n+Math.imul(v,de)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,fe)|0;var Oe=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,K),o=(o=Math.imul(B,X))+Math.imul(L,K)|0,i=Math.imul(L,X),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(F,$)|0,i=i+Math.imul(F,Z)|0,n=n+Math.imul(R,J)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(j,re)|0,o=(o=o+Math.imul(j,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,ae)|0,n=n+Math.imul(C,le)|0,o=(o=o+Math.imul(C,ce)|0)+Math.imul(k,le)|0,i=i+Math.imul(k,ce)|0,n=n+Math.imul(w,de)|0,o=(o=o+Math.imul(w,fe)|0)+Math.imul(x,de)|0,i=i+Math.imul(x,fe)|0;var Ae=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,$),o=(o=Math.imul(B,Z))+Math.imul(L,$)|0,i=Math.imul(L,Z),n=n+Math.imul(N,J)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(F,J)|0,i=i+Math.imul(F,ee)|0,n=n+Math.imul(R,re)|0,o=(o=o+Math.imul(R,ne)|0)+Math.imul(_,re)|0,i=i+Math.imul(_,ne)|0,n=n+Math.imul(j,ie)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,ae)|0,n=n+Math.imul(O,le)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(A,le)|0,i=i+Math.imul(A,ce)|0,n=n+Math.imul(C,de)|0,o=(o=o+Math.imul(C,fe)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,fe)|0;var Te=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((i=i+Math.imul(x,me)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,J),o=(o=Math.imul(B,ee))+Math.imul(L,J)|0,i=Math.imul(L,ee),n=n+Math.imul(N,re)|0,o=(o=o+Math.imul(N,ne)|0)+Math.imul(F,re)|0,i=i+Math.imul(F,ne)|0,n=n+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,ae)|0,n=n+Math.imul(j,le)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(P,le)|0,i=i+Math.imul(P,ce)|0,n=n+Math.imul(O,de)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(A,de)|0,i=i+Math.imul(A,fe)|0;var je=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),o=(o=Math.imul(B,ne))+Math.imul(L,re)|0,i=Math.imul(L,ne),n=n+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,ae)|0)+Math.imul(F,ie)|0,i=i+Math.imul(F,ae)|0,n=n+Math.imul(R,le)|0,o=(o=o+Math.imul(R,ce)|0)+Math.imul(_,le)|0,i=i+Math.imul(_,ce)|0,n=n+Math.imul(j,de)|0,o=(o=o+Math.imul(j,fe)|0)+Math.imul(P,de)|0,i=i+Math.imul(P,fe)|0;var Pe=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(A,pe)|0))<<13)|0;c=((i=i+Math.imul(A,me)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,ie),o=(o=Math.imul(B,ae))+Math.imul(L,ie)|0,i=Math.imul(L,ae),n=n+Math.imul(N,le)|0,o=(o=o+Math.imul(N,ce)|0)+Math.imul(F,le)|0,i=i+Math.imul(F,ce)|0,n=n+Math.imul(R,de)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(_,de)|0,i=i+Math.imul(_,fe)|0;var Me=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(o=(o=o+Math.imul(j,me)|0)+Math.imul(P,pe)|0))<<13)|0;c=((i=i+Math.imul(P,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,le),o=(o=Math.imul(B,ce))+Math.imul(L,le)|0,i=Math.imul(L,ce),n=n+Math.imul(N,de)|0,o=(o=o+Math.imul(N,fe)|0)+Math.imul(F,de)|0,i=i+Math.imul(F,fe)|0;var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((i=i+Math.imul(_,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,de),o=(o=Math.imul(B,fe))+Math.imul(L,de)|0,i=Math.imul(L,fe);var _e=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,me)|0)+Math.imul(F,pe)|0))<<13)|0;c=((i=i+Math.imul(F,me)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863;var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(o=(o=Math.imul(B,me))+Math.imul(L,pe)|0))<<13)|0;return c=((i=Math.imul(L,me))+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,l[0]=ge,l[1]=ve,l[2]=be,l[3]=ye,l[4]=we,l[5]=xe,l[6]=Se,l[7]=Ce,l[8]=ke,l[9]=Ee,l[10]=Oe,l[11]=Ae,l[12]=Te,l[13]=je,l[14]=Pe,l[15]=Me,l[16]=Re,l[17]=_e,l[18]=Ie,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,l=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=l;c++){var u=i-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return g(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(m=p),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?g(this,e,t):v(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a<i;a++)n[a]=t[e[a]],o[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<o;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=r[u+h],m=n[u+h],g=r[u+h+a],v=n[u+h+a],b=d*g-f*v;v=d*v+f*g,g=b,r[u+h]=p+g,n[u+h]=m+v,r[u+h+a]=p-g,n[u+h+a]=m-v,h!==s&&(b=l*d-c*f,f=l*f+c*d,d=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},b.prototype.convert13b=function(e,t,n,o){for(var i=0,a=0;a<t;a++)i+=0|e[a],n[2*a]=8191&i,i>>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<o;++a)n[a]=0;r(0===i),r(!(-8192&i))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,i,s,l,n,o),this.transform(c,i,u,d,n,o);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,i,n,o),this.conjugate(f,i,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,o=0;o<this.length;o++){var i=(0|this.words[o])*e,a=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=a>>>26,this.words[o]=67108863&a}return 0!==n&&(this.words[o]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=e.words[n]>>>o&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,o=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this._strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,l=n;if(o-=a,o=Math.max(0,o),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=o);c--){var d=0|this.words[c];this.words[c]=u<<26-i|d>>>i,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<<t;return!(this.length<=n||!(this.words[n]&o))},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var o,i,a=e.length+n;this._expand(a);var s=0;for(o=0;o<e.length;o++){i=(0|this.words[o+n])+s;var l=(0|e.words[o])*t;s=((i-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&i}for(;o<this.length-n;o++)s=(i=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&i;if(0===s)return this._strip();for(r(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,o=0,i=this.length-1;i>=0;i--)o=(n*o+(0|this.words[i]))%e;return t?-o:o},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*n;this.words[o]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var i=o,a=n;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(x,w),x.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,n=10;n<e.length;n++){var i=0|e.words[n];e.words[n-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(S,w),n(C,w),n(k,w),k.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new S;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return y[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(d,new o(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new O(e)},n(O,E),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],187:[function(e,t,r){"use strict";var n;function o(e){this.rand=e}if(t.exports=function(e){return n||(n=new o(null)),n.generate(e)},t.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=e("crypto");if("function"!=typeof i.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return i.randomBytes(e)}}catch(e){}},{crypto:188}],188:[function(e,t,r){},{}],189:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function o(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),o=0;o<t;o++)r[o]=e.readUInt32BE(4*o);return r}function i(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,o){for(var i,a,s,l,c=r[0],u=r[1],d=r[2],f=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,b=1;b<o;b++)i=c[h>>>24]^u[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],a=c[p>>>24]^u[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[v++],s=c[m>>>24]^u[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[v++],l=c[g>>>24]^u[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[v++],h=i,p=a,m=s,g=l;return i=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[v++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[v++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[v++],l=(n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[v++],[i>>>=0,a>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],o=[[],[],[],[]],i=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var u=e[a],d=e[u],f=e[d],h=257*e[c]^16843008*c;o[0][a]=h<<24|h>>>8,o[1][a]=h<<16|h>>>16,o[2][a]=h<<8|h>>>24,o[3][a]=h,h=16843009*f^65537*d^257*u^16843008*a,i[0][c]=h<<24|h>>>8,i[1][c]=h<<16|h>>>16,i[2][c]=h<<8|h>>>24,i[3][c]=h,0===a?a=s=1:(a=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:i}}();function c(e){this._key=o(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),o=[],i=0;i<t;i++)o[i]=e[i];for(i=t;i<n;i++){var a=o[i-1];i%t==0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[i/t|0]<<24):t>6&&i%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),o[i]=o[i-t]^a}for(var c=[],u=0;u<n;u++){var d=n-u,f=o[d-(u%4?0:4)];c[u]=u<4||d<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=r,this._keySchedule=o,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),i=n.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=c},{"safe-buffer":494}],190:[function(e,t,r){"use strict";var n=e("./aes"),o=e("safe-buffer").Buffer,i=e("cipher-base"),a=e("inherits"),s=e("./ghash"),l=e("buffer-xor"),c=e("./incr32");function u(e,t,r,a){i.call(this);var l=o.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),r=function(e,t,r){if(12===t.length)return e._finID=o.concat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var n=new s(r),i=t.length,a=i%16;n.update(t),a&&(a=16-a,n.update(o.alloc(a,0))),n.update(o.alloc(8,0));var l=8*i,u=o.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=o.from(e._finID);return c(d),d}(this,r,u),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(u,i),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=o.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),o=0;o<n;++o)r+=e[o]^t[o];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=u},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,r){"use strict";var n=e("./encrypter"),o=e("./decrypter"),i=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=o.createDecipher,r.createDecipheriv=r.Decipheriv=o.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(i)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,r){"use strict";var n=e("./authCipher"),o=e("safe-buffer").Buffer,i=e("./modes"),a=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=o.allocUnsafe(0)}function f(e,t,r){var s=i[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new u(s.module,t,r)}e("inherits")(u,s),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return o.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return f(e,n.key,n.iv)},r.createDecipheriv=f},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,r){"use strict";var n=e("./modes"),o=e("./authCipher"),i=e("safe-buffer").Buffer,a=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,r){s.call(this),this._cache=new f,this._cipher=new l.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}e("inherits")(u,s),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return i.concat(n)};var d=i.alloc(16,16);function f(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new o(s.module,t,r):new u(s.module,t,r)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return i.concat([this.cache,t])},r.createCipheriv=h,r.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var o=c(t,!1,r.key,r.iv);return h(e,o.key,o.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=n.alloc(16,0);function i(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],a=-1;++a<128;){for(!!(this.state[~~(a/8)]&1<<7-a%8)&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),r=!!(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=i(o)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,o],16)),this.ghash(i([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":494}],195:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],196:[function(e,t,r){"use strict";var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return n(o,r)}},{"buffer-xor":219}],197:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("buffer-xor");function i(e,t,r){var i=t.length,a=o(t,e._cache);return e._cache=e._cache.slice(i),e._prev=n.concat([e._prev,r?t:a]),a}r.encrypt=function(e,t,r){for(var o,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,i(e,t,r)]);break}o=e._cache.length,a=n.concat([a,i(e,t.slice(0,o),r)]),t=t.slice(o)}return a}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function o(e,t,r){for(var n,o,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(o=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=i(e._prev,r?n:o);return s}function i(e,t){var r=e.length,o=-1,i=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++o<r;)i[o]=e[o]<<1|e[o+1]>>7;return i}r.encrypt=function(e,t,r){for(var i=t.length,a=n.allocUnsafe(i),s=-1;++s<i;)a[s]=o(e,t[s],r);return a}},{"safe-buffer":494}],199:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function o(e,t,r){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:o])]),o}r.encrypt=function(e,t,r){for(var i=t.length,a=n.allocUnsafe(i),s=-1;++s<i;)a[s]=o(e,t[s],r);return a}},{"safe-buffer":494}],200:[function(e,t,r){"use strict";var n=e("buffer-xor"),o=e("safe-buffer").Buffer,i=e("../incr32");function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}r.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var l=a(e),c=i+16*s;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,r){"use strict";r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,r){"use strict";var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},o=e("./list.json");for(var i in o)o[i].module=n[o[i].mode];t.exports=o},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,r){(function(t){(function(){"use strict";var n=e("buffer-xor");function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,o(e)]);var i=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,i)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,r){"use strict";var n=e("./aes"),o=e("safe-buffer").Buffer,i=e("cipher-base");function a(e,t,r,a){i.call(this),this._cipher=new n.AES(t),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._mode=e}e("inherits")(a,i),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,r){"use strict";var n=e("browserify-des"),o=e("browserify-aes/browser"),i=e("browserify-aes/modes"),a=e("browserify-des/modes"),s=e("evp_bytestokey");function l(e,t,r){if(e=e.toLowerCase(),i[e])return o.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),i[e])return o.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),i[e])r=i[e].key,n=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var o=s(t,!1,r,n);return l(e,o.key,o.iv)},r.createCipheriv=r.Cipheriv=l,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),i[e])r=i[e].key,n=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var o=s(t,!1,r,n);return c(e,o.key,o.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,r){"use strict";var n=e("cipher-base"),o=e("des.js"),i=e("inherits"),a=e("safe-buffer").Buffer,s={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function l(e){n.call(this);var t,r=e.mode.toLowerCase(),o=s[r];t=e.decrypt?"decrypt":"encrypt";var i=e.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==r&&"des-ede-cbc"!==r||(i=a.concat([i,i.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=o.create({key:i,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=l,i(l,n),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,r){"use strict";r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,r){(function(r){(function(){"use strict";var n=e("bn.js"),o=e("randombytes");function i(e){var t,r=e.modulus.byteLength();do{t=new n(o(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,t){var o=function(e){var t=i(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),a=t.modulus.byteLength(),s=new n(e).mul(o.blinder).umod(t.modulus),l=s.toRed(n.mont(t.prime1)),c=s.toRed(n.mont(t.prime2)),u=t.coefficient,d=t.prime1,f=t.prime2,h=l.redPow(t.exponent1).fromRed(),p=c.redPow(t.exponent2).fromRed(),m=h.isub(p).imul(u).umod(d).imul(f);return p.iadd(m).imul(o.unblinder).umod(t.modulus).toArrayLike(r,"be",a)}a.getr=i,t.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,r){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("create-hash"),i=e("readable-stream"),a=e("inherits"),s=e("./sign"),l=e("./verify"),c=e("./algorithms.json");function u(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function h(e){return new d(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(u,i.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(d,i.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){"string"==typeof t&&(t=n.from(t,r)),this.end();var o=this._hash.digest();return l(t,o,e,this._signType,this._tag)},t.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("create-hmac"),i=e("browserify-rsa"),a=e("elliptic").ec,s=e("bn.js"),l=e("parse-asn1"),c=e("./curves.json");function u(e,t,r,i){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,l=function(e,t){e=(e=d(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var o=n.alloc(t.byteLength()-r.length);r=n.concat([o,r])}return r}(r,t),c=n.alloc(s);c.fill(1);var u=n.alloc(s);return u=o(i,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=o(i,u).update(c).digest(),{k:u=o(i,u).update(c).update(n.from([1])).update(e).update(l).digest(),v:c=o(i,u).update(c).digest()}}function d(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function f(e,t,r){var i,a;do{for(i=n.alloc(0);8*i.length<e.bitLength();)t.v=o(r,t.k).update(t.v).digest(),i=n.concat([i,t.v]);a=d(i,e),t.k=o(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=o(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}t.exports=function(e,t,r,o,p){var m=l(t);if(m.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var o=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(o.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==o)throw new Error("wrong private key type");return function(e,t,r){for(var o,i=t.params.priv_key,a=t.params.p,l=t.params.q,c=t.params.g,p=new s(0),m=d(e,l).mod(l),g=!1,v=u(i,l,e,r);!1===g;)p=h(c,o=f(l,v,r),a,l),0===(g=o.invm(l).imul(m.add(i.mul(p))).mod(l)).cmpn(0)&&(g=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,g)}(e,m,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=n.concat([p,e]);for(var g=m.modulus.byteLength(),v=[0,1];e.length+v.length+1<g;)v.push(255);v.push(0);for(var b=-1;++b<e.length;)v.push(e[b]);return i(v,m)},t.exports.getKey=u,t.exports.makeKey=f},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("bn.js"),i=e("elliptic").ec,a=e("parse-asn1"),s=e("./curves.json");function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,c,u){var d=a(r);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),a=r.data.subjectPrivateKey.data;return o.verify(t,e,a)}(e,t,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,s=r.data.g,c=r.data.pub_key,u=a.signature.decode(e,"der"),d=u.s,f=u.r;l(d,i),l(f,i);var h=o.mont(n),p=d.invm(i);return 0===s.toRed(h).redPow(new o(t).mul(p).mod(i)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(i)).fromRed()).mod(n).mod(i).cmp(f)}(e,t,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([u,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<f;)h.push(255),p++;h.push(0);for(var m=-1;++m<t.length;)h.push(t[m]);h=n.from(h);var g=o.mont(d.modulus);e=(e=new o(e).toRed(g)).redPow(new o(d.publicExponent)),e=n.from(e.fromRed().toArray());var v=p<8?1:0;for(f=Math.min(e.length,h.length),e.length!==h.length&&(v=1),m=-1;++m<f;)v|=e[m]^h[m];return 0===v}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,r){},{}],217:[function(e,t,r){"use strict";var n=e("buffer"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=a),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=a(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,r){(function(e){(function(){"use strict";t.exports=function(t,r){for(var n=Math.min(t.length,r.length),o=new e(n),i=0;i<n;++i)o[i]=t[i]^r[i];return o}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,r){(function(t){(function(){"use strict";var t=e("base64-js"),n=e("ieee754");function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=i.prototype,t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=o(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=i.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return i.from(n,t,r);var a=function(e){if(i.isBuffer(e)){var t=0|u(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||L(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),o(e<0?0:0|u(e))}function c(e){for(var t=e.length<0?0:0|u(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function u(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function d(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(o)return n?-1:N(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),L(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function g(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(L(s))return a;e[r+a]=s}return a}function v(e,t,r,n){return D(N(t,e.length-r),e,r,n)}function b(e,t,r,n){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return b(e,t,r,n)}function w(e,t,r,n){return D(F(t),e,r,n)}function x(e,t,r,n){return D(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function C(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=I(e[i]);return o}function A(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,o,i){return t=+t,r>>>=0,i||P(e,0,r,4),n.write(e,t,r,o,23,4),r+4}function R(e,t,r,o,i){return t=+t,r>>>=0,i||P(e,0,r,8),n.write(e,t,r,o,52,8),r+8}r.Buffer=i,r.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(e,t,r){return a(e,t,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(e,t,r){return function(e,t,r){return s(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},i.allocUnsafe=function(e){return l(e)},i.allocUnsafeSlow=function(e){return l(e)},i.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==i.prototype},i.compare=function(e,t){if(B(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=i.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(B(a,Uint8Array)&&(a=i.from(a)),!i.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},i.byteLength=d,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},i.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):f.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},i.prototype.compare=function(e,t,r,n,o){if(B(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),l=Math.min(a,s),c=this.slice(n,o),u=e.slice(t,r),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],s=u[d];break}return a<s?-1:s<a?1:0},i.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},i.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},i.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},i.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=i.prototype,n},i.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},i.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},i.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),n.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),n.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),n.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),n.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},i.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},i.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);j(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);j(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=o-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},i.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=i.isBuffer(e)?e:i.from(e,n),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=s[a%l]}return this};var _=/[^+/0-9A-Za-z-_]/g;function I(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function F(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function L(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("stream").Transform,i=e("string_decoder").StringDecoder;function a(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,o),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var o=this._update(e);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=a},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),o=e("../internals/try-to-string"),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,r){"use strict";var n=e("../internals/is-constructor"),o=e("../internals/try-to-string"),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),o=String,i=TypeError;t.exports=function(e){if("object"==typeof e||n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),o=e("../internals/object-create"),i=e("../internals/object-define-property").f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(e){s[a][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,r){"use strict";var n=e("../internals/object-is-prototype-of"),o=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,r){"use strict";var n=e("../internals/is-object"),o=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),o=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),a=function(e){return function(t,r,a){var s,l=n(t),c=i(l),u=o(a,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),o=e("../internals/function-uncurry-this"),i=e("../internals/indexed-object"),a=e("../internals/to-object"),s=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),c=o([].push),u=function(e){var t=1===e,r=2===e,o=3===e,u=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,m,g,v){for(var b,y,w=a(p),x=i(w),S=n(m,g),C=s(x),k=0,E=v||l,O=t?E(p,C):r||f?E(p,0):void 0;C>k;k++)if((h||k in x)&&(y=S(b=x[k],k,w),e))if(t)O[k]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:c(O,b)}else switch(e){case 4:return!1;case 7:c(O,b)}return d?-1:o||u?u:O}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,r){"use strict";var n=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),i=e("../internals/create-property"),a=Array,s=Math.max;t.exports=function(e,t,r){for(var l=o(e),c=n(t,l),u=n(void 0===r?l:r,l),d=a(s(u-c,0)),f=0;c<u;c++,f++)i(d,f,e[c]);return d.length=f,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,r){"use strict";var n=e("../internals/is-array"),o=e("../internals/is-constructor"),i=e("../internals/is-object"),a=e("../internals/well-known-symbol")("species"),s=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,r){"use strict";var n=e("../internals/array-species-constructor");t.exports=function(e,t){return new(n(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}t.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},{"../internals/well-known-symbol":357}],235:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=n({}.toString),i=n("".slice);t.exports=function(e){return i(o(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),o=e("../internals/is-callable"),i=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());t.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),o=e("../internals/own-keys"),i=e("../internals/object-get-own-property-descriptor"),a=e("../internals/object-define-property");t.exports=function(e,t,r){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":260}],240:[function(e,t,r){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,r){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,r){"use strict";var n=e("../internals/to-property-key"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,r){"use strict";var n=e("../internals/make-built-in"),o=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),o=e("../internals/object-define-property"),i=e("../internals/make-built-in"),a=e("../internals/define-global-property");t.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&i(r,c,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,r){"use strict";var n=e("../internals/global"),o=Object.defineProperty;t.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":260}],248:[function(e,t,r){"use strict";var n="object"==typeof document&&document.all,o=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:o}},{}],249:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/is-object"),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,r){"use strict";var n=e("../internals/engine-is-deno"),o=e("../internals/engine-is-node");t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,r){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":256}],254:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/classof-raw");t.exports="process"===o(n.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":256}],256:[function(e,t,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,r){"use strict";var n,o,i=e("../internals/global"),a=e("../internals/engine-user-agent"),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,i=e("../internals/create-non-enumerable-property"),a=e("../internals/define-built-in"),s=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,u,d,f,h,p=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(h=o(r,u))&&h.value:r[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(r,u,f,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,r){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],261:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-clause"),o=e("../internals/a-callable"),i=e("../internals/function-bind-native"),a=n(n.bind);t.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/has-own-property"),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/a-callable");t.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),o=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return o(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?function(e){return o(e)?e:void 0}(n[e]):n[e]&&n[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,r){"use strict";var n=e("../internals/classof"),o=e("../internals/get-method"),i=e("../internals/is-null-or-undefined"),a=e("../internals/iterators"),s=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,r){"use strict";var n=e("../internals/function-call"),o=e("../internals/a-callable"),i=e("../internals/an-object"),a=e("../internals/try-to-string"),s=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/is-array"),i=e("../internals/is-callable"),a=e("../internals/classof-raw"),s=e("../internals/to-string"),l=n([].push);t.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(r,s(c))}var u=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),o=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,n){(function(e){(function(){"use strict";var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/to-object"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,r){"use strict";t.exports={}},{}],277:[function(e,t,r){"use strict";t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},{}],278:[function(e,t,r){"use strict";var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/document-create-element");t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/fails"),i=e("../internals/classof-raw"),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/is-callable"),i=e("../internals/shared-store"),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,r){"use strict";var n,o,i,a=e("../internals/weak-map-basic-detection"),s=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),d=e("../internals/shared-store"),f=e("../internals/shared-key"),h=e("../internals/hidden-keys"),p=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new p("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=f("state");h[v]=!0,n=function(e,t){if(u(e,v))throw new p("Object already initialized");return t.facade=e,c(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}t.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),o=e("../internals/iterators"),i=n("iterator"),a=Array.prototype;t.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,r){"use strict";var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===n(e)}},{"../internals/classof-raw":235}],285:[function(e,t,r){"use strict";var n=e("../internals/document-all"),o=n.all;t.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/fails"),i=e("../internals/is-callable"),a=e("../internals/classof"),s=e("../internals/get-built-in"),l=e("../internals/inspect-source"),c=function(){},u=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=n(f.exec),p=!f.test(c),m=function(e){if(!i(e))return!1;try{return d(c,u,e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,l(e))}catch(e){return!0}};g.sham=!0,t.exports=!d||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,r){"use strict";var n=e("../internals/fails"),o=e("../internals/is-callable"),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===u||r!==c&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],289:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),o=e("../internals/document-all"),i=o.all;t.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,r){"use strict";t.exports=!1},{}],291:[function(e,t,r){"use strict";var n=e("../internals/is-object"),o=e("../internals/classof-raw"),i=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),o=e("../internals/is-callable"),i=e("../internals/object-is-prototype-of"),a=e("../internals/use-symbol-as-uid"),s=Object;t.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),o=e("../internals/function-call"),i=e("../internals/an-object"),a=e("../internals/try-to-string"),s=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),f=e("../internals/iterator-close"),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,r){var g,v,b,y,w,x,S,C=r&&r.that,k=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),T=n(t,C),j=function(e){return g&&f(g,"normal",e),new p(!0,e)},P=function(e){return k?(i(e),A?T(e[0],e[1],j):T(e[0],e[1])):A?T(e,j):T(e)};if(E)g=e.iterator;else if(O)g=e;else{if(!(v=d(e)))throw new h(a(e)+" is not iterable");if(s(v)){for(b=0,y=l(e);y>b;b++)if((w=P(e[b]))&&c(m,w))return w;return new p(!1)}g=u(e,v)}for(x=E?e.next:g.next;!(S=o(x,g)).done;){try{w=P(S.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,r){"use strict";var n=e("../internals/function-call"),o=e("../internals/an-object"),i=e("../internals/get-method");t.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,r){"use strict";var n=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),i=e("../internals/create-property-descriptor"),a=e("../internals/set-to-string-tag"),s=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),a(e,u,!1,!0),s[u]=l,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-call"),i=e("../internals/is-pure"),a=e("../internals/function-name"),s=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),c=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),h=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),m=e("../internals/iterators"),g=e("../internals/iterators-core"),v=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),S=function(){return this};t.exports=function(e,t,r,a,p,g,C){l(r,t,a);var k,E,O,A=function(e){if(e===p&&R)return R;if(!w&&e&&e in P)return P[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",j=!1,P=e.prototype,M=P[x]||P["@@iterator"]||p&&P[p],R=!w&&M||A(p),_="Array"===t&&P.entries||M;if(_&&(k=c(_.call(new e)))!==Object.prototype&&k.next&&(i||c(k)===y||(u?u(k,y):s(k[x])||h(k,x,S)),d(k,T,!0,!0),i&&(m[T]=S)),v&&"values"===p&&M&&"values"!==M.name&&(!i&&b?f(P,"name","values"):(j=!0,R=function(){return o(M,this)})),p)if(E={values:A("values"),keys:g?R:A("keys"),entries:A("entries")},C)for(O in E)(w||j||!(O in P))&&h(P,O,E[O]);else n({target:t,proto:!0,forced:w||j},E);return i&&!C||P[x]===R||h(P,x,R,{name:p}),m[t]=R,E}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,r){"use strict";var n,o,i,a=e("../internals/fails"),s=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),h=e("../internals/is-pure"),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[p].call(e)!==e}))?n={}:h&&(n=c(n)),s(n[p])||d(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,r){arguments[4][276][0].apply(r,arguments)},{dup:276}],299:[function(e,t,r){"use strict";var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":343}],300:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/fails"),i=e("../internals/is-callable"),a=e("../internals/has-own-property"),s=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),d=u.enforce,f=u.get,h=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),b=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=t.exports=function(e,t,r){"Symbol("===m(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&a(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,r){"use strict";var n=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?o:n)(t)}},{}],302:[function(e,t,r){"use strict";var n,o,i,a,s,l=e("../internals/global"),c=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,f=e("../internals/queue"),h=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),m=e("../internals/engine-is-webos-webkit"),g=e("../internals/engine-is-node"),v=l.MutationObserver||l.WebKitMutationObserver,b=l.document,y=l.process,w=l.Promise,x=u(l,"queueMicrotask"),S=x&&x.value;if(!S){var C=new f,k=function(){var e,t;for(g&&(e=y.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&n(),e}e&&e.enter()};h||g||m||!v||!b?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),n=function(){s(k)}):g?n=function(){y.nextTick(k)}:(d=c(d,l),n=function(){d(k)}):(o=!0,i=b.createTextNode(""),new v(k).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),S=function(e){C.head||n(),C.add(e)}}t.exports=S},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};t.exports.f=function(e){return new i(e)}},{"../internals/a-callable":222}],304:[function(e,t,r){"use strict";var n=e("../internals/is-regexp"),o=TypeError;t.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/function-uncurry-this"),i=e("../internals/function-call"),a=e("../internals/fails"),s=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),d=e("../internals/indexed-object"),f=Object.assign,h=Object.defineProperty,p=o([].concat);t.exports=!f||a((function(){if(n&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var r=u(e),o=arguments.length,a=1,f=l.f,h=c.f;o>a;)for(var m,g=d(arguments[a++]),v=f?p(s(g),f(g)):s(g),b=v.length,y=0;b>y;)m=v[y++],n&&!i(h,g,m)||(r[m]=g[m]);return r}:f},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,r){"use strict";var n,o=e("../internals/an-object"),i=e("../internals/object-define-properties"),a=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key")("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&n?h(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete p.prototype[a[r]];return p()};s[u]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(d.prototype=o(e),r=new d,d.prototype=null,r[u]=e):r=p(),void 0===t?r:i.f(r,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/v8-prototype-define-bug"),i=e("../internals/object-define-property"),a=e("../internals/an-object"),s=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),c=o.length,u=0;c>u;)i.f(e,r=o[u++],n[r]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),i=e("../internals/v8-prototype-define-bug"),a=e("../internals/an-object"),s=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;r.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=u(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/function-call"),i=e("../internals/object-property-is-enumerable"),a=e("../internals/create-property-descriptor"),s=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;r.f=n?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),o=e("../internals/to-indexed-object"),i=e("../internals/object-get-own-property-names").f,a=e("../internals/array-slice-simple"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),o=e("../internals/is-callable"),i=e("../internals/to-object"),a=e("../internals/shared-key"),s=e("../internals/correct-prototype-getter"),l=a("IE_PROTO"),c=Object,u=c.prototype;t.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=e("../internals/has-own-property"),i=e("../internals/to-indexed-object"),a=e("../internals/array-includes").indexOf,s=e("../internals/hidden-keys"),l=n([].push);t.exports=function(e,t){var r,n=i(e),c=0,u=[];for(r in n)!o(s,r)&&o(n,r)&&l(u,r);for(;t.length>c;)o(n,r=t[c++])&&(~a(u,r)||l(u,r));return u}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);r.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},{}],318:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-accessor"),o=e("../internals/an-object"),i=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/function-uncurry-this"),a=e("../internals/object-get-prototype-of"),s=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),c=i(e("../internals/object-property-is-enumerable").f),u=i([].push),d=n&&o((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=d&&null===a(o),h=i.length,p=0,m=[];h>p;)r=i[p++],n&&!(f?r in o:c(o,r))||u(m,e?[r,o[r]]:o[r]);return m}};t.exports={entries:f(!0),values:f(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,r){"use strict";var n=e("../internals/function-call"),o=e("../internals/is-callable"),i=e("../internals/is-object"),a=TypeError;t.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),o=e("../internals/function-uncurry-this"),i=e("../internals/object-get-own-property-names"),a=e("../internals/object-get-own-property-symbols"),s=e("../internals/an-object"),l=o([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,r){"use strict";var n=e("../internals/global");t.exports=n},{"../internals/global":274}],323:[function(e,t,r){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/promise-native-constructor"),i=e("../internals/is-callable"),a=e("../internals/is-forced"),s=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),d=e("../internals/is-pure"),f=e("../internals/engine-v8-version"),h=o&&o.prototype,p=l("species"),m=!1,g=i(n.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(d&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[p]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(c||u)&&!g}));t.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,r){"use strict";var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":274}],326:[function(e,t,r){"use strict";var n=e("../internals/an-object"),o=e("../internals/is-object"),i=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,r){"use strict";var n=e("../internals/promise-native-constructor"),o=e("../internals/check-correctness-of-iteration"),i=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,r){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=n},{}],329:[function(e,t,r){"use strict";var n=e("../internals/is-null-or-undefined"),o=TypeError;t.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),o=e("../internals/define-built-in-accessor"),i=e("../internals/well-known-symbol"),a=e("../internals/descriptors"),s=i("species");t.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,r){"use strict";var n=e("../internals/object-define-property").f,o=e("../internals/has-own-property"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,r){"use strict";var n=e("../internals/shared"),o=e("../internals/uid"),i=n("keys");t.exports=function(e){return i[e]||(i[e]=o(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/define-global-property"),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,r){"use strict";var n=e("../internals/is-pure"),o=e("../internals/shared-store");(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,r){"use strict";var n=e("../internals/an-object"),o=e("../internals/a-constructor"),i=e("../internals/is-null-or-undefined"),a=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,r){"use strict";var n=e("../internals/engine-v8-version"),o=e("../internals/fails"),i=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,r){"use strict";var n=e("../internals/function-call"),o=e("../internals/get-built-in"),i=e("../internals/well-known-symbol"),a=e("../internals/define-built-in");t.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,r){"use strict";var n,o,i,a,s=e("../internals/global"),l=e("../internals/function-apply"),c=e("../internals/function-bind-context"),u=e("../internals/is-callable"),d=e("../internals/has-own-property"),f=e("../internals/fails"),h=e("../internals/html"),p=e("../internals/array-slice"),m=e("../internals/document-create-element"),g=e("../internals/validate-arguments-length"),v=e("../internals/engine-is-ios"),b=e("../internals/engine-is-node"),y=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,C=s.Function,k=s.MessageChannel,E=s.String,O=0,A={};f((function(){n=s.location}));var T=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},j=function(e){return function(){T(e)}},P=function(e){T(e.data)},M=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};y&&w||(y=function(e){g(arguments.length,1);var t=u(e)?e:C(e),r=p(arguments,1);return A[++O]=function(){l(t,void 0,r)},o(O),O},w=function(e){delete A[e]},b?o=function(e){x.nextTick(j(e))}:S&&S.now?o=function(e){S.now(j(e))}:k&&!v?(a=(i=new k).port2,i.port1.onmessage=P,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(M)?(o=M,s.addEventListener("message",P,!1)):o="onreadystatechange"in m("script")?function(e){h.appendChild(m("script")).onreadystatechange=function(){h.removeChild(this),T(e)}}:function(e){setTimeout(j(e),0)}),t.exports={set:y,clear:w}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),o=Math.max,i=Math.min;t.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,r){"use strict";var n=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");t.exports=function(e){return n(o(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,r){"use strict";var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},{"../internals/math-trunc":301}],343:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),o=Math.min;t.exports=function(e){return e>0?o(n(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,r){"use strict";var n=e("../internals/require-object-coercible"),o=Object;t.exports=function(e){return o(n(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,r){"use strict";var n=e("../internals/function-call"),o=e("../internals/is-object"),i=e("../internals/is-symbol"),a=e("../internals/get-method"),s=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,r){"use strict";var n=e("../internals/to-primitive"),o=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,r){"use strict";var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":357}],348:[function(e,t,r){"use strict";var n=e("../internals/classof"),o=String;t.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},{"../internals/classof":236}],349:[function(e,t,r){"use strict";var n=String;t.exports=function(e){try{return n(e)}catch(e){return"Object"}}},{}],350:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),o=0,i=Math.random(),a=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),o=e("../internals/fails");t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,r){"use strict";var n=TypeError;t.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},{}],354:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/is-callable"),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,r){"use strict";var n=e("../internals/path"),o=e("../internals/has-own-property"),i=e("../internals/well-known-symbol-wrapped"),a=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol");r.f=n},{"../internals/well-known-symbol":357}],357:[function(e,t,r){"use strict";var n=e("../internals/global"),o=e("../internals/shared"),i=e("../internals/has-own-property"),a=e("../internals/uid"),s=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=n.Symbol,u=o("wks"),d=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/array-iteration").findIndex,i=e("../internals/add-to-unscopables"),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/array-iteration").find,i=e("../internals/add-to-unscopables"),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/array-includes").includes,i=e("../internals/fails"),a=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),i=e("../internals/iterators"),a=e("../internals/internal-state"),s=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),d=e("../internals/descriptors"),f=a.set,h=a.getterFor("Array Iterator");t.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(r){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/get-built-in"),i=e("../internals/function-apply"),a=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),l=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-symbol"),d=e("../internals/array-slice"),f=e("../internals/get-json-replacer-function"),h=e("../internals/symbol-constructor-detection"),p=String,m=o("JSON","stringify"),g=s(/./.exec),v=s("".charAt),b=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,k=!h||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),O=function(e,t){var r=d(arguments),n=f(t);if(c(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(c(n)&&(t=a(n,this,p(e),t)),!u(t))return t},i(m,null,r)},A=function(e,t,r){var n=v(r,t-1),o=v(r,t+1);return g(S,e)&&!g(C,o)||g(C,e)&&!g(S,n)?"\\u"+w(b(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(e,t,r){var n=d(arguments),o=i(k?O:m,null,n);return E&&"string"==typeof o?y(o,x,A):o}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,r){"use strict";e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/symbol-constructor-detection"),i=e("../internals/fails"),a=e("../internals/object-get-own-property-symbols"),s=e("../internals/to-object");n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/to-object"),i=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")((function(){i(1)}))},{keys:function(e){return i(o(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-call"),i=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),s=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,r=a.f(t),n=r.resolve,c=r.reject,u=s((function(){var r=i(t.resolve),a=[],s=0,u=1;l(e,(function(e){var i=s++,l=!1;u++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--u||n(a))}),c)})),--u||n(a)}));return u.error&&c(u.value),r.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/is-pure"),i=e("../internals/promise-constructor-detection").CONSTRUCTOR,a=e("../internals/promise-native-constructor"),s=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/define-built-in"),u=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var d=s("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,r){"use strict";var n,o,i,a=e("../internals/export"),s=e("../internals/is-pure"),l=e("../internals/engine-is-node"),c=e("../internals/global"),u=e("../internals/function-call"),d=e("../internals/define-built-in"),f=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),m=e("../internals/a-callable"),g=e("../internals/is-callable"),v=e("../internals/is-object"),b=e("../internals/an-instance"),y=e("../internals/species-constructor"),w=e("../internals/task").set,x=e("../internals/microtask"),S=e("../internals/host-report-errors"),C=e("../internals/perform"),k=e("../internals/queue"),E=e("../internals/internal-state"),O=e("../internals/promise-native-constructor"),A=e("../internals/promise-constructor-detection"),T=e("../internals/new-promise-capability"),j=A.CONSTRUCTOR,P=A.REJECTION_EVENT,M=A.SUBCLASSING,R=E.getterFor("Promise"),_=E.set,I=O&&O.prototype,N=O,F=I,D=c.TypeError,B=c.document,L=c.process,z=T.f,H=z,U=!!(B&&B.createEvent&&c.dispatchEvent),V=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},W=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&Y(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?c(new D("Promise-chain cycle")):(n=V(r))?u(n,r,l,c):l(r)):c(i)}catch(e){d&&!o&&d.exit(),c(e)}},G=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)W(r,e);e.notified=!1,t&&!e.rejection&&K(e)})))},q=function(e,t,r){var n,o;U?((n=B.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!P&&(o=c["on"+e])?o(n):"unhandledrejection"===e&&S("Unhandled promise rejection",r)},K=function(e){u(w,c,(function(){var t,r=e.facade,n=e.value;if(X(e)&&(t=C((function(){l?L.emit("unhandledRejection",n,r):q("unhandledrejection",r,n)})),e.rejection=l||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){u(w,c,(function(){var t=e.facade;l?L.emit("rejectionHandled",t):q("rejectionhandled",t,e.value)}))},$=function(e,t,r){return function(n){e(t,n,r)}},Z=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,G(e,!0))},Q=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new D("Promise can't be resolved itself");var n=V(t);n?x((function(){var r={done:!1};try{u(n,t,$(Q,r,e),$(Z,r,e))}catch(t){Z(r,t,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(t){Z({done:!1},t,e)}}};if(j&&(F=(N=function(e){b(this,F),m(e),u(n,this);var t=R(this);try{e($(Q,t),$(Z,t))}catch(e){Z(t,e)}}).prototype,(n=function(e){_(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(F,"then",(function(e,t){var r=R(this),n=z(y(this,N));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?L.domain:void 0,0===r.state?r.reactions.add(n):x((function(){W(n,r)})),n.promise})),o=function(){var e=new n,t=R(e);this.promise=e,this.resolve=$(Q,t),this.reject=$(Z,t)},T.f=z=function(e){return e===N||void 0===e?new o(e):H(e)},!s&&g(O)&&I!==Object.prototype)){i=I.then,M||d(I,"then",(function(e,t){var r=this;return new N((function(e,t){u(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,F)}a({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:N}),h(N,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/is-pure"),i=e("../internals/promise-native-constructor"),a=e("../internals/fails"),s=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/species-constructor"),u=e("../internals/promise-resolve"),d=e("../internals/define-built-in"),f=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),r=l(e);return this.then(r?function(r){return u(t,e()).then((function(){return r}))}:e,r?function(r){return u(t,e()).then((function(){throw r}))}:e)}}),!o&&l(i)){var h=s("Promise").prototype.finally;f.finally!==h&&d(f,"finally",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,r){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-call"),i=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),s=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,r=a.f(t),n=r.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-call"),i=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/get-built-in"),i=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),c=o("Promise"),u=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(u&&this===c?a:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-uncurry-this"),i=e("../internals/to-absolute-index"),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,c=o([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw new a(t+" is not a valid code point");r[o]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return c(r,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-uncurry-this"),i=e("../internals/not-a-regexp"),a=e("../internals/require-object-coercible"),s=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),c=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,r){"use strict";e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/global"),i=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),s=e("../internals/is-pure"),l=e("../internals/descriptors"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),d=e("../internals/has-own-property"),f=e("../internals/object-is-prototype-of"),h=e("../internals/an-object"),p=e("../internals/to-indexed-object"),m=e("../internals/to-property-key"),g=e("../internals/to-string"),v=e("../internals/create-property-descriptor"),b=e("../internals/object-create"),y=e("../internals/object-keys"),w=e("../internals/object-get-own-property-names"),x=e("../internals/object-get-own-property-names-external"),S=e("../internals/object-get-own-property-symbols"),C=e("../internals/object-get-own-property-descriptor"),k=e("../internals/object-define-property"),E=e("../internals/object-define-properties"),O=e("../internals/object-property-is-enumerable"),A=e("../internals/define-built-in"),T=e("../internals/define-built-in-accessor"),j=e("../internals/shared"),P=e("../internals/shared-key"),M=e("../internals/hidden-keys"),R=e("../internals/uid"),_=e("../internals/well-known-symbol"),I=e("../internals/well-known-symbol-wrapped"),N=e("../internals/well-known-symbol-define"),F=e("../internals/symbol-define-to-primitive"),D=e("../internals/set-to-string-tag"),B=e("../internals/internal-state"),L=e("../internals/array-iteration").forEach,z=P("hidden"),H=B.set,U=B.getterFor("Symbol"),V=Object.prototype,W=o.Symbol,G=W&&W.prototype,q=o.RangeError,K=o.TypeError,X=o.QObject,Y=C.f,$=k.f,Z=x.f,Q=O.f,J=a([].push),ee=j("symbols"),te=j("op-symbols"),re=j("wks"),ne=!X||!X.prototype||!X.prototype.findChild,oe=function(e,t,r){var n=Y(V,t);n&&delete V[t],$(e,t,r),n&&e!==V&&$(V,t,n)},ie=l&&u((function(){return 7!==b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?oe:$,ae=function(e,t){var r=ee[e]=b(G);return H(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===V&&se(te,t,r),h(e);var n=m(t);return h(r),d(ee,n)?(r.enumerable?(d(e,z)&&e[z][n]&&(e[z][n]=!1),r=b(r,{enumerable:v(0,!1)})):(d(e,z)||$(e,z,v(1,{})),e[z][n]=!0),ie(e,n,r)):$(e,n,r)},le=function(e,t){h(e);var r=p(t),n=y(r).concat(fe(r));return L(n,(function(t){l&&!i(ce,r,t)||se(e,t,r[t])})),e},ce=function(e){var t=m(e),r=i(Q,this,t);return!(this===V&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,z)&&this[z][t])||r)},ue=function(e,t){var r=p(e),n=m(t);if(r!==V||!d(ee,n)||d(te,n)){var o=Y(r,n);return!o||!d(ee,n)||d(r,z)&&r[z][n]||(o.enumerable=!0),o}},de=function(e){var t=Z(p(e)),r=[];return L(t,(function(e){d(ee,e)||d(M,e)||J(r,e)})),r},fe=function(e){var t=e===V,r=Z(t?te:p(e)),n=[];return L(r,(function(e){!d(ee,e)||t&&!d(V,e)||J(n,ee[e])})),n};c||(A(G=(W=function(){if(f(G,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=R(e),r=function(e){this===V&&i(r,te,e),d(this,z)&&d(this[z],t)&&(this[z][t]=!1);var n=v(1,e);try{ie(this,t,n)}catch(e){if(!(e instanceof q))throw e;oe(this,t,n)}};return l&&ne&&ie(V,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return U(this).tag})),A(W,"withoutSetter",(function(e){return ae(R(e),e)})),O.f=ce,k.f=se,E.f=le,C.f=ue,w.f=x.f=de,S.f=fe,I.f=function(e){return ae(_(e),e)},l&&(T(G,"description",{configurable:!0,get:function(){return U(this).description}}),s||A(V,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),L(y(re),(function(e){N(e)})),n({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?b(e):le(b(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:de}),F(),D(W,"Symbol"),M[z]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/get-built-in"),i=e("../internals/has-own-property"),a=e("../internals/to-string"),s=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var r=o("Symbol")(t);return c[t]=r,u[r]=t,r}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,r){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/has-own-property"),i=e("../internals/is-symbol"),a=e("../internals/try-to-string"),s=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(c,e))return c[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,r){"use strict";function n(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===n(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===n(e)},r.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,r){(function(r){(function(){"use strict";var n=e("elliptic"),o=e("bn.js");t.exports=function(e){return new a(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,t,n){Array.isArray(e)||(e=e.toArray());var o=new r(e);if(n&&o.length<n){var i=new r(n-o.length);i.fill(0),o=r.concat([i,o])}return t?o.toString(t):o}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,n){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var n=new o(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],386:[function(e,t,r){"use strict";var n=e("inherits"),o=e("md5.js"),i=e("ripemd160"),a=e("sha.js"),s=e("cipher-base");function l(e){s.call(this,"digest"),this._hash=e}n(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new i:new l(a(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,r){"use strict";var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":450}],388:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./legacy"),i=e("cipher-base"),a=e("safe-buffer").Buffer,s=e("create-hash/md5"),l=e("ripemd160"),c=e("sha.js"),u=a.alloc(128);function d(e,t){i.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,u],r));for(var n=this._ipad=a.allocUnsafe(r),o=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],o[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(d,i),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new o(s,t):new d(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,r){"use strict";var n=e("inherits"),o=e("safe-buffer").Buffer,i=e("cipher-base"),a=o.alloc(128);function s(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,a],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],n[s]=92^t[s];this._hash=[r]}n(s,i),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},t.exports=s},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),o=Object.keys(n),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);r.getHashes=function(){return i};var a=e("pbkdf2");r.pbkdf2=a.pbkdf2,r.pbkdf2Sync=a.pbkdf2Sync;var s=e("browserify-cipher");r.Cipher=s.Cipher,r.createCipher=s.createCipher,r.Cipheriv=s.Cipheriv,r.createCipheriv=s.createCipheriv,r.Decipher=s.Decipher,r.createDecipher=s.createDecipher,r.Decipheriv=s.Decipheriv,r.createDecipheriv=s.createDecipheriv,r.getCiphers=s.getCiphers,r.listCiphers=s.listCiphers;var l=e("diffie-hellman");r.DiffieHellmanGroup=l.DiffieHellmanGroup,r.createDiffieHellmanGroup=l.createDiffieHellmanGroup,r.getDiffieHellman=l.getDiffieHellman,r.createDiffieHellman=l.createDiffieHellman,r.DiffieHellman=l.DiffieHellman;var c=e("browserify-sign");r.createSign=c.createSign,r.Sign=c.Sign,r.createVerify=c.createVerify,r.Verify=c.Verify,r.createECDH=e("create-ecdh");var u=e("public-encrypt");r.publicEncrypt=u.publicEncrypt,r.privateEncrypt=u.privateEncrypt,r.publicDecrypt=u.publicDecrypt,r.privateDecrypt=u.privateDecrypt;var d=e("randomfill");r.randomFill=d.randomFill,r.randomFillSync=d.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,r){"use strict";!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=n()}(void 0,(function(){var e=6e4,t=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",l="month",c="quarter",u="year",d="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,l),i=r-o<0,a=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:a,D:d,h:i,m:o,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var w="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[w])},S=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),r&&(y[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},C=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},k=v;k.l=S,k.i=x,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,c=!!k.u(t)||t,f=k.p(e),h=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(a)},p=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case u:return c?h(1,0):h(31,11);case l:return c?h(1,g):h(0,g+1);case s:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(c?v-w:v+(6-w),g);case a:case d:return p(b+"Hours",0);case i:return p(b+"Minutes",1);case o:return p(b+"Seconds",2);case n:return p(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=k.p(e),f="set"+(this.$u?"UTC":""),h=(s={},s[a]=f+"Date",s[d]=f+"Date",s[l]=f+"Month",s[u]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[n]=f+"Seconds",s[r]=f+"Milliseconds",s)[c],p=c===a?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(r,c){var d,f=this;r=Number(r);var h=k.p(c),p=function(e){var t=C(f);return k.w(t.date(t.date()+Math.round(e*r)),f)};if(h===l)return this.set(l,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===a)return p(1);if(h===s)return p(7);var m=(d={},d[o]=e,d[i]=t,d[n]=1e3,d)[h]||1,g=this.$d.getTime()+r*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,d=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},h=function(e){return k.s(i%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,l,2);case"ddd":return d(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,f){var h,p=this,m=k.p(d),g=C(r),v=(g.utcOffset()-this.utcOffset())*e,b=this-g,y=function(){return k.m(p,g)};switch(m){case u:h=y()/12;break;case l:h=y();break;case c:h=y()/3;break;case s:h=(b-v)/6048e5;break;case a:h=(b-v)/864e5;break;case i:h=b/t;break;case o:h=b/e;break;case n:h=b/1e3;break;default:h=b}return f?h:k.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=S(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),O=E.prototype;return C.prototype=O,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",l],["$y",u],["$D",d]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,E,C),e.$i=!0),C},C.locale=S,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C}))},{}],392:[function(e,t,r){"use strict";!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=n()}(void 0,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var r,n=i.meridiem;if(n){for(var o=1;o<=24;o+=1)if(e.indexOf(n(o,0,t))>-1){r=o>12;break}}else r=e===(t?"pm":"PM");return r},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,s("seconds")],ss:[n,s("seconds")],m:[n,s("minutes")],mm:[n,s("minutes")],H:[n,s("hours")],h:[n,s("hours")],HH:[n,s("hours")],hh:[n,s("hours")],D:[n,s("day")],DD:[r,s("day")],Do:[o,function(e){var t=i.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[n,s("month")],MM:[r,s("month")],MMM:[o,function(e){var t=c("months"),r=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(r){var n,o;n=r,o=i&&i.formats;for(var a=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var i=n&&n.toUpperCase();return r||o[n]||e[n]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],h=u&&u[1];a[l]=h?{regex:f,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<s;r+=1){var o=a[r];if("string"==typeof o)n+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(n),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var n=t.prototype,o=n.parse;n.parse=function(e){var t=e.date,n=e.utc,a=e.args;this.$u=n;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=r.Ls[d]),this.$d=function(e,t,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=f(t)(e),o=n.year,i=n.month,a=n.day,s=n.hours,l=n.minutes,c=n.seconds,u=n.milliseconds,d=n.zone,h=new Date,p=a||(o||i?1:h.getDate()),m=o||h.getFullYear(),g=0;o&&!i||(g=i>0?i-1:h.getMonth());var v=s||0,b=l||0,y=c||0,w=u||0;return d?new Date(Date.UTC(m,g,p,v,b,y,w+60*d.offset*1e3)):r?new Date(Date.UTC(m,g,p,v,b,y,w)):new Date(m,g,p,v,b,y,w)}catch(e){return new Date("")}}(t,s,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){a[1]=s[p-1];var m=r.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===h&&(this.$d=new Date(""))}else o.call(this,e)}}}))},{}],393:[function(e,t,r){"use strict";!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=n()}(void 0,(function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n)))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),o=i(e).local();return f.call(n,o,t,r)}}}))},{}],394:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),o=e("inherits"),i={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var r=Object.keys(i),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=i[a]}return t.create=function(e){return new t(e)},t},i._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},i._update=function(e,t,r,n){var o=this._cbcState,i=this.constructor.super_.prototype,a=o.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];for(i._update.call(this,a,0,r,n),s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{for(i._update.call(this,e,t,r,n),s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,r){"use strict";var n=e("minimalistic-assert");function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},o.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,o=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(o,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,o,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return o},o.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(o,r);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},o.prototype._unpad=function(e){return e},o.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),o=e("inherits"),i=e("./utils"),a=e("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function l(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}o(l,a),t.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=i.readUInt32BE(t,0),o=i.readUInt32BE(t,4);i.pc1(r,o,e.tmp,0),r=e.tmp[0],o=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=i.r28shl(r,s),o=i.r28shl(o,s),i.pc2(r,o,e.keys,a)}},l.prototype._update=function(e,t,r,n){var o=this._desState,a=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,s,o.tmp,0):this._decrypt(o,a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],i.writeUInt32BE(r,a,n),i.writeUInt32BE(r,s,n+4)},l.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},l.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,n,o){for(var a=t,s=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];i.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=i.substitute(c,u),f=s;s=(a^i.permute(d))>>>0,a=f}i.rip(s,a,n,o)},l.prototype._decrypt=function(e,t,r,n,o){for(var a=r,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];i.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=i.substitute(c,u),f=a;a=(s^i.permute(d))>>>0,s=f}i.rip(a,s,n,o)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),o=e("inherits"),i=e("./cipher"),a=e("./des");function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),o=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i})]:[a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o}),a.create({type:"decrypt",key:r})]}function l(e){i.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}o(l,i),t.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,r,n){var o=this._edeState;o.ciphers[0]._update(e,t,r,n),o.ciphers[1]._update(r,n,r,n),o.ciphers[2]._update(r,n,r,n)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var o=0,i=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)i<<=1,i|=t>>>s+a&1;for(s=1;s<=25;s+=8)i<<=1,i|=e>>>s+a&1}r[n+0]=o>>>0,r[n+1]=i>>>0},r.rip=function(e,t,r,n){for(var o=0,i=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;r[n+0]=o>>>0,r[n+1]=i>>>0},r.pc1=function(e,t,r,n){for(var o=0,i=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;r[n+0]=o>>>0,r[n+1]=i>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,o){for(var i=0,a=0,s=n.length>>>1,l=0;l<s;l++)i<<=1,i|=e>>>n[l]&1;for(l=s;l<n.length;l++)a<<=1,a|=t>>>n[l]&1;r[o+0]=i>>>0,r[o+1]=a>>>0},r.expand=function(e,t,r){var n=0,o=0;n=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++)r<<=4,r|=o[64*n+(e>>>18-6*n&63)];for(n=0;n<4;n++)r<<=4,r|=o[256+64*n+(t>>>18-6*n&63)];return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var o=[],i=0;i<t;i+=r)o.push(n.slice(i,i+r));return o.join(" ")}},{}],400:[function(e,t,r){(function(t){(function(){"use strict";var n=e("./lib/generatePrime"),o=e("./lib/primes.json"),i=e("./lib/dh"),a={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var r=new t(o[e].prime,"hex"),n=new t(o[e].gen,"hex");return new i(r,n)},r.createDiffieHellman=r.DiffieHellman=function e(r,o,s,l){return t.isBuffer(o)||void 0===a[o]?e(r,"binary",o,s):(o=o||"binary",l=l||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,l)),"number"==typeof r?new i(n(r,s),s,!0):(t.isBuffer(r)||(r=new t(r,o)),new i(r,s,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,r){(function(r){(function(){"use strict";var n=e("bn.js"),o=new(e("miller-rabin")),i=new n(24),a=new n(11),s=new n(10),l=new n(3),c=new n(7),u=e("./generatePrime"),d=e("randombytes");function f(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new n(e),this}function h(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new n(e),this}t.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function g(e,t){var n=new r(e.toArray());return t?n.toString(t):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var d,f=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!o.test(e))return f+=1,f+="02"===r||"05"===r?8:4,p[n]=f,f;switch(o.test(e.shrn(1))||(f+=2),r){case"02":e.mod(i).cmp(a)&&(f+=8);break;case"05":(d=e.mod(s)).cmp(l)&&d.cmp(c)&&(f+=8);break;default:f+=4}return p[n]=f,f}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new r(t.toArray()),i=this.getPrime();if(o.length<i.length){var a=new r(i.length-o.length);a.fill(0),o=r.concat([a,o])}return o},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new n(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,r){"use strict";var n=e("randombytes");t.exports=v,v.simpleSieve=m,v.fermatTest=g;var o=e("bn.js"),i=new o(24),a=new(e("miller-rabin")),s=new o(1),l=new o(2),c=new o(5),u=(new o(16),new o(8),new o(10)),d=new o(3),f=(new o(7),new o(11)),h=new o(4),p=(new o(12),null);function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),o=0;o<t&&e[o]<=n&&r%e[o]!=0;o++);t!==o&&e[o]<=n||(e[t++]=r)}return p=e,e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function g(e){var t=o.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new o(t);;){for(r=new o(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(u).cmp(d);)r.iadd(h)}else for(;r.mod(i).cmp(f);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],405:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("../utils"),i=o.getNAF,a=o.getJSF,s=o.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=i(t,1,this._bitLength),o=(1<<r.step+1)-(r.step%2==0?2:1);o/=3;var a,l,c=[];for(a=0;a<n.length;a+=r.step){l=0;for(var u=a+r.step-1;u>=a;u--)l=(l<<1)+n[u];c.push(l)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=o;h>0;h--){for(a=0;a<c.length;a++)(l=c[a])===h?f=f.mixedAdd(r.points[a]):l===-h&&(f=f.mixedAdd(r.points[a].neg()));d=d.add(f)}return d.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var o=n.points,a=i(t,r,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var u=0;c>=0&&0===a[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=a[c];s(0!==d),l="affine"===e.type?d>0?l.mixedAdd(o[d-1>>1]):l.mixedAdd(o[-d-1>>1].neg()):d>0?l.add(o[d-1>>1]):l.add(o[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,o){var s,l,c,u=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);u[s]=p.wnd,d[s]=p.points}for(s=n-1;s>=1;s-=2){var m=s-1,g=s;if(1===u[m]&&1===u[g]){var v=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(v[1]=t[m].add(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].add(t[g].neg())):(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[m],r[g]);for(h=Math.max(y[0].length,h),f[m]=new Array(h),f[g]=new Array(h),l=0;l<h;l++){var w=0|y[0][l],x=0|y[1][l];f[m][l]=b[3*(w+1)+(x+1)],f[g][l]=0,d[m]=v}}else f[m]=i(r[m],u[m],this._bitLength),f[g]=i(r[g],u[g],this._bitLength),h=Math.max(f[m].length,h),h=Math.max(f[g].length,h)}var S=this.jpoint(null,null,null),C=this._wnafT4;for(s=h;s>=0;s--){for(var k=0;s>=0;){var E=!0;for(l=0;l<n;l++)C[l]=0|f[l][s],0!==C[l]&&(E=!1);if(!E)break;k++,s--}if(s>=0&&k++,S=S.dblp(k),s<0)break;for(l=0;l<n;l++){var O=C[l];0!==O&&(O>0?c=d[l][O-1>>1]:O<0&&(c=d[l][-O-1>>1].neg()),S="affine"===c.type?S.mixedAdd(c):S.add(c))}}for(s=0;s<n;s++)d[s]=null;return o?S:S.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=o.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o<t;o+=e){for(var i=0;i<e;i++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),o=1;o<r;o++)t[o]=t[o-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,r){"use strict";var n=e("../utils"),o=e("bn.js"),i=e("inherits"),a=e("./base"),s=n.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(l,a),t.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(o)},i(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),a=i.redSub(r),s=n.redSub(t),l=o.redMul(a),c=i.redMul(s),u=o.redMul(s),d=a.redMul(i);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,r,n,o,i,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(o=this.z.redSqr(),i=c.redSub(o).redISub(o),e=a.redSub(s).redISub(l).redMul(i),t=c.redMul(n.redSub(l)),r=c.redMul(i))}else n=s.redAdd(l),o=this.curve._mulC(this.z).redSqr(),i=n.redSub(o).redSub(o),e=this.curve._mulC(a.redISub(n)).redMul(i),t=this.curve._mulC(n).redMul(s.redISub(l)),r=n.redMul(i);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),a=o.redSub(n),s=o.redAdd(n),l=r.redAdd(t),c=i.redMul(a),u=s.redMul(l),d=i.redMul(l),f=a.redMul(s);return this.curve.point(c,u,f,d)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),o=n.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(a),l=o.redSub(s),c=o.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(i))),r=l.redMul(c)):(t=n.redMul(c).redMul(a.redSub(i)),r=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("inherits"),i=e("./base"),a=e("../utils");function s(e){i.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){i.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(s,i),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(l,i.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),o=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),a=o.redMul(n),s=t.z.redMul(i.redAdd(a).redSqr()),l=t.x.redMul(i.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,r){"use strict";var n=e("../utils"),o=e("bn.js"),i=e("inherits"),a=e("./base"),s=n.assert;function l(e){a.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(l,a),t.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new o(e.a,16),b:new o(e.b,16)}})):this._getEndoBasis(r)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),r=new o(2).toRed(t).redInvm(),n=r.redNeg(),i=new o(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new o(1),m=new o(0),g=new o(0),v=new o(1),b=0;0!==f.cmpn(0);){var y=h.div(f);c=h.sub(y.mul(f)),u=g.sub(y.mul(p));var w=v.sub(y.mul(m));if(!n&&c.cmp(d)<0)t=l.neg(),r=p,n=c.neg(),i=u;else if(n&&2==++b)break;l=c,h=f,f=c,g=p,p=u,v=m,m=w}a=c.neg(),s=u;var x=n.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(x)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),a=o.mul(r.a),s=i.mul(n.a),l=o.mul(r.b),c=i.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var a=this._endoSplit(t[i]),s=e[i],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*i]=s,n[2*i+1]=l,o[2*i]=a.k1,o[2*i+1]=a.k2}for(var c=this._wnafMulAdd(1,n,o,2*i,r),u=0;u<2*i;u++)n[u]=null,o[u]=null;return c},i(c,a.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function o(t){return e.point(t[0],t[1],r)}var i=t[2];return n.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[n].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[n].concat(i.naf.points.map(o))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(u,a.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),o=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(o),l=i.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),f=l.redSqr().redIAdd(u).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(i.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=o.redSub(i);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(o.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,o=this.curve.tinv,i=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=i.redSqr(),d=c.redSqr(),f=d.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=i.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(f);var b=c.redMul(s);t+1<e&&(l=l.redMul(f)),i=m,s=b,c=v}return this.curve.jpoint(i,c.redMul(o),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(n).redISub(i);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),c=i.redIAdd(i);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(u).redISub(f);h=h.redIAdd(h);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(n).redISub(i);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=i.redIAdd(i);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,o=n.redSqr().redSqr(),i=t.redSqr(),a=r.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(o)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),f=a.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=s.redMul(d).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,h,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),o=e.redAdd(e).redIAdd(e),i=o.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=o.redIAdd(a).redSqr().redISub(i).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,f,h)},u.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),o=r.redMul(e.z);return 0===this.y.redMul(o).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),o=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,r){"use strict";var n,o=r,i=e("hash.js"),a=e("./curve"),s=e("./utils").assert;function l(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:r}),r}})}o.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("hmac-drbg"),i=e("../utils"),a=e("../curves"),s=e("brorand"),l=i.assert,c=e("./key"),u=e("./signature");function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),l=e.toArray("be",a),c=new o({hash:this.hash,entropy:s,nonce:l,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new n(1)),f=0;;f++){var h=i.k?i.k(f):new n(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return i.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new u({r:g,s:v,recoveryParam:b})}}}}}},d.prototype.verify=function(e,t,r,o){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,o);var i=(t=new u(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},d.prototype.recoverPubKey=function(e,t,r,o){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,o);var i=this.n,a=new n(e),s=t.r,c=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(i),p=i.sub(a).mul(h).umod(i),m=c.mul(h).umod(i);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("../utils").assert;function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=i,i.fromPublic=function(e,t,r){return t instanceof i?t:new i(e,{pub:t,pubEnc:r})},i.fromPrivate=function(e,t,r){return t instanceof i?t:new i(e,{priv:t,privEnc:r})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.validate()||o(e.validate(),"public point not validated"),e.mul(this.priv).getX()},i.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("../utils"),i=o.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var o=0,i=0,a=t.place;i<n;i++,a++)o<<=8,o|=e[a],o>>>=0;return!(o<=127)&&(t.place=a,o)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}t.exports=a,a.prototype._importDER=function(e,t){e=o.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var i=l(e,r);if(!1===i)return!1;if(i+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=l(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(c),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var i=n.concat(r),a=[48];return u(a,i.length),a=a.concat(i),o.encode(a,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,r){"use strict";var n=e("hash.js"),o=e("../curves"),i=e("../utils"),a=i.assert,s=i.parseBytes,l=e("./key"),c=e("./signature");function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=o[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),o=this.g.mul(n),i=this.encodePoint(o),a=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),l=n.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:i})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),o=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(o)).eq(i)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return i.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=i.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=!!(128&e[t]),o=i.intFromLE(r);return this.curve.pointFromY(o,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return i.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,r){"use strict";var n=e("../utils"),o=n.assert,i=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=i(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=i(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../utils":419}],417:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("../utils"),i=o.assert,a=o.cachedProperty,s=o.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),i(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},{"../utils":419,"bn.js":420}],418:[function(e,t,r){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,t,r){"use strict";var n=r,o=e("bn.js"),i=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");n.assert=i,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<<t+1,i=e.clone(),a=0;a<n.length;a++){var s,l=i.andln(o-1);i.isOdd()?(s=l>(o>>1)-1?(o>>1)-l:l,i.isubn(s)):s=0,n[a]=s,i.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,o=0,i=0;e.cmpn(-o)>0||t.cmpn(-i)>0;){var a,s,l=e.andln(3)+o&3,c=t.andln(3)+i&3;3===l&&(l=-1),3===c&&(c=-1),a=1&l?3!=(n=e.andln(7)+o&7)&&5!==n||2!==c?l:-l:0,r[0].push(a),s=1&c?3!=(n=t.andln(7)+i&7)&&5!==n||2!==l?c:-c:0,r[1].push(s),2*o===a+1&&(o=1-o),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new o(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],421:[function(e,t,r){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,r){"use strict";var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var s,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),s=0===c.x}catch(e){s=!1}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function d(e,t,r,o){var i,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]):(a=e._events=n(null),e._eventsCount=0),s){if("function"==typeof s?s=a[t]=o?[r,s]:[s,r]:o?s.unshift(r):s.push(r),!s.warned&&(i=u(e))&&i>0&&s.length>i){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else s=a[t]=r,++e._eventsCount;return e}function f(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=i.call(f,n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(!n)return[];var o=n[t];return o?"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):g(o,o.length):[]}function m(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}s?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):a.defaultMaxListeners=l,a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(e){var t,r,n,o,i,a,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(r=a[e]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,o=g(e,n),i=0;i<n;++i)o[i].call(r)}(r,c,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var o=e.length,i=g(e,o),a=0;a<o;++a)i[a].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(e,t,r,n,o){if(t)e.call(r,n,o);else for(var i=e.length,a=g(e,i),s=0;s<i;++s)a[s].call(r,n,o)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,o,i){if(t)e.call(r,n,o,i);else for(var a=e.length,s=g(e,a),l=0;l<a;++l)s[l].call(r,n,o,i)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(n-1),i=1;i<n;i++)o[i-1]=arguments[i];!function(e,t,r,n){if(t)e.apply(r,n);else for(var o=e.length,i=g(e,o),a=0;a<o;++a)i[a].apply(r,n)}(r,c,this,o)}return!0},a.prototype.addListener=function(e,t){return d(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return d(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,o,i,a,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(o=this._events))return this;if(!(r=o[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=n(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(var r=t,n=r+1,o=e.length;n<o;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i),1===r.length&&(o[e]=r[0]),o.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.removeAllListeners=function(e){var t,r,i;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var a,s=o(r);for(i=0;i<s.length;++i)"removeListener"!==(a=s[i])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("md5.js");t.exports=function(e,t,r,i){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),l=n.alloc(i||0),c=n.alloc(0);a>0||i>0;){var u=new o;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,c.length),c.copy(s,f,0,d),a-=d}if(d<c.length&&i>0){var h=l.length-i,p=Math.min(i,c.length-d);c.copy(l,h,d,d+p),i-=p}}return c.fill(0),{key:s,iv:l}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=r.ParserOptions=r.parseFile=r.parseStream=r.parseString=r.parse=r.FormatterOptions=r.CsvFormatterStream=r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=void 0;var n=e("@fast-csv/format");Object.defineProperty(r,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(r,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(r,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(r,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(r,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(r,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var o=e("@fast-csv/parse");Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(r,"parseString",{enumerable:!0,get:function(){return o.parseString}}),Object.defineProperty(r,"parseStream",{enumerable:!0,get:function(){return o.parseStream}}),Object.defineProperty(r,"parseFile",{enumerable:!0,get:function(){return o.parseFile}}),Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return o.ParserOptions}}),Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("readable-stream").Transform;function i(e){o.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(i,o),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[o++];this._update(),this._blockOffset=0}for(;o<e.length;)r[this._blockOffset++]=e[o++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,r){"use strict";var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,r){"use strict";var n=e("./utils"),o=e("minimalistic-assert");function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=e>>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,r){"use strict";var n=e("./utils"),o=e("minimalistic-assert");function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}t.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,r){"use strict";var n=e("./utils"),o=e("./common"),i=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,c=o.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),r.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],o=this.h[2],c=this.h[3],u=this.h[4],b=r,y=n,w=o,x=c,S=u,C=0;C<80;C++){var k=a(i(l(r,d(C,n,o,c),e[p[C]+t],f(C)),g[C]),u);r=u,u=c,c=i(o,10),o=n,n=k,k=a(i(l(b,d(79-C,y,w,x),e[m[C]+t],h(C)),v[C]),S),b=S,S=x,x=i(w,10),w=y,y=k}k=s(this.h[1],o,x),this.h[1]=s(this.h[2],c,S),this.h[2]=s(this.h[3],u,b),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,w),this.h[0]=k},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,r){"use strict";var n=e("../utils"),o=e("../common"),i=e("./common"),a=n.rotl32,s=n.sum32,l=n.sum32_5,c=i.ft_1,u=o.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],u=this.h[2],f=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=l(a(o,5),c(p,i,u,f),h,r[n],d[p]);h=f,f=u,u=a(i,30),i=o,o=m}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],h)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,r){"use strict";var n=e("../utils"),o=e("./256");function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,o),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,r){"use strict";var n=e("../utils"),o=e("../common"),i=e("./common"),a=e("minimalistic-assert"),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=i.ch32,d=i.maj32,f=i.s0_256,h=i.s1_256,p=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],x=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=c(x,h(b),u(b,y,w),this.k[n],r[n]),C=s(f(o),d(o,i,g));x=w,w=y,y=b,b=s(v,S),v=g,g=i,i=o,o=s(S,C)}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,r){"use strict";var n=e("../utils"),o=e("./512");function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,o),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,r){"use strict";var n=e("../utils"),o=e("../common"),i=e("minimalistic-assert"),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,f=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,v=o.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,o){var i=e&r^~e&o;return i<0&&(i+=4294967296),i}function x(e,t,r,n,o,i){var a=t&n^~t&i;return a<0&&(a+=4294967296),a}function S(e,t,r,n,o){var i=e&r^e&o^r&o;return i<0&&(i+=4294967296),i}function C(e,t,r,n,o,i){var a=t&n^t&i^n&i;return a<0&&(a+=4294967296),a}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(y,v),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var o=P(r[n-4],r[n-3]),i=M(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=T(r[n-30],r[n-29]),c=j(r[n-30],r[n-29]),u=r[n-32],d=r[n-31];r[n]=h(o,i,a,s,l,c,u,d),r[n+1]=p(o,i,a,s,l,c,u,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],b=this.h[9],y=this.h[10],T=this.h[11],j=this.h[12],P=this.h[13],M=this.h[14],R=this.h[15];i(this.k.length===r.length);for(var _=0;_<r.length;_+=2){var I=M,N=R,F=O(v,b),D=A(v,b),B=w(v,0,y,0,j),L=x(0,b,0,T,0,P),z=this.k[_],H=this.k[_+1],U=r[_],V=r[_+1],W=m(I,N,F,D,B,L,z,H,U,V),G=g(I,N,F,D,B,L,z,H,U,V);I=k(n,o),N=E(n,o),F=S(n,0,a,0,l),D=C(0,o,0,s,0,c);var q=d(I,N,F,D),K=f(I,N,F,D);M=j,R=P,j=y,P=T,y=v,T=b,v=d(h,p,W,G),b=f(p,p,W,G),h=l,p=c,l=a,c=s,a=n,s=o,n=d(W,G,q,K),o=f(W,G,q,K)}u(this.h,0,n,o),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,h,p),u(this.h,8,v,b),u(this.h,10,y,T),u(this.h,12,j,P),u(this.h,14,M,R)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,r){"use strict";var n=e("../utils").rotr32;function o(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?a(t,r,n):2===e?i(t,r,n):void 0},r.ch32=o,r.maj32=i,r.p32=a,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),o=e("inherits");function i(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=o,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},r.htonl=a,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=a(o)),r+=l(o.toString(16))}return r},r.zero2=s,r.zero8=l,r.join32=function(e,t,r,o){var i=r-t;n(i%4==0);for(var a=new Array(i/4),s=0,l=t;s<a.length;s++,l+=4){var c;c="big"===o?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=c>>>0}return a},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,o=0;n<e.length;n++,o+=4){var i=e[n];"big"===t?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,o){return e+t+r+n+o>>>0},r.sum64=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,a=(i<n?1:0)+r+o;e[t]=a>>>0,e[t+1]=i},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,o,i,a,s){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+i>>>0)<i?1:0,e+r+o+a+(l+=(c=c+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,o,i,a,s){return t+n+i+s>>>0},r.sum64_5_hi=function(e,t,r,n,o,i,a,s,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+i>>>0)<i?1:0,u+=(d=d+s>>>0)<s?1:0,e+r+o+a+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,o,i,a,s,l,c){return t+n+i+s+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,r){"use strict";var n=e("hash.js"),o=e("minimalistic-crypto-utils"),i=e("minimalistic-assert");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),r=o.toArray(e.nonce,e.nonceEnc||"hex"),n=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=o.toArray(e,t),r=o.toArray(r,n),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,e);return this._update(r),this._reseed++,o.encode(a,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,r){"use strict";r.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,f=r?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},r.write=function(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}},{}],440:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],441:[function(e,t,n){(function(r,o,i,a,s,l,c,u){(function(){"use strict";!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(r,n,o){function i(s,l){if(!n[s]){if(!r[s]){var c="function"==typeof e&&e;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};r[s][0].call(d.exports,(function(e){return i(r[s][1][e]||e)}),d,d.exports,t,r,n,o)}return n[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,r){var n=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,o,a,s,l,c,u=[],d=0,f=e.length,h=f,p="string"!==n.getTypeOf(e);d<e.length;)h=f-d,o=p?(t=e[d++],r=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),r=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|r>>4,l=1<h?(15&r)<<2|o>>6:64,c=2<h?63&o:64,u.push(i.charAt(a)+i.charAt(s)+i.charAt(l)+i.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,a,s,l,c=0,u=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&h--,e.charAt(e.length-2)===i.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=o.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(a=i.indexOf(e.charAt(c++)))>>4,r=(15&a)<<4|(s=i.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=i.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=r),64!==l&&(f[u++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,r,n,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new o(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=o,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=o,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function o(e,t,r,o,a,u){var d,f,h=e.file,p=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(h.name)),v=i.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=i.transformTo("string",u(b)),w=i.transformTo("string",s.utf8encode(b)),x=v.length!==h.name.length,S=w.length!==b.length,C="",k="",E="",O=h.dir,A=h.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var j=0;t&&(j|=8),m||!x&&!S||(j|=2048);var P=0,M=0;O&&(P|=16),"UNIX"===a?(M=798,P|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,O)):(M=20,P|=function(e){return 63&(e||0)}(h.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,f=A.getUTCFullYear()-1980,f<<=4,f|=A.getUTCMonth()+1,f<<=5,f|=A.getUTCDate(),x&&(k=n(1,1)+n(l(g),4)+v,C+="up"+n(k.length,2)+k),S&&(E=n(1,1)+n(l(y),4)+w,C+="uc"+n(E.length,2)+E);var R="";return R+="\n\0",R+=n(j,2),R+=p.magic,R+=n(d,2),R+=n(f,2),R+=n(T.crc32,4),R+=n(T.compressedSize,4),R+=n(T.uncompressedSize,4),R+=n(g.length,2),R+=n(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+R+g+C,dirRecord:c.CENTRAL_FILE_HEADER+n(M,2)+R+n(y.length,2)+"\0\0\0\0"+n(P,4)+n(o,4)+g+C+y}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=o(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,o=function(e,t,r,o,a){var s=i.transformTo("string",a(o));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(s.length,2)+s}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),o=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var i=new o(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,r){a++;var o=function(e,t){var r=e||t,o=n[r];if(!o)throw new Error(r+" is not a valid compression method !");return o}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=a}catch(e){i.error(e)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),o=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new o.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new a(t);return r.load(e),r})).then((function(e){var r=[o.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(c(n[i]));return o.Promise.all(r)})).then((function(e){for(var o=e.shift(),i=o.files,a=0;a<i.length;a++){var s=i[a],l=s.fileNameStr,c=n.resolve(s.fileNameStr);r.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(c).unsafeOriginalName=l)}return o.zipComment.length&&(r.comment=o.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,o),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function o(e,t,r){n.call(this,t),this._helper=e;var o=this;e.on("data",(function(e,t){o.push(e)||o._helper.pause(),r&&r(t)})).on("error",(function(e){o.emit("error",e)})).on("end",(function(){o.push(null)}))}e("../utils").inherits(o,n),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:void 0!==i,newBufferFrom:function(e,t){if(i.from&&i.from!==Uint8Array.from)return i.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new i(e,t)},allocBuffer:function(e){if(i.alloc)return i.alloc(e);var t=new i(e);return t.fill(0),t},isBuffer:function(e){return i.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,o=i.getTypeOf(t),s=i.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d,v="string"===o&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!v),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",o="string"),d=t instanceof c||t instanceof a?t:f.isNode&&f.isStream(t)?new h(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new u(e,d,s);this.files[e]=b}var o=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(v(e)){var o=e;return this.filter((function(e,t){return!t.dir&&o.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new a("error")).error(e)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function o(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,n),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&o===i[3]},o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=o},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),o=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),o=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),o=e("./ConvertWorker"),a=e("./GenericWorker"),s=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=t,this._mimeType=r,n.checkSupport(i),this._worker=e.pipe(new o(i)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return function(e,t){return new c.Promise((function(r,o){var a=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,r){a.push(e),t&&t(r)})).on("error",(function(e){a=[],o(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return n.transformTo(e,t)}}(c,function(e,t){var r,n=0,o=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(a),r=0;r<t.length;r++)o.set(t[r],n),n+=t[r].length;return o;case"nodebuffer":return i.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,a),u);r(e)}catch(e){o(e)}a=[]})).resume()}))}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==i,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(n),r.blob=0===o.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),o=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),i=a=0;a<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return o.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,o,i,a=e.length,l=new Array(2*a);for(t=r=0;t<a;)if((o=e[t++])<128)l[r++]=o;else if(4<(i=s[o]))l[r++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&t<a;)o=o<<6|63&e[t++],i--;1<i?l[r++]=65533:o<65536?l[r++]=o:(o-=65536,l[r++]=55296|o>>10&1023,l[r++]=56320|1023&o)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(o.uint8array?"uint8array":"array",e))},n.inherits(c,a),c.prototype.processChunk=function(e){var t=n.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;a!==t.length&&(o.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],o=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;o<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+r,i)))),o+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,n=r.getTypeOf(e),o=!0;if("uint8array"===n?o=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function f(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=d;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,i.allocBuffer(e.length))}},h.array={string:d,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return i.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var o=t[n];"."===o||""===o&&0!==n&&n!==t.length-1||(".."===o?r.pop():r.push(o))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&i.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){u((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,i,s,c){return a.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=o.decode(t):i&&!0!==s&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),o=e("./utils"),i=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),o=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(o)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new o(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,void 0!==o?o:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n((function(){var n;try{n=t(r)}catch(n){return i.reject(e,n)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function o(t){r||(r=!0,i.resolve(e,t))}var a=p((function(){t(o,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(o);return this.state!==l?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return i.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,c=new this(o);++l<r;)u(e[l],l);return c;function u(e,o){t.resolve(e).then((function(e){a[o]=e,++s!==r||n||(n=!0,i.resolve(c,a))}),(function(e){n||(n=!0,i.reject(c,e))}))}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,a=-1,s=new this(o);++a<t;)n=e[a],this.resolve(n).then((function(e){r||(r=!0,i.resolve(s,e))}),(function(e){r||(r=!0,i.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(a[r]);this._dict_set=!0}}function u(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(e,t){var r,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(s.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=u,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function f(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,c,d,f,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,f)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(h.output,h.next_out),c=h.next_out-l,d=i.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&o.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=f,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},r.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){var t,r,n,o,i,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=o=0,r=e.length;t<r;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,r,n,o){for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),i=a=0;a<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r<o;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,o,i,s=t||e.length,c=new Array(2*s);for(r=n=0;r<s;)if((o=e[r++])<128)c[n++]=o;else if(4<(i=a[o]))c[n++]=65533,r+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&r<s;)o=o<<6|63&e[r++],i--;1<i?c[n++]=65533:o<65536?c[n++]=o:(o-=65536,c[n++]=55296|o>>10&1023,c[n++]=56320|1023&o)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var o=65535&e,i=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;i=i+(o=o+t[n++]|0)|0,--a;);o%=65521,i%=65521}return o|i<<16}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,o){var i=n,a=o+r;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=-2,u=258,d=262,f=113;function h(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function v(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function b(e,t){e.pending_buf[e.pending++]=t}function y(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var r,n,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,c=e.window,f=e.w_mask,h=e.prev,p=e.strstart+u,m=c[i+a-1],g=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===g&&c[r+a-1]===m&&c[r]===c[i]&&c[++r]===c[i+1]){i+=2,r++;do{}while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&i<p);if(n=u-(p-i),i=p-u,a<n){if(e.match_start=t,s<=(a=n))break;m=c[i+a-1],g=c[i+a]}}}while((t=h[t&f])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function x(e){var t,r,n,i,l,c,u,f,h,p,m=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){for(o.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;n=e.head[--t],e.head[t]=m<=n?n-m:0,--r;);for(t=r=m;n=e.prev[--t],e.prev[t]=m<=n?n-m:0,--r;);i+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,f=e.strstart+e.lookahead,p=void 0,(h=i)<(p=c.avail_in)&&(p=h),r=0===p?0:(c.avail_in-=p,o.arraySet(u,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,u,p,f):2===c.state.wrap&&(c.adler=s(c.adler,u,p,f)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function S(e,t){for(var r,n;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-d&&(e.match_length=w(e,r)),e.match_length>=3)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function C(e,t){for(var r,n,o;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-d&&(e.match_length=w(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-3,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function k(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function E(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function O(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):h(e,c)}function A(e){var t=O(e);return 0===t&&function(e){e.window_size=2*e.w_size,m(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function T(e,t,r,n,i,a){if(!e)return c;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||9<i||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return h(e,c);8===n&&(n=9);var l=new E;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,A(e)}n=[new k(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new k(4,4,8,4,S),new k(4,5,16,8,S),new k(4,6,32,32,S),new k(4,4,16,16,C),new k(8,16,32,32,C),new k(8,16,128,128,C),new k(8,32,128,256,C),new k(32,128,258,1024,C),new k(32,258,258,4096,C)],r.deflateInit=function(e,t){return T(e,t,8,15,8,0)},r.deflateInit2=T,r.deflateReset=A,r.deflateResetKeep=O,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},r.deflate=function(e,t){var r,o,a,l;if(!e||!e.state||5<t||t<0)return e?h(e,c):c;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&4!==t)return h(e,0===e.avail_out?-5:c);if(o.strm=e,r=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,b(o,31),b(o,139),b(o,8),o.gzhead?(b(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),b(o,255&o.gzhead.time),b(o,o.gzhead.time>>8&255),b(o,o.gzhead.time>>16&255),b(o,o.gzhead.time>>24&255),b(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),b(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(b(o,255&o.gzhead.extra.length),b(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(b(o,0),b(o,0),b(o,0),b(o,0),b(o,0),b(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),b(o,3),o.status=f);else{var d=8+(o.w_bits-8<<4)<<8;d|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=f,y(o,d),0!==o.strstart&&(y(o,e.adler>>>16),y(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),g(e),a=o.pending,o.pending!==o.pending_buf_size));)b(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),g(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,b(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),g(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,b(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&g(e),o.pending+2<=o.pending_buf_size&&(b(o,255&e.adler),b(o,e.adler>>8&255),e.adler=0,o.status=f)):o.status=f),0!==o.pending){if(g(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return h(e,-5);if(666===o.status&&0!==e.avail_in)return h(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&666!==o.status){var w=2===o.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(x(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var r,n,o,a,s=e.window;;){if(e.lookahead<=u){if(x(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=s[o=e.strstart-1])===s[++o]&&n===s[++o]&&n===s[++o]){a=e.strstart+u;do{}while(n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&o<a);e.match_length=u-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(o,t):n[o.level].func(o,t);if(3!==w&&4!==w||(o.status=666),1===w||3===w)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===w&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(m(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),g(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(b(o,255&e.adler),b(o,e.adler>>8&255),b(o,e.adler>>16&255),b(o,e.adler>>24&255),b(o,255&e.total_in),b(o,e.total_in>>8&255),b(o,e.total_in>>16&255),b(o,e.total_in>>24&255)):(y(o,e.adler>>>16),y(o,65535&e.adler)),g(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==f&&666!==t?h(e,c):(e.state=null,t===f?h(e,-3):0):c},r.deflateSetDictionary=function(e,t){var r,n,i,s,l,u,d,f,h=t.length;if(!e||!e.state)return c;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new o.Buf8(r.w_size),o.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,x(r);r.lookahead>=3;){for(n=r.strstart,i=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=2,x(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O;r=e.state,n=e.next_in,E=e.input,o=n+(e.avail_in-5),i=e.next_out,O=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,f=r.window,h=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(h+=E[n++]<<p,p+=8,h+=E[n++]<<p,p+=8),y=m[h&v];t:for(;;){if(h>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))O[i++]=65535&y;else{if(!(16&w)){if(!(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}x=65535&y,(w&=15)&&(p<w&&(h+=E[n++]<<p,p+=8),x+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=E[n++]<<p,p+=8,h+=E[n++]<<p,p+=8),y=g[h&b];r:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(!(64&w)){y=g[(65535&y)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(S=65535&y,p<(w&=15)&&(h+=E[n++]<<p,(p+=8)<w&&(h+=E[n++]<<p,p+=8)),l<(S+=h&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,(w=i-a)<S){if(u<(w=S-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=f,(C=0)===d){if(C+=c-w,w<x){for(x-=w;O[i++]=f[C++],--w;);C=i-S,k=O}}else if(d<w){if(C+=c+d-w,(w-=d)<x){for(x-=w;O[i++]=f[C++],--w;);if(C=0,d<x){for(x-=w=d;O[i++]=f[C++],--w;);C=i-S,k=O}}}else if(C+=d-w,w<x){for(x-=w;O[i++]=f[C++],--w;);C=i-S,k=O}for(;2<x;)O[i++]=k[C++],O[i++]=k[C++],O[i++]=k[C++],x-=3;x&&(O[i++]=k[C++],1<x&&(O[i++]=k[C++]))}else{for(C=i-S;O[i++]=O[C++],O[i++]=O[C++],O[i++]=O[C++],2<(x-=3););x&&(O[i++]=O[C++],1<x&&(O[i++]=O[C++]))}break}}break}}while(n<o&&i<s);n-=x=p>>3,h&=(1<<(p-=x<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=i<s?s-i+257:257-(i-s),r.hold=h,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,f(e))):l}function p(e,t){var r,n;return e?(n=new u,(e.state=n).window=null,0!==(r=h(e,t))&&(e.state=null),r):l}var m,g,v=!0;function b(e){if(v){var t;for(m=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),v=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}function y(e,t,r,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),o>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),n.arraySet(a.window,t,r-o,i,a.wnext),(o-=i)?(n.arraySet(a.window,t,r-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}r.inflateReset=f,r.inflateReset2=h,r.inflateResetKeep=d,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,u,d,f,h,p,m,g,v,w,x,S,C,k,E,O,A,T,j,P,M,R,_,I,N=0,F=new n.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),h=e.next_out,d=e.output,m=e.avail_out,f=e.next_in,u=e.input,p=e.avail_in,g=r.hold,v=r.bits,w=p,x=m,R=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;v<16;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(2&r.wrap&&35615===g){F[r.check=0]=255&g,F[1]=g>>>8&255,r.check=i(r.check,F,2,0),v=g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(v-=4,M=8+(15&(g>>>=4)),0===r.wbits)r.wbits=M;else if(M>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<M,e.adler=r.check=1,r.mode=512&g?10:12,v=g=0;break;case 2:for(;v<16;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=i(r.check,F,2,0)),v=g=0,r.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}r.head&&(r.head.time=g),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,F[2]=g>>>16&255,F[3]=g>>>24&255,r.check=i(r.check,F,4,0)),v=g=0,r.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=i(r.check,F,2,0)),v=g=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=i(r.check,F,2,0)),v=g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(S=r.length)&&(S=p),S&&(r.head&&(M=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,f,S,M)),512&r.flags&&(r.check=i(r.check,u,S,f)),p-=S,f+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(S=0;M=u[f+S++],r.head&&M&&r.length<65536&&(r.head.name+=String.fromCharCode(M)),M&&S<p;);if(512&r.flags&&(r.check=i(r.check,u,S,f)),p-=S,f+=S,M)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(S=0;M=u[f+S++],r.head&&M&&r.length<65536&&(r.head.comment+=String.fromCharCode(M)),M&&S<p;);if(512&r.flags&&(r.check=i(r.check,u,S,f)),p-=S,f+=S,M)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;v<16;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}v=g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}e.adler=r.check=c(g),v=g=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=h,e.avail_out=m,e.next_in=f,e.avail_in=p,r.hold=g,r.bits=v,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}switch(r.last=1&g,v-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,6!==t)break;g>>>=2,v-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,v-=2;break;case 14:for(g>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,v=g=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(p<S&&(S=p),m<S&&(S=m),0===S)break e;n.arraySet(d,u,f,S,h),p-=S,f+=S,m-=S,h+=S,r.length-=S;break}r.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(r.nlen=257+(31&g),g>>>=5,v-=5,r.ndist=1+(31&g),g>>>=5,v-=5,r.ncode=4+(15&g),g>>>=4,v-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;v<3;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}r.lens[D[r.have++]]=7&g,g>>>=3,v-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,_={bits:r.lenbits},R=s(0,r.lens,0,19,r.lencode,0,r.work,_),r.lenbits=_.bits,R){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(N=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,A=65535&N,!((E=N>>>24)<=v);){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(A<16)g>>>=E,v-=E,r.lens[r.have++]=A;else{if(16===A){for(I=E+2;v<I;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(g>>>=E,v-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}M=r.lens[r.have-1],S=3+(3&g),g>>>=2,v-=2}else if(17===A){for(I=E+3;v<I;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}v-=E,M=0,S=3+(7&(g>>>=E)),g>>>=3,v-=3}else{for(I=E+7;v<I;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}v-=E,M=0,S=11+(127&(g>>>=E)),g>>>=7,v-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=M}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,_={bits:r.lenbits},R=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,_),r.lenbits=_.bits,R){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,_={bits:r.distbits},R=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,_),r.distbits=_.bits,R){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=m){e.next_out=h,e.avail_out=m,e.next_in=f,e.avail_in=p,r.hold=g,r.bits=v,a(e,x),h=e.next_out,d=e.output,m=e.avail_out,f=e.next_in,u=e.input,p=e.avail_in,g=r.hold,v=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;O=(N=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,A=65535&N,!((E=N>>>24)<=v);){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(O&&!(240&O)){for(T=E,j=O,P=A;O=(N=r.lencode[P+((g&(1<<T+j)-1)>>T)])>>>16&255,A=65535&N,!(T+(E=N>>>24)<=v);){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}g>>>=T,v-=T,r.back+=T}if(g>>>=E,v-=E,r.back+=E,r.length=A,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=12;break}if(64&O){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(I=r.extra;v<I;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(N=r.distcode[g&(1<<r.distbits)-1])>>>16&255,A=65535&N,!((E=N>>>24)<=v);){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(!(240&O)){for(T=E,j=O,P=A;O=(N=r.distcode[P+((g&(1<<T+j)-1)>>T)])>>>16&255,A=65535&N,!(T+(E=N>>>24)<=v);){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}g>>>=T,v-=T,r.back+=T}if(g>>>=E,v-=E,r.back+=E,64&O){e.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(I=r.extra;v<I;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(S=x-m,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}C=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),k=r.window}else k=d,C=h-r.offset,S=r.length;for(m<S&&(S=m),m-=S,r.length-=S;d[h++]=k[C++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[h++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===p)break e;p--,g|=u[f++]<<v,v+=8}if(x-=m,e.total_out+=x,r.total+=x,x&&(e.adler=r.check=r.flags?i(r.check,d,x,h-x):o(r.check,d,x,h-x)),x=m,(r.flags?g:c(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}v=g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;v<32;){if(0===p)break e;p--,g+=u[f++]<<v,v+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}v=g=0}r.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;default:return l}return e.next_out=h,e.avail_out=m,e.next_in=f,e.avail_in=p,r.hold=g,r.bits=v,(r.wsize||x!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&y(e,e.output,e.next_out,x-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,x-=e.avail_out,e.total_in+=w,e.total_out+=x,r.total+=x,r.wrap&&x&&(e.adler=r.check=r.flags?i(r.check,d,x,e.next_out-x):o(r.check,d,x,e.next_out-x)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==w&&0===x||4===t)&&0===R&&(R=-5),R)},r.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,0):l},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&o(1,t,n,0)!==r.check?-3:y(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):l},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,u,d,f){var h,p,m,g,v,b,y,w,x,S=f.bits,C=0,k=0,E=0,O=0,A=0,T=0,j=0,P=0,M=0,R=0,_=null,I=0,N=new n.Buf16(16),F=new n.Buf16(16),D=null,B=0;for(C=0;C<=15;C++)N[C]=0;for(k=0;k<l;k++)N[t[r+k]]++;for(A=S,O=15;1<=O&&0===N[O];O--);if(O<A&&(A=O),0===O)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(E=1;E<O&&0===N[E];E++);for(A<E&&(A=E),C=P=1;C<=15;C++)if(P<<=1,(P-=N[C])<0)return-1;if(0<P&&(0===e||1!==O))return-1;for(F[1]=0,C=1;C<15;C++)F[C+1]=F[C]+N[C];for(k=0;k<l;k++)0!==t[r+k]&&(d[F[t[r+k]]++]=k);if(b=0===e?(_=D=d,19):1===e?(_=o,I-=257,D=i,B-=257,256):(_=a,D=s,-1),C=E,v=u,j=k=R=0,m=-1,g=(M=1<<(T=A))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(y=C-j,x=d[k]<b?(w=0,d[k]):d[k]>b?(w=D[B+d[k]],_[I+d[k]]):(w=96,0),h=1<<C-j,E=p=1<<T;c[v+(R>>j)+(p-=h)]=y<<24|w<<16|x,0!==p;);for(h=1<<C-1;R&h;)h>>=1;if(0!==h?(R&=h-1,R+=h):R=0,k++,0==--N[C]){if(C===O)break;C=t[r+d[k]]}if(A<C&&(R&g)!==m){for(0===j&&(j=A),v+=E,P=1<<(T=C-j);T+j<O&&!((P-=N[T+j])<=0);)T++,P<<=1;if(M+=1<<T,1===e&&852<M||2===e&&592<M)return 1;c[m=R&g]=A<<24|T<<16|v-u}}return 0!==R&&(c[v+R]=C-j<<24|64<<16),f.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var n=e("../utils/common");function o(e){for(var t=e.length;0<=--t;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var u=new Array(60);o(u);var d=new Array(512);o(d);var f=new Array(256);o(f);var h=new Array(29);o(h);var p,m,g,v=new Array(30);function b(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?d[e]:d[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function C(e,t,r){S(e,r[2*t],r[2*t+1])}function k(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function E(e,t,r){var n,o,i=new Array(16),a=0;for(n=1;n<=15;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=k(i[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){8<e.bi_valid?x(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function T(e,t,r,n){var o=2*t,i=2*r;return e[o]<e[i]||e[o]===e[i]&&n[t]<=n[r]}function j(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&T(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!T(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function P(e,t,r){var n,o,s,l,c=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],o=e.pending_buf[e.l_buf+c],c++,0===n?C(e,o,t):(C(e,(s=f[o])+256+1,t),0!==(l=i[s])&&S(e,o-=h[s],l),C(e,s=w(--n),r),0!==(l=a[s])&&S(e,n-=v[s],l)),c<e.last_lit;);C(e,256,t)}function M(e,t){var r,n,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)j(e,i,r);for(o=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*o]=i[2*r]+i[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=o,e.heap[1]=o++,j(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,i,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)p<(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(i=p,m++),l[2*n+1]=i,c<n||(e.bl_count[i]++,a=0,h<=n&&(a=f[n-h]),s=l[2*n],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*n+1]+a)));if(0!==m){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,m-=2}while(0<m);for(i=p;0!==i;i--)for(n=e.bl_count[i];0!==n;)c<(o=e.heap[--r])||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),n--)}}(e,t),E(i,c,e.bl_count)}function R(e,t,r){var n,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=a,a=t[2*(n+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function _(e,t,r){var n,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(o=a,a=t[2*(n+1)+1],!(++s<l&&o===a)){if(s<c)for(;C(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==i&&(C(e,o,e.bl_tree),s--),C(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(C(e,17,e.bl_tree),S(e,s-3,3)):(C(e,18,e.bl_tree),S(e,s-11,7));i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}o(v);var I=!1;function N(e,t,r,o){S(e,0+(o?1:0),3),function(e,t,r){A(e),x(e,r),x(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}r._tr_init=function(e){I||(function(){var e,t,r,n,o,l=new Array(16);for(n=r=0;n<28;n++)for(h[n]=r,e=0;e<1<<i[n];e++)f[r++]=n;for(f[r-1]=n,n=o=0;n<16;n++)for(v[n]=o,e=0;e<1<<a[n];e++)d[o++]=n;for(o>>=7;n<30;n++)for(v[n]=o<<7,e=0;e<1<<a[n]-7;e++)d[256+o++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,l[8]++;for(;e<=255;)c[2*e+1]=9,e++,l[9]++;for(;e<=279;)c[2*e+1]=7,e++,l[7]++;for(;e<=287;)c[2*e+1]=8,e++,l[8]++;for(E(c,287,l),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=k(e,5);p=new b(c,i,257,286,15),m=new b(u,a,0,30,15),g=new b(new Array(0),s,0,19,7)}(),I=!0),e.l_desc=new y(e.dyn_ltree,p),e.d_desc=new y(e.dyn_dtree,m),e.bl_desc=new y(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,O(e)},r._tr_stored_block=N,r._tr_flush_block=function(e,t,r,n){var o,i,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),a=function(e){var t;for(R(e,e.dyn_ltree,e.l_desc.max_code),R(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=r+5,r+4<=o&&-1!==t?N(e,t,r,n):4===e.strategy||i===o?(S(e,2+(n?1:0),3),P(e,c,u)):(S(e,4+(n?1:0),3),function(e,t,r,n){var o;for(S(e,t-257,5),S(e,r-1,5),S(e,n-4,4),o=0;o<n;o++)S(e,e.bl_tree[2*l[o]+1],3);_(e,e.dyn_ltree,t-1),_(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),P(e,e.dyn_ltree,e.dyn_dtree)),O(e),n&&A(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(f[r]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){S(e,2,3),C(e,256,c),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e){if(!e.setImmediate){var t,n,o,i,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,t="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick((function(){f(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var o={callback:e,args:r};return s[a]=o,t(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&f(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==o?o:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,t,n){(function(e){(function(){"use strict";var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source),o="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")(),s=Object.prototype.toString,l=a.Symbol,c=l?l.prototype:void 0,u=c?c.toString:void 0;t.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))&&n.test(e)?e.replace(r,"\\$&"):e}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,t,n){(function(e){(function(){"use strict";var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[r]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[o]=p["[object Number]"]=p[i]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),b="object"==typeof n&&n&&!n.nodeType&&n,y=b&&"object"==typeof t&&t&&!t.nodeType&&t,w=y&&y.exports===b&&m.process,x=function(){try{return w&&w.binding("util")}catch(e){}}(),S=x&&x.isTypedArray;function C(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function k(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function E(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function O(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function A(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var T,j,P,M=Array.prototype,R=Function.prototype,_=Object.prototype,I=v["__core-js_shared__"],N=(T=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",F=R.toString,D=_.hasOwnProperty,B=_.toString,L=RegExp("^"+F.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=v.Symbol,H=v.Uint8Array,U=_.propertyIsEnumerable,V=M.splice,W=(j=Object.keys,P=Object,function(e){return j(P(e))}),G=xe(v,"DataView"),q=xe(v,"Map"),K=xe(v,"Promise"),X=xe(v,"Set"),Y=xe(v,"WeakMap"),$=xe(Object,"create"),Z=je(G),Q=je(q),J=je(K),ee=je(X),te=je(Y),re=z?z.prototype:void 0,ne=re?re.valueOf:void 0,oe=re?re.toString:void 0;function ie(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function le(e){var t=-1,r=e?e.length:0;for(this.__data__=new se;++t<r;)this.add(e[t])}function ce(e){this.__data__=new ae(e)}function ue(e,t){for(var r=e.length;r--;)if(_e(e[r][0],t))return r;return-1}function de(e,t,r,n){return he(e,(function(e,o,i){t(n,e,r(e),i)})),n}ie.prototype.clear=function(){this.__data__=$?$(null):{}},ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ie.prototype.get=function(e){var t=this.__data__;if($){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:D.call(t,e)},ie.prototype.set=function(e,t){return this.__data__[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},ae.prototype.clear=function(){this.__data__=[]},ae.prototype.delete=function(e){var t=this.__data__,r=ue(t,e);return!(r<0||(r==t.length-1?t.pop():V.call(t,r,1),0))},ae.prototype.get=function(e){var t=this.__data__,r=ue(t,e);return r<0?void 0:t[r][1]},ae.prototype.has=function(e){return ue(this.__data__,e)>-1},ae.prototype.set=function(e,t){var r=this.__data__,n=ue(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},se.prototype.clear=function(){this.__data__={hash:new ie,map:new(q||ae),string:new ie}},se.prototype.delete=function(e){return we(this,e).delete(e)},se.prototype.get=function(e){return we(this,e).get(e)},se.prototype.has=function(e){return we(this,e).has(e)},se.prototype.set=function(e,t){return we(this,e).set(e,t),this},le.prototype.add=le.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},le.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new ae},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this;r=this.__data__=new se(n)}return r.set(e,t),this};var fe,he=(fe=function(e,t){return e&&pe(e,t,Ve)},function(e,t){if(null==e)return e;if(!Fe(e))return fe(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););return e}),pe=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}return e};function me(e,t){for(var r=0,n=(t=ke(t,e)?[t]:be(t)).length;null!=e&&r<n;)e=e[Te(t[r++])];return r&&r==n?e:void 0}function ge(e,t){return null!=e&&t in Object(e)}function ve(e,t,n,s,l){return e===t||(null==e||null==t||!Le(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,s,l,c){var u=Ne(e),d=Ne(t),f="[object Array]",h="[object Array]";u||(f=(f=Se(e))==r?i:f),d||(h=(h=Se(t))==r?i:h);var p=f==i&&!E(e),m=h==i&&!E(t),g=f==h;if(g&&!p)return c||(c=new ce),u||Ue(e)?ye(e,t,n,s,l,c):function(e,t,r,n,i,s,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!n(new H(e),new H(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var c=O;case a:var u=2&s;if(c||(c=A),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;s|=1,l.set(e,t);var f=ye(c(e),c(t),n,i,s,l);return l.delete(e),f;case"[object Symbol]":if(ne)return ne.call(e)==ne.call(t)}return!1}(e,t,f,n,s,l,c);if(!(2&l)){var v=p&&D.call(e,"__wrapped__"),b=m&&D.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new ce),n(y,w,s,l,c)}}return!!g&&(c||(c=new ce),function(e,t,r,n,o,i){var a=2&o,s=Ve(e),l=s.length;if(l!=Ve(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:D.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var p=e[u=s[c]],m=t[u];if(n)var g=a?n(m,p,u,t,e,i):n(p,m,u,e,t,i);if(!(void 0===g?p===m||r(p,m,n,o,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,s,l,c))}(e,t,ve,n,s,l))}function be(e){return Ne(e)?e:Ae(e)}function ye(e,t,r,n,o,i){var a=2&o,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,f=1&o?new le:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],p=t[u];if(n)var m=a?n(p,h,u,t,e,i):n(h,p,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!k(t,(function(e,t){if(!f.has(t)&&(h===e||r(h,e,n,o,i)))return f.add(t)}))){d=!1;break}}else if(h!==p&&!r(h,p,n,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function we(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function xe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Le(e)||function(e){return!!N&&N in e}(e))&&(De(e)||E(e)?L:f).test(je(e))}(r)?r:void 0}var Se=function(e){return B.call(e)};function Ce(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(Ne(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!He(e))||l.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Ee(e){return e==e&&!Le(e)}function Oe(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(G&&"[object DataView]"!=Se(new G(new ArrayBuffer(1)))||q&&Se(new q)!=o||K&&"[object Promise]"!=Se(K.resolve())||X&&Se(new X)!=a||Y&&"[object WeakMap]"!=Se(new Y))&&(Se=function(e){var t=B.call(e),r=t==i?e.constructor:void 0,n=r?je(r):void 0;if(n)switch(n){case Z:return"[object DataView]";case Q:return o;case J:return"[object Promise]";case ee:return a;case te:return"[object WeakMap]"}return t});var Ae=Re((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(He(e))return oe?oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return c.test(e)&&r.push(""),e.replace(u,(function(e,t,n,o){r.push(n?o.replace(d,"$1"):t||e)})),r}));function Te(e){if("string"==typeof e||He(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function je(e){if(null!=e){try{return F.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Pe,Me=(Pe=function(e,t,r){D.call(e,r)?e[r].push(t):e[r]=[t]},function(e,t){var r={};return(Ne(e)?C:de)(e,Pe,function(e){return"function"==typeof e?e:null==e?We:"object"==typeof e?Ne(e)?function(e,t){return ke(e)&&Ee(t)?Oe(Te(e),t):function(r){var n=function(e,t){var r=null==e?void 0:me(e,t);return void 0===r?void 0:r}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n,o=-1,i=(t=ke(t,e)?[t]:be(t)).length;++o<i;){var a=Te(t[o]);if(!(n=null!=e&&r(e,a)))break;e=e[a]}return n||!!(i=e?e.length:0)&&Be(i)&&Ce(a,i)&&(Ne(e)||Ie(e))}(e,t,ge)}(r,e):ve(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ve(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ee(o)]}return t}(e);return 1==t.length&&t[0][2]?Oe(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,i=o;if(null==e)return!i;for(e=Object(e);o--;){var a=r[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var s=(a=r[o])[0],l=e[s],c=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else{var u,d=new ce;if(!(void 0===u?ve(c,l,n,3,d):u))return!1}}return!0}(r,0,t)}}(e):ke(t=e)?(r=Te(t),function(e){return null==e?void 0:e[r]}):function(e){return function(t){return me(t,e)}}(t);var t,r}(t),r)});function Re(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(Re.Cache||se),r}function _e(e,t){return e===t||e!=e&&t!=t}function Ie(e){return function(e){return ze(e)&&Fe(e)}(e)&&D.call(e,"callee")&&(!U.call(e,"callee")||B.call(e)==r)}Re.Cache=se;var Ne=Array.isArray;function Fe(e){return null!=e&&Be(e.length)&&!De(e)}function De(e){var t=Le(e)?B.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Le(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ze(e){return!!e&&"object"==typeof e}function He(e){return"symbol"==typeof e||ze(e)&&"[object Symbol]"==B.call(e)}var Ue=S?function(e){return function(t){return e(t)}}(S):function(e){return ze(e)&&Be(e.length)&&!!p[B.call(e)]};function Ve(e){return Fe(e)?function(e,t){var r=Ne(e)||Ie(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!D.call(e,i)||o&&("length"==i||Ce(i,n))||r.push(i);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||_))return W(e);var t,r,n=[];for(var o in Object(e))D.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e)}function We(e){return e}t.exports=Me}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==n.call(e)}},{}],445:[function(e,t,n){(function(e){(function(){"use strict";var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),h="object"==typeof n&&n&&!n.nodeType&&n,p=h&&"object"==typeof t&&t&&!t.nodeType&&t,m=p&&p.exports===h,g=m&&u.process,v=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),b=v&&v.isTypedArray;function y(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function w(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function x(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var S,C,k,E=Array.prototype,O=Function.prototype,A=Object.prototype,T=f["__core-js_shared__"],j=O.toString,P=A.hasOwnProperty,M=(S=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",R=A.toString,_=RegExp("^"+j.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=m?f.Buffer:void 0,N=f.Symbol,F=f.Uint8Array,D=A.propertyIsEnumerable,B=E.splice,L=N?N.toStringTag:void 0,z=Object.getOwnPropertySymbols,H=I?I.isBuffer:void 0,U=(C=Object.keys,k=Object,function(e){return C(k(e))}),V=pe(f,"DataView"),W=pe(f,"Map"),G=pe(f,"Promise"),q=pe(f,"Set"),K=pe(f,"WeakMap"),X=pe(Object,"create"),Y=be(V),$=be(W),Z=be(G),Q=be(q),J=be(K),ee=N?N.prototype:void 0,te=ee?ee.valueOf:void 0;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ie(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new oe;++t<r;)this.add(e[t])}function ae(e){var t=this.__data__=new ne(e);this.size=t.size}function se(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1}function le(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?function(e){var t=P.call(e,L),r=e[L];try{e[L]=void 0;var n=!0}catch(e){}var o=R.call(e);return n&&(t?e[L]=r:delete e[L]),o}(e):function(e){return R.call(e)}(e)}function ce(e){return Oe(e)&&le(e)==r}function ue(e,t,n,s,l){return e===t||(null==e||null==t||!Oe(e)&&!Oe(t)?e!=e&&t!=t:function(e,t,n,s,l,c){var u=xe(e),d=xe(t),f=u?"[object Array]":ge(e),h=d?"[object Array]":ge(t),p=(f=f==r?i:f)==i,m=(h=h==r?i:h)==i,g=f==h;if(g&&Se(e)){if(!Se(t))return!1;u=!0,p=!1}if(g&&!p)return c||(c=new ae),u||Ae(e)?de(e,t,n,s,l,c):function(e,t,r,n,i,s,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new F(e),new F(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ye(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var c=w;case a:var u=1&n;if(c||(c=x),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;n|=2,l.set(e,t);var f=de(c(e),c(t),n,i,s,l);return l.delete(e),f;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,f,n,s,l,c);if(!(1&n)){var v=p&&P.call(e,"__wrapped__"),b=m&&P.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,S=b?t.value():t;return c||(c=new ae),l(y,S,n,s,c)}}return!!g&&(c||(c=new ae),function(e,t,r,n,o,i){var a=1&r,s=fe(e),l=s.length;if(l!=fe(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:P.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var p=e[u=s[c]],m=t[u];if(n)var g=a?n(m,p,u,t,e,i):n(p,m,u,e,t,i);if(!(void 0===g?p===m||o(p,m,r,n,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,s,l,c))}(e,t,n,s,ue,l))}function de(e,t,r,n,o,i){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,f=2&r?new ie:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],p=t[u];if(n)var m=a?n(p,h,u,t,e,i):n(h,p,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!y(t,(function(e,t){if(a=t,!f.has(a)&&(h===e||o(h,e,r,n,i)))return f.push(t);var a}))){d=!1;break}}else if(h!==p&&!o(h,p,r,n,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function fe(e){return function(e,t,r){var n=t(e);return xe(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Te,me)}function he(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function pe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||function(e){return!!M&&M in e}(e))&&(Ce(e)?_:s).test(be(e))}(r)?r:void 0}re.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return P.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:P.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this},ne.prototype.clear=function(){this.__data__=[],this.size=0},ne.prototype.delete=function(e){var t=this.__data__,r=se(t,e);return!(r<0||(r==t.length-1?t.pop():B.call(t,r,1),--this.size,0))},ne.prototype.get=function(e){var t=this.__data__,r=se(t,e);return r<0?void 0:t[r][1]},ne.prototype.has=function(e){return se(this.__data__,e)>-1},ne.prototype.set=function(e,t){var r=this.__data__,n=se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(W||ne),string:new re}},oe.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return he(this,e).get(e)},oe.prototype.has=function(e){return he(this,e).has(e)},oe.prototype.set=function(e,t){var r=he(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new ne,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ne){var n=r.__data__;if(!W||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new oe(n)}return r.set(e,t),this.size=r.size,this};var me=z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a)&&(i[o++]=a)}return i}(z(e),(function(t){return D.call(e,t)})))}:function(){return[]},ge=le;function ve(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}function be(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ye(e,t){return e===t||e!=e&&t!=t}(V&&"[object DataView]"!=ge(new V(new ArrayBuffer(1)))||W&&ge(new W)!=o||G&&"[object Promise]"!=ge(G.resolve())||q&&ge(new q)!=a||K&&"[object WeakMap]"!=ge(new K))&&(ge=function(e){var t=le(e),r=t==i?e.constructor:void 0,n=r?be(r):"";if(n)switch(n){case Y:return"[object DataView]";case $:return o;case Z:return"[object Promise]";case Q:return a;case J:return"[object WeakMap]"}return t});var we=ce(function(){return arguments}())?ce:function(e){return Oe(e)&&P.call(e,"callee")&&!D.call(e,"callee")},xe=Array.isArray,Se=H||function(){return!1};function Ce(e){if(!Ee(e))return!1;var t=le(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Ae=b?function(e){return function(t){return e(t)}}(b):function(e){return Oe(e)&&ke(e.length)&&!!c[le(e)]};function Te(e){return null!=(t=e)&&ke(t.length)&&!Ce(t)?function(e,t){var r=xe(e),n=!r&&we(e),o=!r&&!n&&Se(e),i=!r&&!n&&!o&&Ae(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!P.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ve(c,l))||s.push(c);return s}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||A))return U(e);var t,r,n=[];for(var o in Object(e))P.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e);var t}t.exports=function(e,t){return ue(e,t)}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,t,n){(function(e){(function(){"use strict";var r="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")(),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o.Symbol,c=l?l.toStringTag:void 0;t.exports=function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=a.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var o=s.call(e);return n&&(t?e[c]=r:delete e[c]),o}(e):function(e){return s.call(e)}(e)}(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],448:[function(e,t,r){"use strict";t.exports=function(e){return void 0===e}},{}],449:[function(e,t,n){(function(e){(function(){"use strict";var r=/^\[object .+?Constructor\]$/,n="object"==typeof e&&e&&e.Object===Object&&e,o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();function a(e,t){return!(!e||!e.length)&&function(e,t){if(t!=t)return function(e,t){for(var r=e.length,n=-1;++n<r;)if(t(e[n],n,e))return n;return-1}(e,s);for(var r=-1,n=e.length;++r<n;)if(e[r]===t)return r;return-1}(e,t)>-1}function s(e){return e!=e}function l(e,t){return e.has(t)}function c(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var u,d=Array.prototype,f=Function.prototype,h=Object.prototype,p=i["__core-js_shared__"],m=(u=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",g=f.toString,v=h.hasOwnProperty,b=h.toString,y=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=d.splice,x=R(i,"Map"),S=R(i,"Set"),C=R(Object,"create");function k(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function E(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function O(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function A(e){var t=-1,r=e?e.length:0;for(this.__data__=new O;++t<r;)this.add(e[t])}function T(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}function j(e){return!(!_(e)||(t=e,m&&m in t))&&(function(e){var t=_(e)?b.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?y:r).test(function(e){if(null!=e){try{return g.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}k.prototype.clear=function(){this.__data__=C?C(null):{}},k.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},k.prototype.get=function(e){var t=this.__data__;if(C){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return v.call(t,e)?t[e]:void 0},k.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:v.call(t,e)},k.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?"__lodash_hash_undefined__":t,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(e){var t=this.__data__,r=T(t,e);return!(r<0||(r==t.length-1?t.pop():w.call(t,r,1),0))},E.prototype.get=function(e){var t=this.__data__,r=T(t,e);return r<0?void 0:t[r][1]},E.prototype.has=function(e){return T(this.__data__,e)>-1},E.prototype.set=function(e,t){var r=this.__data__,n=T(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},O.prototype.clear=function(){this.__data__={hash:new k,map:new(x||E),string:new k}},O.prototype.delete=function(e){return M(this,e).delete(e)},O.prototype.get=function(e){return M(this,e).get(e)},O.prototype.has=function(e){return M(this,e).has(e)},O.prototype.set=function(e,t){return M(this,e).set(e,t),this},A.prototype.add=A.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},A.prototype.has=function(e){return this.__data__.has(e)};var P=S&&1/c(new S([,-0]))[1]==1/0?function(e){return new S(e)}:function(){};function M(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function R(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return j(r)?r:void 0}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return e&&e.length?function(e,t,r){var n=-1,o=a,i=e.length,s=!0,u=[],d=u;if(i>=200){var f=P(e);if(f)return c(f);s=!1,o=l,d=new A}else d=u;e:for(;++n<i;){var h=e[n],p=h;if(h=0!==h?h:0,s&&p==p){for(var m=d.length;m--;)if(d[m]===p)continue e;u.push(h)}else o(d,p,r)||(d!==u&&d.push(p),u.push(h))}return u}(e):[]}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,r){"use strict";var n=e("inherits"),o=e("hash-base"),i=e("safe-buffer").Buffer,a=new Array(16);function s(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,o,i,a){return l(e+(t&r|~t&n)+o+i|0,a)+t|0}function u(e,t,r,n,o,i,a){return l(e+(t&n|r&~n)+o+i|0,a)+t|0}function d(e,t,r,n,o,i,a){return l(e+(t^r^n)+o+i|0,a)+t|0}function f(e,t,r,n,o,i,a){return l(e+(r^(t|~n))+o+i|0,a)+t|0}n(s,o),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,o=this._c,i=this._d;r=c(r,n,o,i,e[0],3614090360,7),i=c(i,r,n,o,e[1],3905402710,12),o=c(o,i,r,n,e[2],606105819,17),n=c(n,o,i,r,e[3],3250441966,22),r=c(r,n,o,i,e[4],4118548399,7),i=c(i,r,n,o,e[5],1200080426,12),o=c(o,i,r,n,e[6],2821735955,17),n=c(n,o,i,r,e[7],4249261313,22),r=c(r,n,o,i,e[8],1770035416,7),i=c(i,r,n,o,e[9],2336552879,12),o=c(o,i,r,n,e[10],4294925233,17),n=c(n,o,i,r,e[11],2304563134,22),r=c(r,n,o,i,e[12],1804603682,7),i=c(i,r,n,o,e[13],4254626195,12),o=c(o,i,r,n,e[14],2792965006,17),r=u(r,n=c(n,o,i,r,e[15],1236535329,22),o,i,e[1],4129170786,5),i=u(i,r,n,o,e[6],3225465664,9),o=u(o,i,r,n,e[11],643717713,14),n=u(n,o,i,r,e[0],3921069994,20),r=u(r,n,o,i,e[5],3593408605,5),i=u(i,r,n,o,e[10],38016083,9),o=u(o,i,r,n,e[15],3634488961,14),n=u(n,o,i,r,e[4],3889429448,20),r=u(r,n,o,i,e[9],568446438,5),i=u(i,r,n,o,e[14],3275163606,9),o=u(o,i,r,n,e[3],4107603335,14),n=u(n,o,i,r,e[8],1163531501,20),r=u(r,n,o,i,e[13],2850285829,5),i=u(i,r,n,o,e[2],4243563512,9),o=u(o,i,r,n,e[7],1735328473,14),r=d(r,n=u(n,o,i,r,e[12],2368359562,20),o,i,e[5],4294588738,4),i=d(i,r,n,o,e[8],2272392833,11),o=d(o,i,r,n,e[11],1839030562,16),n=d(n,o,i,r,e[14],4259657740,23),r=d(r,n,o,i,e[1],2763975236,4),i=d(i,r,n,o,e[4],1272893353,11),o=d(o,i,r,n,e[7],4139469664,16),n=d(n,o,i,r,e[10],3200236656,23),r=d(r,n,o,i,e[13],681279174,4),i=d(i,r,n,o,e[0],3936430074,11),o=d(o,i,r,n,e[3],3572445317,16),n=d(n,o,i,r,e[6],76029189,23),r=d(r,n,o,i,e[9],3654602809,4),i=d(i,r,n,o,e[12],3873151461,11),o=d(o,i,r,n,e[15],530742520,16),r=f(r,n=d(n,o,i,r,e[2],3299628645,23),o,i,e[0],4096336452,6),i=f(i,r,n,o,e[7],1126891415,10),o=f(o,i,r,n,e[14],2878612391,15),n=f(n,o,i,r,e[5],4237533241,21),r=f(r,n,o,i,e[12],1700485571,6),i=f(i,r,n,o,e[3],2399980690,10),o=f(o,i,r,n,e[10],4293915773,15),n=f(n,o,i,r,e[1],2240044497,21),r=f(r,n,o,i,e[8],1873313359,6),i=f(i,r,n,o,e[15],4264355552,10),o=f(o,i,r,n,e[6],2734768916,15),n=f(n,o,i,r,e[13],1309151649,21),r=f(r,n,o,i,e[4],4149444226,6),i=f(i,r,n,o,e[11],3174756917,10),o=f(o,i,r,n,e[2],718787259,15),n=f(n,o,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("brorand");function i(e){this.rand=e||new o.Rand}t.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var o=new n(this.rand.generate(r))}while(o.cmp(e)>=0);return o},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var o=e.bitLength(),i=n.mont(e),a=new n(1).toRed(i);t||(t=Math.max(1,o/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(i);t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var f=d.toRed(i).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(u)){for(var h=1;h<l;h++){if(0===(f=f.redSqr()).cmp(a))return!1;if(0===f.cmp(u))break}if(h===l)return!1}}return!0},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),o=n.mont(e),i=new n(1).toRed(o);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),c=a.toRed(o);t>0;t--){var u=this._randrange(new n(2),a),d=e.gcd(u);if(0!==d.cmpn(1))return d;var f=u.toRed(o).redPow(l);if(0!==f.cmp(i)&&0!==f.cmp(c)){for(var h=1;h<s;h++){if(0===(f=f.redSqr()).cmp(i))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(c))break}if(h===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],453:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,r){"use strict";var n=r;function o(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var o=e.charCodeAt(n),i=o>>8,a=255&o;i?r.push(i,a):r.push(a)}return r},n.zero2=o,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},{}],455:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var o=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));r.RSAPrivateKey=o;var i=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));r.RSAPublicKey=i;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));r.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));r.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));r.EncryptedPrivateKey=c;var u=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));r.DSAPrivateKey=u,r.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));r.ECPrivateKey=d;var f=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));r.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(e,t,r){"use strict";var n=e("asn1.js"),o=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),i=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),l=n.define("RelativeDistinguishedName",(function(){this.setof(i)})),c=n.define("RDNSequence",(function(){this.seqof(l)})),u=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},{"asn1.js":170}],458:[function(e,t,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=e("evp_bytestokey"),s=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var r,c=e.toString(),u=c.match(n);if(u){var d="aes"+u[1],f=l.from(u[2],"hex"),h=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=a(t,f.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(d,p,f);m.push(g.update(h)),m.push(g.final()),r=l.concat(m)}else{var v=c.match(i);r=l.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(o)[1],data:r}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,r){"use strict";var n=e("./asn1"),o=e("./aesid.json"),i=e("./fixProc"),a=e("browserify-aes"),s=e("pbkdf2"),l=e("safe-buffer").Buffer;function c(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var r,c,u=i(e,t),d=u.tag,f=u.data;switch(d){case"CERTIFICATE":c=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(f,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":f=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(i.split("-")[1],10)/8,f=s.pbkdf2Sync(t,r,n,d,"sha1"),h=a.createDecipheriv(i,f,c),p=[];return p.push(h.update(u)),p.push(h.final()),l.concat(p)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+d)}}t.exports=c,c.signature=n.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,r){"use strict";r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,n){(function(r){(function(){"use strict";var n,o,i=e("safe-buffer").Buffer,a=e("./precondition"),s=e("./default-encoding"),l=e("./sync"),c=e("./to-buffer"),u=r.crypto&&r.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(){return o||(o=r.process&&r.process.nextTick?r.process.nextTick:r.queueMicrotask?r.queueMicrotask:r.setImmediate?r.setImmediate:r.setTimeout)}function p(e,t,r,n,o){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:o}},e,n<<3)})).then((function(e){return i.from(e)}))}t.exports=function(e,t,o,m,g,v){"function"==typeof g&&(v=g,g=void 0);var b=d[(g=g||"sha1").toLowerCase()];if(b&&"function"==typeof r.Promise){if(a(o,m),e=c(e,s,"Password"),t=c(t,s,"Salt"),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=p(n=n||i.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(b).then((function(r){return r?p(e,t,o,m,b):l(e,t,o,m,g)})),v)}else h()((function(){var r;try{r=l(e,t,o,m,g)}catch(e){return v(e)}v(null,r)}))}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,n){(function(e,r){(function(){"use strict";var n;n=r.process&&r.process.browser?"utf-8":r.process&&r.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,r){"use strict";var n=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,r){"use strict";var n=e("create-hash/md5"),o=e("ripemd160"),i=e("sha.js"),a=e("safe-buffer").Buffer,s=e("./precondition"),l=e("./default-encoding"),c=e("./to-buffer"),u=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,r){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new o).update(e).digest()}:"md5"===e?n:function(t){return i(e).update(t).digest()}}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=s(t):t.length<l&&(t=a.concat([t,u],l));for(var c=a.allocUnsafe(l+d[e]),f=a.allocUnsafe(l+d[e]),h=0;h<l;h++)c[h]=54^t[h],f[h]=92^t[h];var p=a.allocUnsafe(l+r+4);c.copy(p,0,0,l),this.ipad1=p,this.ipad2=c,this.opad=f,this.alg=e,this.blocksize=l,this.hash=s,this.size=d[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,o){s(r,n);var i=new f(o=o||"sha1",e=c(e,l,"Password"),(t=c(t,l,"Salt")).length),u=a.allocUnsafe(n),h=a.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,m=d[o],g=Math.ceil(n/m),v=1;v<=g;v++){h.writeUInt32BE(v,t.length);for(var b=i.run(h,i.ipad1),y=b,w=1;w<r;w++){y=i.run(y,i.ipad2);for(var x=0;x<m;x++)b[x]^=y[x]}b.copy(u,p),p+=m}return u}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;t.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,r){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,o)}));default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return e.nextTick((function(){t.apply(null,i)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,r){"use strict";var n,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,u=[],d=!1,f=-1;function h(){d&&c&&(d=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!d){var e=l(h);d=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new m(e,t)),1!==u.length||d||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],468:[function(e,t,r){"use strict";r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,r){"use strict";var n=e("create-hash"),o=e("safe-buffer").Buffer;function i(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,a=o.alloc(0),s=0;a.length<t;)r=i(s++),a=o.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],471:[function(e,t,r){"use strict";var n=e("parse-asn1"),o=e("./mgf"),i=e("./xor"),a=e("bn.js"),s=e("browserify-rsa"),l=e("create-hash"),c=e("./withPublic"),u=e("safe-buffer").Buffer;t.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var f,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=r?c(new a(t),h):s(t,h);var m=u.alloc(p-f.length);if(f=u.concat([m,f],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),d=i(s,o(c,a)),f=i(c,o(d,r-a-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var o=-1;++o<n;)r+=e[o]^t[o];return r}(n,f.slice(0,a)))throw new Error("decryption error");for(var h=a;0===f[h];)h++;if(1!==f[h++])throw new Error("decryption error");return f.slice(h)}(h,f);if(1===d)return function(e,t,r){for(var n=t.slice(0,2),o=2,i=0;0!==t[o++];)if(o>=t.length){i++;break}var a=t.slice(2,o-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&i++,a.length<8&&i++,i)throw new Error("decryption error");return t.slice(o)}(0,f,r);if(3===d)return f;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,r){"use strict";var n=e("parse-asn1"),o=e("randombytes"),i=e("create-hash"),a=e("./mgf"),s=e("./xor"),l=e("bn.js"),c=e("./withPublic"),u=e("browserify-rsa"),d=e("safe-buffer").Buffer;t.exports=function(e,t,r){var f;f=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===f)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=i("sha1").update(d.alloc(0)).digest(),u=c.length,f=2*u;if(n>r-f-2)throw new Error("message too long");var h=d.alloc(r-n-f-2),p=r-u-1,m=o(u),g=s(d.concat([c,h,d.alloc(1,1),t],p),a(m,p)),v=s(m,a(g,u));return new l(d.concat([d.alloc(1),v,g],r))}(p,t);else if(1===f)h=function(e,t,r){var n,i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");return n=r?d.alloc(a-i-3,255):function(e){for(var t,r=d.allocUnsafe(e),n=0,i=o(2*e),a=0;n<e;)a===i.length&&(i=o(2*e),a=0),(t=i[a++])&&(r[n++]=t);return r}(a-i-3),new l(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],a))}(p,t,r);else{if(3!==f)throw new Error("unknown padding");if((h=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?u(h,p):c(h,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,r){"use strict";var n=e("bn.js"),o=e("safe-buffer").Buffer;t.exports=function(e,t){return o.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,r){"use strict";t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],475:[function(e,t,n){(function(r,n){(function(){"use strict";var o=e("safe-buffer").Buffer,i=n.crypto||n.msCrypto;i&&i.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)i.getRandomValues(n.slice(a,a+65536));else i.getRandomValues(n);return"function"==typeof t?r.nextTick((function(){t(null,n)})):n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,n){(function(t,r){(function(){"use strict";function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=e("safe-buffer"),a=e("randombytes"),s=i.Buffer,l=i.kMaxLength,c=r.crypto||r.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>l)throw new RangeError("buffer too small")}function h(e,r,n,o){if(t.browser){var i=e.buffer,s=new Uint8Array(i,r,n);return c.getRandomValues(s),o?void t.nextTick((function(){o(null,e)})):e}if(!o)return a(n).copy(e,r),e;a(n,(function(t,n){if(t)return o(t);n.copy(e,r),o(null,e)}))}c&&c.getRandomValues||!t.browser?(n.randomFill=function(e,t,n,o){if(!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)o=t,t=0,n=e.length;else if("function"==typeof n)o=n,n=e.length-t;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return d(t,e.length),f(n,t,e.length),h(e,t,n,o)},n.randomFillSync=function(e,t,n){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===n&&(n=e.length-t),f(n,t,e.length),h(e,t,n)}):(n.randomFill=o,n.randomFillSync=o)}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,r){"use strict";var n={};function o(e,t,r){r||(r=Error);var o=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);o.prototype.name=r.name,o.prototype.code=e,n[e]=o}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,a;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+1>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(i(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],478:[function(e,t,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var o=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(c,o);for(var a=n(i.prototype),s=0;s<a.length;s++){var l=a[s];c.prototype[l]||(c.prototype[l]=i.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}e("inherits")(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,n){(function(r,n){(function(){"use strict";var o;t.exports=E,E.ReadableState=k,e("events").EventEmitter;var i,a=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),l=e("buffer").Buffer,c=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=e("util");i=u&&u.debuglog?u.debuglog("stream"):function(){};var d,f,h,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,b=v.ERR_INVALID_ARG_TYPE,y=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,x=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(E,s);var S=m.errorOrDestroy,C=["error","close","destroy","pause","resume"];function k(t,r,n){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=e("string_decoder/").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function E(t){if(o=o||e("./_stream_duplex"),!(this instanceof E))return new E(t);var r=this instanceof o;this._readableState=new k(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function O(e,t,r,n,o){i("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,s);else if(o||(a=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)S(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)s.endEmitted?S(e,new x):A(e,s,t,!0);else if(s.ended)S(e,new y);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):M(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,M(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),M(e,t)}function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(P,e))}function P(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function M(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function _(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){i("readable nexttick read 0"),e.read(0)}function N(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(L,t,e))}function L(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},E.prototype.unshift=function(e){return O(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){d||(d=e("string_decoder/").StringDecoder);var r=new d(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this},E.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):j(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){S(this,new w("_read()"))},E.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?m:l;function l(){i("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",(function t(r,a){i("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",l),n.removeListener("end",m),n.removeListener("data",d),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",c);var u=!1;function d(t){i("ondata");var r=e.write(t);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==z(o.pipes,e))&&!u&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function f(t){i("onerror",t),m(),e.removeListener("error",f),0===a(e,"error")&&S(e,t)}function h(){e.removeListener("finish",p),m()}function p(){i("onfinish"),e.removeListener("close",h),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?j(this):o.reading||r.nextTick(I,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(_,this),n},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(_,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,r){return void 0===h&&(h=e("./internal/streams/from")),h(E,t,r)})}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,r){"use strict";t.exports=u;var n=e("../errors").codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new o("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,n){(function(r,n){(function(){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=E,E.WritableState=k;var a,s={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),c=e("buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,x=h.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;function C(){}function k(t,n,a){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof a&&(a=n instanceof i),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,i){--t.pendingcb,n?(r.nextTick(i,o),r.nextTick(M,e,t),e._writableState.errorEmitted=!0,S(e,o)):(i(o),e._writableState.errorEmitted=!0,S(e,o),M(e,t))}(e,n,o,t,i);else{var a=j(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),o?r.nextTick(A,e,n,a,i):A(e,n,a,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!a.call(E,this))return new E(t);this._writableState=new k(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function O(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)i[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;i.allBuffers=l,O(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(O(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final((function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)}))}function M(e,t){var n=j(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(P,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}e("inherits")(E,l),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===E&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},E.prototype.pipe=function(){S(this,new v)},E.prototype.write=function(e,t,n){var o,i=this._writableState,a=!1,s=!i.objectMode&&(o=e,c.isBuffer(o)||o instanceof u);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=C),i.ending?function(e,t){var n=new w;S(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,o){var i;return null===n?i=new y:"string"==typeof n||t.objectMode||(i=new p("chunk",["string","Buffer"],n)),!i||(S(e,i),r.nextTick(o,i),!1)}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,s,n,o,i);return l}(this,i,s,e,t,n)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,n){t.ending=!0,M(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=d.destroy,E.prototype._undestroy=d.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,r){(function(r){(function(){"use strict";var n;function o(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=e("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[u]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function m(e){r.nextTick(p,e)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,o=this[u];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[d](r,n)}),n)}}(o,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));n=new Promise(this[d])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),g);t.exports=function(e){var t,r=Object.create(v,(o(t={},f,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[f].read();n?(r[u]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[u]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[u]=null,r[a]=null,r[s]=null,t(e)),void(r[l]=e)}var n=r[a];null!==n&&(r[u]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var l=e("buffer").Buffer,c=e("util").inspect,u=c&&c.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,o=l.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,l.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return c(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,r){(function(e){(function(){"use strict";function r(e,t){o(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}t.exports={destroy:function(t,i){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):i?(e.nextTick(n,a),i(t)):e.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||o);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){s=!1,c=!0,a||i.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){a=!1,d=!0,s||i.call(t)},h=function(e){i.call(t,e)},p=function(){var e;return a&&!d?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",f),t.on("finish",u),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,r){"use strict";t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,r){"use strict";var n,o=e("../../../errors").codes,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(t,r,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:o},(function(e){if(e)return i(e);s=!0,i()}));var l=!1;return function(e){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new a("pipe"))}}function c(e){e()}function u(e,t){return e.pipe(t)}t.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var a=t.map((function(e,r){var i=r<t.length-1;return l(e,i,r>0,(function(e){n||(n=e),e&&a.forEach(c),i||(a.forEach(c),o(n))}))}));return t.reduce(u)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,r){"use strict";t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,r){"use strict";(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,r){"use strict";var n=function(e){var t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),s=new E(o||[]);return n(a,"_invoke",{value:x(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var o;n(this,"_invoke",{value:function(n,i){function a(){return new t((function(o,a){!function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(n,i,o,a)}))}return o=o?o.then(a,a):a()}})}function x(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=p,n(b,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(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 i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{}],493:[function(e,t,r){"use strict";var n=e("buffer").Buffer,o=e("inherits"),i=e("hash-base"),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,o,i,a,s){return p(e+(t^r^n)+i+a|0,s)+o|0}function g(e,t,r,n,o,i,a,s){return p(e+(t&r|~t&n)+i+a|0,s)+o|0}function v(e,t,r,n,o,i,a,s){return p(e+((t|~r)^n)+i+a|0,s)+o|0}function b(e,t,r,n,o,i,a,s){return p(e+(t&n|r&~n)+i+a|0,s)+o|0}function y(e,t,r,n,o,i,a,s){return p(e+(t^(r|~n))+i+a|0,s)+o|0}o(h,i),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,h=0|this._e,w=0|this._a,x=0|this._b,S=0|this._c,C=0|this._d,k=0|this._e,E=0;E<80;E+=1){var O,A;E<16?(O=m(r,n,o,i,h,e[s[E]],d[0],c[E]),A=y(w,x,S,C,k,e[l[E]],f[0],u[E])):E<32?(O=g(r,n,o,i,h,e[s[E]],d[1],c[E]),A=b(w,x,S,C,k,e[l[E]],f[1],u[E])):E<48?(O=v(r,n,o,i,h,e[s[E]],d[2],c[E]),A=v(w,x,S,C,k,e[l[E]],f[2],u[E])):E<64?(O=b(r,n,o,i,h,e[s[E]],d[3],c[E]),A=g(w,x,S,C,k,e[l[E]],f[3],u[E])):(O=y(r,n,o,i,h,e[s[E]],d[4],c[E]),A=m(w,x,S,C,k,e[l[E]],f[4],u[E])),r=h,h=i,i=p(o,10),o=n,n=O,w=k,k=C,C=p(S,10),S=x,x=A}var T=this._b+o+C|0;this._b=this._c+i+k|0,this._c=this._d+h+w|0,this._d=this._e+r+x|0,this._e=this._a+n+S|0,this._a=T},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=h},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,r){"use strict";var n=e("buffer"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,r){(function(r){(function(){"use strict";var n,o=e("buffer"),i=o.Buffer,a={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=o[n]);var s=a.Buffer={};for(n in i)i.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=i[n]);if(a.Buffer.prototype=i.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return i(e,t,r)}),s.alloc||(s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=i(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(e){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("xmlchars/xml/1.0/ed5"),o=e("xmlchars/xml/1.1/ed2"),i=e("xmlchars/xmlns/1.0/ed3");var a=n.isS,s=n.isChar,l=n.isNameStartChar,c=n.isNameChar,u=n.S_LIST,d=n.NAME_RE,f=o.isChar,h=i.isNCNameStartChar,p=i.isNCNameChar,m=i.NC_NAME_RE;const g="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",b={__proto__:null,xml:g,xmlns:v},y={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},w=e=>34===e||39===e,x=[34,39],S=[...x,91,62],C=[...x,60,93],k=[61,63,...u],E=[...u,62,38,60];function O(e,t,r){switch(t){case"xml":r!==g&&e.fail(`xml prefix must be bound to ${g}.`);break;case"xmlns":r!==v&&e.fail(`xmlns prefix must be bound to ${v}.`)}switch(r){case v:e.fail(""===t?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${v}.`);break;case g:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${r}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}}}const A=e=>m.test(e),T=e=>d.test(e);r.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const j={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};r.SaxesParser=class{constructor(e){this.opt=null!=e?e:{},this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=h,this.nameCheck=p,this.isName=A,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},b);const e=this.opt.additionalNamespaces;null!=e&&(function(e,t){for(const r of Object.keys(t))O(e,r,t[r])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=l,this.nameCheck=c,this.isName=T,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:r}=this.opt;if(void 0===r){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");r="1.0"}this.setXMLVersion(r),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(y),null===(e=this.readyHandler)||void 0===e||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[j[e]]=t}off(e){this[j[e]]=void 0}makeError(e){var t;let r=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(r.length>0&&(r+=":"),r+=`${this.line}:${this.column}`),r.length>0&&(r+=": "),new Error(r+e)}fail(e){const t=this.makeError(e),r=this.errorHandler;if(void 0===r)throw t;return r(t),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let t=!1;null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let r=e.length;const n=e.charCodeAt(r-1);!t&&(13===n||n>=55296&&n<=56319)&&(this.carriedFromPrevious=e[r-1],r--,e=e.slice(0,r));const{stateTable:o}=this;for(this.chunk=e,this.i=0;this.i<r;)o[this.state].call(this);return this.chunkPosition+=r,t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const r=e.charCodeAt(t);if(this.column++,r<55296){if(r>=32||9===r)return r;switch(r){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;const n=65536+1024*(r-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const r=e.charCodeAt(t);if(this.column++,r<55296){if(r>31&&r<127||r>159&&8232!==r||9===r)return r;switch(r){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const r=e.charCodeAt(t+1);10!==r&&133!==r||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;const n=65536+1024*(r-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const e=this.getCode();return-2===e?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this;const{chunk:r}=this;for(;;){const n=this.getCode(),o=-2===n,i=o?10:n;if(-1===i||e.includes(i))return this.text+=r.slice(t,this.prevI),i;o&&(this.text+=r.slice(t,this.prevI)+"\n",t=this.i)}}captureToChar(e){let{i:t}=this;const{chunk:r}=this;for(;;){let n=this.getCode();switch(n){case-2:this.text+=r.slice(t,this.prevI)+"\n",t=this.i,n=10;break;case-1:return this.text+=r.slice(t),!1}if(n===e)return this.text+=r.slice(t,this.prevI),!0}}captureNameChars(){const{chunk:e,i:t}=this;for(;;){const r=this.getCode();if(-1===r)return this.name+=e.slice(t),-1;if(!c(r))return this.name+=e.slice(t,this.prevI),-2===r?10:r}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(-1===e||!a(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=s,this.getCode=this.getCode10):(this.isChar=f,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e;const t=this.captureTo(S);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:w(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){const e=this.captureTo(C);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:w(e)&&(this.state=5,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:t}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+"\n",e=this.i;break;case 59:{const{entityReturnState:r}=this,n=this.entity+t.slice(e,this.prevI);let o;this.state=r,""===n?(this.fail("empty entity name."),o="&;"):(o=this.parseEntity(n),this.entity=""),13===r&&void 0===this.textHandler||(this.text+=o);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(l(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var e;const t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(t),this.state=17)}sCommentEnded(){const e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(e),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const e=this.getCodeNorm();93===e?this.state=22:(this.text+="]"+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):63===e||a(e)?(this.fail("processing instruction without a target."),this.state=63===e?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){const{chunk:e,i:t}=this;for(;;){const r=this.getCodeNorm();if(-1===r)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(r)){this.piTarget+=e.slice(t,this.prevI);const n=63===r;n||a(r)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?33:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r));break}}}sPIBody(){if(0===this.text.length){const e=this.getCodeNorm();63===e?this.state=26:a(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;const t=this.getCodeNorm();if(62===t){const{piTarget:t}=this;"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:t,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===t?this.text+="?":(this.text+="?"+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();63!==e?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}sXMLDeclName(){const e=this.captureTo(k);if(63===e)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(a(e)||61===e){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=61===e?30:29}}sXMLDeclEq(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");a(e)||(61!==e&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");a(e)||(w(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const e=this.captureTo([this.q,63]);if(63===e)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1===e)return;const t=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}sXMLDeclSeparator(){const e=this.getCodeNorm();63!==e?(a(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const t=this.captureNameChars();if(-1===t)return;const r=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=r.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,r),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:a(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const e=this.skipSpaces();-1!==e&&(l(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();61===e?this.state=39:a(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():l(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const e=this.getCodeNorm();w(e)?(this.q=e,this.state=40):a(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:r}=this;for(;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(r,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(r,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=t.slice(r,this.prevI)+" ",r=this.i;break;case 60:return this.text+=t.slice(r,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(r))}}sAttribValueClosed(){const e=this.getCodeNorm();a(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:l(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(E);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}sCloseTag(){const e=this.captureNameChars();62===e?this.closeTag():a(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;const{chunk:r,textHandler:n}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==n){const{text:t}=this,o=r.slice(e,this.prevI);0!==t.length?(n(t+o),this.text=""):0!==o.length&&n(o)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=r.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==n&&(this.text+=r.slice(e,this.prevI)+"\n"),e=this.i,t=0;break;case-1:void 0!==n&&(this.text+=r.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:r}=this;let n=!1;e:for(;;){const o=this.getCode();switch(o){case 60:if(this.state=15,void 0!==r){const{text:n}=this,o=t.slice(e,this.prevI);0!==n.length?(r(n+o),this.text=""):0!==o.length&&r(o)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=t.slice(e,this.prevI)),n=!0;break e;case-2:void 0!==r&&(this.text+=t.slice(e,this.prevI)+"\n"),e=this.i;break;case-1:void 0!==r&&(this.text+=t.slice(e));break e;default:a(o)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,t){var r;const{prefix:n,local:o}=this.qname(e),i={name:e,prefix:n,local:o,value:t};if(this.attribList.push(i),null===(r=this.attributeHandler)||void 0===r||r.call(this,i),"xmlns"===n){const e=t.trim();"1.0"===this.currentXMLVersion&&""===e&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[o]=e,O(this,o,e)}else if("xmlns"===e){const e=t.trim();this.topNS[""]=e,O(this,"",e)}}pushAttribPlain(e,t){var r;const n={name:e,value:t};this.attribList.push(n),null===(r=this.attributeHandler)||void 0===r||r.call(this,n)}end(){var e,t;this.sawRoot||this.fail("document must contain a root element.");const{tags:r}=this;for(;r.length>0;){const e=r.pop();this.fail("unclosed tag: "+e.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");const{text:n}=this;return 0!==n.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,n),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}resolve(e){var t,r;let n=this.topNS[e];if(void 0!==n)return n;const{tags:o}=this;for(let t=o.length-1;t>=0;t--)if(n=o[t].ns[e],void 0!==n)return n;return n=this.ns[e],void 0!==n?n:null===(r=(t=this.opt).resolvePrefix)||void 0===r?void 0:r.call(t,e)}qname(e){const t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};const r=e.slice(t+1),n=e.slice(0,t);return(""===n||""===r||r.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:n,local:r}}processAttribsNS(){var e;const{attribList:t}=this,r=this.tag;{const{prefix:t,local:n}=this.qname(r.name);r.prefix=t,r.local=n;const o=r.uri=null!==(e=this.resolve(t))&&void 0!==e?e:"";""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===o&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),r.uri=t))}if(0===t.length)return;const{attributes:n}=r,o=new Set;for(const e of t){const{name:t,prefix:r,local:i}=e;let a,s;""===r?(a="xmlns"===t?v:"",s=t):(a=this.resolve(r),void 0===a&&(this.fail(`unbound namespace prefix: ${JSON.stringify(r)}.`),a=r),s=`{${a}}${i}`),o.has(s)&&this.fail(`duplicate attribute: ${s}.`),o.add(s),e.uri=a,n[t]=e}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,t=this.tag.attributes;for(const{name:r,value:n}of e)void 0!==t[r]&&this.fail(`duplicate attribute: ${r}.`),t[r]=n;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this,r=this.tag;r.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,r),t.push(r),this.state=13,this.name=""}openSelfClosingTag(){var e,t,r;this.processAttribs();const{tags:n}=this,o=this.tag;o.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,o),null===(t=this.closeTagHandler)||void 0===t||t.call(this,o),null===(this.tag=null!==(r=n[n.length-1])&&void 0!==r?r:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:e,name:t}=this;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");const r=this.closeTagHandler;let n=e.length;for(;n-- >0;){const n=this.tag=e.pop();if(this.topNS=n.ns,null==r||r(n),n.name===t)break;this.fail("unexpected close tag.")}0===n?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if("#"!==e[0]){const t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let t=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail("malformed character entity."),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,o=this._blockSize,i=e.length,a=this._len,s=0;s<i;){for(var l=a%o,c=Math.min(i-s,o-l),u=0;u<c;u++)r[l+u]=e[s+u];s+=c,(a+=c)%o==0&&this._update(r)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},{"safe-buffer":494}],498:[function(e,t,r){"use strict";var n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,o.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=n)<<5|t>>>27)+u(h,o,i,s)+l+r[f]+a[h];l=s,s=i,i=c(o),o=n,n=p}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,o.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,l=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=(t=r[f-3]^r[f-8]^r[f-14]^r[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=c(n)+d(p,o,i,s)+l+r[h]+a[p]|0;l=s,s=i,i=u(o),o=n,n=m}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./sha256"),i=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}n(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(l,o),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+h(r[v-15])+r[v-16];for(var b=0;b<64;++b){var y=g+f(l)+c(l,p,m)+a[b]+r[b]|0,w=d(n)+u(n,o,i)|0;g=m,m=p,p=l,l=s+y|0,s=i,i=o,o=n,n=y+w|0}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./sha512"),i=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}n(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}n(l,o),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,l=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,x=0|this._bl,S=0|this._cl,C=0|this._dl,k=0|this._el,E=0|this._fl,O=0|this._gl,A=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var j=t[T-30],P=t[T-30+1],M=h(j,P),R=p(P,j),_=m(j=t[T-4],P=t[T-4+1]),I=g(P,j),N=t[T-14],F=t[T-14+1],D=t[T-32],B=t[T-32+1],L=R+F|0,z=M+N+v(L,R)|0;z=(z=z+_+v(L=L+I|0,I)|0)+D+v(L=L+B|0,B)|0,t[T]=z,t[T+1]=L}for(var H=0;H<160;H+=2){z=t[H],L=t[H+1];var U=u(r,n,o),V=u(w,x,S),W=d(r,w),G=d(w,r),q=f(s,k),K=f(k,s),X=a[H],Y=a[H+1],$=c(s,l,b),Z=c(k,E,O),Q=A+K|0,J=y+q+v(Q,A)|0;J=(J=(J=J+$+v(Q=Q+Z|0,Z)|0)+X+v(Q=Q+Y|0,Y)|0)+z+v(Q=Q+L|0,L)|0;var ee=G+V|0,te=W+U+v(ee,G)|0;y=b,A=O,b=l,O=E,l=s,E=k,s=i+J+v(k=C+Q|0,C)|0,i=o,C=S,o=n,S=x,n=r,x=w,r=J+te+v(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+C|0,this._el=this._el+k|0,this._fl=this._fl+E|0,this._gl=this._gl+O|0,this._hl=this._hl+A|0,this._ah=this._ah+r+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,x)|0,this._ch=this._ch+o+v(this._cl,S)|0,this._dh=this._dh+i+v(this._dl,C)|0,this._eh=this._eh+s+v(this._el,k)|0,this._fh=this._fh+l+v(this._fl,E)|0,this._gh=this._gh+b+v(this._gl,O)|0,this._hh=this._hh+y+v(this._hl,A)|0},l.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,r){"use strict";t.exports=o;var n=e("events").EventEmitter;function o(){n.call(this)}e("inherits")(o,n),o.Readable=e("readable-stream/readable.js"),o.Writable=e("readable-stream/writable.js"),o.Duplex=e("readable-stream/duplex.js"),o.Transform=e("readable-stream/transform.js"),o.PassThrough=e("readable-stream/passthrough.js"),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,r){"use strict";var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],507:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,r){"use strict";var n=e("process-nextick-args"),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=d;var i=Object.create(e("core-util-is"));i.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");i.inherits(d,a);for(var l=o(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,r){"use strict";t.exports=i;var n=e("./_stream_transform"),o=Object.create(e("core-util-is"));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}o.inherits=e("inherits"),o.inherits(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,n){(function(r,n){(function(){"use strict";var o=e("process-nextick-args");t.exports=y;var i,a=e("isarray");y.ReadableState=b,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=Object.create(e("core-util-is"));d.inherits=e("inherits");var f=e("util"),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),g=e("./internal/streams/destroy");d.inherits(y,l);var v=["error","close","destroy","pause","resume"];function b(t,r){t=t||{};var n=r instanceof(i=i||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(i=i||e("./_stream_duplex"),!(this instanceof y))return new y(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function w(e,t,r,n,o){var i,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,C(e)}}(e,a)):(o||(i=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function x(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),E(e,t)}function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),j(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function A(e){h("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,o=r.data;for(e-=o.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,o=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,a),0===(e-=a)){a===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++o}return t.length-=o,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function _(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},y.prototype.unshift=function(e){return w(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},y.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):C(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",o=!0),t.ended||t.reading?h("reading or ended",o=!1):o&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?b:c;function c(){h("onend"),e.end()}i.endEmitted?o.nextTick(l):n.once("end",l),e.on("unpipe",(function t(r,o){h("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",u);var d=!1,f=!1;function p(t){h("ondata"),f=!1,!1!==e.write(t)||f||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==_(i.pipes,e))&&!d&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),n.pause())}function m(t){h("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",g),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=_(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},y.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&C(this):o.nextTick(A,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(T,e,t))}(this,e)),this},y.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){h("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<v.length;i++)e.on(v[i],this.emit.bind(this,v[i]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=P}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_duplex"),o=Object.create(e("core-util-is"));function i(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){l(e,t,r)})):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=e("inherits"),o.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,n){(function(r,n,o){(function(){"use strict";var i=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=b;var s,l=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?o:i.nextTick;b.WritableState=v;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var u,d={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,p=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},m=e("./internal/streams/destroy");function g(){}function v(t,r){s=s||e("./_stream_duplex"),t=t||{};var n=r instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,o);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),n?l(w,e,r,a,o):w(e,r,a,o)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||e("./_stream_duplex"),!(u.call(b,this)||this instanceof s))return new b(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function y(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,l=!0;r;)o[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;o.allBuffers=l,y(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var r=S(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(b,f),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===b&&e&&e._writableState instanceof v}})):u=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=g),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,n,o,i);return l}(this,o,s,e,t,r)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,o=n.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=o,r=a,i.data.copy(t,r),a+=i.data.length,i=i.next;return o},e}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,r){"use strict";var n=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(o,r,e)):n.nextTick(o,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,r){arguments[4][490][0].apply(r,arguments)},{dup:490,events:422}],516:[function(e,t,r){"use strict";t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,r){"use strict";(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,r){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,r){arguments[4][217][0].apply(r,arguments)},{buffer:220,dup:217}],521:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,r){(function(t,n){(function(){"use strict";var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(i.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(i.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,o((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,n){(function(e){(function(){"use strict";function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],526:[function(e,t,r){"use strict";t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,t,n){(function(t,r){(function(){"use strict";var o=/%[sdj%]/g;n.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),l=n[r];r<i;l=n[++r])m(l)||!w(l)?a+=" "+l:a+=" "+s(l);return a},n.deprecate=function(e,o){if(b(r.process))return function(){return n.deprecate(e,o).apply(this,arguments)};if(!0===t.noDeprecation)return e;var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),i=!0}return e.apply(this,arguments)}};var i,a={};function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(t)?r.showHidden=t:t&&n._extend(r,t),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,e,r.depth)}function l(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return v(o)||(o=u(e,o,r)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var a=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(t);if(0===a.length){if(C(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(y(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var c,w="",k=!1,E=["{","}"];return h(t)&&(k=!0,E=["[","]"]),C(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),y(t)&&(w=" "+RegExp.prototype.toString.call(t)),x(t)&&(w=" "+Date.prototype.toUTCString.call(t)),S(t)&&(w=" "+d(t)),0!==a.length||k&&0!=t.length?r<0?y(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=k?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)A(t,String(a))?i.push(f(e,t,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,r,n,o,!0))})),i}(e,t,r,s,a):a.map((function(n){return f(e,t,r,s,n,k)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,w,E)):E[0]+w+E[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o,i){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===k(e)}function S(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function C(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(b(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=h,n.isBoolean=p,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=g,n.isString=v,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=b,n.isRegExp=y,n.isObject=w,n.isDate=x,n.isError=S,n.isFunction=C,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",function(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return d.default}});var n=f(e("./v1.js")),o=f(e("./v3.js")),i=f(e("./v4.js")),a=f(e("./v5.js")),s=f(e("./nil.js")),l=f(e("./version.js")),c=f(e("./validate.js")),u=f(e("./stringify.js")),d=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,r){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,n,i,a){return o((s=o(o(t,e),o(n,a)))<<(l=i)|s>>>32-l,r);var s,l}function a(e,t,r,n,o,a,s){return i(t&r|~t&n,e,t,o,a,s)}function s(e,t,r,n,o,a,s){return i(t&n|r&~n,e,t,o,a,s)}function l(e,t,r,n,o,a,s){return i(t^r^n,e,t,o,a,s)}function c(e,t,r,n,o,a,s){return i(r^(t|~n),e,t,o,a,s)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length;for(let n=0;n<r;n+=8){const r=e[n>>5]>>>n%32&255,o=parseInt("0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=1732584193,i=-271733879,u=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const n=r,f=i,h=u,p=d;r=a(r,i,u,d,e[t],7,-680876936),d=a(d,r,i,u,e[t+1],12,-389564586),u=a(u,d,r,i,e[t+2],17,606105819),i=a(i,u,d,r,e[t+3],22,-1044525330),r=a(r,i,u,d,e[t+4],7,-176418897),d=a(d,r,i,u,e[t+5],12,1200080426),u=a(u,d,r,i,e[t+6],17,-1473231341),i=a(i,u,d,r,e[t+7],22,-45705983),r=a(r,i,u,d,e[t+8],7,1770035416),d=a(d,r,i,u,e[t+9],12,-1958414417),u=a(u,d,r,i,e[t+10],17,-42063),i=a(i,u,d,r,e[t+11],22,-1990404162),r=a(r,i,u,d,e[t+12],7,1804603682),d=a(d,r,i,u,e[t+13],12,-40341101),u=a(u,d,r,i,e[t+14],17,-1502002290),i=a(i,u,d,r,e[t+15],22,1236535329),r=s(r,i,u,d,e[t+1],5,-165796510),d=s(d,r,i,u,e[t+6],9,-1069501632),u=s(u,d,r,i,e[t+11],14,643717713),i=s(i,u,d,r,e[t],20,-373897302),r=s(r,i,u,d,e[t+5],5,-701558691),d=s(d,r,i,u,e[t+10],9,38016083),u=s(u,d,r,i,e[t+15],14,-660478335),i=s(i,u,d,r,e[t+4],20,-405537848),r=s(r,i,u,d,e[t+9],5,568446438),d=s(d,r,i,u,e[t+14],9,-1019803690),u=s(u,d,r,i,e[t+3],14,-187363961),i=s(i,u,d,r,e[t+8],20,1163531501),r=s(r,i,u,d,e[t+13],5,-1444681467),d=s(d,r,i,u,e[t+2],9,-51403784),u=s(u,d,r,i,e[t+7],14,1735328473),i=s(i,u,d,r,e[t+12],20,-1926607734),r=l(r,i,u,d,e[t+5],4,-378558),d=l(d,r,i,u,e[t+8],11,-2022574463),u=l(u,d,r,i,e[t+11],16,1839030562),i=l(i,u,d,r,e[t+14],23,-35309556),r=l(r,i,u,d,e[t+1],4,-1530992060),d=l(d,r,i,u,e[t+4],11,1272893353),u=l(u,d,r,i,e[t+7],16,-155497632),i=l(i,u,d,r,e[t+10],23,-1094730640),r=l(r,i,u,d,e[t+13],4,681279174),d=l(d,r,i,u,e[t],11,-358537222),u=l(u,d,r,i,e[t+3],16,-722521979),i=l(i,u,d,r,e[t+6],23,76029189),r=l(r,i,u,d,e[t+9],4,-640364487),d=l(d,r,i,u,e[t+12],11,-421815835),u=l(u,d,r,i,e[t+15],16,530742520),i=l(i,u,d,r,e[t+2],23,-995338651),r=c(r,i,u,d,e[t],6,-198630844),d=c(d,r,i,u,e[t+7],10,1126891415),u=c(u,d,r,i,e[t+14],15,-1416354905),i=c(i,u,d,r,e[t+5],21,-57434055),r=c(r,i,u,d,e[t+12],6,1700485571),d=c(d,r,i,u,e[t+3],10,-1894986606),u=c(u,d,r,i,e[t+10],15,-1051523),i=c(i,u,d,r,e[t+1],21,-2054922799),r=c(r,i,u,d,e[t+8],6,1873313359),d=c(d,r,i,u,e[t+15],10,-30611744),u=c(u,d,r,i,e[t+6],15,-1560198380),i=c(i,u,d,r,e[t+13],21,1309151649),r=c(r,i,u,d,e[t+4],6,-145523070),d=c(d,r,i,u,e[t+11],10,-1120210379),u=c(u,d,r,i,e[t+2],15,718787259),i=c(i,u,d,r,e[t+9],21,-343485551),r=o(r,n),i=o(i,f),u=o(u,h),d=o(d,p)}return[r,i,u,d]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},{}],530:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},{"./validate.js":541}],532:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,t,r){"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)};const o=new Uint8Array(16)},{}],534:[function(e,t,r){"use strict";function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function o(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];s[t]=r}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=o(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=r[0],l=r[1],c=r[2],u=r[3],d=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),s=o(a,5)+n(r,l,c,u)+d+t[r]+i[e]>>>0;d=u,u=c,c=o(l,30)>>>0,l=a,a=s}r[0]=r[0]+a>>>0,r[1]=r[1]+l>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{}],535:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));r.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":541}],536:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}let a,s,l=0,c=0;r.default=function(e,t,r){let i=t&&r||0;const u=t||new Array(16);let d=(e=e||{}).node||a,f=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==f){const t=e.random||(e.rng||n.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1;const m=h-l+(p-c)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=p,s=f,h+=122192928e5;const g=(1e4*(268435455&h)+p)%4294967296;u[i++]=g>>>24&255,u[i++]=g>>>16&255,u[i++]=g>>>8&255,u[i++]=255&g;const v=h/4294967296*1e4&268435455;u[i++]=v>>>8&255,u[i++]=255&v,u[i++]=v>>>24&15|16,u[i++]=v>>>16&255,u[i++]=f>>>8|128,u[i++]=255&f;for(let e=0;e<6;++e)u[i+e]=d[e];return t||(0,o.default)(u)}},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./v35.js")),o=i(e("./md5.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);r.default=a},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){function i(e,i,a,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof i&&(i=(0,o.default)(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(i),l.set(e,i.length),l=r(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=l[e];return a}return(0,n.default)(l)}try{i.name=e}catch(e){}return i.DNS=a,i.URL=s,i},r.URL=r.DNS=void 0;var n=i(e("./stringify.js")),o=i(e("./parse.js"));function i(e){return e&&e.__esModule?e:{default:e}}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=s},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,t,r){const i=(e=e||{}).random||(e.rng||n.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return(0,o.default)(i)}},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./v35.js")),o=i(e("./sha1.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);r.default=a},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./regex.js"))&&n.__esModule?n:{default:n};r.default=function(e){return"string"==typeof e&&o.default.test(e)}},{"./regex.js":532}],542:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":541}],543:[function(e,t,r){"use strict";function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="\t\n\r --<2D>𐀀-",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u"),r.S_LIST=[32,10,13,9],r.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=n,r.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,r){"use strict";function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="--<2D>𐀀-",r.RESTRICTED_CHAR="-\b\v\f---",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.RESTRICTED_CHAR_RE=new RegExp("^["+r.RESTRICTED_CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u"),r.S_LIST=[32,10,13,9],r.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},r.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=n,r.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,r){"use strict";function n(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",r.NC_NAME_CHAR="-"+r.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.NC_NAME_START_CHAR_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]$","u"),r.NC_NAME_CHAR_RE=new RegExp("^["+r.NC_NAME_CHAR+"]$","u"),r.NC_NAME_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]["+r.NC_NAME_CHAR+"]*$","u"),r.isNCNameStartChar=n,r.isNCNameChar=function(e){return n(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)},5056:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},5058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transformer=void 0;const n=r(4060),o=r(4892),i=r(6536),a=r(4723),s=r(5155),l=r(7949),c=r(8871),u=r(5483),d=r(8871),f="tr-konva",h=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map((e=>e+`.${f}`)).join(" "),p="nodesRect",m=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],g={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},v="ontouchstart"in c.Konva._global,b=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function y(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}let w=0;class x extends l.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(h,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return n.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return f+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const t=e.filter((e=>!e.isAncestorOf(this)||(n.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1)));return this._nodes=e=t,1===e.length&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((e=>{const t=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()};if(e._attrsAffectingSize.length){const r=e._attrsAffectingSize.map((e=>e+"Change."+this._getEventNamespace())).join(" ");e.on(r,t)}e.on(m.map((e=>e+`.${this._getEventNamespace()}`)).join(" "),t),e.on(`absoluteTransformChange.${this._getEventNamespace()}`,t),this._proxyDrag(e)})),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let t;e.on(`dragstart.${this._getEventNamespace()}`,(r=>{t=e.getAbsolutePosition(),this.isDragging()||e===this.findOne(".back")||this.startDrag(r,!1)})),e.on(`dragmove.${this._getEventNamespace()}`,(r=>{if(!t)return;const n=e.getAbsolutePosition(),o=n.x-t.x,i=n.y-t.y;this.nodes().forEach((t=>{if(t===e)return;if(t.isDragging())return;const n=t.getAbsolutePosition();t.setAbsolutePosition({x:n.x+o,y:n.y+i}),t.startDrag(r)})),t=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((e=>{e.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(p),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(p,this.__getNodeRect)}__getNodeShape(e,t=this.rotation(),r){const n=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=e.getAbsoluteScale(r),i=e.getAbsolutePosition(r),a=n.x*o.x-e.offsetX()*o.x,s=n.y*o.y-e.offsetY()*o.y,l=(c.Konva.getAngle(e.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return y({x:i.x+a*Math.cos(l)+s*Math.sin(-l),y:i.y+s*Math.cos(l)+a*Math.sin(l),width:n.width*o.x,height:n.height*o.y,rotation:l},-c.Konva.getAngle(t),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const e=[];this.nodes().map((t=>{const r=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),n=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x+r.width,y:r.y+r.height},{x:r.x,y:r.y+r.height}],o=t.getAbsoluteTransform();n.forEach((function(t){const r=o.point(t);e.push(r)}))}));const t=new n.Transform;t.rotate(-c.Konva.getAngle(this.rotation()));let r=1/0,o=1/0,i=-1/0,a=-1/0;e.forEach((function(e){const n=t.point(e);void 0===r&&(r=i=n.x,o=a=n.y),r=Math.min(r,n.x),o=Math.min(o,n.y),i=Math.max(i,n.x),a=Math.max(a,n.y)})),t.invert();const s=t.point({x:r,y:o});return{x:s.x,y:s.y,width:i-r,height:a-o,rotation:c.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),b.forEach((e=>{this._createAnchor(e)})),this._createAnchor("rotater")}_createAnchor(e){const t=new s.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:v?10:"auto"}),r=this;t.on("mousedown touchstart",(function(e){r._handleMouseDown(e)})),t.on("dragstart",(e=>{t.stopDrag(),e.cancelBubble=!0})),t.on("dragend",(e=>{e.cancelBubble=!0})),t.on("mouseenter",(()=>{const r=c.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),i=function(e,t,r){if("rotater"===e)return r;t+=n.Util.degToRad(g[e]||0);const o=(n.Util.radToDeg(t)%360+360)%360;return n.Util._inRange(o,337.5,360)||n.Util._inRange(o,0,22.5)?"ns-resize":n.Util._inRange(o,22.5,67.5)?"nesw-resize":n.Util._inRange(o,67.5,112.5)?"ew-resize":n.Util._inRange(o,112.5,157.5)?"nwse-resize":n.Util._inRange(o,157.5,202.5)?"ns-resize":n.Util._inRange(o,202.5,247.5)?"nesw-resize":n.Util._inRange(o,247.5,292.5)?"ew-resize":n.Util._inRange(o,292.5,337.5)?"nwse-resize":(n.Util.error("Transformer has unknown angle for cursor detection: "+o),"pointer")}(e,r,o);t.getStage().content&&(t.getStage().content.style.cursor=i),this._cursorChange=!0})),t.on("mouseout",(()=>{t.getStage().content&&(t.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(t)}_createBack(){const e=new a.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,t){const r=t.getParent(),o=r.padding();e.beginPath(),e.rect(-o,-o,t.width()+2*o,t.height()+2*o),e.moveTo(t.width()/2,-o),r.rotateEnabled()&&r.rotateLineVisible()&&e.lineTo(t.width()/2,-r.rotateAnchorOffset()*n.Util._sign(t.height())-o),e.fillStrokeShape(t)},hitFunc:(e,t)=>{if(!this.shouldOverdrawWholeArea())return;const r=this.padding();e.beginPath(),e.rect(-r,-r,t.width()+2*r,t.height()+2*r),e.fillStrokeShape(t)}});this.add(e),this._proxyDrag(e),e.on("dragstart",(e=>{e.cancelBubble=!0})),e.on("dragmove",(e=>{e.cancelBubble=!0})),e.on("dragend",(e=>{e.cancelBubble=!0})),this.on("dragmove",(e=>{this.update()}))}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const t=this._getNodeRect(),r=t.width,n=t.height,o=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));this.sin=Math.abs(n/o),this.cos=Math.abs(r/o),"undefined"!=typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const i=e.target.getAbsolutePosition(),a=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-i.x,y:a.y-i.y},w++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach((t=>{t._fire("transformstart",{evt:e.evt,target:t})}))}_handleMouseMove(e){let t,r,n;const o=this.findOne("."+this._movingAnchorName),i=o.getStage();i.setPointersPositions(e);const a=i.getPointerPosition();let s={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const l=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(l,s,e)),o.setAbsolutePosition(s);const u=o.getAbsolutePosition();if(l.x===u.x&&l.y===u.y)return;if("rotater"===this._movingAnchorName){const n=this._getNodeRect();t=o.x()-n.width/2,r=-o.y()+n.height/2;let i=Math.atan2(-r,t)+Math.PI/2;n.height<0&&(i-=Math.PI);const a=c.Konva.getAngle(this.rotation())+i,s=c.Konva.getAngle(this.rotationSnapTolerance()),l=function(e,t,r){let n=t;for(let o=0;o<e.length;o++){const i=c.Konva.getAngle(e[o]),a=Math.abs(i-t)%(2*Math.PI);Math.min(a,2*Math.PI-a)<r&&(n=i)}return n}(this.rotationSnaps(),a,s),u=function(e,t){const r=function(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}(e);return y(e,t,r)}(n,l-n.rotation);return void this._fitNodesInto(u,e)}const d=this.shiftBehavior();let f;f="inverted"===d?this.keepRatio()&&!e.shiftKey:"none"===d?this.keepRatio():this.keepRatio()||e.shiftKey;var h=this.centeredScaling()||e.altKey;if("top-left"===this._movingAnchorName){if(f){var p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};n=Math.sqrt(Math.pow(p.x-o.x(),2)+Math.pow(p.y-o.y(),2));var m=this.findOne(".top-left").x()>p.x?-1:1,g=this.findOne(".top-left").y()>p.y?-1:1;t=n*this.cos*m,r=n*this.sin*g,this.findOne(".top-left").x(p.x-t),this.findOne(".top-left").y(p.y-r)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(o.y());else if("top-right"===this._movingAnchorName){f&&(p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()},n=Math.sqrt(Math.pow(o.x()-p.x,2)+Math.pow(p.y-o.y(),2)),m=this.findOne(".top-right").x()<p.x?-1:1,g=this.findOne(".top-right").y()>p.y?-1:1,t=n*this.cos*m,r=n*this.sin*g,this.findOne(".top-right").x(p.x+t),this.findOne(".top-right").y(p.y-r));var v=o.position();this.findOne(".top-left").y(v.y),this.findOne(".bottom-right").x(v.x)}else"middle-left"===this._movingAnchorName?this.findOne(".top-left").x(o.x()):"middle-right"===this._movingAnchorName?this.findOne(".bottom-right").x(o.x()):"bottom-left"===this._movingAnchorName?(f&&(p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()},n=Math.sqrt(Math.pow(p.x-o.x(),2)+Math.pow(o.y()-p.y,2)),m=p.x<o.x()?-1:1,g=o.y()<p.y?-1:1,t=n*this.cos*m,r=n*this.sin*g,o.x(p.x-t),o.y(p.y+r)),v=o.position(),this.findOne(".top-left").x(v.x),this.findOne(".bottom-right").y(v.y)):"bottom-center"===this._movingAnchorName?this.findOne(".bottom-right").y(o.y()):"bottom-right"===this._movingAnchorName?f&&(p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()},n=Math.sqrt(Math.pow(o.x()-p.x,2)+Math.pow(o.y()-p.y,2)),m=this.findOne(".bottom-right").x()<p.x?-1:1,g=this.findOne(".bottom-right").y()<p.y?-1:1,t=n*this.cos*m,r=n*this.sin*g,this.findOne(".bottom-right").x(p.x+t),this.findOne(".bottom-right").y(p.y+r)):console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(h=this.centeredScaling()||e.altKey){const e=this.findOne(".top-left"),t=this.findOne(".bottom-right"),r=e.x(),n=e.y(),o=this.getWidth()-t.x(),i=this.getHeight()-t.y();t.move({x:-r,y:-n}),e.move({x:o,y:i})}const b=this.findOne(".top-left").getAbsolutePosition();t=b.x,r=b.y;const w=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),x=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:t,y:r,width:w,height:x,rotation:c.Konva.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var t;if(this._transforming){this._transforming=!1,"undefined"!=typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const r=this.getNode();w--,this._fire("transformend",{evt:e,target:r}),null===(t=this.getLayer())||void 0===t||t.batchDraw(),r&&this._nodes.forEach((t=>{var r;t._fire("transformend",{evt:e,target:t}),null===(r=t.getLayer())||void 0===r||r.batchDraw()})),this._movingAnchorName=null}}_fitNodesInto(e,t){const r=this._getNodeRect();if(n.Util._inRange(e.width,2*-this.padding()-1,1))return void this.update();if(n.Util._inRange(e.height,2*-this.padding()-1,1))return void this.update();const o=new n.Transform;if(o.rotate(c.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const t=o.point({x:2*-this.padding(),y:0});e.x+=t.x,e.y+=t.y,e.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const t=o.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=2*this.padding()}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const t=o.point({x:0,y:2*-this.padding()});e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const t=o.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}if(this.boundBoxFunc()){const t=this.boundBoxFunc()(r,e);t?e=t:n.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const i=1e7,a=new n.Transform;a.translate(r.x,r.y),a.rotate(r.rotation),a.scale(r.width/i,r.height/i);const s=new n.Transform,l=e.width/i,u=e.height/i;!1===this.flipEnabled()?(s.translate(e.x,e.y),s.rotate(e.rotation),s.translate(e.width<0?e.width:0,e.height<0?e.height:0),s.scale(Math.abs(l),Math.abs(u))):(s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(l,u));const d=s.multiply(a.invert());this._nodes.forEach((e=>{var t;const r=e.getParent().getAbsoluteTransform(),o=e.getTransform().copy();o.translate(e.offsetX(),e.offsetY());const i=new n.Transform;i.multiply(r.copy().invert()).multiply(d).multiply(r).multiply(o);const a=i.decompose();e.setAttrs(a),null===(t=e.getLayer())||void 0===t||t.batchDraw()})),this.rotation(n.Util._getRotation(e.rotation)),this._nodes.forEach((e=>{this._fire("transform",{evt:t,target:e}),e._fire("transform",{evt:t,target:e})})),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){this.findOne(e).setAttrs(t)}update(){var e;const t=this._getNodeRect();this.rotation(n.Util._getRotation(t.rotation));const r=t.width,o=t.height,i=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),l=this.anchorSize(),c=this.find("._anchor");c.forEach((e=>{e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+s,offsetY:l/2+s,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:l/2+s,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:l/2-s,offsetY:l/2+s,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:l/2+s,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:o/2,offsetX:l/2-s,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:l/2+s,offsetY:l/2-s,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:o,offsetY:l/2-s,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:o,offsetX:l/2-s,offsetY:l/2-s,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*n.Util._sign(o)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const u=this.anchorStyleFunc();u&&c.forEach((e=>{u(e)})),null===(e=this.getLayer())||void 0===e||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),l.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return i.Node.prototype.toObject.call(this)}clone(e){return i.Node.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}t.Transformer=x,x.isTransforming=()=>w>0,x.prototype.className="Transformer",(0,d._registerNode)(x),o.Factory.addGetterSetter(x,"enabledAnchors",b,(function(e){return e instanceof Array||n.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach((function(e){-1===b.indexOf(e)&&n.Util.warn("Unknown anchor name: "+e+". Available names are: "+b.join(", "))})),e||[]})),o.Factory.addGetterSetter(x,"flipEnabled",!0,(0,u.getBooleanValidator)()),o.Factory.addGetterSetter(x,"resizeEnabled",!0),o.Factory.addGetterSetter(x,"anchorSize",10,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"rotateEnabled",!0),o.Factory.addGetterSetter(x,"rotateLineVisible",!0),o.Factory.addGetterSetter(x,"rotationSnaps",[]),o.Factory.addGetterSetter(x,"rotateAnchorOffset",50,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"rotateAnchorCursor","crosshair"),o.Factory.addGetterSetter(x,"rotationSnapTolerance",5,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"borderEnabled",!0),o.Factory.addGetterSetter(x,"anchorStroke","rgb(0, 161, 255)"),o.Factory.addGetterSetter(x,"anchorStrokeWidth",1,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"anchorFill","white"),o.Factory.addGetterSetter(x,"anchorCornerRadius",0,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"borderStroke","rgb(0, 161, 255)"),o.Factory.addGetterSetter(x,"borderStrokeWidth",1,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"borderDash"),o.Factory.addGetterSetter(x,"keepRatio",!0),o.Factory.addGetterSetter(x,"shiftBehavior","default"),o.Factory.addGetterSetter(x,"centeredScaling",!1),o.Factory.addGetterSetter(x,"ignoreStroke",!1),o.Factory.addGetterSetter(x,"padding",0,(0,u.getNumberValidator)()),o.Factory.addGetterSetter(x,"nodes"),o.Factory.addGetterSetter(x,"node"),o.Factory.addGetterSetter(x,"boundBoxFunc"),o.Factory.addGetterSetter(x,"anchorDragBoundFunc"),o.Factory.addGetterSetter(x,"anchorStyleFunc"),o.Factory.addGetterSetter(x,"shouldOverdrawWholeArea",!1),o.Factory.addGetterSetter(x,"useSingleNodeRotation",!0),o.Factory.backCompat(x,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"})},5072:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=n.base?l[0]+n.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=r(d),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(h);else{var p=o(h,n);n.byIndex=s,t.splice(s,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=r(i[a]);t[s].references--}for(var l=n(e,o),c=0;c<i.length;c++){var u=r(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},5155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const n=r(4892),o=r(4723),i=r(8871),a=r(4060),s=r(5483);class l extends o.Shape{_sceneFunc(e){const t=this.cornerRadius(),r=this.width(),n=this.height();e.beginPath(),t?a.Util.drawRoundedRectPath(e,r,n,t):e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)}}t.Rect=l,l.prototype.className="Rect",(0,i._registerNode)(l),n.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4))},5287:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=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,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function b(){}function y(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||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")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:a,ref:s,props:i,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var A=/\/+/g;function T(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 j(e,t,o,i,a){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 r:case n:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),j(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=j(s,t,o,u,a)}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+=j(s=s.value,t,o,u=i+T(s,c++),a);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 P(e,t,r){if(null==e)return e;var n=[],o=0;return j(e,n,"","",(function(e){return t.call(r,e,o++)})),n}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 R={current:null},_={transition:null},I={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:_,ReactCurrentOwner:C};function N(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,r){P(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.act=N,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.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=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:r,type:e.type,key:i,ref:a,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=O,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=_.transition;_.transition={};try{e()}finally{_.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,r){return R.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,r){return R.current.useReducer(e,t,r)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return R.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},5338:(e,t,r)=>{"use strict";var n=r(961);t.H=n.createRoot,n.hydrateRoot},5451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ring=void 0;const n=r(4892),o=r(4723),i=r(5483),a=r(8871),s=2*Math.PI;class l extends o.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,s,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),s,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Ring=l,l.prototype.className="Ring",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,a._registerNode)(l),n.Factory.addGetterSetter(l,"innerRadius",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(l,"outerRadius",0,(0,i.getNumberValidator)())},5461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSL=void 0;const n=r(4892),o=r(6536),i=r(5483);n.Factory.addGetterSetter(o.Node,"hue",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"saturation",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"luminance",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter),t.HSL=function(e){const t=e.data,r=t.length,n=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,i=127*this.luminance(),a=1*n*Math.cos(o*Math.PI/180),s=1*n*Math.sin(o*Math.PI/180),l=.299+.701*a+.167*s,c=.587-.587*a+.33*s,u=.114-.114*a-.497*s,d=.299-.299*a-.328*s,f=.587+.413*a+.035*s,h=.114-.114*a+.293*s,p=.299-.3*a+1.25*s,m=.587-.586*a-1.05*s,g=.114+.886*a-.2*s;let v,b,y,w;for(let e=0;e<r;e+=4)v=t[e+0],b=t[e+1],y=t[e+2],w=t[e+3],t[e+0]=l*v+c*b+u*y+i,t[e+1]=d*v+f*b+h*y+i,t[e+2]=p*v+m*b+g*y+i,t[e+3]=w}},5483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGBComponent=function(e){return e>255?255:e<0?0:Math.round(e)},t.alphaComponent=function(e){return e>1?1:e<1e-4?1e-4:e},t.getNumberValidator=function(){if(n.Konva.isUnminified)return function(e,t){return o.Util._isNumber(e)||o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}},t.getNumberOrArrayOfNumbersValidator=function(e){if(n.Konva.isUnminified)return function(t,r){let n=o.Util._isNumber(t),a=o.Util._isArray(t)&&t.length==e;return n||a||o.Util.warn(i(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}},t.getNumberOrAutoValidator=function(){if(n.Konva.isUnminified)return function(e,t){return o.Util._isNumber(e)||"auto"===e||o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}},t.getStringValidator=function(){if(n.Konva.isUnminified)return function(e,t){return o.Util._isString(e)||o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}},t.getStringOrGradientValidator=function(){if(n.Konva.isUnminified)return function(e,t){const r=o.Util._isString(e),n="[object CanvasGradient]"===Object.prototype.toString.call(e)||e&&e.addColorStop;return r||n||o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}},t.getFunctionValidator=function(){if(n.Konva.isUnminified)return function(e,t){return o.Util._isFunction(e)||o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}},t.getNumberArrayValidator=function(){if(n.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(o.Util._isArray(e)?e.forEach((function(e){o.Util._isNumber(e)||o.Util.warn('"'+t+'" attribute has non numeric element '+e+". Make sure that all elements are numbers.")})):o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}},t.getBooleanValidator=function(){if(n.Konva.isUnminified)return function(e,t){return!0===e||!1===e||o.Util.warn(i(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}},t.getComponentValidator=function(e){if(n.Konva.isUnminified)return function(t,r){return null==t||o.Util.isObject(t)||o.Util.warn(i(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}};const n=r(8871),o=r(4060);function i(e){return o.Util._isString(e)?'"'+e+'"':"[object Number]"===Object.prototype.toString.call(e)||o.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}},5553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Kaleidoscope=void 0;const n=r(4892),o=r(6536),i=r(4060),a=r(5483);t.Kaleidoscope=function(e){const t=e.width,r=e.height;let n,o,a,s,l,c,u,d,f,h,p=Math.round(this.kaleidoscopePower());const m=Math.round(this.kaleidoscopeAngle()),g=Math.floor(t*(m%360)/360);if(p<1)return;const v=i.Util.createCanvasElement();v.width=t,v.height=r;const b=v.getContext("2d").getImageData(0,0,t,r);i.Util.releaseCanvas(v),function(e,t,r){const n=e.data,o=t.data,i=e.width,a=e.height,s=r.polarCenterX||i/2,l=r.polarCenterY||a/2;let c=Math.sqrt(s*s+l*l),u=i-s,d=a-l;const f=Math.sqrt(u*u+d*d);c=f>c?f:c;const h=a,p=i,m=360/p*Math.PI/180;for(let e=0;e<p;e+=1){const t=Math.sin(e*m),r=Math.cos(e*m);for(let a=0;a<h;a+=1){u=Math.floor(s+c*a/h*r),d=Math.floor(l+c*a/h*t);let f=4*(d*i+u);const p=n[f+0],m=n[f+1],g=n[f+2],v=n[f+3];f=4*(e+a*i),o[f+0]=p,o[f+1]=m,o[f+2]=g,o[f+3]=v}}}(e,b,{polarCenterX:t/2,polarCenterY:r/2});let y=t/Math.pow(2,p);for(;y<=8;)y*=2,p-=1;y=Math.ceil(y);let w=y,x=0,S=w,C=1;for(g+y>t&&(x=w,S=0,C=-1),o=0;o<r;o+=1)for(n=x;n!==S;n+=C)a=Math.round(n+g)%t,f=4*(t*o+a),l=b.data[f+0],c=b.data[f+1],u=b.data[f+2],d=b.data[f+3],h=4*(t*o+n),b.data[h+0]=l,b.data[h+1]=c,b.data[h+2]=u,b.data[h+3]=d;for(o=0;o<r;o+=1)for(w=Math.floor(y),s=0;s<p;s+=1){for(n=0;n<w+1;n+=1)f=4*(t*o+n),l=b.data[f+0],c=b.data[f+1],u=b.data[f+2],d=b.data[f+3],h=4*(t*o+2*w-n-1),b.data[h+0]=l,b.data[h+1]=c,b.data[h+2]=u,b.data[h+3]=d;w*=2}!function(e,t,r){const n=e.data,o=t.data,i=e.width,a=e.height,s=r.polarCenterX||i/2,l=r.polarCenterY||a/2;let c=Math.sqrt(s*s+l*l),u=i-s,d=a-l;const f=Math.sqrt(u*u+d*d);c=f>c?f:c;const h=a,p=i,m=r.polarRotation||0;let g,v;for(u=0;u<i;u+=1)for(d=0;d<a;d+=1){const e=u-s,t=d-l,r=Math.sqrt(e*e+t*t)*h/c;let a=(180*Math.atan2(t,e)/Math.PI+360+m)%360;a=a*p/360,g=Math.floor(a),v=Math.floor(r);let f=4*(v*i+g);const b=n[f+0],y=n[f+1],w=n[f+2],x=n[f+3];f=4*(d*i+u),o[f+0]=b,o[f+1]=y,o[f+2]=w,o[f+3]=x}}(b,e,{polarRotation:0})},n.Factory.addGetterSetter(o.Node,"kaleidoscopePower",2,(0,a.getNumberValidator)(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(o.Node,"kaleidoscopeAngle",0,(0,a.getNumberValidator)(),n.Factory.afterSetFilter)},5570:(e,t)=>{"use strict";function r(e,t,r){const o=n(1,r,e),i=n(1,r,t),a=o*o+i*i;return Math.sqrt(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],t.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]],t.getCubicArcLength=(e,n,o)=>{let i,a;const s=o/2;i=0;for(let o=0;o<20;o++)a=s*t.tValues[20][o]+s,i+=t.cValues[20][o]*r(e,n,a);return s*i},t.getQuadraticArcLength=(e,t,r)=>{void 0===r&&(r=1);const n=e[0]-2*e[1]+e[2],o=t[0]-2*t[1]+t[2],i=2*e[1]-2*e[0],a=2*t[1]-2*t[0],s=4*(n*n+o*o),l=4*(n*i+o*a),c=i*i+a*a;if(0===s)return r*Math.sqrt(Math.pow(e[2]-e[0],2)+Math.pow(t[2]-t[0],2));const u=l/(2*s),d=r+u,f=c/s-u*u,h=d*d+f>0?Math.sqrt(d*d+f):0,p=u*u+f>0?Math.sqrt(u*u+f):0,m=u+Math.sqrt(u*u+f)!==0?f*Math.log(Math.abs((d+h)/(u+p))):0;return Math.sqrt(s)/2*(d*h-u*p+m)};const n=(e,r,o)=>{const i=o.length-1;let a,s;if(0===i)return 0;if(0===e){s=0;for(let e=0;e<=i;e++)s+=t.binomialCoefficients[i][e]*Math.pow(1-r,i-e)*Math.pow(r,e)*o[e];return s}a=new Array(i);for(let e=0;e<i;e++)a[e]=i*(o[e+1]-o[e]);return n(e-1,r,a)};t.t2length=(e,t,r)=>{let n=1,o=e/t,i=(e-r(o))/t,a=0;for(;n>.001;){const s=r(o+i),l=Math.abs(e-s)/t;if(l<n)n=l,o+=i;else{const a=r(o-i),s=Math.abs(e-a)/t;s<n?(n=s,o-=i):i/=2}if(a++,a>500)break}return o}},5778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8558);e.exports=n.Konva},5992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Noise=void 0;const n=r(4892),o=r(6536),i=r(5483);t.Noise=function(e){const t=255*this.noise(),r=e.data,n=r.length,o=t/2;for(let e=0;e<n;e+=4)r[e+0]+=o-2*o*Math.random(),r[e+1]+=o-2*o*Math.random(),r[e+2]+=o-2*o*Math.random()},n.Factory.addGetterSetter(o.Node,"noise",.2,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},6261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Blur=void 0;const n=r(4892),o=r(6536),i=r(5483);function a(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],l=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];t.Blur=function(e){const t=Math.round(this.blurRadius());t>0&&function(e,t){const r=e.data,n=e.width,o=e.height;let i,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T,j,P,M;const R=t+t+1,_=n-1,I=o-1,N=t+1,F=N*(N+1)/2,D=new a,B=s[t],L=l[t];let z=null,H=D,U=null,V=null;for(u=1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=P=b*B>>L,P>0?(P=255/P,r[d]=(m*B>>L)*P,r[d+1]=(g*B>>L)*P,r[d+2]=(v*B>>L)*P):r[d]=r[d+1]=r[d+2]=0,m-=y,g-=w,v-=x,b-=S,y-=U.r,w-=U.g,x-=U.b,S-=U.a,d=i+((d=c+N)<I?d:I)*n<<2,m+=C+=U.r=r[d],g+=k+=U.g=r[d+1],v+=E+=U.b=r[d+2],b+=O+=U.a=r[d+3],U=U.next,y+=A=V.r,w+=T=V.g,x+=j=V.b,S+=P=V.a,C-=A,k-=T,E-=j,O-=P,V=V.next,h+=n}}(e,t)},n.Factory.addGetterSetter(o.Node,"blurRadius",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},6267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layer=void 0;const n=r(4060),o=r(4473),i=r(6536),a=r(4892),s=r(8604),l=r(5483),c=r(4723),u=r(8871),d=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],f=d.length;class h extends o.Container{constructor(e){super(e),this.canvas=new s.SceneCanvas,this.hitCanvas=new s.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);const t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),e<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[e+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){i.Node.prototype.moveToTop.call(this);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!i.Node.prototype.moveUp.call(this))return!1;const e=this.getStage();return!(!e||!e.content||(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),0))}moveDown(){if(i.Node.prototype.moveDown.call(this)){const e=this.getStage();if(e){const t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(i.Node.prototype.moveToBottom.call(this)){const e=this.getStage();if(e){const t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const e=this.getNativeCanvasElement();return i.Node.prototype.remove.call(this),e&&e.parentNode&&n.Util._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:t}){return this.canvas.setSize(e,t),this.hitCanvas.setSize(e,t),this._setSmoothEnabled(),this}_validateAdd(e){const t=e.getType();"Group"!==t&&"Shape"!==t&&n.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return(e=e||{}).width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=void 0!==e.x?e.x:this.x(),e.y=void 0!==e.y?e.y:this.y(),i.Node.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){const e=this.visible();this.canvas._canvas.style.display=e?"block":"none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){n.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){n.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,n.Util.requestAnimFrame((()=>{this.draw(),this._waitingForDraw=!1}))),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let t=1,r=!1;for(;;){for(let n=0;n<f;n++){const o=d[n],i=this._getIntersection({x:e.x+o.x*t,y:e.y+o.y*t}),a=i.shape;if(a)return a;if(r=!!i.antialiased,!i.antialiased)break}if(!r)return null;t+=1}}_getIntersection(e){const t=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(e.x*t),Math.round(e.y*t),1,1).data,o=r[3];if(255===o){const e=n.Util._rgbToHex(r[0],r[1],r[2]),t=c.shapes["#"+e];return t?{shape:t}:{antialiased:!0}}return o>0?{antialiased:!0}:{}}drawScene(e,t){const r=this.getLayer(),n=e||r&&r.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&n.getContext().clear(),o.Container.prototype.drawScene.call(this,n,t),this._fire("draw",{node:this}),this}drawHit(e,t){const r=this.getLayer(),n=e||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),o.Container.prototype.drawHit.call(this,n,t),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){n.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return n.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const e=this.parent;this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return n.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}t.Layer=h,h.prototype.nodeType="Layer",(0,u._registerNode)(h),a.Factory.addGetterSetter(h,"imageSmoothingEnabled",!0),a.Factory.addGetterSetter(h,"clearBeforeDraw",!0),a.Factory.addGetterSetter(h,"hitGraphEnabled",!0,(0,l.getBooleanValidator)())},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6351:(e,t,r)=>{"use strict";e.exports=r(7787)},6426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));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||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},6536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;const n=r(4060),o=r(4892),i=r(8604),a=r(8871),s=r(1268),l=r(5483),c="absoluteOpacity",u="allEventListeners",d="absoluteTransform",f="absoluteScale",h="canvas",p="listening",m="mouseenter",g="mouseleave",v="Shape",b=" ",y="stage",w="transform",x="visible",S=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(b);let C=1;class k{constructor(e){this._id=C++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){e!==w&&e!==d||!this._cache.get(e)?e?this._cache.delete(e):this._cache.clear():this._cache.get(e).dirty=!0}_getCache(e,t){let r=this._cache.get(e);return(void 0===r||(e===w||e===d)&&!0===r.dirty)&&(r=t.call(this),this._cache.set(e,r)),r}_calculate(e,t,r){if(!this._attachedDepsListeners.get(e)){const r=t.map((e=>e+"Change.konva")).join(b);this.on(r,(()=>{this._clearCache(e)})),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,r)}_getCanvasCache(){return this._cache.get(h)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===d&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(h)){const{scene:e,filter:t,hit:r}=this._cache.get(h);n.Util.releaseCanvas(e,t,r),this._cache.delete(h)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){const t=e||{};let r={};void 0!==t.x&&void 0!==t.y&&void 0!==t.width&&void 0!==t.height||(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(t.width||r.width),a=Math.ceil(t.height||r.height),s=t.pixelRatio,l=void 0===t.x?Math.floor(r.x):t.x,u=void 0===t.y?Math.floor(r.y):t.y,d=t.offset||0,p=t.drawBorder||!1,m=t.hitCanvasPixelRatio||1;if(!o||!a)return void n.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");o+=2*d+(Math.abs(Math.round(r.x)-l)>.5?1:0),a+=2*d+(Math.abs(Math.round(r.y)-u)>.5?1:0),l-=d,u-=d;const g=new i.SceneCanvas({pixelRatio:s,width:o,height:a}),v=new i.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),b=new i.HitCanvas({pixelRatio:m,width:o,height:a}),y=g.getContext(),w=b.getContext();return b.isCache=!0,g.isCache=!0,this._cache.delete(h),this._filterUpToDate=!1,!1===t.imageSmoothingEnabled&&(g.getContext()._context.imageSmoothingEnabled=!1,v.getContext()._context.imageSmoothingEnabled=!1),y.save(),w.save(),y.translate(-l,-u),w.translate(-l,-u),this._isUnderCache=!0,this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(f),this.drawScene(g,this),this.drawHit(b,this),this._isUnderCache=!1,y.restore(),w.restore(),p&&(y.save(),y.beginPath(),y.rect(0,0,o,a),y.closePath(),y.setAttr("strokeStyle","red"),y.setAttr("lineWidth",5),y.stroke(),y.restore()),this._cache.set(h,{scene:g,filter:v,hit:b,x:l,y:u}),this._requestDraw(),this}isCached(){return this._cache.has(h)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,t){const r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}];let n=1/0,o=1/0,i=-1/0,a=-1/0;const s=this.getAbsoluteTransform(t);return r.forEach((function(e){const t=s.point(e);void 0===n&&(n=i=t.x,o=a=t.y),n=Math.min(n,t.x),o=Math.min(o,t.y),i=Math.max(i,t.x),a=Math.max(a,t.y)})),{x:n,y:o,width:i-n,height:a-o}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const t=this._getCanvasCache();e.translate(t.x,t.y);const r=this._getCachedSceneCanvas(),n=r.pixelRatio;e.drawImage(r._canvas,0,0,r.width/n,r.height/n),e.restore()}_drawCachedHitCanvas(e){const t=this._getCanvasCache(),r=t.hit;e.save(),e.translate(t.x,t.y),e.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),e.restore()}_getCachedSceneCanvas(){let e,t,r,o,i=this.filters(),a=this._getCanvasCache(),s=a.scene,l=a.filter,c=l.getContext();if(i){if(!this._filterUpToDate){const a=s.pixelRatio;l.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio);try{for(e=i.length,c.clear(),c.drawImage(s._canvas,0,0,s.getWidth()/a,s.getHeight()/a),t=c.getImageData(0,0,l.getWidth(),l.getHeight()),r=0;r<e;r++)o=i[r],"function"==typeof o?(o.call(this,t),c.putImageData(t,0,0)):n.Util.error("Filter should be type of function, but got "+typeof o+" instead. Please check correct filters")}catch(e){n.Util.error("Unable to apply filter. "+e.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return l}return s}on(e,t){if(this._cache&&this._cache.delete(u),3===arguments.length)return this._delegate.apply(this,arguments);let r,n,o,i,a,s=e.split(b),l=s.length;for(r=0;r<l;r++)n=s[r],o=n.split("."),i=o[0],a=o[1]||"",this.eventListeners[i]||(this.eventListeners[i]=[]),this.eventListeners[i].push({name:a,handler:t});return this}off(e,t){let r,n,o,i,a,s,l=(e||"").split(b),c=l.length;if(this._cache&&this._cache.delete(u),!e)for(n in this.eventListeners)this._off(n);for(r=0;r<c;r++)if(o=l[r],i=o.split("."),a=i[0],s=i[1],a)this.eventListeners[a]&&this._off(a,s,t);else for(n in this.eventListeners)this._off(n,s,t);return this}dispatchEvent(e){const t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this}addEventListener(e,t){return this.on(e,(function(e){t.call(this,e.evt)})),this}removeEventListener(e){return this.off(e),this}_delegate(e,t,r){const o=this;this.on(e,(function(e){const i=e.target.findAncestors(t,!0,o);for(let t=0;t<i.length;t++)(e=n.Util.cloneObject(e)).currentTarget=i[t],r.call(i[t],e)}))}remove(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(d),this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(y),this._clearSelfAndDescendantCache(x),this._clearSelfAndDescendantCache(p)}_remove(){this._clearCaches();const e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){const t="get"+n.Util._capitalize(e);return n.Util._isFunction(this[t])?this[t]():this.attrs[e]}getAncestors(){let e=this.getParent(),t=[];for(;e;)t.push(e),e=e.getParent();return t}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges((()=>{let t,r;if(!e)return this;for(t in e)"children"!==t&&(r="set"+n.Util._capitalize(t),n.Util._isFunction(this[r])?this[r](e[t]):this._setAttr(t,e[t]))})),this}isListening(){return this._getCache(p,this._isListening)}_isListening(e){if(!this.listening())return!1;const t=this.getParent();return!t||t===e||this===e||t._isListening(e)}isVisible(){return this._getCache(x,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const t=this.getParent();return!t||t===e||this===e||t._isVisible(e)}shouldDrawHit(e,t=!1){if(e)return this._isVisible(e)&&this._isListening(e);const r=this.getLayer();let n=!1;s.DD._dragElements.forEach((e=>{"dragging"===e.dragStatus&&("Stage"===e.node.nodeType||e.node.getLayer()===r)&&(n=!0)}));const o=!t&&!a.Konva.hitOnDragEnabled&&(n||a.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let e,t,r,n,o=this.getDepth(),i=this,a=0;const s=this.getStage();return"Stage"!==i.nodeType&&s&&function s(l){for(e=[],t=l.length,r=0;r<t;r++)n=l[r],a++,n.nodeType!==v&&(e=e.concat(n.getChildren().slice())),n._id===i._id&&(r=t);e.length>0&&e[0].getDepth()<=o&&s(e)}(s.getChildren()),a}getDepth(){let e=0,t=this.parent;for(;t;)e++,t=t.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(w),this._clearSelfAndDescendantCache(d)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges((()=>{this.x(e.x),this.y(e.y)})),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;const t=e.getPointerPosition();if(!t)return null;const r=this.getAbsoluteTransform().copy();return r.invert(),r.point(t)}getAbsolutePosition(e){let t=!1,r=this.parent;for(;r;){if(r.isCached()){t=!0;break}r=r.parent}t&&!e&&(e=!0);const o=this.getAbsoluteTransform(e).getMatrix(),i=new n.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(e){const{x:t,y:r,...n}=this._clearTransform();this.attrs.x=t,this.attrs.y=r,this._clearCache(w);const o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(e.x,e.y),e={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(n),this.setPosition({x:e.x,y:e.y}),this._clearCache(w),this._clearSelfAndDescendantCache(d),this}_setTransform(e){let t;for(t in e)this.attrs[t]=e[t]}_clearTransform(){const e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){let t=e.x,r=e.y,n=this.x(),o=this.y();return void 0!==t&&(n+=t),void 0!==r&&(o+=r),this.setPosition({x:n,y:o}),this}_eachAncestorReverse(e,t){let r,n,o=[],i=this.getParent();if(!t||t._id!==this._id){for(o.unshift(this);i&&(!t||i._id!==t._id);)o.unshift(i),i=i.parent;for(r=o.length,n=0;n<r;n++)e(o[n])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return n.Util.warn("Node has no parent. moveToTop function is ignored."),!1;const e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return n.Util.warn("Node has no parent. moveUp function is ignored."),!1;const e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return n.Util.warn("Node has no parent. moveDown function is ignored."),!1;const e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return n.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(e){if(!this.parent)return n.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&n.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const t=this.index;return this.parent.children.splice(t,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(c,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let e=this.opacity();const t=this.getParent();return t&&!t._isUnderCache&&(e*=t.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){let e,t,r,o,i,a=this.getAttrs();const s={attrs:{},className:this.getClassName()};for(e in a)t=a[e],i=n.Util.isObject(t)&&!n.Util._isPlainObject(t)&&!n.Util._isArray(t),i||(r="function"==typeof this[e]&&this[e],delete a[e],o=r?r.call(this):null,a[e]=t,o!==t&&(s.attrs[e]=t));return n.Util._prepareToStringify(s)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,t,r){const n=[];t&&this._isMatch(e)&&n.push(this);let o=this.parent;for(;o;){if(o===r)return n;o._isMatch(e)&&n.push(o),o=o.parent}return n}isAncestorOf(e){return!1}findAncestor(e,t,r){return this.findAncestors(e,t,r)[0]}_isMatch(e){if(!e)return!1;if("function"==typeof e)return e(this);let t,r,o=e.replace(/ /g,"").split(","),i=o.length;for(t=0;t<i;t++)if(r=o[t],n.Util.isValidSelector(r)||(n.Util.warn('Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),n.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),n.Util.warn("Konva is awesome, right?")),"#"===r.charAt(0)){if(this.id()===r.slice(1))return!0}else if("."===r.charAt(0)){if(this.hasName(r.slice(1)))return!0}else if(this.className===r||this.nodeType===r)return!0;return!1}getLayer(){const e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(y,this._getStage)}_getStage(){const e=this.getParent();return e?e.getStage():null}fire(e,t={},r){return t.target=t.target||this,r?this._fireAndBubble(e,t):this._fire(e,t),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(d,this._getAbsoluteTransform)}_getAbsoluteTransform(e){let t;if(e)return t=new n.Transform,this._eachAncestorReverse((function(e){const r=e.transformsEnabled();"all"===r?t.multiply(e.getTransform()):"position"===r&&t.translate(e.x()-e.offsetX(),e.y()-e.offsetY())}),e),t;{t=this._cache.get(d)||new n.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(t):t.reset();const e=this.transformsEnabled();if("all"===e)t.multiply(this.getTransform());else if("position"===e){const e=this.attrs.x||0,r=this.attrs.y||0,n=this.attrs.offsetX||0,o=this.attrs.offsetY||0;t.translate(e-n,r-o)}return t.dirty=!1,t}}getAbsoluteScale(e){let t=this;for(;t;)t._isUnderCache&&(e=t),t=t.getParent();const r=this.getAbsoluteTransform(e).decompose();return{x:r.scaleX,y:r.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(w,this._getTransform)}_getTransform(){var e,t;const r=this._cache.get(w)||new n.Transform;r.reset();const o=this.x(),i=this.y(),s=a.Konva.getAngle(this.rotation()),l=null!==(e=this.attrs.scaleX)&&void 0!==e?e:1,c=null!==(t=this.attrs.scaleY)&&void 0!==t?t:1,u=this.attrs.skewX||0,d=this.attrs.skewY||0,f=this.attrs.offsetX||0,h=this.attrs.offsetY||0;return 0===o&&0===i||r.translate(o,i),0!==s&&r.rotate(s),0===u&&0===d||r.skew(u,d),1===l&&1===c||r.scale(l,c),0===f&&0===h||r.translate(-1*f,-1*h),r.dirty=!1,r}clone(e){let t,r,o,i,a,s=n.Util.cloneObject(this.attrs);for(t in e)s[t]=e[t];const l=new this.constructor(s);for(t in this.eventListeners)for(r=this.eventListeners[t],o=r.length,i=0;i<o;i++)a=r[i],a.name.indexOf("konva")<0&&(l.eventListeners[t]||(l.eventListeners[t]=[]),l.eventListeners[t].push(a));return l}_toKonvaCanvas(e){e=e||{};const t=this.getClientRect(),r=this.getStage(),n=void 0!==e.x?e.x:Math.floor(t.x),o=void 0!==e.y?e.y:Math.floor(t.y),a=e.pixelRatio||1,s=new i.SceneCanvas({width:e.width||Math.ceil(t.width)||(r?r.width():0),height:e.height||Math.ceil(t.height)||(r?r.height():0),pixelRatio:a}),l=s.getContext(),c=new i.SceneCanvas({width:s.width/s.pixelRatio+Math.abs(n),height:s.height/s.pixelRatio+Math.abs(o),pixelRatio:s.pixelRatio});return!1===e.imageSmoothingEnabled&&(l._context.imageSmoothingEnabled=!1),l.save(),(n||o)&&l.translate(-1*n,-1*o),this.drawScene(s,void 0,c),l.restore(),s}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){const t=(e=e||{}).mimeType||null,r=e.quality||null,n=this._toKonvaCanvas(e).toDataURL(t,r);return e.callback&&e.callback(n),n}toImage(e){return new Promise(((t,r)=>{try{const r=null==e?void 0:e.callback;r&&delete e.callback,n.Util._urlToImage(this.toDataURL(e),(function(e){t(e),null==r||r(e)}))}catch(e){r(e)}}))}toBlob(e){return new Promise(((t,r)=>{try{const r=null==e?void 0:e.callback;r&&delete e.callback,this.toCanvas(e).toBlob((e=>{t(e),null==r||r(e)}),null==e?void 0:e.mimeType,null==e?void 0:e.quality)}catch(e){r(e)}}))}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():a.Konva.dragDistance}_off(e,t,r){let n,o,i,a=this.eventListeners[e];for(n=0;n<a.length;n++)if(o=a[n].name,i=a[n].handler,!("konva"===o&&"konva"!==t||t&&o!==t||r&&r!==i)){if(a.splice(n,1),0===a.length){delete this.eventListeners[e];break}n--}}_fireChangeEvent(e,t,r){this._fire(e+"Change",{oldVal:t,newVal:r})}addName(e){if(!this.hasName(e)){const t=this.name(),r=t?t+" "+e:e;this.name(r)}return this}hasName(e){if(!e)return!1;const t=this.name();return!!t&&-1!==(t||"").split(/\s/g).indexOf(e)}removeName(e){const t=(this.name()||"").split(/\s/g),r=t.indexOf(e);return-1!==r&&(t.splice(r,1),this.name(t.join(" "))),this}setAttr(e,t){const r=this["set"+n.Util._capitalize(e)];return n.Util._isFunction(r)?r.call(this,t):this._setAttr(e,t),this}_requestDraw(){if(a.Konva.autoDrawEnabled){const e=this.getLayer()||this.getStage();null==e||e.batchDraw()}}_setAttr(e,t){const r=this.attrs[e];(r!==t||n.Util.isObject(t))&&(null==t?delete this.attrs[e]:this.attrs[e]=t,this._shouldFireChangeEvents&&this._fireChangeEvent(e,r,t),this._requestDraw())}_setComponentAttr(e,t,r){let n;void 0!==r&&(n=this.attrs[e],n||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=r,this._fireChangeEvent(e,n,r))}_fireAndBubble(e,t,r){if(t&&this.nodeType===v&&(t.target=this),e!==m&&e!==g||!(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||"Stage"===this.nodeType&&!r)){this._fire(e,t);const n=(e===m||e===g)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(t&&!t.cancelBubble||!t)&&this.parent&&this.parent.isListening()&&!n&&(r&&r.parent?this._fireAndBubble.call(this.parent,e,t,r):this._fireAndBubble.call(this.parent,e,t))}}_getProtoListeners(e){var t,r,n;const o=null!==(t=this._cache.get(u))&&void 0!==t?t:{};let i=null==o?void 0:o[e];if(void 0===i){i=[];let t=Object.getPrototypeOf(this);for(;t;){const o=null!==(n=null===(r=t.eventListeners)||void 0===r?void 0:r[e])&&void 0!==n?n:[];i.push(...o),t=Object.getPrototypeOf(t)}o[e]=i,this._cache.set(u,o)}return i}_fire(e,t){(t=t||{}).currentTarget=this,t.type=e;const r=this._getProtoListeners(e);if(r)for(var n=0;n<r.length;n++)r[n].handler.call(this,t);const o=this.eventListeners[e];if(o)for(n=0;n<o.length;n++)o[n].handler.call(this,t)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){const t=e?e.pointerId:void 0,r=this.getStage(),n=this.getAbsolutePosition();if(!r)return;const o=r._getPointerById(t)||r._changedPointerPositions[0]||n;s.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-n.x,y:o.y-n.y},dragStatus:"ready",pointerId:t})}startDrag(e,t=!0){s.DD._dragElements.has(this._id)||this._createDragElement(e),s.DD._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},t)}_setDragPosition(e,t){const r=this.getStage()._getPointerById(t.pointerId);if(!r)return;let o={x:r.x-t.offset.x,y:r.y-t.offset.y};const i=this.dragBoundFunc();if(void 0!==i){const t=i.call(this,o,e);t?o=t:n.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===o.x&&this._lastPos.y===o.y||(this.setAbsolutePosition(o),this._requestDraw()),this._lastPos=o}stopDrag(e){const t=s.DD._dragElements.get(this._id);t&&(t.dragStatus="stopped"),s.DD._endDragBefore(e),s.DD._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=s.DD._dragElements.get(this._id);return!!e&&"dragging"===e.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(e){if(!(void 0===e.evt.button||a.Konva.dragButtons.indexOf(e.evt.button)>=0))return;if(this.isDragging())return;let t=!1;s.DD._dragElements.forEach((e=>{this.isAncestorOf(e.node)&&(t=!0)})),t||this._createDragElement(e)}))}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const e=s.DD._dragElements.get(this._id),t=e&&"dragging"===e.dragStatus,r=e&&"ready"===e.dragStatus;t?this.stopDrag():r&&s.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const t=this.getStage();if(!t)return!1;const r={x:-e.x,y:-e.y,width:t.width()+2*e.x,height:t.height()+2*e.y};return n.Util.haveIntersection(r,this.getClientRect())}static create(e,t){return n.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,t)}static _createNode(e,t){let r,o,i,s=k.prototype.getClassName.call(e),l=e.children;if(t&&(e.attrs.container=t),a.Konva[s]||(n.Util.warn('Can not find a node with class name "'+s+'". Fallback to "Shape".'),s="Shape"),r=new(0,a.Konva[s])(e.attrs),l)for(o=l.length,i=0;i<o;i++)r.add(k._createNode(l[i]));return r}}t.Node=k,k.prototype.nodeType="Node",k.prototype._attrsAffectingSize=[],k.prototype.eventListeners={},k.prototype.on.call(k.prototype,S,(function(){this._batchingTransformChange?this._needClearTransformCache=!0:(this._clearCache(w),this._clearSelfAndDescendantCache(d))})),k.prototype.on.call(k.prototype,"visibleChange.konva",(function(){this._clearSelfAndDescendantCache(x)})),k.prototype.on.call(k.prototype,"listeningChange.konva",(function(){this._clearSelfAndDescendantCache(p)})),k.prototype.on.call(k.prototype,"opacityChange.konva",(function(){this._clearSelfAndDescendantCache(c)}));const E=o.Factory.addGetterSetter;E(k,"zIndex"),E(k,"absolutePosition"),E(k,"position"),E(k,"x",0,(0,l.getNumberValidator)()),E(k,"y",0,(0,l.getNumberValidator)()),E(k,"globalCompositeOperation","source-over",(0,l.getStringValidator)()),E(k,"opacity",1,(0,l.getNumberValidator)()),E(k,"name","",(0,l.getStringValidator)()),E(k,"id","",(0,l.getStringValidator)()),E(k,"rotation",0,(0,l.getNumberValidator)()),o.Factory.addComponentsGetterSetter(k,"scale",["x","y"]),E(k,"scaleX",1,(0,l.getNumberValidator)()),E(k,"scaleY",1,(0,l.getNumberValidator)()),o.Factory.addComponentsGetterSetter(k,"skew",["x","y"]),E(k,"skewX",0,(0,l.getNumberValidator)()),E(k,"skewY",0,(0,l.getNumberValidator)()),o.Factory.addComponentsGetterSetter(k,"offset",["x","y"]),E(k,"offsetX",0,(0,l.getNumberValidator)()),E(k,"offsetY",0,(0,l.getNumberValidator)()),E(k,"dragDistance",void 0,(0,l.getNumberValidator)()),E(k,"width",0,(0,l.getNumberValidator)()),E(k,"height",0,(0,l.getNumberValidator)()),E(k,"listening",!0,(0,l.getBooleanValidator)()),E(k,"preventDefault",!0,(0,l.getBooleanValidator)()),E(k,"filters",void 0,(function(e){return this._filterUpToDate=!1,e})),E(k,"visible",!0,(0,l.getBooleanValidator)()),E(k,"transformsEnabled","all",(0,l.getStringValidator)()),E(k,"size"),E(k,"dragBoundFunc"),E(k,"draggable",!1,(0,l.getBooleanValidator)()),o.Factory.backCompat(k,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"})},6540:(e,t,r)=>{"use strict";e.exports=r(5287)},6564:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Invert=void 0,t.Invert=function(e){const t=e.data,r=t.length;for(let e=0;e<r;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]}},6619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=t.Label=void 0;const n=r(4892),o=r(4723),i=r(7949),a=r(5483),s=r(8871),l=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],c="up",u="right",d="down",f="left",h=l.length;class p extends i.Group{constructor(e){super(e),this.on("add.konva",(function(e){this._addListeners(e.child),this._sync()}))}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let t,r=this;const n=function(){r._sync()};for(t=0;t<h;t++)e.on(l[t]+"Change.konva",n)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e,t,r,n,o,i,a,s=this.getText(),l=this.getTag();if(s&&l){switch(e=s.width(),t=s.height(),r=l.pointerDirection(),n=l.pointerWidth(),a=l.pointerHeight(),o=0,i=0,r){case c:o=e/2,i=-1*a;break;case u:o=e+n,i=t/2;break;case d:o=e/2,i=t+a;break;case f:o=-1*n,i=t/2}l.setAttrs({x:-1*o,y:-1*i,width:e,height:t}),s.setAttrs({x:-1*o,y:-1*i})}}}t.Label=p,p.prototype.className="Label",(0,s._registerNode)(p);class m extends o.Shape{_sceneFunc(e){const t=this.width(),r=this.height(),n=this.pointerDirection(),o=this.pointerWidth(),i=this.pointerHeight(),a=this.cornerRadius();let s=0,l=0,h=0,p=0;"number"==typeof a?s=l=h=p=Math.min(a,t/2,r/2):(s=Math.min(a[0]||0,t/2,r/2),l=Math.min(a[1]||0,t/2,r/2),p=Math.min(a[2]||0,t/2,r/2),h=Math.min(a[3]||0,t/2,r/2)),e.beginPath(),e.moveTo(s,0),n===c&&(e.lineTo((t-o)/2,0),e.lineTo(t/2,-1*i),e.lineTo((t+o)/2,0)),e.lineTo(t-l,0),e.arc(t-l,l,l,3*Math.PI/2,0,!1),n===u&&(e.lineTo(t,(r-i)/2),e.lineTo(t+o,r/2),e.lineTo(t,(r+i)/2)),e.lineTo(t,r-p),e.arc(t-p,r-p,p,0,Math.PI/2,!1),n===d&&(e.lineTo((t+o)/2,r),e.lineTo(t/2,r+i),e.lineTo((t-o)/2,r)),e.lineTo(h,r),e.arc(h,r-h,h,Math.PI/2,Math.PI,!1),n===f&&(e.lineTo(0,(r+i)/2),e.lineTo(-1*o,r/2),e.lineTo(0,(r-i)/2)),e.lineTo(0,s),e.arc(s,s,s,Math.PI,3*Math.PI/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,t=0,r=this.pointerWidth(),n=this.pointerHeight(),o=this.pointerDirection(),i=this.width(),a=this.height();return o===c?(t-=n,a+=n):o===d?a+=n:o===f?(e-=1.5*r,i+=r):o===u&&(i+=1.5*r),{x:e,y:t,width:i,height:a}}}t.Tag=m,m.prototype.className="Tag",(0,s._registerNode)(m),n.Factory.addGetterSetter(m,"pointerDirection","none"),n.Factory.addGetterSetter(m,"pointerWidth",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(m,"pointerHeight",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(m,"cornerRadius",0,(0,a.getNumberOrArrayOfNumbersValidator)(4))},6627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Brighten=void 0;const n=r(4892),o=r(6536),i=r(5483);t.Brighten=function(e){const t=255*this.brightness(),r=e.data,n=r.length;for(let e=0;e<n;e+=4)r[e]+=t,r[e+1]+=t,r[e+2]+=t},n.Factory.addGetterSetter(o.Node,"brightness",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},6921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGB=void 0;const n=r(4892),o=r(6536),i=r(5483);t.RGB=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue();for(let e=0;e<r;e+=4){const r=(.34*t[e]+.5*t[e+1]+.16*t[e+2])/255;t[e]=r*n,t[e+1]=r*o,t[e+2]=r*i,t[e+3]=t[e+3]}},n.Factory.addGetterSetter(o.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),n.Factory.addGetterSetter(o.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),n.Factory.addGetterSetter(o.Node,"blue",0,i.RGBComponent,n.Factory.afterSetFilter)},6942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(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 r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},6955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipse=void 0;const n=r(4892),o=r(4723),i=r(5483),a=r(8871);class s extends o.Shape{_sceneFunc(e){const t=this.radiusX(),r=this.radiusY();e.beginPath(),e.save(),t!==r&&e.scale(1,r/t),e.arc(0,0,t,0,2*Math.PI,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}t.Ellipse=s,s.prototype.className="Ellipse",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,a._registerNode)(s),n.Factory.addComponentsGetterSetter(s,"radius",["x","y"]),n.Factory.addGetterSetter(s,"radiusX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(s,"radiusY",0,(0,i.getNumberValidator)())},7019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Posterize=void 0;const n=r(4892),o=r(6536),i=r(5483);t.Posterize=function(e){const t=Math.round(254*this.levels())+1,r=e.data,n=r.length,o=255/t;for(let e=0;e<n;e+=1)r[e]=Math.floor(r[e]/o)*o},n.Factory.addGetterSetter(o.Node,"levels",.5,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},7083:(e,t,r)=>{"use strict";var n=r(1447),o=r(9805),i=r(1996),a=r(9681),s=r(4674),l=r(4442),c=r(7414),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[r])}function f(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,c,d,f=this.strm,h=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new o.Buf8(h),f.next_out=0,f.avail_out=h),(r=n.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(f.output,f.next_out),c=f.next_out-l,d=i.buf2string(f.output,l),f.next_out=c,f.avail_out=h-c,c&&o.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},7241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grayscale=void 0,t.Grayscale=function(e){const t=e.data,r=t.length;for(let e=0;e<r;e+=4){const r=.34*t[e]+.5*t[e+1]+.16*t[e+2];t[e]=r,t[e+1]=r,t[e+2]=r}}},7256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Image=void 0;const n=r(4060),o=r(4892),i=r(4723),a=r(8871),s=r(5483);class l extends i.Shape{constructor(e){super(e),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",(e=>{this._removeImageLoad(e.oldVal),this._setImageLoad()})),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&4===e.readyState||e&&e.addEventListener&&e.addEventListener("load",this._loadListener)}_removeImageLoad(e){e&&e.removeEventListener&&e.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const e=!!this.cornerRadius(),t=this.hasShadow();return!(!e||!t)||super._useBufferCanvas(!0)}_sceneFunc(e){const t=this.getWidth(),r=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const e=this.attrs.cropWidth,n=this.attrs.cropHeight;a=e&&n?[i,this.cropX(),this.cropY(),e,n,0,0,t,r]:[i,0,0,t,r]}(this.hasFill()||this.hasStroke()||o)&&(e.beginPath(),o?n.Util.drawRoundedRectPath(e,t,r,o):e.rect(0,0,t,r),e.closePath(),e.fillStrokeShape(this)),i&&(o&&e.clip(),e.drawImage.apply(e,a))}_hitFunc(e){const t=this.width(),r=this.height(),o=this.cornerRadius();e.beginPath(),o?n.Util.drawRoundedRectPath(e,t,r,o):e.rect(0,0,t,r),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,t;return null!==(e=this.attrs.width)&&void 0!==e?e:null===(t=this.image())||void 0===t?void 0:t.width}getHeight(){var e,t;return null!==(e=this.attrs.height)&&void 0!==e?e:null===(t=this.image())||void 0===t?void 0:t.height}static fromURL(e,t,r=null){const o=n.Util.createImageElement();o.onload=function(){const e=new l({image:o});t(e)},o.onerror=r,o.crossOrigin="Anonymous",o.src=e}}t.Image=l,l.prototype.className="Image",(0,a._registerNode)(l),o.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),o.Factory.addGetterSetter(l,"image"),o.Factory.addComponentsGetterSetter(l,"crop",["x","y","width","height"]),o.Factory.addGetterSetter(l,"cropX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(l,"cropY",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(l,"cropWidth",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(l,"cropHeight",0,(0,s.getNumberValidator)())},7293:e=>{"use strict";e.exports=function(e,t){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O;r=e.state,n=e.next_in,E=e.input,o=n+(e.avail_in-5),i=e.next_out,O=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,f=r.window,h=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(h+=E[n++]<<p,p+=8,h+=E[n++]<<p,p+=8),y=m[h&v];t:for(;;){if(h>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))O[i++]=65535&y;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}y=m[(65535&y)+(h&(1<<w)-1)];continue t}for(x=65535&y,(w&=15)&&(p<w&&(h+=E[n++]<<p,p+=8),x+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=E[n++]<<p,p+=8,h+=E[n++]<<p,p+=8),y=g[h&b];;){if(h>>>=w=y>>>24,p-=w,16&(w=y>>>16&255)){if(S=65535&y,p<(w&=15)&&(h+=E[n++]<<p,(p+=8)<w&&(h+=E[n++]<<p,p+=8)),(S+=h&(1<<w)-1)>l){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,S>(w=i-a)){if((w=S-w)>u&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(C=0,k=f,0===d){if(C+=c-w,w<x){x-=w;do{O[i++]=f[C++]}while(--w);C=i-S,k=O}}else if(d<w){if(C+=c+d-w,(w-=d)<x){x-=w;do{O[i++]=f[C++]}while(--w);if(C=0,d<x){x-=w=d;do{O[i++]=f[C++]}while(--w);C=i-S,k=O}}}else if(C+=d-w,w<x){x-=w;do{O[i++]=f[C++]}while(--w);C=i-S,k=O}for(;x>2;)O[i++]=k[C++],O[i++]=k[C++],O[i++]=k[C++],x-=3;x&&(O[i++]=k[C++],x>1&&(O[i++]=k[C++]))}else{C=i-S;do{O[i++]=O[C++],O[i++]=O[C++],O[i++]=O[C++],x-=3}while(x>2);x&&(O[i++]=O[C++],x>1&&(O[i++]=O[C++]))}break}if(64&w){e.msg="invalid distance code",r.mode=30;break e}y=g[(65535&y)+(h&(1<<w)-1)]}}break}}while(n<o&&i<s);n-=x=p>>3,h&=(1<<(p-=x<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=i<s?s-i+257:257-(i-s),r.hold=h,r.bits=p}},7324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const n=r(4060),o=r(4892),i=r(4473),a=r(8871),s=r(8604),l=r(1268),c=r(8871),u=r(8722),d="mouseleave",f="mouseover",h="mouseenter",p="mousemove",m="mousedown",g="mouseup",v="pointermove",b="pointerdown",y="pointerup",w="pointercancel",x="pointerout",S="pointerleave",C="pointerover",k="pointerenter",E="contextmenu",O="touchstart",A="touchend",T="touchmove",j="touchcancel",P="wheel",M=[[h,"_pointerenter"],[m,"_pointerdown"],[p,"_pointermove"],[g,"_pointerup"],[d,"_pointerleave"],[O,"_pointerdown"],[T,"_pointermove"],[A,"_pointerup"],[j,"_pointercancel"],[f,"_pointerover"],[P,"_wheel"],[E,"_contextmenu"],[b,"_pointerdown"],[v,"_pointermove"],[y,"_pointerup"],[w,"_pointercancel"],["lostpointercapture","_lostpointercapture"]],R={mouse:{[x]:"mouseout",[S]:d,[C]:f,[k]:h,[v]:p,[b]:m,[y]:g,[w]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[x]:"touchout",[S]:"touchleave",[C]:"touchover",[k]:"touchenter",[v]:T,[b]:O,[y]:A,[w]:j,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[x]:x,[S]:S,[C]:C,[k]:k,[v]:v,[b]:b,[y]:y,[w]:w,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},_=e=>e.indexOf("pointer")>=0?"pointer":e.indexOf("touch")>=0?"touch":"mouse",I=e=>{const t=_(e);return"pointer"===t?a.Konva.pointerEventsEnabled&&R.pointer:"touch"===t?R.touch:"mouse"===t?R.mouse:void 0};function N(e={}){return(e.clipFunc||e.clipWidth||e.clipHeight)&&n.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),e}t.stages=[];class F extends i.Container{constructor(e){super(N(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(()=>{N(this.attrs)})),this._checkVisibility()}_validateAdd(e){const t="Layer"===e.getType(),r="FastLayer"===e.getType();t||r||n.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if("string"==typeof e){if("."===e.charAt(0)){const t=e.slice(1);e=document.getElementsByClassName(t)[0]}else{var t;t="#"!==e.charAt(0)?e:e.slice(1),e=document.getElementById(t)}if(!e)throw"Can not find container in document with id "+t}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const e=this.children,t=e.length;for(let r=0;r<t;r++)e[r].clear();return this}clone(e){return e||(e={}),e.container="undefined"!=typeof document&&document.createElement("div"),i.Container.prototype.clone.call(this,e)}destroy(){super.destroy();const e=this.content;e&&n.Util._isInDocument(e)&&this.container().removeChild(e);const r=t.stages.indexOf(this);return r>-1&&t.stages.splice(r,1),n.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(n.Util.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)}_getPointerById(e){return this._pointerPositions.find((t=>t.id===e))}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){(e=e||{}).x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();const t=new s.SceneCanvas({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),r=t.getContext()._context,n=this.children;return(e.x||e.y)&&r.translate(-1*e.x,-1*e.y),n.forEach((function(t){if(!t.isVisible())return;const n=t._toKonvaCanvas(e);r.drawImage(n._canvas,e.x,e.y,n.getWidth()/n.getPixelRatio(),n.getHeight()/n.getPixelRatio())})),t}getIntersection(e){if(!e)return null;const t=this.children;for(let r=t.length-1;r>=0;r--){const n=t[r].getIntersection(e);if(n)return n}return null}_resizeDOM(){const e=this.width(),t=this.height();this.content&&(this.content.style.width=e+"px",this.content.style.height=t+"px"),this.bufferCanvas.setSize(e,t),this.bufferHitCanvas.setSize(e,t),this.children.forEach((r=>{r.setSize({width:e,height:t}),r.draw()}))}add(e,...t){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}super.add(e);const r=this.children.length;return r>5&&n.Util.warn("The stage has "+r+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),a.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return u.hasPointerCapture(e,this)}setPointerCapture(e){u.setPointerCapture(e,this)}releaseCapture(e){u.releaseCapture(e,this)}getLayers(){return this.children}_bindContentEvents(){a.Konva.isBrowser&&M.forEach((([e,t])=>{this.content.addEventListener(e,(e=>{this[t](e)}),{passive:!1})}))}_pointerenter(e){this.setPointersPositions(e);const t=I(e.type);t&&this._fire(t.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);const t=I(e.type);t&&this._fire(t.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let t=this[e+"targetShape"];return t&&!t.getStage()&&(t=null),t}_pointerleave(e){const t=I(e.type),r=_(e.type);if(!t)return;this.setPointersPositions(e);const n=this._getTargetShape(r),o=!(a.Konva.isDragging()||a.Konva.isTransforming())||a.Konva.hitOnDragEnabled;n&&o?(n._fireAndBubble(t.pointerout,{evt:e}),n._fireAndBubble(t.pointerleave,{evt:e}),this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this[r+"targetShape"]=null):o&&(this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(t.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(e){const t=I(e.type),r=_(e.type);if(!t)return;this.setPointersPositions(e);let n=!1;this._changedPointerPositions.forEach((o=>{const i=this.getIntersection(o);if(l.DD.justDragged=!1,a.Konva["_"+r+"ListenClick"]=!0,!i||!i.isListening())return void(this[r+"ClickStartShape"]=void 0);a.Konva.capturePointerEventsEnabled&&i.setPointerCapture(o.id),this[r+"ClickStartShape"]=i,i._fireAndBubble(t.pointerdown,{evt:e,pointerId:o.id}),n=!0;const s=e.type.indexOf("touch")>=0;i.preventDefault()&&e.cancelable&&s&&e.preventDefault()})),n||this._fire(t.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(e){const t=I(e.type),r=_(e.type);if(!t)return;if(a.Konva.isDragging()&&l.DD.node.preventDefault()&&e.cancelable&&e.preventDefault(),this.setPointersPositions(e),(a.Konva.isDragging()||a.Konva.isTransforming())&&!a.Konva.hitOnDragEnabled)return;const n={};let o=!1;const i=this._getTargetShape(r);this._changedPointerPositions.forEach((a=>{const s=u.getCapturedShape(a.id)||this.getIntersection(a),l=a.id,c={evt:e,pointerId:l},d=i!==s;if(d&&i&&(i._fireAndBubble(t.pointerout,{...c},s),i._fireAndBubble(t.pointerleave,{...c},s)),s){if(n[s._id])return;n[s._id]=!0}s&&s.isListening()?(o=!0,d&&(s._fireAndBubble(t.pointerover,{...c},i),s._fireAndBubble(t.pointerenter,{...c},i),this[r+"targetShape"]=s),s._fireAndBubble(t.pointermove,{...c})):i&&(this._fire(t.pointerover,{evt:e,target:this,currentTarget:this,pointerId:l}),this[r+"targetShape"]=null)})),o||this._fire(t.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){const t=I(e.type),r=_(e.type);if(!t)return;this.setPointersPositions(e);const n=this[r+"ClickStartShape"],o=this[r+"ClickEndShape"],i={};let s=!1;this._changedPointerPositions.forEach((c=>{const d=u.getCapturedShape(c.id)||this.getIntersection(c);if(d){if(d.releaseCapture(c.id),i[d._id])return;i[d._id]=!0}const f=c.id,h={evt:e,pointerId:f};let p=!1;a.Konva["_"+r+"InDblClickWindow"]?(p=!0,clearTimeout(this[r+"DblTimeout"])):l.DD.justDragged||(a.Konva["_"+r+"InDblClickWindow"]=!0,clearTimeout(this[r+"DblTimeout"])),this[r+"DblTimeout"]=setTimeout((function(){a.Konva["_"+r+"InDblClickWindow"]=!1}),a.Konva.dblClickWindow),d&&d.isListening()?(s=!0,this[r+"ClickEndShape"]=d,d._fireAndBubble(t.pointerup,{...h}),a.Konva["_"+r+"ListenClick"]&&n&&n===d&&(d._fireAndBubble(t.pointerclick,{...h}),p&&o&&o===d&&d._fireAndBubble(t.pointerdblclick,{...h}))):(this[r+"ClickEndShape"]=null,a.Konva["_"+r+"ListenClick"]&&this._fire(t.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:f}),p&&this._fire(t.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:f}))})),s||this._fire(t.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),a.Konva["_"+r+"ListenClick"]=!1,e.cancelable&&"touch"!==r&&"pointer"!==r&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);const t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(E,{evt:e}):this._fire(E,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);const t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(P,{evt:e}):this._fire(P,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);const t=u.getCapturedShape(e.pointerId)||this.getIntersection(this.getPointerPosition());t&&t._fireAndBubble(y,u.createEvent(e)),u.releaseCapture(e.pointerId)}_lostpointercapture(e){u.releaseCapture(e.pointerId)}setPointersPositions(e){const t=this._getContentPosition();let r=null,o=null;void 0!==(e=e||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,(e=>{this._pointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})})),Array.prototype.forEach.call(e.changedTouches||e.touches,(e=>{this._changedPointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}))):(r=(e.clientX-t.left)/t.scaleX,o=(e.clientY-t.top)/t.scaleY,this.pointerPos={x:r,y:o},this._pointerPositions=[{x:r,y:o,id:n.Util._getFirstPointerId(e)}],this._changedPointerPositions=[{x:r,y:o,id:n.Util._getFirstPointerId(e)}])}_setPointerPosition(e){n.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new s.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new s.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!a.Konva.isBrowser)return;const e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}cache(){return n.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach((function(e){e.batchDraw()})),this}}t.Stage=F,F.prototype.nodeType="Stage",(0,c._registerNode)(F),o.Factory.addGetterSetter(F,"container"),a.Konva.isBrowser&&document.addEventListener("visibilitychange",(()=>{t.stages.forEach((e=>{e.batchDraw()}))}))},7414:e=>{"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},7457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FastLayer=void 0;const n=r(4060),o=r(6267),i=r(8871);class a extends o.Layer{constructor(e){super(e),this.listening(!1),n.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}t.FastLayer=a,a.prototype.nodeType="FastLayer",(0,i._registerNode)(a)},7463:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,r))c<o&&0>i(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<o&&0>i(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.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,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function x(e){if(g=!1,w(e),!m)if(null!==n(c))m=!0,_(S);else{var t=n(u);null!==t&&I(x,t.startTime-e)}}function S(e,r){m=!1,g&&(g=!1,b(O),O=-1),p=!0;var i=h;try{for(w(r),f=n(c);null!==f&&(!(f.expirationTime>r)||e&&!j());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?f.callback=s:f===n(c)&&o(c),w(r)}else o(c);f=n(c)}if(null!==f)var l=!0;else{var d=n(u);null!==d&&I(x,d.startTime-r),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,E=null,O=-1,A=5,T=-1;function j(){return!(t.unstable_now()-T<A)}function P(){if(null!==E){var e=t.unstable_now();T=e;var r=!0;try{r=E(!0,e)}finally{r?C():(k=!1,E=null)}}else k=!1}if("function"==typeof y)C=function(){y(P)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,R=M.port2;M.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){v(P,0)};function _(e){E=e,k||(k=!0,C())}function I(e,r){O=v((function(){e(t.unstable_now())}),r)}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,_(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"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},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 r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,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:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,r(u,e),null===n(c)&&e===n(u)&&(g?(b(O),O=-1):g=!0,I(x,i-a))):(e.sortIndex=s,r(c,e),m||p||(m=!0,_(S))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},7659:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},7787:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case p:case h:case s:return e;default:return t}}case n:return t}}}(e)===h}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7830:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,".PdfjsAnnotationExtension_Comment_hidden .CustomComment{display:none}.CustomComment_filterContent ul,.CustomComment_filterContent li{list-style:none}.CustomComment_filterContent li{padding:3px}.CustomComment_filterContent li:hover{background-color:#ddd}.CustomComment_filterContent li>label{width:100%}.CustomComment{width:330px;position:absolute;top:107px;right:0;height:calc(100vh - 107px);color:var(--main-color);border-left:1px solid var(--toolbar-border-color);overflow:auto;font:message-box;font-size:14px}.CustomComment .filters{padding:5px}.CustomComment .list{padding:5px 5px 25px 5px}.CustomComment .list .group{margin-bottom:10px}.CustomComment .list h3{font-weight:normal;font-size:14px}.CustomComment .list h3 span{float:right}.CustomComment .list .comment{border:1px solid var(--toolbar-border-color);background-color:var(--toolbar-bg-color);border-radius:8px;padding:5px 10px 10px 10px;line-height:150%}.CustomComment .list .comment .ant-typography{color:var(--main-color) !important}.CustomComment .list .comment p{white-space:pre-wrap;line-height:150%;padding:0;margin-top:5px}.CustomComment .list .comment .title{display:flex;align-items:center;cursor:default}.CustomComment .list .comment .title .username{min-width:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.CustomComment .list .comment .title .username span{display:block;font-size:12px;line-height:120%;opacity:.5}.CustomComment .list .comment .title .annotation-icon{margin-right:5px;align-self:flex-start}.CustomComment .list .comment .title .tool{margin-left:auto;display:flex;align-items:center}.CustomComment .list .comment .title .tool .icon{margin-left:5px;border-radius:8px;display:inline-block;padding:0 3px !important}.CustomComment .list .comment .title .tool .icon:hover{background-color:var(--dropdown-btn-bg-color)}.CustomComment .list .comment .reply{background-color:var(--dropdown-btn-bg-color);border-radius:5px;padding:5px 10px;margin-top:8px;margin-left:15px}.CustomComment .list .comment .reply .icon:hover{background-color:var(--toggled-btn-bg-color) !important}.CustomComment .list .comment:hover{background-color:var(--doorhanger-hover-bg-color)}.CustomComment .list .selected{border-color:rgba(22,119,255,.4470588235);background-color:var(--doorhanger-hover-bg-color)}.CustomComment .list h3,.CustomComment .list .comment{margin-bottom:8px}@media all and (max-width: 780px){.CustomComment{width:250px}.PdfjsAnnotationExtension #viewerContainer{right:250px}}@media all and (max-width: 690px){.CustomComment{width:150px}.PdfjsAnnotationExtension #viewerContainer{right:150px}}",""]);const s=a},7928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Enhance=void 0;const n=r(4892),o=r(6536),i=r(5483);function a(e,t,r,n,o){const i=r-t,a=o-n;if(0===i)return n+a/2;if(0===a)return n;let s=(e-t)/i;return s=a*s+n,s}t.Enhance=function(e){const t=e.data,r=t.length;let n,o,i,s=t[0],l=s,c=t[1],u=c,d=t[2],f=d;const h=this.enhance();if(0===h)return;for(let e=0;e<r;e+=4)n=t[e+0],n<s?s=n:n>l&&(l=n),o=t[e+1],o<c?c=o:o>u&&(u=o),i=t[e+2],i<d?d=i:i>f&&(f=i);let p,m,g,v,b,y,w,x,S;l===s&&(l=255,s=0),u===c&&(u=255,c=0),f===d&&(f=255,d=0),h>0?(m=l+h*(255-l),g=s-h*(s-0),b=u+h*(255-u),y=c-h*(c-0),x=f+h*(255-f),S=d-h*(d-0)):(p=.5*(l+s),m=l+h*(l-p),g=s+h*(s-p),v=.5*(u+c),b=u+h*(u-v),y=c+h*(c-v),w=.5*(f+d),x=f+h*(f-w),S=d+h*(d-w));for(let e=0;e<r;e+=4)t[e+0]=a(t[e+0],s,l,g,m),t[e+1]=a(t[e+1],c,u,y,b),t[e+2]=a(t[e+2],d,f,S,x)},n.Factory.addGetterSetter(o.Node,"enhance",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},7949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;const n=r(4060),o=r(4473),i=r(8871);class a extends o.Container{_validateAdd(e){const t=e.getType();"Group"!==t&&"Shape"!==t&&n.Util.throw("You may only add groups and shapes to groups.")}}t.Group=a,a.prototype.nodeType="Group",(0,i._registerNode)(a)},7965:(e,t,r)=>{"use strict";var n=r(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,l,c,u=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),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(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},8001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wedge=void 0;const n=r(4892),o=r(4723),i=r(8871),a=r(5483),s=r(8871);class l extends o.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,i.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}t.Wedge=l,l.prototype.className="Wedge",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["radius"],(0,s._registerNode)(l),n.Factory.addGetterSetter(l,"radius",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(l,"angle",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(l,"clockwise",!1),n.Factory.backCompat(l,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"})},8137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextPath=void 0;const n=r(4060),o=r(4892),i=r(4723),a=r(1486),s=r(1958),l=r(5483),c=r(8871),u="normal";function d(e){e.fillText(this.partialText,0,0)}function f(e){e.strokeText(this.partialText,0,0)}class h extends i.Shape{constructor(e){super(e),this.dummyCanvas=n.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute(),this._setTextData()})),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return a.Path.getPathLength(this.dataArray)}_getPointAtLength(e){return this.attrs.data?e-1>this.pathLength?null:a.Path.getPointAtLengthOfDataArray(e,this.dataArray):null}_readDataAttribute(){this.dataArray=a.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const t=this.textDecoration(),r=this.fill(),n=this.fontSize(),o=this.glyphInfo;"underline"===t&&e.beginPath();for(let r=0;r<o.length;r++){e.save();const i=o[r].p0;e.translate(i.x,i.y),e.rotate(o[r].rotation),this.partialText=o[r].text,e.fillStrokeShape(this),"underline"===t&&(0===r&&e.moveTo(0,n/2+1),e.lineTo(n,n/2+1)),e.restore()}"underline"===t&&(e.strokeStyle=r,e.lineWidth=n/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();const t=this.glyphInfo;if(t.length>=1){const r=t[0].p0;e.moveTo(r.x,r.y)}for(let r=0;r<t.length;r++){const n=t[r].p1;e.lineTo(n.x,n.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return n.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return s.Text.prototype.setText.call(this,e)}_getContextFont(){return s.Text.prototype._getContextFont.call(this)}_getTextSize(e){const t=this.dummyCanvas.getContext("2d");t.save(),t.font=this._getContextFont();const r=t.measureText(e);return t.restore(),{width:r.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:e,height:t}=this._getTextSize(this.attrs.text);if(this.textWidth=e,this.textHeight=t,this.glyphInfo=[],!this.attrs.data)return null;const r=this.letterSpacing(),n=this.align(),o=this.kerningFunc(),i=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);let l=0;"center"===n&&(l=Math.max(0,this.pathLength/2-i/2)),"right"===n&&(l=Math.max(0,this.pathLength-i));const c=(0,s.stringToArray)(this.text());let u=l;for(let e=0;e<c.length;e++){const t=this._getPointAtLength(u);if(!t)return;let s=this._getTextSize(c[e]).width+r;if(" "===c[e]&&"justify"===n){const e=this.text().split(" ").length-1;s+=(this.pathLength-i)/e}const l=this._getPointAtLength(u+s);if(!l)return;const d=a.Path.getLineLength(t.x,t.y,l.x,l.y);let f=0;if(o)try{f=o(c[e-1],c[e])*this.fontSize()}catch(e){f=0}t.x+=f,l.x+=f,this.textWidth+=f;const h=a.Path.getPointOnLine(f+d/2,t.x,t.y,l.x,l.y),p=Math.atan2(l.y-t.y,l.x-t.x);this.glyphInfo.push({transposeX:h.x,transposeY:h.y,text:c[e],rotation:p,p0:t,p1:l}),u+=s}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const e=[];this.glyphInfo.forEach((function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)}));let t,r,n=e[0]||0,o=e[0]||0,i=e[1]||0,a=e[1]||0;for(let s=0;s<e.length/2;s++)t=e[2*s],r=e[2*s+1],n=Math.min(n,t),o=Math.max(o,t),i=Math.min(i,r),a=Math.max(a,r);const s=this.fontSize();return{x:n-s/2,y:i-s/2,width:o-n+s,height:a-i+s}}destroy(){return n.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}t.TextPath=h,h.prototype._fillFunc=d,h.prototype._strokeFunc=f,h.prototype._fillFuncHit=d,h.prototype._strokeFuncHit=f,h.prototype.className="TextPath",h.prototype._attrsAffectingSize=["text","fontSize","data"],(0,c._registerNode)(h),o.Factory.addGetterSetter(h,"data"),o.Factory.addGetterSetter(h,"fontFamily","Arial"),o.Factory.addGetterSetter(h,"fontSize",12,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(h,"fontStyle",u),o.Factory.addGetterSetter(h,"align","left"),o.Factory.addGetterSetter(h,"letterSpacing",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(h,"textBaseline","middle"),o.Factory.addGetterSetter(h,"fontVariant",u),o.Factory.addGetterSetter(h,"text",""),o.Factory.addGetterSetter(h,"textDecoration",""),o.Factory.addGetterSetter(h,"kerningFunc",void 0)},8307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,".PdfjsAnnotationExtension .toolbar{z-index:99}.PdfjsAnnotationExtension .textLayer{z-index:9 !important}.PdfjsAnnotationExtension #viewerContainer{top:107px !important;right:330px}.PdfjsAnnotationExtension #sidebarContainer{top:107px !important}.PdfjsAnnotationExtension #toolbarContainer{height:107px}.PdfjsAnnotationExtension .ant-message{z-index:9999999}.PdfjsAnnotationExtension .ant-modal-mask{backdrop-filter:blur(8px)}.PdfjsAnnotationExtension_Comment_hidden #viewerContainer{right:0 !important}.PdfjsAnnotationExtension_scalechanging .PdfjsAnnotationExtension_painter_wrapper{display:none}.pdfPresentationMode .PdfjsAnnotationExtension_painter_wrapper{display:block}",""]);const s=a},8411:(e,t,r)=>{"use strict";var n,o=r(9805),i=r(3665),a=r(3269),s=r(4823),l=r(4674),c=-2,u=258,d=262,f=103,h=113,p=666;function m(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function v(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function y(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function S(e,t){var r,n,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,c=e.window,f=e.w_mask,h=e.prev,p=e.strstart+u,m=c[i+a-1],g=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===g&&c[r+a-1]===m&&c[r]===c[i]&&c[++r]===c[i+1]){i+=2,r++;do{}while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&i<p);if(n=u-(p-i),i=p-u,n>a){if(e.match_start=t,a=n,n>=s)break;m=c[i+a-1],g=c[i+a]}}}while((t=h[t&f])>l&&0!==--o);return a<=e.lookahead?a:e.lookahead}function C(e){var t,r,n,i,l,c,u,f,h,p,m=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){o.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=m?n-m:0}while(--r);t=r=m;do{n=e.prev[--t],e.prev[t]=n>=m?n-m:0}while(--r);i+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,f=e.strstart+e.lookahead,h=i,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,o.arraySet(u,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,u,p,f):2===c.state.wrap&&(c.adler=s(c.adler,u,p,f)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function k(e,t){for(var r,n;;){if(e.lookahead<d){if(C(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-d&&(e.match_length=S(e,r)),e.match_length>=3)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function E(e,t){for(var r,n,o;;){if(e.lookahead<d){if(C(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-d&&(e.match_length=S(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(y(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&y(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function A(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),v(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):m(e,c)}function j(e){var t,r=T(e);return 0===r&&((t=e.state).window_size=2*t.w_size,v(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function P(e,t,r,n,i,a){if(!e)return c;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return m(e,c);8===n&&(n=9);var l=new A;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,j(e)}n=[new O(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(C(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,k),new O(4,5,16,8,k),new O(4,6,32,32,k),new O(4,4,16,16,E),new O(8,16,32,32,E),new O(8,16,128,128,E),new O(8,32,128,256,E),new O(32,128,258,1024,E),new O(32,258,258,4096,E)],t.deflateInit=function(e,t){return P(e,t,8,15,8,0)},t.deflateInit2=P,t.deflateReset=j,t.deflateResetKeep=T,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},t.deflate=function(e,t){var r,o,a,l;if(!e||!e.state||t>5||t<0)return e?m(e,c):c;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===p&&4!==t)return m(e,0===e.avail_out?-5:c);if(o.strm=e,r=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,w(o,31),w(o,139),w(o,8),o.gzhead?(w(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),w(o,255&o.gzhead.time),w(o,o.gzhead.time>>8&255),w(o,o.gzhead.time>>16&255),w(o,o.gzhead.time>>24&255),w(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),w(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(w(o,255&o.gzhead.extra.length),w(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(w(o,0),w(o,0),w(o,0),w(o,0),w(o,0),w(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),w(o,3),o.status=h);else{var d=8+(o.w_bits-8<<4)<<8;d|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=h,x(o,d),0!==o.strstart&&(x(o,e.adler>>>16),x(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending!==o.pending_buf_size));)w(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,w(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,w(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=f)}else o.status=f;if(o.status===f&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&b(e),o.pending+2<=o.pending_buf_size&&(w(o,255&e.adler),w(o,e.adler>>8&255),e.adler=0,o.status=h)):o.status=h),0!==o.pending){if(b(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(r)&&4!==t)return m(e,-5);if(o.status===p&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&o.status!==p){var S=2===o.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(C(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var r,n,o,a,s=e.window;;){if(e.lookahead<=u){if(C(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[o=e.strstart-1])===s[++o]&&n===s[++o]&&n===s[++o]){a=e.strstart+u;do{}while(n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&o<a);e.match_length=u-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(o,t):n[o.level].func(o,t);if(3!==S&&4!==S||(o.status=p),1===S||3===S)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===S&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(v(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),b(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(w(o,255&e.adler),w(o,e.adler>>8&255),w(o,e.adler>>16&255),w(o,e.adler>>24&255),w(o,255&e.total_in),w(o,e.total_in>>8&255),w(o,e.total_in>>16&255),w(o,e.total_in>>24&255)):(x(o,e.adler>>>16),x(o,65535&e.adler)),b(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==h&&t!==p?m(e,c):(e.state=null,t===h?m(e,-3):0):c},t.deflateSetDictionary=function(e,t){var r,n,i,s,l,u,d,f,h=t.length;if(!e||!e.state)return c;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(v(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new o.Buf8(r.w_size),o.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,C(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=2,C(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,r.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},8508:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,'.PdfjsAnnotationExtension_Comment_hidden .CustomToolbar::after{display:none}.CustomToolbar{width:100%;height:72px;display:flex;justify-content:center;align-items:center;overflow-x:auto}.CustomToolbar .buttons{display:flex;padding:0;margin:0;list-style:none;gap:3px;user-select:none}.CustomToolbar .buttons li{align-items:center;height:100%;text-align:center;border:1px solid rgba(0,0,0,0);border-radius:3px;color:var(--main-color)}.CustomToolbar .buttons li .ant-upload-wrapper{line-height:normal}.CustomToolbar .buttons li .icon{font-size:18px;padding:5px 10px 3px 10px;border-bottom:1px solid rgba(0,0,0,0);opacity:.9}.CustomToolbar .buttons li .name{font-size:14px;padding:1px 10px 2px 10px}.CustomToolbar .buttons li.selected{border:1px solid var(--toolbar-border-color);background-color:var(--toolbar-border-color)}.CustomToolbar .buttons li.disabled{opacity:.5}.CustomToolbar .buttons li.disabled:hover{background-color:rgba(0,0,0,0)}.CustomToolbar .splitToolbarButtonSeparator{height:30px;margin:0 5px;min-width:1px}.CustomToolbar .right{position:absolute;right:10px}.CustomToolbar::after{content:"";display:block;width:330px;height:100%;flex-shrink:0}.SignatureTool{margin:0 auto}.SignatureTool .show{display:block}.SignatureTool .hide{display:none}.SignatureTool-Header{padding:10px}.SignatureTool-Container{background-color:#eee;border:1px solid #ccc;position:relative;margin:0 auto}.SignatureTool-Container input{background-color:rgba(0,0,0,0);border:none;margin:0 auto;text-align:center;display:block;width:100%;outline:none}.SignatureTool-Container input::-webkit-input-placeholder{color:#ccc}.SignatureTool-Container .konvajs-content{z-index:99;cursor:crosshair}.SignatureTool-Container-info{font-size:20px;z-index:0;color:#ccc;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);text-align:center}.SignatureTool-ImagePreview{display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;position:relative}.SignatureTool img{width:100%;height:100%;object-fit:contain;display:block}.SignatureTool-Toolbar{border:1px solid #ccc;border-top:0;display:flex;justify-content:space-between;margin:0 auto}.SignatureTool-Toolbar .colorPalette{display:flex;margin:8px}.SignatureTool-Toolbar .colorPalette .cell{cursor:pointer;width:22px;height:22px;margin-right:10px;border-radius:100px;display:flex;align-items:center;justify-content:center;border:1px solid #fff}.SignatureTool-Toolbar .colorPalette .cell span{width:12px;height:12px;display:inline-block;border-radius:100px}.SignatureTool-Toolbar .colorPalette .active{border:1px solid #bbb}.SignatureTool-Toolbar .clear{padding:8px;cursor:pointer}.SignatureTool-Toolbar .clear:hover{text-decoration:underline}.SignaturePop .ant-popover-inner{padding:5px}.SignaturePop-Container{max-height:200px;overflow:auto}.SignaturePop ul,.SignaturePop li{margin:0;list-style:none;padding:0}.SignaturePop ul li:hover,.SignaturePop li li:hover{background-color:#ccc}.SignaturePop li{display:flex;margin:5px;justify-content:center;align-items:center}.SignaturePop li img{height:48px;max-width:100px;overflow:clip;object-fit:contain}.SignaturePop li span{margin-left:5px;cursor:pointer}.SignaturePop-Toolbar{padding:5px}.StampPop{width:300px}.StampPop .ant-popover-inner{padding:10px}.StampPop-Container{max-height:200px;overflow:auto;display:flex;flex-wrap:wrap}.StampPop ul,.StampPop li{margin:0;list-style:none;padding:0}.StampPop ul li:hover,.StampPop li li:hover{background-color:#ccc}.StampPop li{display:flex;margin:5px;padding:5px;justify-content:center;align-items:center;border-radius:5px;width:120px;text-align:center}.StampPop li img{height:48px;max-width:100px;overflow:clip;object-fit:contain}.StampPop li span{margin-left:5px;cursor:pointer}.StampPop-Toolbar{padding:5px}.StampTool{margin:0 auto}.StampTool-Container{position:relative;margin:0 auto}.StampTool-Container .ant-form{margin-top:12px}.StampTool-Container .ant-form-item{margin-bottom:12px}.StampTool-Container-ImagePreview{background-color:#eee;border:1px solid #ccc;overflow:auto}.StampTool-Container-ImagePreview .konvajs-content{z-index:99;margin:0 auto}.StampTool-Container-info{font-size:20px;z-index:0;color:#ccc;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);text-align:center}.StampTool-ImagePreview{display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;position:relative}.StampTool img{width:100%;height:100%;object-fit:contain;display:block}.StampTool-Toolbar{border:1px solid #ccc;border-top:0;display:flex;justify-content:space-between;margin:0 auto}.StampTool-Toolbar .colorPalette{display:flex;margin:8px}.StampTool-Toolbar .colorPalette .cell{cursor:pointer;width:22px;height:22px;margin-right:10px;border-radius:100px;display:flex;align-items:center;justify-content:center;border:1px solid #fff}.StampTool-Toolbar .colorPalette .cell span{width:12px;height:12px;display:inline-block;border-radius:100px}.StampTool-Toolbar .colorPalette .active{border:1px solid #bbb}.StampTool-Toolbar .clear{padding:8px;cursor:pointer}.StampTool-Toolbar .clear:hover{text-decoration:underline}@media all and (max-width: 1150px){.CustomToolbar .buttons .name{display:none}.CustomToolbar::after{display:none}}@media all and (max-width: 690px){.CustomToolbar{justify-content:flex-start}.CustomToolbar .buttons{margin-left:5px;padding-right:5px}}@media(hover: hover){.CustomToolbar .buttons li:hover{background-color:var(--button-hover-color)}}@media(hover: none){.CustomToolbar .buttons li:active{background-color:var(--button-hover-color)}}',""]);const s=a},8558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const n=r(680),o=r(4821),i=r(9456),a=r(9729),s=r(6955),l=r(7256),c=r(6619),u=r(3443),d=r(1486),f=r(5155),h=r(9131),p=r(5451),m=r(9308),g=r(4481),v=r(1958),b=r(8137),y=r(5058),w=r(8001),x=r(6261),S=r(6627),C=r(2650),k=r(983),E=r(7928),O=r(7241),A=r(5461),T=r(4843),j=r(6564),P=r(5553),M=r(8624),R=r(5992),_=r(4943),I=r(7019),N=r(6921),F=r(3862),D=r(2512),B=r(517),L=r(661);t.Konva=n.Konva.Util._assign(n.Konva,{Arc:o.Arc,Arrow:i.Arrow,Circle:a.Circle,Ellipse:s.Ellipse,Image:l.Image,Label:c.Label,Tag:c.Tag,Line:u.Line,Path:d.Path,Rect:f.Rect,RegularPolygon:h.RegularPolygon,Ring:p.Ring,Sprite:m.Sprite,Star:g.Star,Text:v.Text,TextPath:b.TextPath,Transformer:y.Transformer,Wedge:w.Wedge,Filters:{Blur:x.Blur,Brighten:S.Brighten,Contrast:C.Contrast,Emboss:k.Emboss,Enhance:E.Enhance,Grayscale:O.Grayscale,HSL:A.HSL,HSV:T.HSV,Invert:j.Invert,Kaleidoscope:P.Kaleidoscope,Mask:M.Mask,Noise:R.Noise,Pixelate:_.Pixelate,Posterize:I.Posterize,RGB:N.RGB,RGBA:F.RGBA,Sepia:D.Sepia,Solarize:B.Solarize,Threshold:L.Threshold}})},8604:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitCanvas=t.SceneCanvas=t.Canvas=void 0;const n=r(4060),o=r(9869),i=r(8871);let a;class s{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const t=(e||{}).pixelRatio||i.Konva.pixelRatio||function(){if(a)return a;const e=n.Util.createCanvasElement(),t=e.getContext("2d");return a=(i.Konva._global.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),n.Util.releaseCanvas(e),a}();this.pixelRatio=t,this._canvas=n.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){const t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";const t=this.pixelRatio;this.getContext()._context.scale(t,t)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";const t=this.pixelRatio;this.getContext()._context.scale(t,t)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,t){this.setWidth(e||0),this.setHeight(t||0)}toDataURL(e,t){try{return this._canvas.toDataURL(e,t)}catch(e){try{return this._canvas.toDataURL()}catch(e){return n.Util.error("Unable to get data URL. "+e.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}t.Canvas=s,t.SceneCanvas=class extends s{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new o.SceneContext(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}},t.HitCanvas=class extends s{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new o.HitContext(this),this.setSize(e.width,e.height)}}},8624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mask=void 0;const n=r(4892),o=r(6536),i=r(5483);function a(e,t,r){let n=4*(r*e.width+t);const o=[];return o.push(e.data[n++],e.data[n++],e.data[n++],e.data[n++]),o}function s(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}t.Mask=function(e){let t=function(e,t){const r=a(e,0,0),n=a(e,e.width-1,0),o=a(e,0,e.height-1),i=a(e,e.width-1,e.height-1),l=t||10;if(s(r,n)<l&&s(n,i)<l&&s(i,o)<l&&s(o,r)<l){const t=function(e){const t=[0,0,0];for(let r=0;r<e.length;r++)t[0]+=e[r][0],t[1]+=e[r][1],t[2]+=e[r][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}([n,r,i,o]),a=[];for(let r=0;r<e.width*e.height;r++){const n=s(t,[e.data[4*r],e.data[4*r+1],e.data[4*r+2]]);a[r]=n<l?0:255}return a}}(e,this.threshold());return t&&(t=function(e,t,r){const n=[1,1,1,1,0,1,1,1,1],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let s=0;s<r;s++)for(let l=0;l<t;l++){const c=s*t+l;let u=0;for(let a=0;a<o;a++)for(let c=0;c<o;c++){const d=s+a-i,f=l+c-i;if(d>=0&&d<r&&f>=0&&f<t){const r=n[a*o+c];u+=e[d*t+f]*r}}a[c]=2040===u?255:0}return a}(t,e.width,e.height),t=function(e,t,r){const n=[1,1,1,1,1,1,1,1,1],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let s=0;s<r;s++)for(let l=0;l<t;l++){const c=s*t+l;let u=0;for(let a=0;a<o;a++)for(let c=0;c<o;c++){const d=s+a-i,f=l+c-i;if(d>=0&&d<r&&f>=0&&f<t){const r=n[a*o+c];u+=e[d*t+f]*r}}a[c]=u>=1020?255:0}return a}(t,e.width,e.height),t=function(e,t,r){const n=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let s=0;s<r;s++)for(let l=0;l<t;l++){const c=s*t+l;let u=0;for(let a=0;a<o;a++)for(let c=0;c<o;c++){const d=s+a-i,f=l+c-i;if(d>=0&&d<r&&f>=0&&f<t){const r=n[a*o+c];u+=e[d*t+f]*r}}a[c]=u}return a}(t,e.width,e.height),function(e,t){for(let r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}(e,t)),e},n.Factory.addGetterSetter(o.Node,"threshold",0,(0,i.getNumberValidator)(),n.Factory.afterSetFilter)},8665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const n=r(4060),o=r(9696),i=r(6536),a=r(8871),s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},l=["fill","stroke","shadowColor"];let c=0;class u{constructor(e,t,r,n,o,i,a){this.prop=e,this.propFunc=t,this.begin=n,this._pos=n,this.duration=i,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=r,this._change=o-this.begin,this.pause()}fire(e){const t=this[e];t&&t()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return void 0===e&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const e=this.getTimer()-this._startTime;2===this.state?this.setTime(e):3===this.state&&this.setTime(this.duration-e)}pause(){this.state=1,this.fire("onPause")}getTimer(){return(new Date).getTime()}}class d{constructor(e){const r=this,i=e.node,l=i._id,f=e.easing||t.Easings.Linear,h=!!e.yoyo;let p,m;p=void 0===e.duration?.3:0===e.duration?.001:e.duration,this.node=i,this._id=c++;const g=i.getLayer()||(i instanceof a.Konva.Stage?i.getLayers():null);for(m in g||n.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new o.Animation((function(){r.tween.onEnterFrame()}),g),this.tween=new u(m,(function(e){r._tweenFunc(e)}),f,0,1,1e3*p,h),this._addListeners(),d.attrs[l]||(d.attrs[l]={}),d.attrs[l][this._id]||(d.attrs[l][this._id]={}),d.tweens[l]||(d.tweens[l]={}),e)void 0===s[m]&&this._addAttr(m,e[m]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,t){const r=this.node,o=r._id;let i,a,s,c,u;const f=d.tweens[o][e];f&&delete d.attrs[o][f][e];let h=r.getAttr(e);if(n.Util._isArray(t))if(i=[],a=Math.max(t.length,h.length),"points"===e&&t.length!==h.length&&(t.length>h.length?(c=h,h=n.Util._prepareArrayForTween(h,t,r.closed())):(s=t,t=n.Util._prepareArrayForTween(t,h,r.closed()))),0===e.indexOf("fill"))for(let e=0;e<a;e++)if(e%2==0)i.push(t[e]-h[e]);else{const r=n.Util.colorToRGBA(h[e]);u=n.Util.colorToRGBA(t[e]),h[e]=r,i.push({r:u.r-r.r,g:u.g-r.g,b:u.b-r.b,a:u.a-r.a})}else for(let e=0;e<a;e++)i.push(t[e]-h[e]);else-1!==l.indexOf(e)?(h=n.Util.colorToRGBA(h),u=n.Util.colorToRGBA(t),i={r:u.r-h.r,g:u.g-h.g,b:u.b-h.b,a:u.a-h.a}):i=t-h;d.attrs[o][this._id][e]={start:h,diff:i,end:t,trueEnd:s,trueStart:c},d.tweens[o][e]=this._id}_tweenFunc(e){const t=this.node,r=d.attrs[t._id][this._id];let o,i,a,s,c,u,f,h;for(o in r){if(i=r[o],a=i.start,s=i.diff,h=i.end,n.Util._isArray(a))if(c=[],f=Math.max(a.length,h.length),0===o.indexOf("fill"))for(u=0;u<f;u++)u%2==0?c.push((a[u]||0)+s[u]*e):c.push("rgba("+Math.round(a[u].r+s[u].r*e)+","+Math.round(a[u].g+s[u].g*e)+","+Math.round(a[u].b+s[u].b*e)+","+(a[u].a+s[u].a*e)+")");else for(u=0;u<f;u++)c.push((a[u]||0)+s[u]*e);else c=-1!==l.indexOf(o)?"rgba("+Math.round(a.r+s.r*e)+","+Math.round(a.g+s.g*e)+","+Math.round(a.b+s.b*e)+","+(a.a+s.a*e)+")":a+s*e;t.setAttr(o,c)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const e=this.node,t=d.attrs[e._id][this._id];t.points&&t.points.trueEnd&&e.setAttr("points",t.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const e=this.node,t=d.attrs[e._id][this._id];t.points&&t.points.trueStart&&e.points(t.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(1e3*e),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const e=this.node._id,t=this._id,r=d.tweens[e];this.pause();for(const t in r)delete d.tweens[e][t];delete d.attrs[e][t]}}t.Tween=d,d.attrs={},d.tweens={},i.Node.prototype.to=function(e){const t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new d(e).play()},t.Easings={BackEaseIn(e,t,r,n){const o=1.70158;return r*(e/=n)*e*((o+1)*e-o)+t},BackEaseOut(e,t,r,n){const o=1.70158;return r*((e=e/n-1)*e*((o+1)*e+o)+1)+t},BackEaseInOut(e,t,r,n){let o=1.70158;return(e/=n/2)<1?r/2*(e*e*((1+(o*=1.525))*e-o))+t:r/2*((e-=2)*e*((1+(o*=1.525))*e+o)+2)+t},ElasticEaseIn(e,t,r,n,o,i){let a=0;return 0===e?t:1===(e/=n)?t+r:(i||(i=.3*n),!o||o<Math.abs(r)?(o=r,a=i/4):a=i/(2*Math.PI)*Math.asin(r/o),-o*Math.pow(2,10*(e-=1))*Math.sin((e*n-a)*(2*Math.PI)/i)+t)},ElasticEaseOut(e,t,r,n,o,i){let a=0;return 0===e?t:1===(e/=n)?t+r:(i||(i=.3*n),!o||o<Math.abs(r)?(o=r,a=i/4):a=i/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*e)*Math.sin((e*n-a)*(2*Math.PI)/i)+r+t)},ElasticEaseInOut(e,t,r,n,o,i){let a=0;return 0===e?t:2==(e/=n/2)?t+r:(i||(i=n*(.3*1.5)),!o||o<Math.abs(r)?(o=r,a=i/4):a=i/(2*Math.PI)*Math.asin(r/o),e<1?o*Math.pow(2,10*(e-=1))*Math.sin((e*n-a)*(2*Math.PI)/i)*-.5+t:o*Math.pow(2,-10*(e-=1))*Math.sin((e*n-a)*(2*Math.PI)/i)*.5+r+t)},BounceEaseOut:(e,t,r,n)=>(e/=n)<1/2.75?r*(7.5625*e*e)+t:e<2/2.75?r*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?r*(7.5625*(e-=2.25/2.75)*e+.9375)+t:r*(7.5625*(e-=2.625/2.75)*e+.984375)+t,BounceEaseIn:(e,r,n,o)=>n-t.Easings.BounceEaseOut(o-e,0,n,o)+r,BounceEaseInOut:(e,r,n,o)=>e<o/2?.5*t.Easings.BounceEaseIn(2*e,0,n,o)+r:.5*t.Easings.BounceEaseOut(2*e-o,0,n,o)+.5*n+r,EaseIn:(e,t,r,n)=>r*(e/=n)*e+t,EaseOut:(e,t,r,n)=>-r*(e/=n)*(e-2)+t,EaseInOut:(e,t,r,n)=>(e/=n/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t,StrongEaseIn:(e,t,r,n)=>r*(e/=n)*e*e*e*e+t,StrongEaseOut:(e,t,r,n)=>r*((e=e/n-1)*e*e*e*e+1)+t,StrongEaseInOut:(e,t,r,n)=>(e/=n/2)<1?r/2*e*e*e*e*e+t:r/2*((e-=2)*e*e*e*e+2)+t,Linear:(e,t,r,n)=>r*e/n+t}},8722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCapturedShape=function(e){return o.get(e)},t.createEvent=a,t.hasPointerCapture=function(e,t){return o.get(e)===t},t.setPointerCapture=function(e,t){s(e),t.getStage()&&(o.set(e,t),i&&t._fire("gotpointercapture",a(new PointerEvent("gotpointercapture"))))},t.releaseCapture=s;const n=r(8871),o=new Map,i=void 0!==n.Konva._global.PointerEvent;function a(e){return{evt:e,pointerId:e.pointerId}}function s(e,t){const r=o.get(e);if(!r)return;const n=r.getStage();n&&n.content,o.delete(e),i&&r._fire("lostpointercapture",a(new PointerEvent("lostpointercapture")))}},8871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const n=Math.PI/180;t.glob=void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{},t.Konva={_global:t.glob,version:"9.3.20",isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle:e=>t.Konva.angleDeg?e*n:e,enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:()=>t.Konva.DD.isDragging,isTransforming(){var e;return null===(e=t.Konva.Transformer)||void 0===e?void 0:e.isTransforming()},isDragReady:()=>!!t.Konva.DD.node,releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(e){t.glob.Konva=e}},t._registerNode=e=>{t.Konva[e.prototype.getClassName()]=e},t.Konva._injectGlobal(t.Konva)},9131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegularPolygon=void 0;const n=r(4892),o=r(4723),i=r(5483),a=r(8871);class s extends o.Shape{_sceneFunc(e){const t=this._getPoints();e.beginPath(),e.moveTo(t[0].x,t[0].y);for(let r=1;r<t.length;r++)e.lineTo(t[r].x,t[r].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,t=this.attrs.radius||0,r=[];for(let n=0;n<e;n++)r.push({x:t*Math.sin(2*n*Math.PI/e),y:-1*t*Math.cos(2*n*Math.PI/e)});return r}getSelfRect(){const e=this._getPoints();let t=e[0].x,r=e[0].y,n=e[0].x,o=e[0].y;return e.forEach((e=>{t=Math.min(t,e.x),r=Math.max(r,e.x),n=Math.min(n,e.y),o=Math.max(o,e.y)})),{x:t,y:n,width:r-t,height:o-n}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}t.RegularPolygon=s,s.prototype.className="RegularPolygon",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radius"],(0,a._registerNode)(s),n.Factory.addGetterSetter(s,"radius",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(s,"sides",0,(0,i.getNumberValidator)())},9308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sprite=void 0;const n=r(4892),o=r(4723),i=r(9696),a=r(5483),s=r(8871);class l extends o.Shape{constructor(e){super(e),this._updated=!0,this.anim=new i.Animation((()=>{const e=this._updated;return this._updated=!1,e})),this.on("animationChange.konva",(function(){this.frameIndex(0)})),this.on("frameIndexChange.konva",(function(){this._updated=!0})),this.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}))}_sceneFunc(e){const t=this.animation(),r=this.frameIndex(),n=4*r,o=this.animations()[t],i=this.frameOffsets(),a=o[n+0],s=o[n+1],l=o[n+2],c=o[n+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,l,c),e.closePath(),e.fillStrokeShape(this)),u)if(i){const n=i[t],o=2*r;e.drawImage(u,a,s,l,c,n[o+0],n[o+1],l,c)}else e.drawImage(u,a,s,l,c,0,0,l,c)}_hitFunc(e){const t=this.animation(),r=this.frameIndex(),n=4*r,o=this.animations()[t],i=this.frameOffsets(),a=o[n+2],s=o[n+3];if(e.beginPath(),i){const n=i[t],o=2*r;e.rect(n[o+0],n[o+1],a,s)}else e.rect(0,0,a,s);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const e=this;this.interval=setInterval((function(){e._updateIndex()}),1e3/this.frameRate())}start(){if(this.isRunning())return;const e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const e=this.frameIndex(),t=this.animation();e<this.animations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}}t.Sprite=l,l.prototype.className="Sprite",(0,s._registerNode)(l),n.Factory.addGetterSetter(l,"animation"),n.Factory.addGetterSetter(l,"animations"),n.Factory.addGetterSetter(l,"frameOffsets"),n.Factory.addGetterSetter(l,"image"),n.Factory.addGetterSetter(l,"frameIndex",0,(0,a.getNumberValidator)()),n.Factory.addGetterSetter(l,"frameRate",17,(0,a.getNumberValidator)()),n.Factory.backCompat(l,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"})},9456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const n=r(4892),o=r(3443),i=r(5483),a=r(8871),s=r(1486);class l extends o.Line{_sceneFunc(e){super._sceneFunc(e);const t=2*Math.PI,r=this.points();let n=r;const o=0!==this.tension()&&r.length>4;o&&(n=this.getTensionPoints());const i=this.pointerLength(),a=r.length;let l,c;if(o){const e=[n[n.length-4],n[n.length-3],n[n.length-2],n[n.length-1],r[a-2],r[a-1]],t=s.Path.calcLength(n[n.length-4],n[n.length-3],"C",e),o=s.Path.getPointOnQuadraticBezier(Math.min(1,1-i/t),e[0],e[1],e[2],e[3],e[4],e[5]);l=r[a-2]-o.x,c=r[a-1]-o.y}else l=r[a-2]-r[a-4],c=r[a-1]-r[a-3];const u=(Math.atan2(c,l)+t)%t,d=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(r[a-2],r[a-1]),e.rotate(u),e.moveTo(0,0),e.lineTo(-i,d/2),e.lineTo(-i,-d/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(r[0],r[1]),o?(l=(n[0]+n[2])/2-r[0],c=(n[1]+n[3])/2-r[1]):(l=r[2]-r[0],c=r[3]-r[1]),e.rotate((Math.atan2(-c,-l)+t)%t),e.moveTo(0,0),e.lineTo(-i,d/2),e.lineTo(-i,-d/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){const t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x,y:e.y-t,width:e.width,height:e.height+2*t}}}t.Arrow=l,l.prototype.className="Arrow",(0,a._registerNode)(l),n.Factory.addGetterSetter(l,"pointerLength",10,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(l,"pointerWidth",10,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(l,"pointerAtBeginning",!1),n.Factory.addGetterSetter(l,"pointerAtEnding",!0)},9616:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,".CustomAnnotationMenu{position:absolute;top:0;left:0;z-index:999;display:none;width:max-content;background-color:var(--doorhanger-bg-color);box-shadow:0 1px 5px var(--doorhanger-border-color),0 0 0 1px var(--doorhanger-border-color);border:var(--toolbar-border-color);border-radius:6px;font:message-box;padding:4px}.CustomAnnotationMenu.show{display:block}.CustomAnnotationMenu.hide{display:none}.CustomAnnotationMenu .styleContainer .colorPalette{display:flex;flex-wrap:wrap;gap:8px 10px;margin:8px;max-width:160px}.CustomAnnotationMenu .styleContainer .colorPalette .cell{cursor:pointer;width:22px;height:22px;border-radius:100px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(0,0,0,0)}.CustomAnnotationMenu .styleContainer .colorPalette .cell span{width:12px;height:12px;display:inline-block;border-radius:100px}.CustomAnnotationMenu .styleContainer .colorPalette .cell:hover{border:1px solid var(--button-hover-color)}.CustomAnnotationMenu .styleContainer .colorPalette .cell.active{border:1px solid #bbb}.CustomAnnotationMenu .styleContainer .prototypeSetting{margin:8px}.CustomAnnotationMenu .styleContainer .prototypeSetting .ant-form-item{margin-bottom:8px}.CustomAnnotationMenu .styleContainer .prototypeSetting .ant-form-item-label{padding:0}.CustomAnnotationMenu .styleContainer .prototypeSetting .ant-form-item-label label{color:var(--main-color)}.CustomAnnotationMenu .styleContainer .prototypeSetting .ant-slider:hover .ant-slider-rail{background-color:var(--toolbar-border-color)}.CustomAnnotationMenu .styleContainer .prototypeSetting .ant-slider-rail{background-color:var(--toolbar-border-color)}.CustomAnnotationMenu .buttons{display:flex;gap:4px;margin:0;padding:0;list-style:none;user-select:none}.CustomAnnotationMenu .buttons li{display:flex;align-items:center;justify-content:center;width:40px;height:32px;padding:0;color:var(--main-color);border:1px solid rgba(0,0,0,0);border-radius:4px;cursor:pointer;transition:background-color .2s ease,opacity .2s ease}.CustomAnnotationMenu .buttons li .icon{font-size:16px;line-height:1}.CustomAnnotationMenu .buttons li:hover{background-color:var(--button-hover-color)}.CustomAnnotationMenu .buttons li:active{background-color:var(--button-hover-color-active, #ccc)}",""]);const s=a},9681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Animation=void 0;const n=r(8871),o=r(4060),i=n.glob.performance&&n.glob.performance.now?function(){return n.glob.performance.now()}:function(){return(new Date).getTime()};class a{constructor(e,t){this.id=a.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:i(),frameRate:0},this.func=e,this.setLayers(t)}setLayers(e){let t=[];return e&&(t=Array.isArray(e)?e:[e]),this.layers=t,this}getLayers(){return this.layers}addLayer(e){const t=this.layers,r=t.length;for(let n=0;n<r;n++)if(t[n]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const e=a.animations,t=e.length;for(let r=0;r<t;r++)if(e[r].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=i(),a._addAnimation(this),this}stop(){return a._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const t=e.id,r=this.animations,n=r.length;for(let e=0;e<n;e++)if(r[e].id===t){this.animations.splice(e,1);break}}static _runFrames(){const e={},t=this.animations;for(let r=0;r<t.length;r++){const n=t[r],o=n.layers,a=n.func;n._updateFrameObject(i());const s=o.length;let l;if(l=!a||!1!==a.call(n,n.frame),l)for(let t=0;t<s;t++){const r=o[t];void 0!==r._id&&(e[r._id]=r)}}for(const t in e)e.hasOwnProperty(t)&&e[t].batchDraw()}static _animationLoop(){const e=a;e.animations.length?(e._runFrames(),o.Util.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,o.Util.requestAnimFrame(this._animationLoop))}}t.Animation=a,a.animations=[],a.animIdCounter=0,a.animRunning=!1},9729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;const n=r(4892),o=r(4723),i=r(5483),a=r(8871);class s extends o.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}t.Circle=s,s.prototype._centroid=!0,s.prototype.className="Circle",s.prototype._attrsAffectingSize=["radius"],(0,a._registerNode)(s),n.Factory.addGetterSetter(s,"radius",0,(0,i.getNumberValidator)())},9805:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var o in r)n(r,o)&&(e[o]=r[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){var t,r,n,o,i,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,r,n,o){for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(r)},9869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitContext=t.SceneContext=t.Context=void 0;const n=r(4060),o=r(8871),i=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];class a{constructor(e){this.canvas=e,o.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,t){let r,o,i,a,s=this.traceArr,l=s.length,c="";for(r=0;r<l;r++)o=s[r],i=o.method,i?(a=o.args,c+=i,e?c+="()":n.Util._isArray(a[0])?c+="(["+a.join(",")+"])":(t&&(a=a.map((e=>"number"==typeof e?Math.floor(e):e))),c+="("+a.join(",")+")")):(c+=o.property,e||(c+="="+o.val)),c+=";";return c}clearTrace(){this.traceArr=[]}_trace(e){let t,r=this.traceArr;r.push(e),t=r.length,t>=100&&r.shift()}reset(){const e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){const t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)}_applyLineCap(e){const t=e.attrs.lineCap;t&&this.setAttr("lineCap",t)}_applyOpacity(e){const t=e.getAbsoluteOpacity();1!==t&&this.setAttr("globalAlpha",t)}_applyLineJoin(e){const t=e.attrs.lineJoin;t&&this.setAttr("lineJoin",t)}setAttr(e,t){this._context[e]=t}arc(e,t,r,n,o,i){this._context.arc(e,t,r,n,o,i)}arcTo(e,t,r,n,o){this._context.arcTo(e,t,r,n,o)}beginPath(){this._context.beginPath()}bezierCurveTo(e,t,r,n,o,i){this._context.bezierCurveTo(e,t,r,n,o,i)}clearRect(e,t,r,n){this._context.clearRect(e,t,r,n)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,t){const r=arguments;return 2===r.length?this._context.createImageData(e,t):1===r.length?this._context.createImageData(e):void 0}createLinearGradient(e,t,r,n){return this._context.createLinearGradient(e,t,r,n)}createPattern(e,t){return this._context.createPattern(e,t)}createRadialGradient(e,t,r,n,o,i){return this._context.createRadialGradient(e,t,r,n,o,i)}drawImage(e,t,r,n,o,i,a,s,l){const c=arguments,u=this._context;3===c.length?u.drawImage(e,t,r):5===c.length?u.drawImage(e,t,r,n,o):9===c.length&&u.drawImage(e,t,r,n,o,i,a,s,l)}ellipse(e,t,r,n,o,i,a,s){this._context.ellipse(e,t,r,n,o,i,a,s)}isPointInPath(e,t,r,n){return r?this._context.isPointInPath(r,e,t,n):this._context.isPointInPath(e,t,n)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,t,r,n){this._context.fillRect(e,t,r,n)}strokeRect(e,t,r,n){this._context.strokeRect(e,t,r,n)}fillText(e,t,r,n){n?this._context.fillText(e,t,r,n):this._context.fillText(e,t,r)}measureText(e){return this._context.measureText(e)}getImageData(e,t,r,n){return this._context.getImageData(e,t,r,n)}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}rect(e,t,r,n){this._context.rect(e,t,r,n)}roundRect(e,t,r,n,o){this._context.roundRect(e,t,r,n,o)}putImageData(e,t,r){this._context.putImageData(e,t,r)}quadraticCurveTo(e,t,r,n){this._context.quadraticCurveTo(e,t,r,n)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,t){this._context.scale(e,t)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,t,r,n,o,i){this._context.setTransform(e,t,r,n,o,i)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,t,r,n){this._context.strokeText(e,t,r,n)}transform(e,t,r,n,o,i){this._context.transform(e,t,r,n,o,i)}translate(e,t){this._context.translate(e,t)}_enableTrace(){let e,t,r=this,o=i.length,a=this.setAttr;const s=function(e){let o,i=r[e];r[e]=function(){return t=function(e){const t=[],r=e.length,o=n.Util;for(let n=0;n<r;n++){let r=e[n];o._isNumber(r)?r=Math.round(1e3*r)/1e3:o._isString(r)||(r+=""),t.push(r)}return t}(Array.prototype.slice.call(arguments,0)),o=i.apply(r,arguments),r._trace({method:e,args:t}),o}};for(e=0;e<o;e++)s(i[e]);r.setAttr=function(){a.apply(r,arguments);const e=arguments[0];let t=arguments[1];"shadowOffsetX"!==e&&"shadowOffsetY"!==e&&"shadowBlur"!==e||(t/=this.canvas.getPixelRatio()),r._trace({property:e,val:t})}}_applyGlobalCompositeOperation(e){const t=e.attrs.globalCompositeOperation;!t||"source-over"===t||this.setAttr("globalCompositeOperation",t)}}t.Context=a,["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"].forEach((function(e){Object.defineProperty(a.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})})),t.SceneContext=class extends a{constructor(e,{willReadFrequently:t=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:t})}_fillColor(e){const t=e.fill();this.setAttr("fillStyle",t),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){const t=e._getLinearGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fillRadialGradient(e){const t=e._getRadialGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fill(e){const t=e.fill(),r=e.getFillPriority();if(t&&"color"===r)return void this._fillColor(e);const n=e.getFillPatternImage();if(n&&"pattern"===r)return void this._fillPattern(e);const o=e.getFillLinearGradientColorStops();if(o&&"linear-gradient"===r)return void this._fillLinearGradient(e);const i=e.getFillRadialGradientColorStops();i&&"radial-gradient"===r?this._fillRadialGradient(e):t?this._fillColor(e):n?this._fillPattern(e):o?this._fillLinearGradient(e):i&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const t=e.getStrokeLinearGradientStartPoint(),r=e.getStrokeLinearGradientEndPoint(),n=e.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(t.x,t.y,r.x,r.y);if(n){for(let e=0;e<n.length;e+=2)o.addColorStop(n[e],n[e+1]);this.setAttr("strokeStyle",o)}}_stroke(e){const t=e.dash(),r=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!r){this.save();const e=this.getCanvas().getPixelRatio();this.setTransform(e,0,0,e,0,0)}this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),r||this.restore()}}_applyShadow(e){var t,r,n;const o=null!==(t=e.getShadowRGBA())&&void 0!==t?t:"black",i=null!==(r=e.getShadowBlur())&&void 0!==r?r:5,a=null!==(n=e.getShadowOffset())&&void 0!==n?n:{x:0,y:0},s=e.getAbsoluteScale(),l=this.canvas.getPixelRatio(),c=s.x*l,u=s.y*l;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",i*Math.min(Math.abs(c),Math.abs(u))),this.setAttr("shadowOffsetX",a.x*c),this.setAttr("shadowOffsetY",a.y*u)}},t.HitContext=class extends a{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const t=e.getStrokeScaleEnabled();if(!t){this.save();const e=this.getCanvas().getPixelRatio();this.setTransform(e,0,0,e,0,0)}this._applyLineCap(e);const r=e.hitStrokeWidth(),n="auto"===r?e.strokeWidth():r;this.setAttr("lineWidth",n),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),t||this.restore()}}}},9982:(e,t,r)=>{"use strict";e.exports=r(7463)}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}return o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),o.nc=void 0,(()=>{"use strict";var e=o(5072),t=o.n(e),r=o(7825),n=o.n(r),i=o(7659),a=o.n(i),s=o(5056),l=o.n(s),c=o(540),u=o.n(c),d=o(1113),f=o.n(d),h=o(8307),p={};p.styleTagTransform=f(),p.setAttributes=l(),p.insert=a().bind(null,"head"),p.domAPI=n(),p.insertStyleElement=u(),t()(h.A,p),h.A&&h.A.locals&&h.A.locals;var m=o(6540),g=o.t(m,2),v=o(5338);const b=e=>"string"==typeof e,y=()=>{let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r},w=e=>null==e?"":""+e,x=/###/g,S=e=>e&&e.indexOf("###")>-1?e.replace(x,"."):e,C=e=>!e||b(e),k=(e,t,r)=>{const n=b(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(C(e))return{};const t=S(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return C(e)?{}:{obj:e,k:S(n[o])}},E=(e,t,r)=>{const{obj:n,k:o}=k(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let i=t[t.length-1],a=t.slice(0,t.length-1),s=k(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=k(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},O=(e,t)=>{const{obj:r,k:n}=k(e,t);if(r)return r[n]},A=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?b(e[n])||e[n]instanceof String||b(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):A(e[n],t[n],r):e[n]=t[n]);return e},T=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const P=e=>b(e)?e.replace(/[&<>"'\/]/g,(e=>j[e])):e,M=[" ",",","?","!",";"],R=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),_=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let e=0;e<n.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<n.length;++a)if(a!==e&&(i+=r),i+=n[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}o=t}return o},I=e=>e&&e.replace("_","-"),N={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class F{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||N,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(b(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new F(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new F(this.logger,e)}}var D=new F;class B{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[n,o]=t;for(let t=0;t<o;t++)n.apply(n,[e,...r])}))}}class L extends B{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):b(r)&&o?a.push(...r.split(o)):a.push(r)));const s=O(this.data,a);return!s&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!s&&i&&b(r)?_(this.data&&this.data[e]&&this.data[e][t],r,o):s}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),E(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)(b(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=O(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?A(s,r,o):s={...s,...r},E(this.data,a,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var z={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))})),t}};const H={};class U extends B{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,r)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{t[e]&&(r[e]=t[e])}))})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=D.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=M.filter((e=>t.indexOf(e)<0&&r.indexOf(e)<0));if(0===n.length)return!0;const o=R.getRegExp(`(${n.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:b(o)?[o]:o};const i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return{key:e,namespaces:b(o)?[o]:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||i,h=u&&u.exactUsedKey||i,p=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!b(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(g&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||b(m)&&Array.isArray(d))if(g&&b(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,a=!1;const c=void 0!==t.count&&!b(t.count),f=U.hasDefaultValue(t),h=c?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(n=!0,d=g),this.isValidLookup(d)||(a=!0,d=i);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&g!==d&&this.options.updateMissing;if(a||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,i,y?g:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const n=(e,r,n)=>{const o=f&&n!==d?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,y,t),this.emit("missingKey",e,s,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const r=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&r.indexOf(`${this.options.pluralSeparator}zero`)<0&&r.push(`${this.options.pluralSeparator}zero`),r.forEach((r=>{n([e],i+r,t[`defaultValue${r}`]||g)}))})):n(e,i,g))}d=this.extendTranslation(d,e,t,u,r),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,n?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e=Array.isArray(d),r=e?[]:{},n=e?h:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=d[e])}d=r}}return n?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=b(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&!b(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):i.translate(...n,t)}),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=b(a)?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=z.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&!b(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(b(a.context)||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!H[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(H[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((r=>{if(this.isValidLookup(t))return;o=r;const i=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,r,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(r,a.count,a));const t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(l+e),a.ordinal&&0===e.indexOf(n)&&i.push(l+e.replace(n,this.options.pluralSeparator)),d&&i.push(l+t)),f){const r=`${l}${this.options.contextSeparator}${a.context}`;i.push(r),u&&(i.push(r+e),a.ordinal&&0===e.indexOf(n)&&i.push(r+e.replace(n,this.options.pluralSeparator)),d&&i.push(r+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,a))})))}))})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!b(e.replace);let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const V=e=>e.charAt(0).toUpperCase()+e.slice(1);class W{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=D.create("languageUtils")}getScriptPartFromCode(e){if(!(e=I(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=I(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(b(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map((e=>e.toLowerCase())):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=V(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=V(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=V(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find((e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return b(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):b(e)&&o(this.formatLanguageCode(e)),r.forEach((e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))})),n}}let G=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],q={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const K=["v1","v2","v3"],X=["v4"],Y={zero:0,one:1,two:2,few:3,many:4,other:5};class ${constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=D.create("pluralResolver"),this.options.compatibilityJSON&&!X.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return G.forEach((t=>{t.lngs.forEach((r=>{e[r]={numbers:t.nr,plurals:q[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=I("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:n})}catch(r){if(!e.match(/-|_/))return;const n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[o]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((e,t)=>Y[e]-Y[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):r.numbers.map((r=>this.getSuffix(e,r,t))):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!K.includes(this.options.compatibilityJSON)}}const Z=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,r)=>{const n=O(e,r);return void 0!==n?n:O(t,r)})(e,t,r);return!i&&o&&b(r)&&(i=_(e,r,n),void 0===i&&(i=_(t,r,n))),i},Q=e=>e.replace(/\$/g,"$$$$");class J{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=D.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:P,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?T(o):i||"{{",this.suffix=a?T(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?T(d):f||T("$t("),this.nestingSuffix=h?T(h):p||T(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Z(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Z(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Q(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Q(this.escape(e)):Q(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const r=o[1].trim();if(i=l(r),void 0===i)if("function"==typeof c){const t=c(e,o,n);i=b(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else b(i)||this.useRawValueToEscape||(i=w(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const e=r[1].split(this.formatSeparator).map((e=>e.trim()));r[1]=e.shift(),s=e,l=!0}if(n=t(a.call(this,r[1].trim(),o),o),n&&r[0]===e&&!b(n))return n;b(n)||(n=w(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=s.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()})),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}const ee=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(I(n),o),t[a]=s),s(r)}};class te{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=D.create("formatter"),this.options=e,this.formats={number:ee(((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)})),currency:ee(((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)})),datetime:ee(((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)})),relativetime:ee(((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")})),list:ee(((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ee(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((e=>e.indexOf(")")>-1))){const e=o.findIndex((e=>e.indexOf(")")>-1));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce(((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e);return i}}class re extends B{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=D.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){const o={},i={},a={},s={};return e.forEach((e=>{let n=!0;t.forEach((t=>{const a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))})),n||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){const n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),!t&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach((r=>{((e,t,r)=>{const{obj:n,k:o}=k(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((e=>{a[e]||(a[e]={});const t=r.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,r,n+1,2*o,i)}),o):i(a,s)},s=this.backend[r].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const r=s(e,t);r&&"function"==typeof r.then?r.then((e=>a(null,e))).catch(a):a(null,r)}catch(e){a(e)}}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(t)&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,((r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)}))}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,r,n,s):l(e,t,r,n),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}const ne=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),b(e[1])&&(t.defaultValue=e[1]),b(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach((e=>{t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),oe=e=>(b(e.ns)&&(e.ns=[e.ns]),b(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),b(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ie=()=>{};class ae extends B{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=oe(e),this.services={},this.logger=D,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(b(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=ne();this.options={...n,...this.options,...oe(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?D.init(o(this.modules.logger),this.options):D.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=te);const r=new W(this.options);this.store=new L(this.options.resources,this.options);const i=this.services;i.logger=D,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new $(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new J(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new re(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new U(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,r||(r=ie),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=y(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;const r=b(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};r?n(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>n(e))),this.options.preload&&this.options.preload.forEach((e=>n(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,r){const n=y();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=ie),this.services.backendConnector.reload(e,t,(e=>{n.resolve(),r(e)})),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&z.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const n=y();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((function(){return r.t(...arguments)})),t&&t(e,(function(){return r.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=b(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,(e=>{i(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);const c=n.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,n.t(u,i)};return b(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||n&&!i(o,e)))}loadNamespaces(e,t){const r=y();return this.options.ns?(b(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=y();b(e)&&(e=[e]);const n=this.options.preload||[],o=e.filter((e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return o.length?(this.options.preload=n.concat(o),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new W(ne());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new ae(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new ae(n);return void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new L(this.store.data,n),o.services.resourceStore=o.store),o.translator=new U(o.services,n),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)})),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const se=ae.createInstance();se.createInstance=ae.createInstance,se.createInstance,se.dir,se.init,se.loadResources,se.reloadResources,se.use,se.changeLanguage,se.getFixedT;const le=se.t;se.exists,se.setDefaultNamespace,se.hasLoadedNamespace,se.loadNamespaces,se.loadLanguages,o(4915),Object.create(null);const ce={},ue=(e,t,r,n)=>{pe(r)&&ce[r]||(pe(r)&&(ce[r]=new Date),((e,t,r,n)=>{const o=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);pe(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,r,n))},de=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout((()=>{e.off("initialized",r)}),0),t()};e.on("initialized",r)}},fe=(e,t,r)=>{e.loadNamespaces(t,de(e,r))},he=(e,t,r,n)=>{if(pe(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return fe(e,r,n);r.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,de(e,n))},pe=e=>"string"==typeof e,me=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ge={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ve=e=>ge[e];let be,ye={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(me,ve)};const we={type:"3rdParty",init(e){((e={})=>{ye={...ye,...e}})(e.options.react),(e=>{be=e})(e)}},xe=(0,m.createContext)();class Se{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Ce=(e,t,r,n)=>e.getFixedT(t,r,n),ke=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:o}=(0,m.useContext)(xe)||{},i=r||n||be;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Se),!i){ue(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return pe(t)?t:"object"==typeof(r=t)&&null!==r&&pe(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var r},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react?.wait&&ue(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...ye,...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=e||o||i.options?.defaultNS;c=pe(c)?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces?.(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every((e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(ue(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,a))),d=((e,t,r,n)=>(0,m.useCallback)(Ce(e,t,r,n),[e,t,r,n]))(i,t.lng||null,"fallback"===a.nsMode?c:c[0],l),f=()=>d,h=()=>Ce(i,t.lng||null,"fallback"===a.nsMode?c:c[0],l),[p,g]=(0,m.useState)(f);let v=c.join();t.lng&&(v=`${t.lng}${v}`);const b=((e,t)=>{const r=(0,m.useRef)();return(0,m.useEffect)((()=>{r.current=e}),[e,t]),r.current})(v),y=(0,m.useRef)(!0);(0,m.useEffect)((()=>{const{bindI18n:e,bindI18nStore:r}=a;y.current=!0,u||s||(t.lng?he(i,t.lng,c,(()=>{y.current&&g(h)})):fe(i,c,(()=>{y.current&&g(h)}))),u&&b&&b!==v&&y.current&&g(h);const n=()=>{y.current&&g(h)};return e&&i?.on(e,n),r&&i?.store.on(r,n),()=>{y.current=!1,i&&e?.split(" ").forEach((e=>i.off(e,n))),r&&i&&r.split(" ").forEach((e=>i.store.off(e,n)))}}),[i,v]),(0,m.useEffect)((()=>{y.current&&u&&g(f)}),[i,l,u]);const w=[p,i,u];if(w.t=p,w.i18n=i,w.ready=u,u)return w;if(!u&&!s)return w;throw new Promise((e=>{t.lng?he(i,t.lng,c,(()=>e())):fe(i,c,(()=>e()))}))},Ee=JSON.parse('{"anno":"批注","annotations":{"select":"选择","highlight":"高亮","strikeout":"删除线","underline":"下划线","rectangle":"矩形","circle":"圆形","freehand":"自由绘制","freeHighlight":"自由高亮","freeText":"文字","signature":"签名","stamp":"盖章","note":"注解","arrow":"箭头","cloud":"云线"},"toolbar":{"buttons":{"createSignature":"创建签名","uploadImages":"上传图片","createStamp":"创建印章"},"message":{"selectPosition":"请选择放置位置","signatureArea":"签名处","uploadArea":"上传区域","uploadHint":"点击上传或请将图片拖拽到此处,支持格式{{format}}, 最大 {{maxSize}}"}},"editor":{"text":{"startTyping":"开始输入..."},"stamp":{"stampText":"印章内容","fontStyle":"字体样式","fontFamily":"字体","textColor":"文字颜色","backgroundColor":"背景颜色","borderColor":"边框颜色","borderStyle":"边框样式","timestampText":"时间戳","customTimestamp":"自定义","username":"用户名","date":"日期","time":"时间","dateFormat":"日期格式","solid":"实线","dashed":"虚线","defaultText":"草稿"}},"normal":{"ok":"确定","cancel":"取消","clear":"清空","fileSizeLimit":"文件大小超出 {{value}} 限制","deleteConfirm":"是否删除","yes":"是","no":"否","example":"例如:","color":"颜色","export":"导出","save":"保存","reply":"回复","edit":"编辑","delete":"删除","confirm":"确认","unknownUser":"不具名用户","processing":"处理中,请稍候...","filter":"过滤","author":"作者","type":"类型","selectAll":"全选","more":"更多","draw":"绘制","enter":"输入","upload":"上传","default":"默认","custom":"自定义","strokeWidth":"笔触宽度","opacity":"透明度"},"comment":{"total":" {{value}} 条批注","page":"第{{value}}页","status":{"accepted":"接受","rejected":"拒绝","cancelled":"取消","completed":"完成","none":"无","closed":"关闭"},"statusText":"将状态设置为 “{{value}}”"},"pdf":{"generationSuccess":"文件已生成!"},"dateFormat":{"full":"{{year}}-{{month}}-{{day}} {{hour}}:{{minute}}","dayMonth":"{{month}}-{{day}}","dayMonthYear":"{{year}}-{{month}}-{{day}}"},"save":{"start":"正在保存...","success":"保存成功!","fail":"保存失败,错误代码: {{value}}","noPostUrl":"未找到参数: {{value}}"},"load":{"fail":"外部批注加载失败,{{value}}"},"export":{"fields":{"id":"ID","page":"页码","author":"用户","date":"日期","content":"内容","status":"状态","annotationType":"批注类型","recordType":"类型"},"recordType":{"annotation":"批注","reply":"回复"}}}');var Oe={en:{translation:JSON.parse('{"anno":"Comment","annotations":{"select":"Select","highlight":"Highlight","strikeout":"Strikeout","underline":"Underline","rectangle":"Rectangle","circle":"Circle","freehand":"Free Hand","freeHighlight":"Free Highlight","freeText":"Text","signature":"Signature","stamp":"Stamp","note":"Note","arrow":"Arrow","cloud":"Cloud"},"toolbar":{"buttons":{"createSignature":"Create signature","uploadImage":"Upload Image","createStamp":"Create Stamp"},"message":{"selectPosition":"Please select a position","signatureArea":"Signature","uploadArea":"Upload Area","uploadHint":"Click to upload or drag and drop to here {{format}}, maxSize {{maxSize}}"}},"editor":{"text":{"startTyping":"Start typing…"},"stamp":{"stampText":"Stamp Text","fontStyle":"Font Style","fontFamily":"Font Family","textColor":"Text Color","backgroundColor":"Background Color","borderColor":"Border Color","borderStyle":"Border Style","timestampText":"Timestamp Text","customTimestamp":"Custom Text","username":"Username","date":"Date","time":"Time","dateFormat":"Date Format","solid":"Solid","dashed":"Dashed","defaultText":"Draft"}},"normal":{"ok":"OK","cancel":"Cancel","clear":"Clear","fileSizeLimit":"The file size exceeds the {{value}} limit","deleteConfirm":"Are you sure you want to delete?","yes":"Yes","no":"No","example":"e.g. ","color":"Color","export":"Export","save":"Save","reply":"Reply","edit":"Edit","delete":"Delete","confirm":"Confirm","unknownUser":"Unknown User","processing":"Processing, please wait...","filter":"Filter","author":"Author","type":"Type","selectAll":"Select All","more":"More","draw":"Draw","enter":"Enter","upload":"Upload","default":"Default","custom":"Custom","strokeWidth":"Stroke","opacity":"Opacity"},"comment":{"total":"Comment {{value}}","page":"Page {{value}}","status":{"accepted":"Accepted","rejected":"Rejected","cancelled":"Cancelled","completed":"Completed","none":"None","closed":"Closed"},"statusText":"Set Status: {{value}}"},"pdf":{"generationSuccess":"File has been successfully generated and downloaded"},"dateFormat":{"full":"{{month}}/{{day}}/{{year}} {{hour}}:{{minute}}","dayMonth":"{{month}}/{{day}}","dayMonthYear":"{{month}}/{{day}}/{{year}}"},"save":{"start":"Saving...","success":"Saved successfully!","fail":"Failed to save. {{value}}","noPostUrl":"{{value}} not found."},"load":{"fail":"Annotation Data Load Fail: {{value}}"},"export":{"fields":{"id":"ID","page":"Page","author":"Author","date":"Date","content":"Content","status":"Status","annotationType":"Annotation Type","recordType":"Type"},"recordType":{"annotation":"Annotation","reply":"Reply"}}}')},zh:{translation:Ee},de:{translation:JSON.parse('{"anno":"Kommentare","annotations":{"select":"Auswählen","highlight":"Hervorheben","strikeout":"Durchstreichen","underline":"Unterstreichen","rectangle":"Rechteck","circle":"Kreis","freehand":"Freihand","freeHighlight":"Hervorheben","freeText":"Text","signature":"Unterschrift","stamp":"Stempel","note":"Notiz","arrow":"Pfeil","cloud":"Wolke"},"toolbar":{"buttons":{"createSignature":"Unterschrift erstellen","uploadImage":"Bild hochladen","createStamp":"Stempel erstellen"},"message":{"selectPosition":"Bitte wählen Sie eine Position","signatureArea":"Unterschriftbereich","uploadArea":"Hochladebereich","uploadHint":"Klicken Sie zum Hochladen oder ziehen Sie die Bilddatei in diese Zone {{format}} {{maxSize}}"}},"editor":{"text":{"startTyping":"Tippen beginnen…"},"stamp":{"stampText":"Stempelinhalt","fontStyle":"Schriftart","fontFamily":"Schriftfamilie","textColor":"Textfarbe","backgroundColor":"Hintergrundfarbe","borderColor":"Randfarbe","borderStyle":"Randstil","timestampText":"Zeitstempel","customTimestamp":"Benutzerdefiniert","username":"Benutzername","date":"Datum","time":"Zeit","dateFormat":"Datumsformat","solid":"Solide","dashed":"Gestrichelt","defaultText":"Entwurf"}},"normal":{"ok":"OK","cancel":"Abbrechen","clear":"Löschen","fileSizeLimit":"Die Dateigröße überschreitet die {{value}}-Grenze","deleteConfirm":"Sind Sie sicher, dass Sie Folgendes löschen möchten?","yes":"Ja","no":"Nein","example":"z.B. ","color":"Farbe","export":"Export","save":"Speichern","reply":"Antworten","edit":"Bearbeiten","delete":"Löschen","confirm":"Bestätigen","unknownUser":"Unbekannter Benutzer","processing":"Bearbeitung, bitte warten...","filter":"Filter","author":"Autor","type":"Typ","selectAll":"Alle auswählen","more":"Mehr","draw":"Zeichnen","enter":"Eingeben","upload":"Hochladen","default":"Standard","custom":"Benutzerdefiniert","strokeWidth":"Strichbreite","opacity":"Deckkraft"},"comment":{"total":"Kommentare: {{value}}","page":"Seite {{value}}","status":{"accepted":"Akzeptiert","rejected":"Abgelehnt","cancelled":"Abgebrochen","completed":"Abgeschlossen","none":"Keine","closed":"Geschlossen"},"statusText":"Status festlegen: {{value}}"},"pdf":{"generationSuccess":"Datei wurde erfolgreich generiert und heruntergeladen"},"dateFormat":{"full":"{{day}}.{{month}}.{{year}} {{hour}}:{{minute}}","dayMonth":"{{day}}.{{month}}","dayMonthYear":"{{day}}.{{month}}.{{year}}"},"save":{"start":"Speichern...","success":"Erfolgreich gespeichert!","fail":"Speichern fehlgeschlagen. {{value}}","noPostUrl":"{{value}} nicht gefunden."},"export":{"fields":{"id":"ID","page":"Seite","author":"Autor","date":"Datum","content":"Inhalt","status":"Status","annotationType":"Anmerkungstyp","recordType":"Typ"},"recordType":{"annotation":"Anmerkung","reply":"Antwort"}}}')}},Ae={"zh-cn":"zh","en-us":"en","de-de":"de"};function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Te.apply(null,arguments)}const je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};function Pe(e){if(Array.isArray(e))return e}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Re(e,t){if(e){if("string"==typeof e)return Me(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Me(e,t):void 0}}function _e(){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 Ie(e,t){return Pe(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Re(e,t)||_e()}function Ne(e){return Ne="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},Ne(e)}function Fe(e){var t=function(e){if("object"!=Ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ne(t)?t:t+""}function De(e,t,r){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Le=o(6942),ze=o.n(Le);const He=Math.round;function Ue(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Ve=(e,t,r)=>0===r?e:e/100;function We(e,t){const r=t||255;return e>r?r:e<0?0:e}class Ge{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(De(this,"isValid",!0),De(this,"r",0),De(this,"g",0),De(this,"b",0),De(this,"a",1),De(this,"_h",void 0),De(this,"_s",void 0),De(this,"_l",void 0),De(this,"_v",void 0),De(this,"_max",void 0),De(this,"_min",void 0),De(this,"_brightness",void 0),e)if("string"==typeof e){const r=e.trim();function n(e){return r.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):n("rgb")?this.fromRgbString(r):n("hsl")?this.fromHslString(r):(n("hsv")||n("hsb"))&&this.fromHsvString(r)}else if(e instanceof Ge)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=We(e.r),this.g=We(e.g),this.b=We(e.b),this.a="number"==typeof e.a?We(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:He(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){const r=this._c(e),n=t/100,o=e=>(r[e]-this[e])*n+this[e],i={r:He(o("r")),g:He(o("g")),b:He(o("b")),a:He(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>He((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=He(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=He(100*this.getSaturation()),r=He(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const n=this.clone();return n[e]=We(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){const e=He(255*r);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*r-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,i=c):s>=1&&s<2?(o=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(o=c,a=l):s>=5&&s<6&&(o=l,a=c);const u=r-l/2;this.r=He(255*(o+u)),this.g=He(255*(i+u)),this.b=He(255*(a+u))}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;const o=He(255*r);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=He(r*(1-t)*255),c=He(r*(1-t*s)*255),u=He(r*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=Ue(e,Ve);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Ue(e,Ve);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Ue(e,((e,t)=>t.includes("%")?He(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var qe=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ke(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function Xe(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100);var n}function Ye(e,t,r){var n;return n=r?e.v+.05*t:e.v-.15*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}function $e(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=new Ge(e),o=n.toHsv(),i=5;i>0;i-=1){var a=new Ge({h:Ke(o,i,!0),s:Xe(o,i,!0),v:Ye(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=4;s+=1){var l=new Ge({h:Ke(o,s),s:Xe(o,s),v:Ye(o,s)});r.push(l)}return"dark"===t.theme?qe.map((function(e){var n=e.index,o=e.amount;return new Ge(t.backgroundColor||"#141414").mix(r[n],o).toHexString()})):r.map((function(e){return e.toHexString()}))}var Ze={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"},Qe=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Qe.primary=Qe[5];var Je=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Je.primary=Je[5];var et=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];et.primary=et[5];var tt=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];tt.primary=tt[5];var rt=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rt.primary=rt[5];var nt=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];nt.primary=nt[5];var ot=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ot.primary=ot[5];var it=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];it.primary=it[5];var at=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];at.primary=at[5];var st=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];st.primary=st[5];var lt=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];lt.primary=lt[5];var ct=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ct.primary=ct[5];var ut=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ut.primary=ut[5];var dt={red:Qe,volcano:Je,orange:et,gold:tt,yellow:rt,lime:nt,green:ot,cyan:it,blue:at,geekblue:st,purple:lt,magenta:ct,grey:ut},ft=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];ft.primary=ft[5];var ht=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ht.primary=ht[5];var pt=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];pt.primary=pt[5];var mt=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];mt.primary=mt[5];var gt=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];gt.primary=gt[5];var vt=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];vt.primary=vt[5];var bt=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];bt.primary=bt[5];var yt=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];yt.primary=yt[5];var wt=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];wt.primary=wt[5];var xt=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];xt.primary=xt[5];var St=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];St.primary=St[5];var Ct=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ct.primary=Ct[5];var kt=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];kt.primary=kt[5];const Et=(0,m.createContext)({});function Ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function jt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Pt="data-rc-order",Mt="data-rc-priority",Rt=new Map;function _t(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function It(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Nt(e){return Array.from((Rt.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Tt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Pt,a),s&&i&&l.setAttribute(Mt,"".concat(i)),null!=r&&r.nonce&&(l.nonce=null==r?void 0:r.nonce),l.innerHTML=e;var c=It(t),u=c.firstChild;if(n){if(s){var d=(t.styles||Nt(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Pt)))return!1;var t=Number(e.getAttribute(Mt)||0);return i>=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 Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=It(t);return(t.styles||Nt(r)).find((function(r){return r.getAttribute(_t(t))===e}))}function Bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Dt(e,t);r&&It(t).removeChild(r)}function Lt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=It(r),o=Nt(n),i=At(At({},r),{},{styles:o});!function(e,t){var r=Rt.get(e);if(!r||!jt(document,r)){var n=Ft("",t),o=n.parentNode;Rt.set(e,o),e.removeChild(n)}}(n,i);var a,s,l,c=Dt(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce)&&(c.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=Ft(e,i);return u.setAttribute(_t(i),t),u}function zt(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ht(e){return function(e){return zt(e)instanceof ShadowRoot}(e)?zt(e):null}var Ut={},Vt=[];function Wt(e,t){}function Gt(e,t){}function qt(e,t,r){t||Ut[r]||(e(!1,r),Ut[r]=!0)}function Kt(e,t){qt(Wt,e,t)}Kt.preMessage=function(e){Vt.push(e)},Kt.resetWarned=function(){Ut={}},Kt.noteOnce=function(e,t){qt(Gt,e,t)};const Xt=Kt;function Yt(e,t){Xt(e,"[@ant-design/icons] ".concat(t))}function $t(e){return"object"===Ne(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Ne(e.icon)||"function"==typeof e.icon)}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(r)]=n),t}),{})}function Qt(e,t,r){return r?m.createElement(e.tag,At(At({key:t},Zt(e.attrs)),r),(e.children||[]).map((function(r,n){return Qt(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))):m.createElement(e.tag,At({key:t},Zt(e.attrs)),(e.children||[]).map((function(r,n){return Qt(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})))}function Jt(e){return $e(e)[0]}function er(e){return e?Array.isArray(e)?e:[e]:[]}var tr={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},rr=function(e){var t=(0,m.useContext)(Et),r=t.csp,n=t.prefixCls,o=t.layer,i="\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";n&&(i=i.replace(/anticon/g,n)),o&&(i="@layer ".concat(o," {\n").concat(i,"\n}")),(0,m.useEffect)((function(){var t=Ht(e.current);Lt(i,"@ant-design-icons",{prepend:!o,csp:r,attachTo:t})}),[])},nr=["icon","className","onClick","style","primaryColor","secondaryColor"],or={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ir=function(e){var t=e.icon,r=e.className,n=e.onClick,o=e.style,i=e.primaryColor,a=e.secondaryColor,s=Be(e,nr),l=m.useRef(),c=or;if(i&&(c={primaryColor:i,secondaryColor:a||Jt(i)}),rr(l),Yt($t(t),"icon should be icon definiton, but got ".concat(t)),!$t(t))return null;var u=t;return u&&"function"==typeof u.icon&&(u=At(At({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Qt(u.icon,"svg-".concat(u.name),At(At({className:r,onClick:n,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};ir.displayName="IconReact",ir.getTwoToneColors=function(){return At({},or)},ir.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;or.primaryColor=t,or.secondaryColor=r||Jt(t),or.calculated=!!r};const ar=ir;function sr(e){var t=Ie(er(e),2),r=t[0],n=t[1];return ar.setTwoToneColors({primaryColor:r,secondaryColor:n})}var lr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];sr(at.primary);var cr=m.forwardRef((function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Be(e,lr),u=m.useContext(Et),d=u.prefixCls,f=void 0===d?"anticon":d,h=u.rootClassName,p=ze()(h,f,De(De({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||"loading"===n.name),r),g=a;void 0===g&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Ie(er(l),2),y=b[0],w=b[1];return m.createElement("span",Te({role:"img","aria-label":n.name},c,{ref:t,tabIndex:g,onClick:s,className:p}),m.createElement(ar,{icon:n,primaryColor:y,secondaryColor:w,style:v}))}));cr.displayName="AntdIcon",cr.getTwoToneColor=function(){var e=ar.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},cr.setTwoToneColor=sr;const ur=cr;var dr=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:je}))};const fr=m.forwardRef(dr);var hr=o(4619),pr={};pr.styleTagTransform=f(),pr.setAttributes=l(),pr.insert=a().bind(null,"head"),pr.domAPI=n(),pr.insertStyleElement=u(),t()(hr.A,pr),hr.A&&hr.A.locals&&hr.A.locals;const mr=Math.min,gr=Math.max,vr=Math.round,br=(Math.floor,e=>({x:e,y:e})),yr={left:"right",right:"left",bottom:"top",top:"bottom"},wr={start:"end",end:"start"};function xr(e,t){return"function"==typeof e?e(t):e}function Sr(e){return e.split("-")[0]}function Cr(e){return e.split("-")[1]}function kr(e){return"y"===e?"height":"width"}function Er(e){return["top","bottom"].includes(Sr(e))?"y":"x"}function Or(e){return"x"===Er(e)?"y":"x"}function Ar(e){return e.replace(/start|end/g,(e=>wr[e]))}function Tr(e){return e.replace(/left|right|bottom|top/g,(e=>yr[e]))}function jr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Pr(e,t,r){let{reference:n,floating:o}=e;const i=Er(t),a=Or(t),s=kr(a),l=Sr(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Cr(t)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1)}return h}function Mr(){return"undefined"!=typeof window}function Rr(e){return Nr(e)?(e.nodeName||"").toLowerCase():"#document"}function _r(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ir(e){var t;return null==(t=(Nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nr(e){return!!Mr()&&(e instanceof Node||e instanceof _r(e).Node)}function Fr(e){return!!Mr()&&(e instanceof Element||e instanceof _r(e).Element)}function Dr(e){return!!Mr()&&(e instanceof HTMLElement||e instanceof _r(e).HTMLElement)}function Br(e){return!(!Mr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof _r(e).ShadowRoot)}function Lr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function zr(e){return["table","td","th"].includes(Rr(e))}function Hr(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ur(e){const t=Vr(),r=Fr(e)?Gr(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Vr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wr(e){return["html","body","#document"].includes(Rr(e))}function Gr(e){return _r(e).getComputedStyle(e)}function qr(e){return Fr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kr(e){if("html"===Rr(e))return e;const t=e.assignedSlot||e.parentNode||Br(e)&&e.host||Ir(e);return Br(t)?t.host:t}function Xr(e){const t=Kr(e);return Wr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dr(t)&&Lr(t)?t:Xr(t)}function Yr(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Xr(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=_r(o);if(i){const e=$r(a);return t.concat(a,a.visualViewport||[],Lr(o)?o:[],e&&r?Yr(e):[])}return t.concat(o,Yr(o,[],r))}function $r(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zr(e){const t=Gr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Dr(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=vr(r)!==i||vr(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Qr(e){return Fr(e)?e:e.contextElement}function Jr(e){const t=Qr(e);if(!Dr(t))return br(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Zr(t);let a=(i?vr(r.width):r.width)/n,s=(i?vr(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const en=br(0);function tn(e){const t=_r(e);return Vr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function rn(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Qr(e);let a=br(1);t&&(n?Fr(n)&&(a=Jr(n)):a=Jr(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==_r(e))&&t}(i,r,n)?tn(i):br(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=_r(i),t=n&&Fr(n)?_r(n):n;let r=e,o=$r(r);for(;o&&n&&t!==r;){const e=Jr(o),t=o.getBoundingClientRect(),n=Gr(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=_r(o),o=$r(r)}}return jr({width:u,height:d,x:l,y:c})}function nn(e,t){const r=qr(e).scrollLeft;return t?t.left+r:rn(Ir(e)).left+r}function on(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:nn(e,n)),y:n.top+t.scrollTop}}function an(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=_r(e),n=Ir(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Vr();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Ir(e),r=qr(e),n=e.ownerDocument.body,o=gr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=gr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+nn(e);const s=-r.scrollTop;return"rtl"===Gr(n).direction&&(a+=gr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ir(e));else if(Fr(t))n=function(e,t){const r=rn(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Dr(e)?Jr(e):br(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=tn(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return jr(n)}function sn(e,t){const r=Kr(e);return!(r===t||!Fr(r)||Wr(r))&&("fixed"===Gr(r).position||sn(r,t))}function ln(e,t,r){const n=Dr(t),o=Ir(t),i="fixed"===r,a=rn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=br(0);function c(){l.x=nn(o)}if(n||!n&&!i)if(("body"!==Rr(t)||Lr(o))&&(s=qr(t)),n){const e=rn(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?br(0):on(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function cn(e){return"static"===Gr(e).position}function un(e,t){if(!Dr(e)||"fixed"===Gr(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Ir(e)===r&&(r=r.ownerDocument.body),r}function dn(e,t){const r=_r(e);if(Hr(e))return r;if(!Dr(e)){let t=Kr(e);for(;t&&!Wr(t);){if(Fr(t)&&!cn(t))return t;t=Kr(t)}return r}let n=un(e,t);for(;n&&zr(n)&&cn(n);)n=un(n,t);return n&&Wr(n)&&cn(n)&&!Ur(n)?r:n||function(e){let t=Kr(e);for(;Dr(t)&&!Wr(t);){if(Ur(t))return t;if(Hr(t))return null;t=Kr(t)}return null}(e)||r}const fn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Ir(n),s=!!t&&Hr(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=br(1);const u=br(0),d=Dr(n);if((d||!d&&!i)&&(("body"!==Rr(n)||Lr(a))&&(l=qr(n)),Dr(n))){const e=rn(n);c=Jr(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||i?br(0):on(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ir,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Hr(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Yr(e,[],!1).filter((e=>Fr(e)&&"body"!==Rr(e))),o=null;const i="fixed"===Gr(e).position;let a=i?Kr(e):e;for(;Fr(a)&&!Wr(a);){const t=Gr(a),r=Ur(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Lr(a)&&!r&&sn(e,a))?n=n.filter((e=>e!==a)):o=t,a=Kr(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{const n=an(t,r,o);return e.top=gr(n.top,e.top),e.right=mr(n.right,e.right),e.bottom=mr(n.bottom,e.bottom),e.left=gr(n.left,e.left),e}),an(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:dn,getElementRects:async function(e){const t=this.getOffsetParent||dn,r=this.getDimensions,n=await r(e.floating);return{reference:ln(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Zr(e);return{width:t,height:r}},getScale:Jr,isElement:Fr,isRTL:function(e){return"rtl"===Gr(e).direction}},hn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,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}=xr(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const v=Sr(o),b=Er(s),y=Sr(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!m?[Tr(s)]:function(e){const t=Tr(e);return[Ar(e),t,Ar(t)]}(s)),S="none"!==p;!f&&S&&x.push(...function(e,t,r,n){const o=Cr(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(Sr(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ar)))),i}(s,m,p,w));const C=[s,...x],k=await async function(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=xr(t,e),p=function(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}}(h),m=s[f?"floating"===d?"reference":"floating":d],g=jr(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=jr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+p.top)/y.y,bottom:(w.bottom-g.bottom+p.bottom)/y.y,left:(g.left-w.left+p.left)/y.x,right:(w.right-g.right+p.right)/y.x}}(t,g),E=[];let O=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&E.push(k[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=Cr(e),o=Or(e),i=kr(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Tr(a)),[a,Tr(a)]}(o,a,w);E.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:E}],!E.every((e=>e<=0))){var A,T;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=C[e];if(t){var j;const r="alignment"===d&&b!==Er(t),n=(null==(j=O[0])?void 0:j.overflows[0])>0;if(!r||n)return{data:{index:e,overflows:O},reset:{placement:t}}}let r=null==(T=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!r)switch(h){case"bestFit":{var P;const e=null==(P=O.filter((e=>{if(S){const t=Er(e.placement);return t===b||"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:P[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},pn=(e,t,r)=>{const n=new Map,o={platform:fn,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Pr(c,n,l),f=n,h={},p=0;for(let r=0;r<s.length;r++){const{name:i,fn:m}=s[r],{x:g,y:v,data:b,reset:y}=await m({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[i]:{...h[i],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Pr(c,f,l))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var mn=o(6351);function gn(e,t,r){var n=m.useRef({});return"value"in n.current&&!r(n.current.condition,t)||(n.current.value=e(),n.current.condition=t),n.current.value}var vn=Symbol.for("react.element"),bn=Symbol.for("react.transitional.element"),yn=Symbol.for("react.fragment");function wn(e){return e&&"object"===Ne(e)&&(e.$$typeof===vn||e.$$typeof===bn)&&e.type===yn}var xn=Number(m.version.split(".")[0]),Sn=function(e,t){"function"==typeof e?e(t):"object"===Ne(e)&&e&&"current"in e&&(e.current=t)},Cn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);return n.length<=1?n[0]:function(e){t.forEach((function(t){Sn(t,e)}))}},kn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return gn((function(){return Cn.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,r){return e!==t[r]}))}))},En=function(e){var t,r;if(!e)return!1;if(On(e)&&xn>=19)return!0;var n=(0,mn.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===mn.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===mn.ForwardRef)};function On(e){return(0,m.isValidElement)(e)&&!wn(e)}var An=function(e){if(e&&On(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Tn=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],jn=m.forwardRef((function(e,t){var r=e.className,n=e.component,o=e.viewBox,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=Be(e,Tn),d=m.useRef(),f=kn(d,t);Yt(Boolean(n||c),"Should have `component` prop or `children`."),rr(d);var h=m.useContext(Et),p=h.prefixCls,g=void 0===p?"anticon":p,v=h.rootClassName,b=ze()(v,g,De({},"".concat(g,"-spin"),!!i&&!!n),r),y=ze()(De({},"".concat(g,"-spin"),!!i)),w=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=At(At({},tr),{},{className:y,style:w,viewBox:o});o||delete x.viewBox;var S=s;return void 0===S&&l&&(S=-1),m.createElement("span",Te({role:"img"},u,{ref:f,tabIndex:S,onClick:l,className:b}),n?m.createElement(n,x,c):c?(Yt(Boolean(o)||1===m.Children.count(c)&&m.isValidElement(c)&&"use"===m.Children.only(c).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",Te({},x,{viewBox:o}),c)):null)}));jn.displayName="AntdIcon";const Pn=jn;var Mn=o(4848);function Rn(e){return Rn="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},Rn(e)}function _n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function In(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(r),!0).forEach((function(t){Nn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nn(e,t,r){return(t=function(e){var t=function(e){if("object"!=Rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 320 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M0 55.2V426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320H297.9c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z"})})},Dn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 576 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M315 315l158.4-215L444.1 70.6 229 229 315 315zm-187 5l0 0V248.3c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0c11.4 0 22.4 4.5 30.5 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5c0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5H224l-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l63-63 70.6 70.6-31 31c-4.5 4.5-10.6 7-17 7H24c-13.3 0-24-10.7-24-24v-4.7c0-6.4 2.5-12.5 7-17z"})})},Bn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M161.3 144c3.2-17.2 14-30.1 33.7-38.6c21.1-9 51.8-12.3 88.6-6.5c11.9 1.9 48.8 9.1 60.1 12c17.1 4.5 34.6-5.6 39.2-22.7s-5.6-34.6-22.7-39.2c-14.3-3.8-53.6-11.4-66.6-13.4c-44.7-7-88.3-4.2-123.7 10.9c-36.5 15.6-64.4 44.8-71.8 87.3c-.1 .6-.2 1.1-.2 1.7c-2.8 23.9 .5 45.6 10.1 64.6c4.5 9 10.2 16.9 16.7 23.9H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H270.1c-.1 0-.3-.1-.4-.1l-1.1-.3c-36-10.8-65.2-19.6-85.2-33.1c-9.3-6.3-15-12.6-18.2-19.1c-3.1-6.1-5.2-14.6-3.8-27.4zM348.9 337.2c2.7 6.5 4.4 15.8 1.9 30.1c-3 17.6-13.8 30.8-33.9 39.4c-21.1 9-51.7 12.3-88.5 6.5c-18-2.9-49.1-13.5-74.4-22.1c-5.6-1.9-11-3.7-15.9-5.4c-16.8-5.6-34.9 3.5-40.5 20.3s3.5 34.9 20.3 40.5c3.6 1.2 7.9 2.7 12.7 4.3l0 0 0 0c24.9 8.5 63.6 21.7 87.6 25.6l0 0 .2 0c44.7 7 88.3 4.2 123.7-10.9c36.5-15.6 64.4-44.8 71.8-87.3c3.6-21 2.7-40.4-3.1-58.1H335.1c7 5.6 11.4 11.2 13.9 17.2z"})})},Ln=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 448 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M16 64c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H128V224c0 53 43 96 96 96s96-43 96-96V96H304c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H384V224c0 88.4-71.6 160-160 160s-160-71.6-160-160V96H48C30.3 96 16 81.7 16 64zM0 448c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32z"})})},zn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 384 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96H160V448c0 17.7 14.3 32 32 32s32-14.3 32-32V96H352c17.7 0 32-14.3 32-32s-14.3-32-32-32H192 32z"})})},Hn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})})},Un=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"})})},Vn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"})})},Wn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 576 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M315 315l158.4-215L444.1 70.6 229 229 315 315zm-187 5l0 0V248.3c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0c11.4 0 22.4 4.5 30.5 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5c0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5H224l-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l63-63 70.6 70.6-31 31c-4.5 4.5-10.6 7-17 7H24c-13.3 0-24-10.7-24-24v-4.7c0-6.4 2.5-12.5 7-17z"})})},Gn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 640 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M192 128c0-17.7 14.3-32 32-32s32 14.3 32 32v7.8c0 27.7-2.4 55.3-7.1 82.5l-84.4 25.3c-40.6 12.2-68.4 49.6-68.4 92v71.9c0 40 32.5 72.5 72.5 72.5c26 0 50-13.9 62.9-36.5l13.9-24.3c26.8-47 46.5-97.7 58.4-150.5l94.4-28.3-12.5 37.5c-3.3 9.8-1.6 20.5 4.4 28.8s15.7 13.3 26 13.3H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H460.4l18-53.9c3.8-11.3 .9-23.8-7.4-32.4s-20.7-11.8-32.2-8.4L316.4 198.1c2.4-20.7 3.6-41.4 3.6-62.3V128c0-53-43-96-96-96s-96 43-96 96v32c0 17.7 14.3 32 32 32s32-14.3 32-32V128zm-9.2 177l49-14.7c-10.4 33.8-24.5 66.4-42.1 97.2l-13.9 24.3c-1.5 2.6-4.3 4.3-7.4 4.3c-4.7 0-8.5-3.8-8.5-8.5V335.6c0-14.1 9.3-26.6 22.8-30.7zM24 368c-13.3 0-24 10.7-24 24s10.7 24 24 24H64.3c-.2-2.8-.3-5.6-.3-8.5V368H24zm592 48c13.3 0 24-10.7 24-24s-10.7-24-24-24H305.9c-6.7 16.3-14.2 32.3-22.3 48H616z"})})},qn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M312 201.8c0-17.4 9.2-33.2 19.9-47C344.5 138.5 352 118.1 352 96c0-53-43-96-96-96s-96 43-96 96c0 22.1 7.5 42.5 20.1 58.8c10.7 13.8 19.9 29.6 19.9 47c0 29.9-24.3 54.2-54.2 54.2H112C50.1 256 0 306.1 0 368c0 20.9 13.4 38.7 32 45.3V464c0 26.5 21.5 48 48 48H432c26.5 0 48-21.5 48-48V413.3c18.6-6.6 32-24.4 32-45.3c0-61.9-50.1-112-112-112H366.2c-29.9 0-54.2-24.3-54.2-54.2zM416 416v32H96V416H416z"})})},Kn=function(){return(0,Mn.jsxs)("svg",{height:"1em",viewBox:"0 0 1024 1024",children:[(0,Mn.jsx)("path",{fill:"currentColor",d:"M614.4 375.46666667a68.26666667 68.26666667 0 1 0 0-136.53333334 68.26666667 68.26666667 0 0 0 0 136.53333334zM409.6 375.46666667a68.26666667 68.26666667 0 1 1-136.53333333 0 68.26666667 68.26666667 0 0 1 136.53333333 0zM375.46666667 716.8a68.26666667 68.26666667 0 1 0 0-136.53333333 68.26666667 68.26666667 0 0 0 0 136.53333333z"}),(0,Mn.jsx)("path",{fill:"currentColor",d:"M34.13333333 512a477.86666667 477.86666667 0 0 1 955.73333334 0c0 43.07626667-18.97813333 73.728-48.67413334 93.73013333-26.8288 18.15893333-61.37173333 26.8288-92.43306666 33.1776-11.40053333 2.32106667-22.45973333 4.36906667-33.10933334 6.3488-21.02613333 3.82293333-40.89173333 7.50933333-60.6208 12.83413334-29.14986667 7.91893333-51.06346667 17.8176-65.67253333 32.08533333-8.26026667 7.91893333-15.22346667 18.8416-21.2992 32.768a213.33333333 213.33333333 0 0 0-10.4448 29.96906667 427.34933333 427.34933333 0 0 0-4.77866667 18.50026666c-3.41333333 14.06293333-6.21226667 28.4672-9.14773333 43.34933334l-0.06826667 0.4096-0.2048 1.024-0.34133333 1.77493333-3.4816 17.33973333-2.38933333 11.4688c-6.69013333 31.40266667-15.70133333 66.1504-33.24586667 93.11573334-19.31946667 29.696-49.152 49.9712-91.9552 49.9712a477.86666667 477.86666667 0 0 1-477.86666667-477.86666667z m477.86666667-409.6a409.6 409.6 0 1 0 0 819.2 36.864 36.864 0 0 0 34.74773333-18.97813333c9.96693333-15.29173333 16.9984-38.63893333 23.68853334-70.10986667 1.8432-8.46506667 3.61813333-17.68106667 5.46133333-27.17013333 4.57386667-23.07413333 9.55733333-48.3328 16.04266667-71.13386667 9.28426667-32.768 23.41546667-67.51573333 49.90293333-93.11573333 27.0336-26.14613333 62.2592-39.936 95.36853333-48.87893334 22.39146667-6.07573333 47.104-10.6496 69.632-14.81386666 10.0352-1.8432 19.52426667-3.54986667 28.2624-5.39306667 30.99306667-6.28053333 53.38453333-13.03893333 67.92533334-22.86933333a47.104 47.104 0 0 0 9.48906666-8.192 34.33813333 34.33813333 0 0 0 4.64213334-6.82666667A47.85493333 47.85493333 0 0 0 921.6 512a409.6 409.6 0 0 0-409.6-409.6z"})]})},Xn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 576 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M64 128V96h64l0 320H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H224c17.7 0 32-14.3 32-32s-14.3-32-32-32H192l0-320h64v32c0 17.7 14.3 32 32 32s32-14.3 32-32V80c0-26.5-21.5-48-48-48H160 48C21.5 32 0 53.5 0 80v48c0 17.7 14.3 32 32 32s32-14.3 32-32zM502.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8h32V352H416c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8H512V160h32c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64z"})})},Yn=function(){return(0,Mn.jsx)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 448 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M48 96l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-245.5c0-4.2-1.7-8.3-4.7-11.3l33.9-33.9c12 12 18.7 28.3 18.7 45.3L448 416c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32l245.5 0c17 0 33.3 6.7 45.3 18.7l74.5 74.5-33.9 33.9L320.8 84.7c-.3-.3-.5-.5-.8-.8L320 184c0 13.3-10.7 24-24 24l-192 0c-13.3 0-24-10.7-24-24L80 80 64 80c-8.8 0-16 7.2-16 16zm80-16l0 80 144 0 0-80L128 80zm32 240a64 64 0 1 1 128 0 64 64 0 1 1 -128 0z"})})},$n=function(){return(0,Mn.jsxs)("svg",{height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:[(0,Mn.jsx)("path",{d:"M915.62666667 287.46666667h-0.32M915.30666667 632.10666667h0.32",fill:"currentColor","p-id":"1372"}),(0,Mn.jsx)("path",{d:"M968.85333333 732.05333333L831.36 595.30666667v102.4H638.93333333v68.8h192.42666667v102.29333333l137.49333333-136.74666667",fill:"currentColor","p-id":"1373"}),(0,Mn.jsx)("path",{d:"M55.14666667 134.72v753.38666667c0 0.53333333 0.10666667 0.96 0.10666666 1.49333333V133.22666667c0 0.53333333-0.10666667 0.96-0.10666666 1.49333333z","p-id":"1374"}),(0,Mn.jsx)("path",{d:"M808.96 512.64h-0.42666667M808.53333333 857.28h0.42666667",fill:"currentColor","p-id":"1375"}),(0,Mn.jsx)("path",{d:"M157.86666667 990.82666667h547.94666666c58.24 0 102.72-44.48 102.72-102.72v-30.82666667h-68.48v30.82666667c0 20.58666667-13.65333333 34.24-34.24 34.24H157.86666667c-20.58666667 0-34.24-13.65333333-34.24-34.24V134.72c0-20.58666667 13.65333333-34.24 34.24-34.24h308.26666666v205.44c0.10666667 37.76 30.72 68.37333333 68.48 68.48h205.44v138.24H808.53333333V305.92c0-10.24-3.41333333-17.17333333-10.24-24L558.50666667 42.24c-6.82666667-6.82666667-13.65333333-10.24-24-10.24H157.86666667c-57.70666667 0-101.86666667 43.73333333-102.61333334 101.22666667V889.6c0.85333333 57.49333333 44.90666667 101.22666667 102.61333334 101.22666667z m376.74666666-876.58666667L726.4 305.92H534.61333333V114.24z",fill:"currentColor","p-id":"1376"}),(0,Mn.jsx)("path",{d:"M391.36 793.38666667h-79.57333333V416.10666667h116.26666666c103.36-1.38666667 154.34666667 37.44 152.96 116.26666666-2.77333333 73.38666667-46.18666667 112.21333333-130.56 116.26666667h-59.09333333v144.74666667z m0-314.02666667v106.02666667h24.42666667c54.4 5.44 80.85333333-12.26666667 79.57333333-53.01333334 0-36.69333333-26.56-54.4-79.57333333-53.01333333h-24.42666667z",fill:"currentColor","p-id":"1377"})]})},Zn=function(){return(0,Mn.jsxs)("svg",{height:"1em",viewBox:"0 0 1024 1024",children:[(0,Mn.jsx)("path",{d:"M66.782609 772.541217h196.051478a58.835478 58.835478 0 0 1 58.768696 58.768696v117.359304l235.78713-165.442782c9.928348-6.989913 21.615304-10.685217 33.747478-10.685218H957.217391V89.043478H66.782609v683.475479zM313.61113 1022.886957a58.768696 58.768696 0 0 1-58.768695-58.768696v-124.794435H58.724174A58.813217 58.813217 0 0 1 0 780.55513V81.029565A58.835478 58.835478 0 0 1 58.768696 22.26087h906.462608A58.835478 58.835478 0 0 1 1024 81.029565v699.503305a58.835478 58.835478 0 0 1-58.768696 58.768695H593.697391L347.336348 1012.201739c-10.106435 7.101217-21.904696 10.685217-33.725218 10.685218z",fill:"currentColor"}),(0,Mn.jsx)("path",{d:"M761.878261 326.032696h-499.756522a33.391304 33.391304 0 0 1 0-66.782609h499.756522a33.391304 33.391304 0 1 1 0 66.782609M761.878261 567.652174h-499.756522a33.391304 33.391304 0 0 1 0-66.782609h499.756522a33.391304 33.391304 0 1 1 0 66.782609",fill:"currentColor"})]})},Qn=function(){return(0,Mn.jsxs)("svg",{height:"1em",viewBox:"0 0 1024 1024",children:[(0,Mn.jsx)("path",{d:"M658.02666667 432.85333333H347.30666667c-18.77333333 0-34.13333333 15.36-34.13333334 34.13333334s15.36 34.13333333 34.13333334 34.13333333h310.72c18.77333333 0 34.13333333-15.36 34.13333333-34.13333333s-15.36-34.13333333-34.13333333-34.13333334zM571.30666667 557.22666667h-224c-18.77333333 0-34.13333333 15.36-34.13333334 34.13333333s15.36 34.13333333 34.13333334 34.13333333h224c18.77333333 0 34.13333333-15.36 34.13333333-34.13333333s-15.36-34.13333333-34.13333333-34.13333333zM894.29333333 61.12l-621.76-0.10666667c-18.88 0-34.13333333 15.25333333-34.13333333 34.13333334s15.25333333 34.13333333 34.13333333 34.13333333l621.76 0.10666667c15.25333333 0 27.73333333 12.48 27.73333334 27.73333333v431.36c0 18.88 15.25333333 34.13333333 34.13333333 34.13333333s34.13333333-15.25333333 34.13333333-34.13333333V157.12c0-52.8-43.2-96-96-96z",fill:"currentColor"}),(0,Mn.jsx)("path",{d:"M734.4 229.54666667H157.54666667c-67.52 0-122.66666667 55.25333333-122.66666667 122.66666666v368.74666667c0 66.77333333 54.08 121.49333333 120.53333333 122.66666667l0.42666667 66.98666666c8.64 38.4 50.98666667 84.37333333 121.81333333 36.05333334L389.54666667 843.73333333h344.64c67.52 0 122.66666667-55.25333333 122.66666666-122.66666666V352.21333333c0.21333333-67.52-55.04-122.66666667-122.45333333-122.66666666z m54.4 491.30666666c0 14.4-5.65333333 28.05333333-16 38.4s-24 16-38.4 16h-340.26666667v0.10666667H373.33333333l-72.85333333 68.05333333-60.37333333 56.32c-26.88 17.6-24.96-26.66666667-24.96-26.66666666l-0.10666667-29.76v-68.05333334h-58.45333333v-0.21333333c-14.08-0.21333333-27.30666667-5.86666667-37.44-16-10.34666667-10.34666667-16-24-16-38.4V352.21333333c0-14.4 5.65333333-28.05333333 16-38.4s24-16 38.4-16h576.85333333c14.4 0 28.05333333 5.65333333 38.4 16s16 24 16 38.4v368.64z",fill:"currentColor"}),(0,Mn.jsx)("path",{d:"M249.06666667 432.42666667c-18.77333333 0-34.13333333 15.36-34.13333334 34.13333333s15.36 34.13333333 34.13333334 34.13333333 34.13333333-15.36 34.13333333-34.13333333-15.36-34.13333333-34.13333333-34.13333333zM249.06666667 557.22666667c-18.77333333 0-34.13333333 15.36-34.13333334 34.13333333s15.36 34.13333333 34.13333334 34.13333333 34.13333333-15.36 34.13333333-34.13333333-15.36-34.13333333-34.13333333-34.13333333z",fill:"currentColor"})]})},Jn=function(){return(0,Mn.jsx)("svg",{viewBox:"0 0 1024 1024",height:"1em",children:(0,Mn.jsx)("path",{d:"M820.35259846 337.71374951V646.0663464h134.06634641V109.8009592h-536.2653872v134.06634641h308.35259689L109.8009592 860.57250255l93.84644234 93.84644232 616.70519692-616.70519536z",fill:"currentColor"})})},eo=function(){return(0,Mn.jsx)("svg",{viewBox:"0 0 1365 1024",height:"1em",children:(0,Mn.jsx)("path",{d:"M992 992H392v-2.71999969A319.75999969 319.75999969 0 0 1 193.92000031 393.99999969a400.00000031 400.00000031 0 0 1 790.11999938-41.47999969c2.68000031 0 5.28-0.52000031 8.00000062-0.52000031A319.99999969 319.99999969 0 0 1 992 992z m0-480h-7.99999969a247.99999969 247.99999969 0 0 1-77.28 0H831.99999969v-79.99999969a240 240 0 0 0-480 0v79.99999969a202.87999969 202.87999969 0 0 0-79.99999969 22.56L247.23999969 552.00000031a157.39999969 157.39999969 0 0 0-15.24 15.31999969 54.28000031 54.28000031 0 0 0-9.96 12.48A157.44 157.44 0 0 0 192.00000031 672.00000031a166.36000031 166.36000031 0 0 0 120 159.99999938h679.99999969a160.00000031 160.00000031 0 0 0 0-319.99999969z",fill:"currentColor"})})},to=function(){return(0,Mn.jsxs)("svg",{viewBox:"0 0 1024 1024",height:"1em",children:[(0,Mn.jsx)("path",{d:"M64.79816853 182.94087573h894.40366294v47.08331307H64.79816853zM653.22925227 88.78804053v47.06952214h47.06952213V88.78804053c0-26.01028907-21.073024-47.06952213-46.9316096-47.06952213h-282.72053867a46.91092267 46.91092267 0 0 0-33.25069333 13.77745493 46.84610347 46.84610347 0 0 0-13.68091627 33.2920672v47.06952214h47.06952214V88.78804053h282.4447136z m0 0",fill:"currentColor"}),(0,Mn.jsx)("path",{d:"M182.47886827 936.12218133v-706.11178453H135.4093472V936.08080853c0 26.037872 20.9489024 47.12468693 47.12468693 47.12468694h658.94572374c26.037872 0 47.12468693-20.9489024 47.12468693-47.12468694V230.0103968H841.52113173v706.11178453H182.47886827z m0 0",fill:"currentColor"}),(0,Mn.jsx)("path",{d:"M300.17336 324.163232h47.06952213V747.83030293h-47.06952213V324.163232z m188.29187947 0h47.06952106V747.83030293H488.46523947V324.163232z m188.2918784 0h47.06952213V747.83030293h-47.06952213V324.163232z m0 0",fill:"currentColor"})]})},ro=function(e){return(0,Mn.jsx)(Pn,In({component:Fn},e))},no=function(e){return(0,Mn.jsx)(Pn,In({component:Dn},e))},oo=function(e){return(0,Mn.jsx)(Pn,In({component:Bn},e))},io=function(e){return(0,Mn.jsx)(Pn,In({component:Ln},e))},ao=function(e){return(0,Mn.jsx)(Pn,In({component:zn},e))},so=function(e){return(0,Mn.jsx)(Pn,In({component:Hn},e))},lo=function(e){return(0,Mn.jsx)(Pn,In({component:Un},e))},co=function(e){return(0,Mn.jsx)(Pn,In({component:Vn},e))},uo=function(e){return(0,Mn.jsx)(Pn,In({component:Wn},e))},fo=function(e){return(0,Mn.jsx)(Pn,In({component:Gn},e))},ho=function(e){return(0,Mn.jsx)(Pn,In({component:qn},e))},po=function(e){return(0,Mn.jsx)(Pn,In({component:Kn},e))},mo=function(e){return(0,Mn.jsx)(Pn,In({component:Xn},e))},go=function(e){return(0,Mn.jsx)(Pn,In({component:Yn},e))},vo=function(e){return(0,Mn.jsx)(Pn,In({component:$n},e))},bo=function(e){return(0,Mn.jsx)(Pn,In({component:Zn},e))},yo=function(e){return(0,Mn.jsx)(Pn,In({component:Qn},e))},wo=function(e){return(0,Mn.jsx)(Pn,In({component:Jn},e))},xo=function(e){return(0,Mn.jsx)(Pn,In({component:eo},e))},So=function(e){return(0,Mn.jsx)(Pn,In({component:to},e))},Co=["#ff0000","#ffbe00","#ffff00","#83d33c","#00b445","#00b2f4","#1677ff","#001f63","#7828a4","#ff00ff"],ko=[14,16,18,20,22,24],Eo={colors:Co,fontSize:ko,defaultFontList:[{label:"Arial",value:"Arial"},{label:"Times New Roman",value:"Times New Roman"},{label:"Georgia",value:"Georgia"},{label:"Verdana",value:"Verdana"},{label:"Tahoma",value:"Tahoma, Geneva, sans-serif"},{label:"Trebuchet MS",value:'"Trebuchet MS", sans-serif'},{label:"Courier New",value:'"Courier New", Courier, monospace'},{label:"Lucida Console",value:'"Lucida Console", Monaco, monospace'},{label:"宋体",value:'SimSun, Songti SC, STSong, 宋体, "Noto Serif SC", serif'},{label:"黑体",value:"Microsoft YaHei, PingFang SC, Heiti SC, SimHei, 黑体, sans-serif"},{label:"楷体",value:'KaiTi, KaiTi_GB2312, STFangsong, 楷体, "AR PL UKai CN", serif'}],handwritingFontList:[{label:"平方长安体",value:"PingFangChangAnTi-2",external:!0,url:o.p+"font/PingFangChangAnTi-2.c4a81d.ttf"},{label:"千图笔锋手写体",value:"qiantubifengshouxieti",external:!0,url:o.p+"font/qiantubifengshouxieti.0cd35d.ttf"}],signature:{COLORS:["#000000","#ff0000","#1677ff"],WIDTH:366,HEIGHT:200,TYPE:"Draw",MAX_SIZE:5242880,ACCEPT:".png,.jpg,.jpeg,.bmp"},stamp:{MAX_SIZE:5242880,ACCEPT:".png,.jpg,.jpeg,.bmp",DEFAULT_STAMP:["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASUAAAEACAYAAAD1BmDyAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXevVGzmOlR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Zme4I0sbS+ACUZrfPk9d818HRAQks3iV/ADqt8rNzL9mJ0p+ztkSiWe40hG6q3zj4R1whG4x8NSMzSjaNSkhVRvRbOzRZjj2yEW6zdAYReTPS0hwoWuow0x+MBybh0g1nRzMi1tJkdNK9wjnqI/SPZU1eOFTVJen0z9artqrBbXtpo4CMAyQiUTGm8IzBV8x7Nnoz7QbOgz/I3GBx+DCApyjdXGl83RzowptbV2k8Alf8ejkU1eqDekdOGULIhrQYdr/8oQLpAqVD98r/ht7kaXW93XOPmN+o2LVi5AFXDdtpSqwBP/bMsv7IsQy0fcNzHAVJrg6Zs+sYm7n6CtaGcQ1yxHheyGluOEun/dgMNtZbtiYUSKH+fa+CjAekEx7jAybuMOUEVHBkThDjaCjQ2ASmQMShREpyWGkoQohzogN8TkA4wUi/ixgZwdO0kCEW3EFO+BCSmwiIOD9Jz2qGa2tcqTz6RHtcOmfIehhpIQDJUZpSpGoA6vff06M2eUfwlkhwJSJGs4SRLU+KVO0QFqTf7KUImA3JyhuDTJiAFN5CneAOgqrfz2BfUfnWk3OddciX4eFr5rLkTkM6y13ZpJ5savwHKSqgEm+0mO/qGCUhHmy+FTw08SwMJSM+yZ64mNXC0BhKQjjZfCp8aeJYGEpCeZc9cTWrgaA0kIB1tvhQ+NfAsDSQgPcueuZrUwNEaSEA62nwpfGrgWRpIQHqWPXM1qYGjNZCAdLT5UvjUwLM0kID0LHvmalIDR2sgAelo86XwqYFnaSAB6Vn2zNWkBo7WQALS0eZL4VMDz9JAAtKz7JmrSQ0crYEEpKPNl8KnBp6lgf8Fk2yMtCBo0t4AAAAASUVORK5CYII="],editor:{DEFAULT_BACKGROUND_COLOR:"#00b445",DEFAULT_BORDER_COLOR:null,DEFAULT_TEXT_COLOR:"#fff"}},chooseSetting:{COLOR:"#1677ff",STROKEWIDTH:2,OPACITY:.7},connectorLine:{ENABLED:!0,COLOR:"#1677ff",WIDTH:2,OPACITY:.7},setting:{COLOR:Co[0],FONT_SIZE:ko[2],HIGHLIGHT_COLOR:Co[2],STRIKEOUT_COLOR:Co[0],UNDERLINE_COLOR:Co[6],STROKE_WIDTH:2,OPACITY:1,MAX_CURSOR_SIZE:96,MAX_UPLOAD_IMAGE_SIZE:800,SAVE_BUTTON:!0,EXPORT_PDF:!0,EXPORT_EXCEL:!0,LOAD_PDF_ANNOTATION:!0,DB_CLICK_DELETE:!1,HIDE_PDFJS_ELEMENT:["#editorModeButtons","#editorModeSeparator","#pageRotateCw","#pageRotateCcw","#download"]}},Oo=function(e){return e[e.NONE=0]="NONE",e[e.TEXT=1]="TEXT",e[e.LINK=2]="LINK",e[e.FREETEXT=3]="FREETEXT",e[e.LINE=4]="LINE",e[e.SQUARE=5]="SQUARE",e[e.CIRCLE=6]="CIRCLE",e[e.POLYGON=7]="POLYGON",e[e.POLYLINE=8]="POLYLINE",e[e.HIGHLIGHT=9]="HIGHLIGHT",e[e.UNDERLINE=10]="UNDERLINE",e[e.SQUIGGLY=11]="SQUIGGLY",e[e.STRIKEOUT=12]="STRIKEOUT",e[e.STAMP=13]="STAMP",e[e.CARET=14]="CARET",e[e.INK=15]="INK",e[e.POPUP=16]="POPUP",e[e.FILEATTACHMENT=17]="FILEATTACHMENT",e[e.SOUND=18]="SOUND",e[e.MOVIE=19]="MOVIE",e[e.WIDGET=20]="WIDGET",e[e.SCREEN=21]="SCREEN",e[e.PRINTERMARK=22]="PRINTERMARK",e[e.TRAPNET=23]="TRAPNET",e[e.WATERMARK=24]="WATERMARK",e[e.THREED=25]="THREED",e[e.REDACT=26]="REDACT",e[e.NOTE=27]="NOTE",e}({}),Ao=function(e){return e[e.DISABLE=-1]="DISABLE",e[e.NONE=0]="NONE",e[e.FREETEXT=3]="FREETEXT",e[e.HIGHLIGHT=9]="HIGHLIGHT",e[e.STAMP=13]="STAMP",e[e.INK=15]="INK",e}({}),To=function(e){return e[e.NONE=-1]="NONE",e[e.SELECT=0]="SELECT",e[e.HIGHLIGHT=1]="HIGHLIGHT",e[e.STRIKEOUT=2]="STRIKEOUT",e[e.UNDERLINE=3]="UNDERLINE",e[e.FREETEXT=4]="FREETEXT",e[e.RECTANGLE=5]="RECTANGLE",e[e.CIRCLE=6]="CIRCLE",e[e.FREEHAND=7]="FREEHAND",e[e.FREE_HIGHLIGHT=8]="FREE_HIGHLIGHT",e[e.SIGNATURE=9]="SIGNATURE",e[e.STAMP=10]="STAMP",e[e.NOTE=11]="NOTE",e[e.ARROW=12]="ARROW",e[e.CLOUD=13]="CLOUD",e}({}),jo=function(e){return e.Accepted="Accepted",e.Rejected="Rejected",e.Cancelled="Cancelled",e.Completed="Completed",e.None="None",e.Closed="Closed",e}({}),Po=[{name:"select",type:To.SELECT,pdfjsEditorType:Ao.NONE,pdfjsAnnotationType:Oo.NONE,isOnce:!1,resizable:!1,draggable:!1,icon:(0,Mn.jsx)(ro,{})},{name:"highlight",type:To.HIGHLIGHT,pdfjsEditorType:Ao.HIGHLIGHT,pdfjsAnnotationType:Oo.HIGHLIGHT,subtype:"Highlight",isOnce:!1,resizable:!1,draggable:!1,icon:(0,Mn.jsx)(no,{}),style:{color:Eo.setting.HIGHLIGHT_COLOR},styleEditable:{color:!0,strokeWidth:!1,opacity:!1}},{name:"strikeout",type:To.STRIKEOUT,pdfjsEditorType:Ao.HIGHLIGHT,pdfjsAnnotationType:Oo.STRIKEOUT,subtype:"StrikeOut",isOnce:!1,resizable:!1,draggable:!1,icon:(0,Mn.jsx)(oo,{}),style:{color:Eo.setting.STRIKEOUT_COLOR},styleEditable:{color:!0,opacity:!1,strokeWidth:!1}},{name:"underline",type:To.UNDERLINE,pdfjsEditorType:Ao.HIGHLIGHT,pdfjsAnnotationType:Oo.UNDERLINE,subtype:"Underline",isOnce:!1,resizable:!1,draggable:!1,icon:(0,Mn.jsx)(io,{}),style:{color:Eo.setting.UNDERLINE_COLOR},styleEditable:{color:!0,opacity:!1,strokeWidth:!1}},{name:"rectangle",type:To.RECTANGLE,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.SQUARE,subtype:"Square",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(so,{}),style:{color:Eo.setting.COLOR,strokeWidth:Eo.setting.STROKE_WIDTH,opacity:Eo.setting.OPACITY},styleEditable:{color:!0,opacity:!0,strokeWidth:!0}},{name:"circle",type:To.CIRCLE,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.CIRCLE,subtype:"Circle",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(lo,{}),style:{color:Eo.setting.COLOR,strokeWidth:Eo.setting.STROKE_WIDTH,opacity:Eo.setting.OPACITY},styleEditable:{color:!0,opacity:!0,strokeWidth:!0}},{name:"note",type:To.NOTE,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.TEXT,subtype:"Text",isOnce:!0,resizable:!1,draggable:!0,icon:(0,Mn.jsx)(bo,{})},{name:"arrow",type:To.ARROW,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.LINE,subtype:"Arrow",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(wo,{}),style:{color:Eo.setting.COLOR,strokeWidth:Eo.setting.STROKE_WIDTH,opacity:Eo.setting.OPACITY},styleEditable:{color:!0,opacity:!0,strokeWidth:!0}},{name:"cloud",type:To.CLOUD,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.POLYLINE,subtype:"PolyLine",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(xo,{}),style:{color:Eo.setting.COLOR,strokeWidth:Eo.setting.STROKE_WIDTH,opacity:Eo.setting.OPACITY},styleEditable:{color:!0,opacity:!0,strokeWidth:!0}},{name:"freehand",type:To.FREEHAND,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.INK,subtype:"Ink",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(co,{}),style:{color:Eo.setting.COLOR,strokeWidth:Eo.setting.STROKE_WIDTH,opacity:Eo.setting.OPACITY},styleEditable:{color:!0,opacity:!0,strokeWidth:!0}},{name:"freeHighlight",type:To.FREE_HIGHLIGHT,pdfjsEditorType:Ao.INK,pdfjsAnnotationType:Oo.INK,subtype:"Highlight",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(uo,{}),style:{color:Eo.setting.COLOR,strokeWidth:10,opacity:.5},styleEditable:{color:!0,opacity:!0,strokeWidth:!1}},{name:"freeText",type:To.FREETEXT,pdfjsEditorType:Ao.STAMP,pdfjsAnnotationType:Oo.FREETEXT,subtype:"FreeText",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(ao,{}),style:{color:Eo.setting.COLOR,fontSize:Eo.setting.FONT_SIZE},styleEditable:{color:!0,opacity:!0,strokeWidth:!1}},{name:"signature",type:To.SIGNATURE,pdfjsEditorType:Ao.STAMP,pdfjsAnnotationType:Oo.STAMP,subtype:"Caret",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(fo,{})},{name:"stamp",type:To.STAMP,pdfjsEditorType:Ao.STAMP,pdfjsAnnotationType:Oo.STAMP,subtype:"Stamp",isOnce:!0,resizable:!0,draggable:!0,icon:(0,Mn.jsx)(ho,{})}],Mo="ae",Ro="".concat(Mo,"_username"),_o="".concat(Mo,"_get_url"),Io="".concat(Mo,"_post_url"),No="".concat(Mo,"_default_editor_active"),Fo="".concat(Mo,"_default_sidebar_open");function Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bo(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.")}()}function Bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Lo=(0,m.forwardRef)((function(e,t){var r=Do((0,m.useState)(!1),2),n=r[0],o=r[1],i=Do((0,m.useState)(Po.filter((function(e){return e.pdfjsEditorType===Ao.HIGHLIGHT}))),1)[0],a=Do((0,m.useState)(null),2),s=a[0],l=a[1],c=(0,m.useRef)(null);ke().t,(0,m.useImperativeHandle)(t,(function(){return{open:u,close:d}}));var u=function(e){if(l(e),!e||3!==e.endContainer.nodeType&&3!==e.startContainer.nodeType)o(!1);else{o(!0);var t=3===e.endContainer.nodeType?e.endContainer.parentElement.getBoundingClientRect():e.startContainer.parentElement.getBoundingClientRect(),r=t.bottom,n=t.height,i=t.left,a=t.right,s=t.top,u=t.width,d=t.x,f=t.y;pn({getBoundingClientRect:function(){return{width:u,height:n,x:d,y:f,left:i,right:a,top:s,bottom:r}}},c.current,{placement:"bottom",middleware:[hn()]}).then((function(e){var t=e.x,r=e.y;Object.assign(c.current.style,{left:"".concat(t,"px"),top:"".concat(r,"px")})}))}},d=function(){o(!1),l(null)},f=i.map((function(t,r){return(0,Mn.jsx)("li",{onClick:function(){return function(t){o(!1),e.onChange(t,s)}(t)},children:(0,Mn.jsx)("div",{className:"icon",children:t.icon})},r)}));return(0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsx)("div",{className:"CustomPopbar ".concat(n?"show":"hide"),ref:c,children:(0,Mn.jsx)("ul",{className:"buttons",children:f})})})})),zo=o(8508),Ho={};function Uo(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Vo(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||Uo(e)||Re(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.")}()}Ho.styleTagTransform=f(),Ho.setAttributes=l(),Ho.insert=a().bind(null,"head"),Ho.domAPI=n(),Ho.insertStyleElement=u(),t()(zo.A,Ho),zo.A&&zo.A.locals&&zo.A.locals;const Wo=m.createContext({}),Go="ant",qo="anticon",Ko=["outlined","borderless","filled","underlined"],Xo=m.createContext({getPrefixCls:(e,t)=>t||(e?`${Go}-${e}`:Go),iconPrefixCls:qo}),{Consumer:Yo}=Xo,$o={};function Zo(e){const t=m.useContext(Xo),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:$o,styles:$o},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const Qo=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},Jo=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=n.has(t);if(Xt(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(r&&i>1)return!1;n.add(t);var s=i+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"===Ne(t)&&"object"===Ne(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(r){return e(t[r],o[r],s)}))}return!1}(e,t)};function ei(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fe(n.key),n)}}function ri(e,t,r){return t&&ti(e.prototype,t),r&&ti(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ni(e){return e.join("%")}var oi=function(){function e(t){ei(this,e),De(this,"instanceId",void 0),De(this,"cache",new Map),this.instanceId=t}return ri(e,[{key:"get",value:function(e){return this.opGet(ni(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(ni(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();const ii=oi;var ai="data-token-hash",si="data-css-hash",li="__cssinjs_instance__";var ci=m.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(si,"]"))||[],r=document.head.firstChild;Array.from(t).forEach((function(t){t[li]=t[li]||e,t[li]===e&&document.head.insertBefore(t,r)}));var n={};Array.from(document.querySelectorAll("style[".concat(si,"]"))).forEach((function(t){var r,o=t.getAttribute(si);n[o]?t[li]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0}))}return new ii(e)}(),defaultCache:!0});const ui=ci;new RegExp("CALC_UNIT","g");var di=function(){function e(){ei(this,e),De(this,"cache",void 0),De(this,"keys",void 0),De(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ri(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=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):void 0})),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.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,r){var n=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 r=Ie(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Ie(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[r,n.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null===(r=n.value)||void 0===r?void 0:r[0];var o=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.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 r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();De(di,"MAX_CACHE_SIZE",20),De(di,"MAX_CACHE_OFFSET",5);var fi=0,hi=function(){function e(t){ei(this,e),De(this,"derivatives",void 0),De(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=fi,0===t.length&&t.length,fi+=1}return ri(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,r){return r(e,t)}),void 0)}}]),e}(),pi=new di;function mi(e){var t=Array.isArray(e)?e:[e];return pi.has(t)||pi.set(t,new hi(t)),pi.get(t)}var gi=new WeakMap,vi={},bi=new WeakMap;function yi(e){var t=bi.get(e)||"";return t||(Object.keys(e).forEach((function(r){var n=e[r];t+=r,n instanceof hi?t+=n.id:n&&"object"===Ne(n)?t+=yi(n):t+=n})),t=Qo(t),bi.set(e,t)),t}function wi(e,t){return Qo("".concat(t,"_").concat(yi(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var xi=Tt();function Si(e){return"number"==typeof e?"".concat(e,"px"):e}function Ci(e,t,r){var n;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=At(At({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(De(n={},ai,t),De(n,si,r),n)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var ki=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()},Ei=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map((function(e){var t=Ie(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")})).join(""),"}"):""},Oi=function(e,t,r){var n={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Ie(e,2),s=a[0],l=a[1];if(null!=r&&null!==(t=r.preserve)&&void 0!==t&&t[s])o[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=r&&null!==(i=r.ignore)&&void 0!==i&&i[s])){var c,u=ki(s,null==r?void 0:r.prefix);n[u]="number"!=typeof l||null!=r&&null!==(c=r.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(u,")")}})),[o,Ei(n,t,{scope:null==r?void 0:r.scope})]},Ai=Tt()?m.useLayoutEffect:m.useEffect,Ti=function(e,t){var r=m.useRef(!0);Ai((function(){return e(r.current)}),t),Ai((function(){return r.current=!1,function(){r.current=!0}}),[])},ji=function(e,t){Ti((function(t){if(!t)return e()}),t)};const Pi=Ti;var Mi=At({},g).useInsertionEffect;const Ri=Mi?function(e,t,r){return Mi((function(){return e(),t()}),r)}:function(e,t,r){m.useMemo(e,r),Pi((function(){return t(!0)}),r)},_i=void 0!==At({},g).useInsertionEffect?function(e){var t=[],r=!1;return m.useEffect((function(){return r=!1,function(){r=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){r||t.push(e)}}:function(){return function(e){e()}};function Ii(e,t,r,n,o){var i=m.useContext(ui).cache,a=ni([e].concat(Vo(t))),s=_i([a]),l=function(e){i.opUpdate(a,(function(t){var n=Ie(t||[void 0,void 0],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))};m.useMemo((function(){l()}),[a]);var c=i.opGet(a)[1];return Ri((function(){null==o||o(c)}),(function(e){return l((function(t){var r=Ie(t,2),n=r[0],i=r[1];return e&&0===n&&(null==o||o(c)),[n+1,i]})),function(){i.opUpdate(a,(function(t){var r=Ie(t||[],2),o=r[0],l=void 0===o?0:o,c=r[1];return 0==l-1?(s((function(){!e&&i.opGet(a)||null==n||n(c,!1)})),null):[l-1,c]}))}}),[a]),c}var Ni={},Fi=new Map;var Di="token";function Bi(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,m.useContext)(ui),o=n.cache.instanceId,i=n.container,a=r.salt,s=void 0===a?"":a,l=r.override,c=void 0===l?Ni:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,h=function(e,r){for(var n=gi,o=0;o<r.length;o+=1){var i=r[o];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(vi)||n.set(vi,Object.assign.apply(Object,[{}].concat(Vo(t)))),n.get(vi)}(0,t),p=yi(h),g=yi(c),v=f?yi(f):"",b=Ii(Di,[s,e.id,p,g,v],(function(){var t,r=d?d(h,c,e):function(e,t,r,n){var o=At(At({},r.getDerivativeToken(e)),t);return n&&(o=n(o)),o}(h,c,e,u),n=At({},r),o="";if(f){var i=Ie(Oi(r,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);r=i[0],o=i[1]}var a=wi(r,s);r._tokenKey=a,n._tokenKey=wi(n,s);var l=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;r._themeKey=l,function(e){Fi.set(e,(Fi.get(e)||0)+1)}(l);var p="".concat("css","-").concat(Qo(a));return r._hashId=p,[r,p,n,o,(null==f?void 0:f.key)||""]}),(function(e){!function(e,t){Fi.set(e,(Fi.get(e)||0)-1);var r=Array.from(Fi.keys()),n=r.filter((function(e){return(Fi.get(e)||0)<=0}));r.length-n.length>0&&n.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(ai,'="').concat(e,'"]')).forEach((function(e){var r;e[li]===t&&(null===(r=e.parentNode)||void 0===r||r.removeChild(e))}))}(e,t),Fi.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=Ie(e,4),r=t[0],n=t[3];if(f&&n){var a=Lt(n,Qo("css-variables-".concat(r._themeKey)),{mark:si,prepend:"queue",attachTo:i,priority:-999});a[li]=o,a.setAttribute(ai,r._themeKey)}}));return b}const Li={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 zi="comm",Hi="rule",Ui="decl",Vi=Math.abs,Wi=String.fromCharCode;function Gi(e){return e.trim()}function qi(e,t,r){return e.replace(t,r)}function Ki(e,t,r){return e.indexOf(t,r)}function Xi(e,t){return 0|e.charCodeAt(t)}function Yi(e,t,r){return e.slice(t,r)}function $i(e){return e.length}function Zi(e,t){return t.push(e),e}function Qi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ji(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Ui:return e.return=e.return||e.value;case zi:return"";case"@keyframes":return e.return=e.value+"{"+Qi(e.children,n)+"}";case Hi:if(!$i(e.value=e.props.join(",")))return""}return $i(r=Qi(e.children,n))?e.return=e.value+"{"+r+"}":""}Object.assign;var ea=1,ta=1,ra=0,na=0,oa=0,ia="";function aa(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ea,column:ta,length:a,return:"",siblings:s}}function sa(){return oa=na>0?Xi(ia,--na):0,ta--,10===oa&&(ta=1,ea--),oa}function la(){return oa=na<ra?Xi(ia,na++):0,ta++,10===oa&&(ta=1,ea++),oa}function ca(){return Xi(ia,na)}function ua(){return na}function da(e,t){return Yi(ia,e,t)}function fa(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 ha(e){return Gi(da(na-1,ga(91===e?e+2:40===e?e+1:e)))}function pa(e){for(;(oa=ca())&&oa<33;)la();return fa(e)>2||fa(oa)>3?"":" "}function ma(e,t){for(;--t&&la()&&!(oa<48||oa>102||oa>57&&oa<65||oa>70&&oa<97););return da(e,ua()+(t<6&&32==ca()&&32==la()))}function ga(e){for(;la();)switch(oa){case e:return na;case 34:case 39:34!==e&&39!==e&&ga(oa);break;case 40:41===e&&ga(e);break;case 92:la()}return na}function va(e,t){for(;la()&&e+oa!==57&&(e+oa!==84||47!==ca()););return"/*"+da(t,na-1)+"*"+Wi(47===e?e:la())}function ba(e){for(;!fa(ca());)la();return da(e,na)}function ya(e){return function(e){return ia="",e}(wa("",null,null,null,[""],e=function(e){return ea=ta=1,ra=$i(ia=e),na=0,[]}(e),0,[0],e))}function wa(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,v=1,b=0,y="",w=o,x=i,S=n,C=y;g;)switch(p=b,b=la()){case 40:if(108!=p&&58==Xi(C,d-1)){-1!=Ki(C+=qi(ha(b),"&","&\f"),"&\f",Vi(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=ha(b);break;case 9:case 10:case 13:case 32:C+=pa(p);break;case 92:C+=ma(ua()-1,7);continue;case 47:switch(ca()){case 42:case 47:Zi(Sa(va(la(),ua()),t,r,l),l),5!=fa(p||1)&&5!=fa(ca()||1)||!$i(C)||" "===Yi(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=$i(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=qi(C,/\f/g,"")),h>0&&($i(C)-d||0===m&&47===p)&&Zi(h>32?Ca(C+";",n,r,d-1,l):Ca(qi(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(Zi(S=xa(C,t,r,c,u,o,s,y,w=[],x=[],d,i),i),123===b)if(0===u)wa(C,t,S,S,w,i,d,s,x);else{switch(f){case 99:if(110===Xi(C,3))break;case 108:if(97===Xi(C,2))break;default:u=0;case 100:case 109:case 115:}u?wa(e,S,S,n&&Zi(xa(e,S,S,0,0,o,s,y,o,w=[],d,x),x),o,x,d,s,n?w:x):wa(C,S,S,S,[""],x,0,s,x)}}c=u=h=0,m=v=1,y=C="",d=a;break;case 58:d=1+$i(C),h=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==sa())continue;switch(C+=Wi(b),b*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=($i(C)-1)*v,v=1;break;case 64:45===ca()&&(C+=ha(la())),f=ca(),u=d=$i(y=C+=ba(ua())),b++;break;case 45:45===p&&2==$i(C)&&(m=0)}}return i}function xa(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,h=0===o?i:[""],p=function(e){return e.length}(h),m=0,g=0,v=0;m<n;++m)for(var b=0,y=Yi(e,f+1,f=Vi(g=a[m])),w=e;b<p;++b)(w=Gi(g>0?h[b]+" "+y:qi(y,/&\f/g,h[b])))&&(l[v++]=w);return aa(e,t,r,0===o?Hi:s,l,c,u,d)}function Sa(e,t,r,n){return aa(e,t,r,zi,Wi(oa),Yi(e,2,-2),0,n)}function Ca(e,t,r,n,o){return aa(e,t,r,Ui,Yi(e,0,n),Yi(e,n+1,-1),n,o)}var ka,Ea="data-ant-cssinjs-cache-path",Oa="_FILE_STYLE__",Aa=!0;var Ta="_multi_value_";function ja(e){return Qi(ya(e),Ji).replace(/\{%%%\:[^;];}/g,";")}var Pa=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=(r.path,r.hashPriority),u=r.transformers,d=void 0===u?[]:u,f=(r.linters,""),h={};function p(t){var n=t.getName(s);if(!h[n]){var o=Ie(e(t.style,r,{root:!1,parentSelectors:a}),1)[0];h[n]="@keyframes ".concat(t.getName(s)).concat(o)}}var m=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]);return m.forEach((function(t){var n="string"!=typeof t||o?t:{};if("string"==typeof n)f+="".concat(n,"\n");else if(n._keyframe)p(n);else{var l=d.reduce((function(e,t){var r;return(null==t||null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e}),n);Object.keys(l).forEach((function(t){var n=l[t];if("object"!==Ne(n)||!n||"animationName"===t&&n._keyframe||function(e){return"object"===Ne(e)&&e&&("_skip_check_"in e||Ta in e)}(n)){var u;function x(e,t){var r=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),n=t;Li[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(p(t),n=t.getName(s)),f+="".concat(r,":").concat(n,";")}var d=null!==(u=null==n?void 0:n.value)&&void 0!==u?u:n;"object"===Ne(n)&&null!=n&&n[Ta]&&Array.isArray(d)?d.forEach((function(e){x(t,e)})):x(t,d)}else{var m=!1,g=t.trim(),v=!1;(o||i)&&s?g.startsWith("@")?m=!0:g=function(e,t,r){if(!t)return e;var n=".".concat(t),o="low"===r?":where(".concat(n,")"):n;return e.split(",").map((function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",i=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(i).concat(o).concat(n.slice(i.length))].concat(Vo(r.slice(1))).join(" ")})).join(",")}("&"===g?"":t,s,c):!o||s||"&"!==g&&""!==g||(g="",v=!0);var b=Ie(e(n,r,{root:v,injectHash:m,parentSelectors:[].concat(Vo(a),[g])}),2),y=b[0],w=b[1];h=At(At({},h),w),f+="".concat(g).concat(y)}}))}})),o?l&&(f&&(f="@layer ".concat(l.name," {").concat(f,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,h]};function Ma(e,t){return Qo("".concat(e.join("%")).concat(t))}function Ra(){return null}var _a="style";function Ia(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=void 0===l?0:l,u=m.useContext(ui),d=u.autoClear,f=(u.mock,u.defaultCache),h=u.hashPriority,p=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,w=u.layer,x=r._tokenKey,S=[x];w&&S.push("layer"),S.push.apply(S,Vo(n));var C=xi,k=Ii(_a,S,(function(){var e=S.join("|");if(function(e){return function(){if(!ka&&(ka={},Tt())){var e=document.createElement("div");e.className=Ea,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=Ie(e.split(":"),2),r=t[0],n=t[1];ka[r]=n}));var r,n=document.querySelector("style[".concat(Ea,"]"));n&&(Aa=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(e)}}(),!!ka[e]}(e)){var r=function(e){var t=ka[e],r=null;if(t&&Tt())if(Aa)r=Oa;else{var n=document.querySelector("style[".concat(si,'="').concat(ka[e],'"]'));n?r=n.innerHTML:delete ka[e]}return[r,t]}(e),a=Ie(r,2),l=a[0],u=a[1];if(l)return[l,x,u,{},s,c]}var d=t(),f=Ie(Pa(d,{hashId:o,hashPriority:h,layer:w?i:void 0,path:n.join("-"),transformers:v,linters:b}),2),p=f[0],m=f[1],g=ja(p),y=Ma(S,g);return[g,x,y,m,s,c]}),(function(e,t){var r=Ie(e,3)[2];(t||d)&&xi&&Bt(r,{mark:si})}),(function(e){var t=Ie(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(C&&r!==Oa){var i={mark:si,prepend:!w&&"queue",attachTo:p,priority:c},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){Lt(ja(o[e]),"_layer-".concat(e),At(At({},i),{},{prepend:!0}))}));var d=Lt(r,n,i);d[li]=y.instanceId,d.setAttribute(ai,x),u.forEach((function(e){Lt(ja(o[e]),"_effect-".concat(e),i)}))}})),E=Ie(k,3),O=E[0],A=E[1],T=E[2];return function(e){var t,r;return t=g&&!C&&f?m.createElement("style",Te({},(De(r={},ai,A),De(r,si,T),r),{dangerouslySetInnerHTML:{__html:O}})):m.createElement(Ra,null),m.createElement(m.Fragment,null,t,e)}}var Na="cssVar";var Fa;De(Fa={},_a,(function(e,t,r){var n=Ie(e,6),o=n[0],i=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=(r||{}).plain;if(l)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Ci(o,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var r=Ci(ja(s[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=r+d:d+=r}})),[c,a,d]})),De(Fa,Di,(function(e,t,r){var n=Ie(e,5),o=n[2],i=n[3],a=n[4],s=(r||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,Ci(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),De(Fa,Na,(function(e,t,r){var n=Ie(e,4),o=n[1],i=n[2],a=n[3],s=(r||{}).plain;return o?[-999,i,Ci(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var Da=function(){function e(t,r){ei(this,e),De(this,"name",void 0),De(this,"style",void 0),De(this,"_keyframe",!0),this.name=t,this.style=r}return ri(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 Ba=Da;function La(e){return e.notSplit=!0,e}function za(e){return Pe(e)||Uo(e)||Re(e)||_e()}function Ha(e,t){for(var r=e,n=0;n<t.length;n+=1){if(null==r)return;r=r[t[n]]}return r}function Ua(e,t,r,n){if(!t.length)return r;var o,i=za(t),a=i[0],s=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Vo(e):At({},e):[],n&&void 0===r&&1===s.length?delete o[a][s[0]]:o[a]=Ua(o[a],s,r,n),o}function Va(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&n&&void 0===r&&!Ha(e,t.slice(0,-1))?e:Ua(e,t,r,n)}function Wa(e){return Array.isArray(e)?[]:{}}La(["borderTop","borderBottom"]),La(["borderTop"]),La(["borderBottom"]),La(["borderLeft","borderRight"]),La(["borderLeft"]),La(["borderRight"]);var Ga="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function qa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Wa(t[0]);return t.forEach((function(e){!function t(r,o){var i,a=new Set(o),s=Ha(e,r),l=Array.isArray(s);if(l||"object"===Ne(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=Ha(n,r);l?n=Va(n,r,[]):c&&"object"===Ne(c)||(n=Va(n,r,Wa(s))),Ga(s).forEach((function(e){t([].concat(Vo(r),[e]),a)}))}}else n=Va(n,r,s)}([])})),n}function Ka(){}const Xa=m.createContext({}),Ya=()=>{const e=()=>{};return e.deprecated=Ka,e},$a=(0,m.createContext)(void 0),Za=At(At({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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"}),Qa={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ja={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"]},Za),timePickerLocale:Object.assign({},Qa)},es="${label} is not a valid ${type}",ts={locale:"en",Pagination:{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"},DatePicker:Ja,TimePicker:Qa,Calendar:Ja,global:{placeholder:"Please select",close:"Close"},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:es,method:es,array:es,object:es,number:es,date:es,boolean:es,integer:es,float:es,regexp:es,email:es,url:es,hex:es},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let rs=Object.assign({},ts.Modal),ns=[];const os=()=>ns.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),ts.Modal);function is(){return rs}const as=(0,m.createContext)(void 0),ss=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;m.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return ns.push(t),rs=os(),()=>{ns=ns.filter((e=>e!==t)),rs=os()}}rs=Object.assign({},ts.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const o=m.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return m.createElement(as.Provider,{value:o},r)},ls={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"},cs=Object.assign(Object.assign({},ls),{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});function us(e){return(e+8)/e}const ds=(e,t)=>new Ge(e).setA(t).toRgbString(),fs=(e,t)=>new Ge(e).darken(t).toHexString(),hs=e=>{const t=$e(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]}},ps=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:ds(n,.88),colorTextSecondary:ds(n,.65),colorTextTertiary:ds(n,.45),colorTextQuaternary:ds(n,.25),colorFill:ds(n,.15),colorFillSecondary:ds(n,.06),colorFillTertiary:ds(n,.04),colorFillQuaternary:ds(n,.02),colorBgSolid:ds(n,1),colorBgSolidHover:ds(n,.75),colorBgSolidActive:ds(n,.95),colorBgLayout:fs(r,4),colorBgContainer:fs(r,0),colorBgElevated:fs(r,0),colorBgSpotlight:ds(n,.85),colorBgBlur:"transparent",colorBorder:fs(r,15),colorBorderSecondary:fs(r,6)}},ms=mi((function(e){Ze.pink=Ze.magenta,dt.pink=dt.magenta;const t=Object.keys(ls).map((t=>{const r=e[t]===Ze[t]?dt[t]:$e(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,n,o)=>(e[`${t}-${o+1}`]=r[o],e[`${t}${o+1}`]=r[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=r(l),f=r(o),h=r(i),p=r(a),m=r(s),g=n(c,u),v=r(e.colorLink||e.colorInfo),b=new Ge(p[1]).mix(new Ge(p[3]),50).toHexString();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],colorErrorBgFilledHover:b,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 Ge("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:hs,generateNeutralColorPalettes:ps})),(e=>{const t=function(e){const t=Array.from({length:10}).map(((t,r)=>{const n=r-1,o=e*Math.pow(Math.E,n/5),i=r>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:us(e)})))}(e),r=t.map((e=>e.size)),n=t.map((e=>e.lineHeight)),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+2*t).toFixed(1)}s`,motionDurationSlow:`${(r+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}})(n))}(e))})),gs=ms,vs={token:cs,override:{override:cs},hashed:!0},bs=m.createContext(vs),ys=`-ant-${Date.now()}-${Math.random()}`;const ws=m.createContext(!1),xs=e=>{let{children:t,disabled:r}=e;const n=m.useContext(ws);return m.createElement(ws.Provider,{value:null!=r?r:n},t)},Ss=ws,Cs=m.createContext(void 0),ks=e=>{let{children:t,size:r}=e;const n=m.useContext(Cs);return m.createElement(Cs.Provider,{value:r||n},t)},Es=Cs,Os=Object.assign({},g),{useId:As}=Os,Ts=void 0===As?()=>"":As;var js=o(961),Ps=o.t(js,2);function Ms(e){return e instanceof HTMLElement||e instanceof SVGElement}function Rs(e){return e&&"object"===Ne(e)&&Ms(e.nativeElement)?e.nativeElement:Ms(e)?e:null}function _s(e){var t;return Rs(e)||(e instanceof m.Component?null===(t=js.findDOMNode)||void 0===t?void 0:t.call(js,e):null)}var Is=["children"],Ns=m.createContext({});function Fs(e){var t=e.children,r=Be(e,Is);return m.createElement(Ns.Provider,{value:r},t)}function Ds(e,t){return Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ds(e,t)}function Bs(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&&Ds(e,t)}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ls(e)}function zs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zs=function(){return!!e})()}function Hs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Us(e){var t=zs();return function(){var r,n=Ls(e);if(t){var o=Ls(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hs(e)}(this,r)}}const Vs=function(e){Bs(r,e);var t=Us(r);function r(){return ei(this,r),t.apply(this,arguments)}return ri(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function Ws(e){var t=m.useRef();t.current=e;var r=m.useCallback((function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(n))}),[]);return r}function Gs(e){var t=m.useRef(!1),r=Ie(m.useState(e),2),n=r[0],o=r[1];return m.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[n,function(e,r){r&&t.current||o(e)}]}function qs(e){return void 0!==e}function Ks(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=Ie(Gs((function(){return qs(o)?o:qs(n)?"function"==typeof n?n():n:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=a?a(u):u,f=Ws(i),h=Ie(Gs([u]),2),p=h[0],m=h[1];return ji((function(){var e=p[0];l!==e&&f(l,e)}),[p]),ji((function(){qs(o)||c(o)}),[o]),[d,Ws((function(e,t){c(e,t),m([u],t)}))]}var Xs="none",Ys="appear",$s="enter",Zs="leave",Qs="none",Js="prepare",el="start",tl="active",rl="end",nl="prepared";function ol(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var il,al,sl,ll=(il=Tt(),al="undefined"!=typeof window?window:{},sl={animationend:ol("Animation","AnimationEnd"),transitionend:ol("Transition","TransitionEnd")},il&&("AnimationEvent"in al||delete sl.animationend.animation,"TransitionEvent"in al||delete sl.transitionend.transition),sl),cl={};if(Tt()){var ul=document.createElement("div");cl=ul.style}var dl={};function fl(e){if(dl[e])return dl[e];var t=ll[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in cl)return dl[e]=t[i],dl[e]}return""}var hl=fl("animationend"),pl=fl("transitionend"),ml=!(!hl||!pl),gl=hl||"animationend",vl=pl||"transitionend";function bl(e,t){return e?"object"===Ne(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const yl=Tt()?m.useLayoutEffect:m.useEffect;var wl=function(e){return+setTimeout(e,16)},xl=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(wl=function(e){return window.requestAnimationFrame(e)},xl=function(e){return window.cancelAnimationFrame(e)});var Sl=0,Cl=new Map;function kl(e){Cl.delete(e)}var El=function(e){var t=Sl+=1;return function r(n){if(0===n)kl(t),e();else{var o=wl((function(){r(n-1)}));Cl.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};El.cancel=function(e){var t=Cl.get(e);return kl(e),xl(t)};const Ol=El;var Al=[Js,el,tl,rl],Tl=[Js,nl],jl=!1;function Pl(e){return e===tl||e===rl}function Ml(e,t,r,n){var o,i,a,s=n.motionEnter,l=void 0===s||s,c=n.motionAppear,u=void 0===c||c,d=n.motionLeave,f=void 0===d||d,h=n.motionDeadline,p=n.motionLeaveImmediately,g=n.onAppearPrepare,v=n.onEnterPrepare,b=n.onLeavePrepare,y=n.onAppearStart,w=n.onEnterStart,x=n.onLeaveStart,S=n.onAppearActive,C=n.onEnterActive,k=n.onLeaveActive,E=n.onAppearEnd,O=n.onEnterEnd,A=n.onLeaveEnd,T=n.onVisibleChanged,j=Ie(Gs(),2),P=j[0],M=j[1],R=(o=Xs,i=Ie(m.useReducer((function(e){return e+1}),0),2)[1],a=m.useRef(o),[Ws((function(){return a.current})),Ws((function(e){a.current="function"==typeof e?e(a.current):e,i()}))]),_=Ie(R,2),I=_[0],N=_[1],F=Ie(Gs(null),2),D=F[0],B=F[1],L=I(),z=(0,m.useRef)(!1),H=(0,m.useRef)(null);function U(){return r()}var V=(0,m.useRef)(!1);function W(){N(Xs),B(null,!0)}var G=Ws((function(e){var t=I();if(t!==Xs){var r=U();if(!e||e.deadline||e.target===r){var n,o=V.current;t===Ys&&o?n=null==E?void 0:E(r,e):t===$s&&o?n=null==O?void 0:O(r,e):t===Zs&&o&&(n=null==A?void 0:A(r,e)),o&&!1!==n&&W()}}})),q=function(e){var t=(0,m.useRef)();function r(t){t&&(t.removeEventListener(vl,e),t.removeEventListener(gl,e))}return m.useEffect((function(){return function(){r(t.current)}}),[]),[function(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(vl,e),n.addEventListener(gl,e),t.current=n)},r]}(G),K=Ie(q,1)[0],X=function(e){switch(e){case Ys:return De(De(De({},Js,g),el,y),tl,S);case $s:return De(De(De({},Js,v),el,w),tl,C);case Zs:return De(De(De({},Js,b),el,x),tl,k);default:return{}}},Y=m.useMemo((function(){return X(L)}),[L]),$=Ie(function(e,t,r){var n=Ie(Gs(Qs),2),o=n[0],i=n[1],a=function(){var e=m.useRef(null);function t(){Ol.cancel(e.current)}return m.useEffect((function(){return function(){t()}}),[]),[function r(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ol((function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)}));e.current=i},t]}(),s=Ie(a,2),l=s[0],c=s[1],u=t?Tl:Al;return yl((function(){if(o!==Qs&&o!==rl){var e=u.indexOf(o),t=u[e+1],n=r(o);n===jl?i(t,!0):t&&l((function(e){function r(){e.isCanceled()||i(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[e,o]),m.useEffect((function(){return function(){c()}}),[]),[function(){i(Js,!0)},o]}(L,!e,(function(e){if(e===Js){var t=Y[Js];return t?t(U()):jl}var r;return Q in Y&&B((null===(r=Y[Q])||void 0===r?void 0:r.call(Y,U(),null))||null),Q===tl&&L!==Xs&&(K(U()),h>0&&(clearTimeout(H.current),H.current=setTimeout((function(){G({deadline:!0})}),h))),Q===nl&&W(),!0})),2),Z=$[0],Q=$[1],J=Pl(Q);V.current=J;var ee=(0,m.useRef)(null);yl((function(){if(!z.current||ee.current!==t){M(t);var r,n=z.current;z.current=!0,!n&&t&&u&&(r=Ys),n&&t&&l&&(r=$s),(n&&!t&&f||!n&&p&&!t&&f)&&(r=Zs);var o=X(r);r&&(e||o[Js])?(N(r),Z()):N(Xs),ee.current=t}}),[t]),(0,m.useEffect)((function(){(L===Ys&&!u||L===$s&&!l||L===Zs&&!f)&&N(Xs)}),[u,l,f]),(0,m.useEffect)((function(){return function(){z.current=!1,clearTimeout(H.current)}}),[]);var te=m.useRef(!1);(0,m.useEffect)((function(){P&&(te.current=!0),void 0!==P&&L===Xs&&((te.current||P)&&(null==T||T(P)),te.current=!0)}),[P,L]);var re=D;return Y[Js]&&Q===el&&(re=At({transition:"none"},re)),[L,Q,re,null!=P?P:t]}const Rl=function(e){var t=e;"object"===Ne(e)&&(t=e.transitionSupport);var r=m.forwardRef((function(e,r){var n=e.visible,o=void 0===n||n,i=e.removeOnLeave,a=void 0===i||i,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,r){return!(!e.motionName||!t||!1===r)}(e,m.useContext(Ns).motion),h=(0,m.useRef)(),p=(0,m.useRef)(),g=Ie(Ml(f,o,(function(){try{return h.current instanceof HTMLElement?h.current:_s(p.current)}catch(e){return null}}),e),4),v=g[0],b=g[1],y=g[2],w=g[3],x=m.useRef(w);w&&(x.current=!0);var S,C=m.useCallback((function(e){h.current=e,Sn(r,e)}),[r]),k=At(At({},d),{},{visible:o});if(l)if(v===Xs)S=w?l(At({},k),C):!a&&x.current&&u?l(At(At({},k),{},{className:u}),C):s||!a&&!u?l(At(At({},k),{},{style:{display:"none"}}),C):null;else{var E;b===Js?E="prepare":Pl(b)?E="active":b===el&&(E="start");var O=bl(c,"".concat(v,"-").concat(E));S=l(At(At({},k),{},{className:ze()(bl(c,v),De(De({},O,O&&E),c,"string"==typeof c)),style:y}),C)}else S=null;return m.isValidElement(S)&&En(S)&&(An(S)||(S=m.cloneElement(S,{ref:C}))),m.createElement(Vs,{ref:p},S)}));return r.displayName="CSSMotion",r}(ml);var _l="add",Il="keep",Nl="remove",Fl="removed";function Dl(e){var t;return At(At({},t=e&&"object"===Ne(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Bl(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Dl)}var Ll=["component","children","onVisibleChanged","onAllRemoved"],zl=["status"],Hl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Ul=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rl,t=function(t){Bs(n,t);var r=Us(n);function n(){var e;ei(this,n);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return De(Hs(e=r.call.apply(r,[this].concat(o))),"state",{keyEntities:[]}),De(Hs(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:At(At({},e),{},{status:Fl})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Fl})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return ri(n,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,n=this.props,o=n.component,i=n.children,a=n.onVisibleChanged,s=(n.onAllRemoved,Be(n,Ll)),l=o||m.Fragment,c={};return Hl.forEach((function(e){c[e]=s[e],delete s[e]})),delete s.keys,m.createElement(l,s,r.map((function(r,n){var o=r.status,s=Be(r,zl),l=o===_l||o===Il;return m.createElement(e,Te({},c,{key:s.key,visible:l,eventProps:s,onVisibleChanged:function(e){null==a||a(e,{key:s.key}),e||t.removeKey(s.key)}}),(function(e,t){return i(At(At({},e),{},{index:n}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities,o=Bl(r),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,i=Bl(e),a=Bl(t);i.forEach((function(e){for(var t=!1,i=n;i<o;i+=1){var s=a[i];if(s.key===e.key){n<i&&(r=r.concat(a.slice(n,i).map((function(e){return At(At({},e),{},{status:_l})}))),n=i),r.push(At(At({},s),{},{status:Il})),n+=1,t=!0;break}}t||r.push(At(At({},e),{},{status:Nl}))})),n<o&&(r=r.concat(a.slice(n).map((function(e){return At(At({},e),{},{status:_l})}))));var s={};return r.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){(r=r.filter((function(t){var r=t.key,n=t.status;return r!==e||n!==Nl}))).forEach((function(t){t.key===e&&(t.status=Il)}))})),r}(n,o);return{keyEntities:i.filter((function(e){var t=n.find((function(t){var r=t.key;return e.key===r}));return!t||t.status!==Fl||e.status!==Nl}))}}}]),n}(m.Component);return De(t,"defaultProps",{component:"div"}),t}(ml),Vl=Rl;function Wl(e){return e>=0&&e<=255}const Gl=function(e,t){const{r,g:n,b:o,a:i}=new Ge(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Ge(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((r-a*(1-e))/e),i=Math.round((n-s*(1-e))/e),c=Math.round((o-l*(1-e))/e);if(Wl(t)&&Wl(i)&&Wl(c))return new Ge({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Ge({r,g:n,b:o,a:1}).toRgbString()};function ql(e){const{override:t}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["override"]),n=Object.assign({},t);Object.keys(cs).forEach((e=>{delete n[e]}));const o=Object.assign(Object.assign({},r),n);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:Gl(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:Gl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Gl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*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:Gl(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:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Ge("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Ge("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Ge("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)"}),n)}var Kl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const Xl={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Yl={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},$l={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},Zl=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=Kl(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=ql(a),i&&Object.entries(i).forEach((e=>{let[t,r]=e;const{theme:n}=r,o=Kl(r,["theme"]);let i=o;n&&(i=Zl(Object.assign(Object.assign({},a),o),{override:o},n)),a[t]=i})),a};function Ql(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=m.useContext(bs),i=`5.25.1-${t||""}`,a=r||gs,[s,l,c]=Bi(a,[cs,e],{salt:i,override:n,getComputedToken:Zl,formatToken:ql,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Xl,ignore:Yl,preserve:$l}});return[a,c,t?l:"",s,o]}function Jl(e){const{children:t}=e,[,r]=Ql(),{motion:n}=r,o=m.useRef(!1);return o.current=o.current||!1===n,o.current?m.createElement(Fs,{motion:n},t):t}const ec=()=>null,tc={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},rc=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}},nc=(e,t)=>({outline:`${Si(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),oc=(e,t)=>({"&:focus-visible":Object.assign({},nc(e,t))}),ic=e=>({[`.${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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),ac=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},oc(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});const sc=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let lc,cc,uc,dc;function fc(){return lc||Go}function hc(){return cc||qo}const pc=()=>({getPrefixCls:(e,t)=>t||(e?`${fc()}-${e}`:fc()),getIconPrefixCls:hc,getRootPrefixCls:()=>lc||fc(),getTheme:()=>uc,holderRender:dc}),mc=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:w,componentDisabled:x,segmented:S,statistic:C,spin:k,calendar:E,carousel:O,cascader:A,collapse:T,typography:j,checkbox:P,descriptions:M,divider:R,drawer:_,skeleton:I,steps:N,image:F,layout:D,list:B,mentions:L,modal:z,progress:H,result:U,slider:V,breadcrumb:W,menu:G,pagination:q,input:K,textArea:X,empty:Y,badge:$,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:re,tag:ne,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:he,rangePicker:pe,flex:me,wave:ge,dropdown:ve,warning:be,tour:ye,tooltip:we,popover:xe,popconfirm:Se,floatButtonGroup:Ce,variant:ke,inputNumber:Ee,treeSelect:Oe}=e,Ae=m.useCallback(((t,r)=>{const{prefixCls:n}=e;if(r)return r;const o=n||b.getPrefixCls("");return t?`${o}-${t}`:o}),[b.getPrefixCls,e.prefixCls]),Te=y||b.iconPrefixCls||qo,je=r||b.csp;((e,t)=>{const[r,n]=Ql();Ia({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[ic(e)]))})(Te,je);const Pe=function(e,t,r){var n;Ya();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},vs),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:vs.hashed,cssVar:null==t?void 0:t.cssVar}),a=Ts();return gn((()=>{var n,s;if(!e)return t;const l=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(n=o.cssVar)&&void 0!==n?n:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==r?void 0:r.prefixCls},"object"==typeof i.cssVar?i.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({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:l,cssVar:u})}),[o,i],((e,t)=>e.some(((e,r)=>{const n=t[r];return!Jo(e,n,!0)}))))}(w,b.theme,{prefixCls:Ae("")}),Me={csp:je,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||v,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:null!=p?p:h,popupOverflow:g,getPrefixCls:Ae,iconPrefixCls:Te,theme:Pe,segmented:S,statistic:C,spin:k,calendar:E,carousel:O,cascader:A,collapse:T,typography:j,checkbox:P,descriptions:M,divider:R,drawer:_,skeleton:I,steps:N,image:F,input:K,textArea:X,layout:D,list:B,mentions:L,modal:z,progress:H,result:U,slider:V,breadcrumb:W,menu:G,pagination:q,empty:Y,badge:$,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:re,tag:ne,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:he,rangePicker:pe,flex:me,wave:ge,dropdown:ve,warning:be,tour:ye,tooltip:we,popover:xe,popconfirm:Se,floatButtonGroup:Ce,variant:ke,inputNumber:Ee,treeSelect:Oe},Re=Object.assign({},b);Object.keys(Me).forEach((e=>{void 0!==Me[e]&&(Re[e]=Me[e])})),sc.forEach((t=>{const r=e[t];r&&(Re[t]=r)})),void 0!==n&&(Re.button=Object.assign({autoInsertSpace:n},Re.button));const _e=gn((()=>Re),Re,((e,t)=>{const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some((r=>e[r]!==t[r]))})),{layer:Ie}=m.useContext(ui),Ne=m.useMemo((()=>({prefixCls:Te,csp:je,layer:Ie?"antd":void 0})),[Te,je,Ie]);let Fe=m.createElement(m.Fragment,null,m.createElement(ec,{dropdownMatchSelectWidth:h}),t);const De=m.useMemo((()=>{var e,t,r,n;return qa((null===(e=ts.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(r=null===(t=_e.locale)||void 0===t?void 0:t.Form)||void 0===r?void 0:r.defaultValidateMessages)||{},(null===(n=_e.form)||void 0===n?void 0:n.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[_e,null==a?void 0:a.validateMessages]);Object.keys(De).length>0&&(Fe=m.createElement($a.Provider,{value:De},Fe)),s&&(Fe=m.createElement(ss,{locale:s,_ANT_MARK__:"internalMark"},Fe)),(Te||je)&&(Fe=m.createElement(Et.Provider,{value:Ne},Fe)),l&&(Fe=m.createElement(ks,{size:l},Fe)),Fe=m.createElement(Jl,null,Fe);const Be=m.useMemo((()=>{const e=Pe||{},{algorithm:t,token:r,components:n,cssVar:o}=e,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?mi(t):gs,s={};Object.entries(n||{}).forEach((e=>{let[t,r]=e;const n=Object.assign({},r);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=mi(n.algorithm)),delete n.algorithm),s[t]=n}));const l=Object.assign(Object.assign({},cs),r);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})}),[Pe]);return w&&(Fe=m.createElement(bs.Provider,{value:Be},Fe)),_e.warning&&(Fe=m.createElement(Xa.Provider,{value:_e.warning},Fe)),void 0!==x&&(Fe=m.createElement(xs,{disabled:x},Fe)),m.createElement(Xo.Provider,{value:_e},Fe)},gc=e=>{const t=m.useContext(Xo),r=m.useContext(as);return m.createElement(mc,Object.assign({parentContext:t,legacyLocale:r},e))};gc.ConfigContext=Xo,gc.SizeContext=Es,gc.config=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;void 0!==t&&(lc=t),void 0!==r&&(cc=r),"holderRender"in e&&(dc=o),n&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(n)?function(e,t){const r=function(e,t){const r={},n=(e,t)=>{let r=e.clone();return r=(null==t?void 0:t(r))||r,r.toRgbString()},o=(e,t)=>{const o=new Ge(e),i=$e(o.toRgbString());r[`${t}-color`]=n(o),r[`${t}-color-disabled`]=i[1],r[`${t}-color-hover`]=i[4],r[`${t}-color-active`]=i[6],r[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),r[`${t}-color-deprecated-bg`]=i[0],r[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Ge(t.primaryColor),i=$e(e.toRgbString());i.forEach(((e,t)=>{r[`primary-${t+1}`]=e})),r["primary-color-deprecated-l-35"]=n(e,(e=>e.lighten(35))),r["primary-color-deprecated-l-20"]=n(e,(e=>e.lighten(20))),r["primary-color-deprecated-t-20"]=n(e,(e=>e.tint(20))),r["primary-color-deprecated-t-50"]=n(e,(e=>e.tint(50))),r["primary-color-deprecated-f-12"]=n(e,(e=>e.setA(.12*e.a)));const a=new Ge(i[0]);r["primary-color-active-deprecated-f-30"]=n(a,(e=>e.setA(.3*e.a))),r["primary-color-active-deprecated-d-02"]=n(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(r).map((t=>`--${e}-${t}: ${r[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Tt()&&Lt(r,`${ys}-dynamic-theme`)}(fc(),n):uc=n)},gc.useConfig=function(){return{componentDisabled:(0,m.useContext)(Ss),componentSize:(0,m.useContext)(Es)}},Object.defineProperty(gc,"SizeContext",{get:()=>Es});const vc=gc;function bc(){bc=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Ne(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Ne(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function yc(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function wc(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){yc(i,n,o,a,s,"next",e)}function s(e){yc(i,n,o,a,s,"throw",e)}a(void 0)}))}}var xc,Sc=At({},Ps),Cc=Sc.version,kc=Sc.render,Ec=Sc.unmountComponentAtNode;try{Number((Cc||"").split(".")[0])>=18&&(xc=Sc.createRoot)}catch(zF){}function Oc(e){var t=Sc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ne(t)&&(t.usingClientEntryPoint=e)}var Ac="__rc_react_root__";function Tc(e){return jc.apply(this,arguments)}function jc(){return(jc=wc(bc().mark((function e(t){return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Ac])||void 0===e||e.unmount(),delete t[Ac]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pc(e){Ec(e)}function Mc(){return(Mc=wc(bc().mark((function e(t){return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===xc){e.next=2;break}return e.abrupt("return",Tc(t));case 2:Pc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let Rc=(e,t)=>(function(e,t){xc?function(e,t){Oc(!0);var r=t[Ac]||xc(t);Oc(!1),r.render(e),t[Ac]=r}(e,t):function(e,t){null==kc||kc(e,t)}(e,t)}(e,t),()=>function(e){return Mc.apply(this,arguments)}(t));function _c(e){return e&&(Rc=e),Rc}const Ic={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 Nc=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Ic}))};const Fc=m.forwardRef(Nc),Dc={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 Bc=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Dc}))};const Lc=m.forwardRef(Bc),zc={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 Hc=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:zc}))};const Uc=m.forwardRef(Hc),Vc={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 Wc=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Vc}))};const Gc=m.forwardRef(Wc),qc={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 Kc=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:qc}))};const Xc=m.forwardRef(Kc);var Yc={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>=Yc.F1&&t<=Yc.F12)return!1;switch(t){case Yc.ALT:case Yc.CAPS_LOCK:case Yc.CONTEXT_MENU:case Yc.CTRL:case Yc.DOWN:case Yc.END:case Yc.ESC:case Yc.HOME:case Yc.INSERT:case Yc.LEFT:case Yc.MAC_FF_META:case Yc.META:case Yc.NUMLOCK:case Yc.NUM_CENTER:case Yc.PAGE_DOWN:case Yc.PAGE_UP:case Yc.PAUSE:case Yc.PRINT_SCREEN:case Yc.RIGHT:case Yc.SHIFT:case Yc.UP:case Yc.WIN_KEY:case Yc.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Yc.ZERO&&e<=Yc.NINE)return!0;if(e>=Yc.NUM_ZERO&&e<=Yc.NUM_MULTIPLY)return!0;if(e>=Yc.A&&e<=Yc.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Yc.SPACE:case Yc.QUESTION_MARK:case Yc.NUM_PLUS:case Yc.NUM_MINUS:case Yc.NUM_PERIOD:case Yc.NUM_DIVISION:case Yc.SEMICOLON:case Yc.DASH:case Yc.EQUALS:case Yc.COMMA:case Yc.PERIOD:case Yc.SLASH:case Yc.APOSTROPHE:case Yc.SINGLE_QUOTE:case Yc.OPEN_SQUARE_BRACKET:case Yc.BACKSLASH:case Yc.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const $c=Yc;var Zc="".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 Qc(e,t){return 0===e.indexOf(t)}function Jc(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===r?{aria:!0,data:!0,attr:!0}:!0===r?{aria:!0}:At({},r);var n={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||Qc(r,"aria-"))||t.data&&Qc(r,"data-")||t.attr&&Zc.includes(r))&&(n[r]=e[r])})),n}var eu=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=void 0===l||l,u=e.eventKey,d=e.content,f=e.closable,h=e.closeIcon,p=void 0===h?"x":h,g=e.props,v=e.onClick,b=e.onNoticeClose,y=e.times,w=e.hovering,x=Ie(m.useState(!1),2),S=x[0],C=x[1],k=Ie(m.useState(0),2),E=k[0],O=k[1],A=Ie(m.useState(0),2),T=A[0],j=A[1],P=w||S,M=a>0&&s,R=function(){b(u)};m.useEffect((function(){if(!P&&a>0){var e=Date.now()-T,t=setTimeout((function(){R()}),1e3*a-T);return function(){c&&clearTimeout(t),j(Date.now()-e)}}}),[a,P,y]),m.useEffect((function(){if(!P&&M&&(c||0===T)){var e,t=performance.now();return function r(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var n=e+T-t,o=Math.min(n/(1e3*a),1);O(100*o),o<1&&r()}))}(),function(){c&&cancelAnimationFrame(e)}}}),[a,T,P,M,y]);var _=m.useMemo((function(){return"object"===Ne(f)&&null!==f?f:f?{closeIcon:p}:{}}),[f,p]),I=Jc(_,!0),N=100-(!E||E<0?0:E>100?100:E),F="".concat(r,"-notice");return m.createElement("div",Te({},g,{ref:t,className:ze()(F,o,De({},"".concat(F,"-closable"),f)),style:n,onMouseEnter:function(e){var t;C(!0),null==g||null===(t=g.onMouseEnter)||void 0===t||t.call(g,e)},onMouseLeave:function(e){var t;C(!1),null==g||null===(t=g.onMouseLeave)||void 0===t||t.call(g,e)},onClick:v}),m.createElement("div",{className:"".concat(F,"-content")},d),f&&m.createElement("a",Te({tabIndex:0,className:"".concat(F,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==$c.ENTER||R()},"aria-label":"Close"},I,{onClick:function(e){e.preventDefault(),e.stopPropagation(),R()}}),_.closeIcon),M&&m.createElement("progress",{className:"".concat(F,"-progress"),max:"100",value:N},N+"%"))}));const tu=eu;var ru=m.createContext({});const nu=function(e){var t=e.children,r=e.classNames;return m.createElement(ru.Provider,{value:{classNames:r}},t)};var ou=["className","style","classNames","styles"];const iu=function(e){var t,r,n,o,i,a=e.configList,s=e.placement,l=e.prefixCls,c=e.className,u=e.style,d=e.motion,f=e.onAllNoticeRemoved,h=e.onNoticeClose,p=e.stack,g=(0,m.useContext)(ru).classNames,v=(0,m.useRef)({}),b=Ie((0,m.useState)(null),2),y=b[0],w=b[1],x=Ie((0,m.useState)([]),2),S=x[0],C=x[1],k=a.map((function(e){return{config:e,key:String(e.key)}})),E=Ie((i={offset:8,threshold:3,gap:16},(t=p)&&"object"===Ne(t)&&(i.offset=null!==(r=t.offset)&&void 0!==r?r:8,i.threshold=null!==(n=t.threshold)&&void 0!==n?n:3,i.gap=null!==(o=t.gap)&&void 0!==o?o:16),[!!t,i]),2),O=E[0],A=E[1],T=A.offset,j=A.threshold,P=A.gap,M=O&&(S.length>0||k.length<=j),R="function"==typeof d?d(s):d;return(0,m.useEffect)((function(){O&&S.length>1&&C((function(e){return e.filter((function(e){return k.some((function(t){var r=t.key;return e===r}))}))}))}),[S,k,O]),(0,m.useEffect)((function(){var e,t;O&&v.current[null===(e=k[k.length-1])||void 0===e?void 0:e.key]&&w(v.current[null===(t=k[k.length-1])||void 0===t?void 0:t.key])}),[k,O]),m.createElement(Ul,Te({key:s,className:ze()(l,"".concat(l,"-").concat(s),null==g?void 0:g.list,c,De(De({},"".concat(l,"-stack"),!!O),"".concat(l,"-stack-expanded"),M)),style:u,keys:k,motionAppear:!0},R,{onAllRemoved:function(){f(s)}}),(function(e,t){var r=e.config,n=e.className,o=e.style,i=e.index,a=r,c=a.key,u=a.times,d=String(c),f=r,p=f.className,b=f.style,w=f.classNames,x=f.styles,E=Be(f,ou),A=k.findIndex((function(e){return e.key===d})),j={};if(O){var R=k.length-1-(A>-1?A:i-1),_="top"===s||"bottom"===s?"-50%":"0";if(R>0){var I,N,F;j.height=M?null===(I=v.current[d])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var D=0,B=0;B<R;B++){var L;D+=(null===(L=v.current[k[k.length-1-B].key])||void 0===L?void 0:L.offsetHeight)+P}var z=(M?D:R*T)*(s.startsWith("top")?1:-1),H=!M&&null!=y&&y.offsetWidth&&null!==(N=v.current[d])&&void 0!==N&&N.offsetWidth?((null==y?void 0:y.offsetWidth)-2*T*(R<3?R:3))/(null===(F=v.current[d])||void 0===F?void 0:F.offsetWidth):1;j.transform="translate3d(".concat(_,", ").concat(z,"px, 0) scaleX(").concat(H,")")}else j.transform="translate3d(".concat(_,", 0, 0)")}return m.createElement("div",{ref:t,className:ze()("".concat(l,"-notice-wrapper"),n,null==w?void 0:w.wrapper),style:At(At(At({},o),j),null==x?void 0:x.wrapper),onMouseEnter:function(){return C((function(e){return e.includes(d)?e:[].concat(Vo(e),[d])}))},onMouseLeave:function(){return C((function(e){return e.filter((function(e){return e!==d}))}))}},m.createElement(tu,Te({},E,{ref:function(e){A>-1?v.current[d]=e:delete v.current[d]},prefixCls:l,classNames:w,styles:x,className:ze()(p,null==g?void 0:g.notice),style:b,times:u,key:c,eventKey:c,onNoticeClose:h,hovering:O&&S.length>0})))}))};var au=m.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"rc-notification":r,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ie(m.useState([]),2),h=f[0],p=f[1],g=function(e){var t,r=h.find((function(t){return t.key===e}));null==r||null===(t=r.onClose)||void 0===t||t.call(r),p((function(t){return t.filter((function(t){return t.key!==e}))}))};m.useImperativeHandle(t,(function(){return{open:function(e){p((function(t){var r,n=Vo(t),o=n.findIndex((function(t){return t.key===e.key})),i=At({},e);return o>=0?(i.times=((null===(r=t[o])||void 0===r?void 0:r.times)||0)+1,n[o]=i):(i.times=0,n.push(i)),a>0&&n.length>a&&(n=n.slice(-a)),n}))},close:function(e){g(e)},destroy:function(){p([])}}}));var v=Ie(m.useState({}),2),b=v[0],y=v[1];m.useEffect((function(){var e={};h.forEach((function(t){var r=t.placement,n=void 0===r?"topRight":r;n&&(e[n]=e[n]||[],e[n].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[h]);var w=function(e){y((function(t){var r=At({},t);return(r[e]||[]).length||delete r[e],r}))},x=m.useRef(!1);if(m.useEffect((function(){Object.keys(b).length>0?x.current=!0:x.current&&(null==c||c(),x.current=!1)}),[b]),!o)return null;var S=Object.keys(b);return(0,js.createPortal)(m.createElement(m.Fragment,null,S.map((function(e){var t=b[e],r=m.createElement(iu,{key:e,configList:t,placement:e,prefixCls:n,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:w,stack:u});return d?d(r,{prefixCls:n,key:e}):r}))),o)}));const su=au;var lu=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],cu=function(){return document.body},uu=0;const du=e=>{const[,,,,t]=Ql();return t?`${e}-css-var`:""},fu=m.createContext(void 0),hu=100,pu={Modal:hu,Drawer:hu,Popover:hu,Popconfirm:hu,Tooltip:hu,Tour:hu,FloatButton:hu},mu={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},gu=(e,t)=>{const[,r]=Ql(),n=m.useContext(fu),o=e in pu;let i;if(void 0!==t)i=[t,t];else{let a=null!=n?n:0;a+=o?(n?0:r.zIndexPopupBase)+pu[e]:mu[e],i=[void 0===n?t:a,a]}return i},vu=ri((function e(){ei(this,e)}));var bu="CALC_UNIT",yu=new RegExp(bu,"g");function wu(e){return"number"==typeof e?"".concat(e).concat(bu):e}var xu=function(e){Bs(r,e);var t=Us(r);function r(e,n){var o;ei(this,r),De(Hs(o=t.call(this)),"result",""),De(Hs(o),"unitlessCssVar",void 0),De(Hs(o),"lowPriority",void 0);var i=Ne(e);return o.unitlessCssVar=n,e instanceof r?o.result="(".concat(e.result,")"):"number"===i?o.result=wu(e):"string"===i&&(o.result=e),o}return ri(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(wu(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(wu(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?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 r?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,r=(e||{}).unit,n=!0;return"boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(n=!1),this.result=this.result.replace(yu,n?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),r}(vu);const Su=function(e){Bs(r,e);var t=Us(r);function r(e){var n;return ei(this,r),De(Hs(n=t.call(this)),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return ri(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(vu),Cu=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},ku=function(e,t,r,n){var o=At({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach((function(e){var t,r=Ie(e,2),n=r[0],i=r[1];(null!=o&&o[n]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[n]))}));var i=At(At({},r),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var Eu="undefined"!=typeof CSSINJS_STATISTIC,Ou=!0;function Au(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Eu)return Object.assign.apply(Object,[{}].concat(t));Ou=!1;var n={};return t.forEach((function(e){"object"===Ne(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Ou=!0,n}var Tu={};function ju(){}const Pu=function(e,t,r){var n;return"function"==typeof r?r(Au(t,null!==(n=t[e])&&void 0!==n?n:{})):null!=r?r:{}};var Mu=function(){function e(){ei(this,e),De(this,"map",new Map),De(this,"objectIDMap",new WeakMap),De(this,"nextID",0),De(this,"lastAccessBeat",new Map),De(this,"accessBeat",0)}return ri(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===Ne(e)?"obj_".concat(t.getObjectID(e)):"".concat(Ne(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(r,n){t-r>6e5&&(e.map.delete(n),e.lastAccessBeat.delete(n))})),this.accessBeat=0}}}]),e}(),Ru=new Mu;const _u=function(){return{}},{genStyleHooks:Iu,genComponentStyleHook:Nu,genSubStyleComponent:Fu}=function(e){var t=e.useCSP,r=void 0===t?_u:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(t,s,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Ie(u,1)[0],f=u.join("-"),h=e.layer||{name:"antd"};return function(e){var t,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=n(),v=g.theme,b=g.realToken,y=g.hashId,w=g.token,x=g.cssVar,S=o(),C=S.rootPrefixCls,k=S.iconPrefixCls,E=r(),O=x?"css":"js",A=(t=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach((function(t){e.add(ki(t,x.prefix)),e.add(ki(t,Cu(d,x.prefix)))})),function(e,t){var r="css"===e?xu:Su;return function(e){return new r(e,t)}}(O,e)},u=[O,d,null==x?void 0:x.prefix],m.useMemo((function(){var e=Ru.get(u);if(e)return e;var r=t();return Ru.set(u,r),r}),u)),T=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map((function(e){return Si(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map((function(e){return Si(e)})).join(","),")")}}}(O),j=T.max,P=T.min,M={theme:v,token:w,hashId:y,nonce:function(){return E.nonce},clientOnly:c.clientOnly,layer:h,order:c.order||-999};return"function"==typeof i&&Ia(At(At({},M),{},{clientOnly:!1,path:["Shared",C]}),(function(){return i(w,{prefix:{rootPrefixCls:C,iconPrefixCls:k},csp:E})})),[Ia(At(At({},M),{},{path:[f,e,k]}),(function(){if(!1===c.injectStyle)return[];var t=function(e){var t,r=e,n=ju;return Eu&&"undefined"!=typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){var n;return Ou&&(null===(n=t)||void 0===n||n.add(r)),e[r]}}),n=function(e,r){var n;Tu[e]={global:Array.from(t),component:At(At({},null===(n=Tu[e])||void 0===n?void 0:n.component),r)}}),{token:r,keys:t,flush:n}}(w),r=t.token,n=t.flush,o=Pu(d,b,l),i=".".concat(e),u=ku(d,b,o,{deprecatedTokens:c.deprecatedTokens});x&&o&&"object"===Ne(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(ki(e,Cu(d,x.prefix)),")")}));var f=Au(r,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(C),calc:A,max:j,min:P},x?o:u),h=s(f,{hashId:y,prefixCls:e,rootPrefixCls:C,iconPrefixCls:k});n(d,u);var m="function"==typeof a?a(f,e,p,c.resetFont):null;return[!1===c.resetStyle?null:m,h]})),y]}}return{genStyleHooks:function(e,t,r,o){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var c=(null==o?void 0:o.unitless)||{},u=At(At({},"function"==typeof s?s(e):{}),{},De({},a("zIndexPopup"),!0));Object.keys(c).forEach((function(e){u[a(e)]=c[e]}));var d=At(At({},o),{},{unitless:u,prefixToken:a}),f=l(e,t,r,d),h=function(e,t,r){var o=r.unitless,i=r.injectStyle,a=void 0===i||i,s=r.prefixToken,l=r.ignore,c=function(i){var a=i.rootCls,c=i.cssVar,u=void 0===c?{}:c,d=n().realToken;return function(e,t){var r=e.key,n=e.prefix,o=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,c=(0,m.useContext)(ui),u=c.cache.instanceId,d=c.container,f=a._tokenKey,h=[].concat(Vo(e.path),[r,l,f]),p=Ii(Na,h,(function(){var e=t(),a=Ie(Oi(e,r,{prefix:n,unitless:o,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,Ma(h,c),r]}),(function(e){var t=Ie(e,3)[2];xi&&Bt(t,{mark:si})}),(function(e){var t=Ie(e,3),n=t[1],o=t[2];if(n){var i=Lt(n,o,{mark:si,prepend:"queue",attachTo:d,priority:-999});i[li]=u,i.setAttribute(ai,r)}}))}({path:[e],prefix:u.prefix,key:u.key,unitless:o,ignore:l,token:d,scope:a},(function(){var n=Pu(e,d,t),o=ku(e,d,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null};return function(t){var r=n().cssVar;return[function(n){return a&&r?m.createElement(m.Fragment,null,m.createElement(c,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}(i,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Ie(f(e,t),2)[1],n=Ie(h(t),2);return[n[0],r,n[1]]}},genSubStyleComponent:function(e,t,r){var n=l(e,t,r,At({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,r=e.rootCls;return n(t,void 0===r?t:r),null}},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,m.useContext)(Xo);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Ql();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=(0,m.useContext)(Xo);return null!=e?e:{}},getResetStyles:(e,t)=>{var r;const n=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${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"}}}))(e);return[n,{"&":n},ic(null!==(r=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==r?r:qo)]},getCommonStyle:(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==n&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>Xl}),Du=e=>{const{componentCls:t,iconCls:r,boxShadow:n,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:h,borderRadiusLG:p,zIndexPopup:m,contentPadding:g,contentBg:v}=e,b=`${t}-notice`,y=new Ba("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),w=new Ba("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:f,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:p,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:i},[`${t}-error > ${r}`]:{color:a},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r},\n ${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},rc(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Bu=Iu("Message",(e=>{const t=Au(e,{height:150});return[Du(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));const Lu={info:m.createElement(Gc,null),success:m.createElement(Fc,null),error:m.createElement(Lc,null),warning:m.createElement(Uc,null),loading:m.createElement(Xc,null)},zu=e=>{let{prefixCls:t,type:r,icon:n,children:o}=e;return m.createElement("div",{className:ze()(`${t}-custom-content`,`${t}-${r}`)},n||Lu[r],m.createElement("span",null,o))},Hu={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 Uu=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Hu}))};const Vu=m.forwardRef(Uu);function Wu(e){let t;const r=new Promise((r=>{t=e((()=>{r(!0)}))})),n=()=>{null==t||t()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}const Gu=3,qu=e=>{let{children:t,prefixCls:r}=e;const n=du(r),[o,i,a]=Bu(r,n);return o(m.createElement(nu,{classNames:{list:ze()(i,a,n)}},t))},Ku=(e,t)=>{let{prefixCls:r,key:n}=t;return m.createElement(qu,{prefixCls:r,key:n},e)},Xu=m.forwardRef(((e,t)=>{const{top:r,prefixCls:n,getContainer:o,maxCount:i,duration:a=Gu,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:h}=m.useContext(Xo),p=n||u("message"),g=m.createElement("span",{className:`${p}-close-x`},m.createElement(Vu,{className:`${p}-close-icon`})),[v,b]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?cu:t,n=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=Be(e,lu),f=Ie(m.useState(),2),h=f[0],p=f[1],g=m.useRef(),v=m.createElement(su,{container:h,ref:g,prefixCls:o,motion:n,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=Ie(m.useState([]),2),y=b[0],w=b[1],x=Ws((function(e){var t=function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){t&&Object.keys(t).forEach((function(r){var n=t[r];void 0!==n&&(e[r]=n)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(uu),uu+=1),w((function(e){return[].concat(Vo(e),[{type:"open",config:t}])}))})),S=m.useMemo((function(){return{open:x,close:function(e){w((function(t){return[].concat(Vo(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(Vo(e),[{type:"destroy"}])}))}}}),[]);return m.useEffect((function(){p(r())})),m.useEffect((function(){var e,t;g.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),w((function(r){return e===r&&t||(e=r,t=r.filter((function(e){return!y.includes(e)}))),t})))}),[y]),[S,v]}({prefixCls:p,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>ze()({[`${p}-rtl`]:null!=s?s:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(p,l),closable:!1,closeIcon:g,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:Ku});return m.useImperativeHandle(t,(()=>Object.assign(Object.assign({},v),{prefixCls:p,message:f}))),b}));let Yu=0;function $u(e){const t=m.useRef(null),r=(Ya(),m.useMemo((()=>{const e=e=>{var r;null===(r=t.current)||void 0===r||r.close(e)},r=r=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:d,style:f,onClose:h}=r,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(Yu+=1,g=`antd-message-${Yu}`),Wu((t=>(n(Object.assign(Object.assign({},p),{key:g,content:m.createElement(zu,{prefixCls:o,type:c,icon:l},s),placement:"top",className:ze()(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==h||h(),t()}})),()=>{e(g)})))},n={open:r,destroy:r=>{var n;void 0!==r?e(r):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{n[e]=(t,n,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?s=n:(a=n,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return r(l)}})),n}),[]));return[r,m.createElement(Xu,Object.assign({key:"message-holder"},e,{ref:t}))]}let Zu=null,Qu=e=>e(),Ju=[],ed={};function td(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:o}=ed,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:r,maxCount:n,top:o}}const rd=m.forwardRef(((e,t)=>{const{messageConfig:r,sync:n}=e,{getPrefixCls:o}=(0,m.useContext)(Xo),i=ed.prefixCls||o("message"),a=(0,m.useContext)(Wo),[s,l]=$u(Object.assign(Object.assign(Object.assign({},r),{prefixCls:i}),a.message));return m.useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return n(),s[t].apply(s,arguments)}})),{instance:e,sync:n}})),l})),nd=m.forwardRef(((e,t)=>{const[r,n]=m.useState(td),o=()=>{n(td)};m.useEffect(o,[]);const i=pc(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=m.createElement(rd,{ref:t,sync:o,messageConfig:r});return m.createElement(vc,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}));function od(){if(!Zu){const e=document.createDocumentFragment(),t={fragment:e};return Zu=t,void Qu((()=>{_c()(m.createElement(nd,{ref:e=>{const{instance:r,sync:n}=e||{};Promise.resolve().then((()=>{!t.instance&&r&&(t.instance=r,t.sync=n,od())}))}}),e)}))}Zu.instance&&(Ju.forEach((e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":Qu((()=>{const t=Zu.instance.open(Object.assign(Object.assign({},ed),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":Qu((()=>{null==Zu||Zu.instance.destroy(e.key)}));break;default:Qu((()=>{var r;const n=(r=Zu.instance)[t].apply(r,Vo(e.args));null==n||n.then(e.resolve),e.setCloseFn(n)}))}})),Ju=[])}const id={open:function(e){const t=Wu((t=>{let r;const n={type:"open",config:e,resolve:t,setCloseFn:e=>{r=e}};return Ju.push(n),()=>{r?Qu((()=>{r()})):n.skipped=!0}}));return od(),t},destroy:e=>{Ju.push({type:"destroy",key:e}),od()},config:function(e){ed=Object.assign(Object.assign({},ed),e),Qu((()=>{var e;null===(e=null==Zu?void 0:Zu.sync)||void 0===e||e.call(Zu)}))},useMessage:function(e){return $u(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:r,type:n,icon:o,content:i}=e,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=m.useContext(Xo),l=t||s("message"),c=du(l),[u,d,f]=Bu(l,c);return u(m.createElement(tu,Object.assign({},a,{prefixCls:l,className:ze()(r,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:m.createElement(zu,{prefixCls:l,type:n,icon:o},i)})))}};["success","info","warning","error","loading"].forEach((e=>{id[e]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e,t){pc();const r=Wu((r=>{let n;const o={type:e,args:t,resolve:r,setCloseFn:e=>{n=e}};return Ju.push(o),()=>{n?Qu((()=>{n()})):o.skipped=!0}}));return od(),r}(e,r)}}));const ad=id;function sd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return m.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?r=r.concat(sd(e)):wn(e)&&e.props?r=r.concat(sd(e.props.children,t)):r.push(e))})),r}var ld="RC_FORM_INTERNAL_HOOKS",cd=function(){Xt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const ud=m.createContext({getFieldValue:cd,getFieldsValue:cd,getFieldError:cd,getFieldWarning:cd,getFieldsError:cd,isFieldsTouched:cd,isFieldTouched:cd,isFieldValidating:cd,isFieldsValidating:cd,resetFields:cd,setFields:cd,setFieldValue:cd,setFieldsValue:cd,validateFields:cd,submit:cd,getInternalHooks:function(){return cd(),{dispatch:cd,initEntityValue:cd,registerField:cd,useSubscribe:cd,setInitialValues:cd,destroyForm:cd,setCallbacks:cd,registerWatch:cd,getFields:cd,setValidateMessages:cd,setPreserve:cd,getInitialValue:cd}}}),dd=m.createContext(null);function fd(e){return null==e?[]:Array.isArray(e)?e:[e]}function hd(){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 pd=hd();function md(e){var t="function"==typeof Map?new Map:void 0;return md=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){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,r)}function r(){return function(e,t,r){if(zs())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ds(o,r.prototype),o}(e,arguments,Ls(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ds(r,e)},md(e)}var gd=/%[sdj%]/g;function vd(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var r=e.field;t[r]=t[r]||[],t[r].push(e)})),t}function bd(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;return"function"==typeof e?e.apply(null,r):"string"==typeof e?e.replace(gd,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function yd(e,t){return 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 wd(e,t,r){var n=0,o=e.length;!function i(a){if(a&&a.length)r(a);else{var s=n;n+=1,s<o?t(e[s],i):r([])}}([])}"undefined"!=typeof process&&process.env;var xd=function(e){Bs(r,e);var t=Us(r);function r(e,n){var o;return ei(this,r),De(Hs(o=t.call(this,"Async Validation Error")),"errors",void 0),De(Hs(o),"fields",void 0),o.errors=e,o.fields=n,o}return ri(r)}(md(Error));function Sd(e,t){return function(r){var n,o;return n=e.fullFields?function(e,t){for(var r=e,n=0;n<t.length;n++){if(null==r)return r;r=r[t[n]]}return r}(t,e.fullFields):t[r.field||e.fullField],(o=r)&&void 0!==o.message?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:"function"==typeof r?r():r,fieldValue:n,field:r.field||e.fullField}}}function Cd(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];"object"===Ne(n)&&"object"===Ne(e[r])?e[r]=At(At({},e[r]),n):e[r]=n}return e}var kd="enum";const Ed=function(e,t,r,n,o,i){!e.required||r.hasOwnProperty(e.field)&&!yd(t,i||e.type)||n.push(bd(o.messages.required,e.fullField))};var Od,Ad=/^(([^<>()\[\]\\.,;:\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,}))$/,Td=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jd={integer:function(e){return jd.number(e)&&parseInt(e,10)===e},float:function(e){return jd.number(e)&&!jd.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){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"===Ne(e)&&!jd.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Ad)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Od)return Od;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(r,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(r).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(r).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).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 Od=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Td)}};const Pd=Ed,Md=function(e,t,r,n,o){(/^\s+$/.test(t)||""===t)&&n.push(bd(o.messages.whitespace,e.fullField))},Rd=function(e,t,r,n,o){if(e.required&&void 0===t)Ed(e,t,r,n,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?jd[i](t)||n.push(bd(o.messages.types[i],e.fullField,e.type)):i&&Ne(t)!==e.type&&n.push(bd(o.messages.types[i],e.fullField,e.type))}},_d=function(e,t,r,n,o){var i="number"==typeof e.len,a="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),i?l!==e.len&&n.push(bd(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?n.push(bd(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?n.push(bd(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&n.push(bd(o.messages[c].range,e.fullField,e.min,e.max))},Id=function(e,t,r,n,o){e[kd]=Array.isArray(e[kd])?e[kd]:[],-1===e[kd].indexOf(t)&&n.push(bd(o.messages[kd],e.fullField,e[kd].join(", ")))},Nd=function(e,t,r,n,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(bd(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(bd(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Fd=function(e,t,r,n,o){var i=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t,i)&&!e.required)return r();Pd(e,t,n,a,o,i),yd(t,i)||Rd(e,t,n,a,o)}r(a)},Dd={string:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t,"string")&&!e.required)return r();Pd(e,t,n,i,o,"string"),yd(t,"string")||(Rd(e,t,n,i,o),_d(e,t,n,i,o),Nd(e,t,n,i,o),!0===e.whitespace&&Md(e,t,n,i,o))}r(i)},method:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&Rd(e,t,n,i,o)}r(i)},number:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&(Rd(e,t,n,i,o),_d(e,t,n,i,o))}r(i)},boolean:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&Rd(e,t,n,i,o)}r(i)},regexp:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),yd(t)||Rd(e,t,n,i,o)}r(i)},integer:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&(Rd(e,t,n,i,o),_d(e,t,n,i,o))}r(i)},float:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&(Rd(e,t,n,i,o),_d(e,t,n,i,o))}r(i)},array:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();Pd(e,t,n,i,o,"array"),null!=t&&(Rd(e,t,n,i,o),_d(e,t,n,i,o))}r(i)},object:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&Rd(e,t,n,i,o)}r(i)},enum:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o),void 0!==t&&Id(e,t,n,i,o)}r(i)},pattern:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t,"string")&&!e.required)return r();Pd(e,t,n,i,o),yd(t,"string")||Nd(e,t,n,i,o)}r(i)},date:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t,"date")&&!e.required)return r();var a;Pd(e,t,n,i,o),yd(t,"date")||(a=t instanceof Date?t:new Date(t),Rd(e,a,n,i,o),a&&_d(e,a.getTime(),n,i,o))}r(i)},url:Fd,hex:Fd,email:Fd,required:function(e,t,r,n,o){var i=[],a=Array.isArray(t)?"array":Ne(t);Pd(e,t,n,i,o,a),r(i)},any:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return r();Pd(e,t,n,i,o)}r(i)}};var Bd=function(){function e(t){ei(this,e),De(this,"rules",null),De(this,"_messages",pd),this.define(t)}return ri(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Ne(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]}))}},{key:"messages",value:function(e){return e&&(this._messages=Cd(hd(),e)),this._messages}},{key:"validate",value:function(t){var r=this,n=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,n),Promise.resolve(n);if(o.messages){var a=this.messages();a===pd&&(a=hd()),Cd(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=r.rules[e],i=n[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(n===t&&(n=At({},n)),null!=(i=n[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":Ne(i)))),(a="function"==typeof a?{validator:a}:At({},a)).validator=r.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=r.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:n,field:e}))}))}));var l={};return function(e,t,r,n,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(r){t.push.apply(t,Vo(e[r]||[]))})),t}(e);wd(a,r,(function(e){return n(e),e.length?i(new xd(e,vd(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return n(u),u.length?i(new xd(u,vd(u))):t(o)};s.length||(n(u),t(o)),s.forEach((function(t){var n=e[t];-1!==a.indexOf(t)?wd(n,r,d):function(e,t,r){var n=[],o=0,i=e.length;function a(e){n.push.apply(n,Vo(e||[])),++o===i&&r(n)}e.forEach((function(e){t(e,a)}))}(n,r,d)}))}));return d.catch((function(e){return e})),d}(s,o,(function(t,r){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==Ne(a.fields)&&"object"!==Ne(a.defaultField));function c(e,t){return At(At({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Vo(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Sd(a,n));if(o.first&&d.length)return l[a.field]=1,r(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Sd(a,n)):o.error&&(d=[o.error(a,bd(o.messages.required,a.field))]),r(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=At(At({},f),t.rule.fields);var h={};Object.keys(f).forEach((function(e){var t=f[e],r=Array.isArray(t)?t:[t];h[e]=r.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,Vo(d)),e&&e.length&&t.push.apply(t,Vo(e)),r(t.length?t:null)}))}else r(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],r={};function o(e){var r;Array.isArray(e)?t=(r=t).concat.apply(r,Vo(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(r=vd(t),i(t,r)):i(null,n)}(e)}),n)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Dd.hasOwnProperty(e.type))throw new Error(bd("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),r=t.indexOf("message");return-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0]?Dd.required:Dd[this.getType(e)]||void 0}}]),e}();De(Bd,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Dd[e]=t})),De(Bd,"warning",(function(){})),De(Bd,"messages",pd),De(Bd,"validators",Dd);var Ld="'${name}' is not a valid ${type}",zd={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:Ld,method:Ld,array:Ld,object:Ld,number:Ld,date:Ld,boolean:Ld,integer:Ld,float:Ld,regexp:Ld,email:Ld,url:Ld,hex:Ld},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}"}},Hd=Bd;function Ud(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var r=e.slice(2,-1);return t[r]}))}var Vd="CODE_LOGIC_ERROR";function Wd(e,t,r,n,o){return Gd.apply(this,arguments)}function Gd(){return Gd=wc(bc().mark((function e(t,r,n,o,i){var a,s,l,c,u,d,f,h,p;return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=At({},n)).ruleIndex,Hd.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Vd)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Hd(De({},t,[a])),u=qa(zd,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(De({},t,r),At({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var r=e.message,n=r===Vd?u.default:r;return m.isValidElement(n)?m.cloneElement(n,{key:"error_".concat(t)}):n})));case 18:if(d.length||!l){e.next=23;break}return e.next=21,Promise.all(r.map((function(e,r){return Wd("".concat(t,".").concat(r),e,l,o,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Vo(e),Vo(t))}),[]));case 23:return h=At(At({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),p=d.map((function(e){return"string"==typeof e?Ud(e,h):e})),e.abrupt("return",p);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Gd.apply(this,arguments)}function qd(e,t,r,n,o,i){var a,s=e.join("."),l=r.map((function(e,t){var r=e.validator,n=At(At({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var o=!1,i=r(e,t,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Promise.resolve().then((function(){Xt(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||n.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,Xt(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){n()})).catch((function(e){n(e||" ")}))}),n})).sort((function(e,t){var r=e.warningOnly,n=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!r==!!o?n-i:r?1:-1}));if(!0===o)a=new Promise(function(){var e=wc(bc().mark((function e(r,o){var a,c,u;return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Wd(s,t,c,n,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:r([]);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return Wd(s,t,e,n,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Xd.apply(this,arguments)}(c):function(e){return Kd.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Kd(){return(Kd=wc(bc().mark((function e(t){return bc().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,Vo(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xd(){return(Xd=wc(bc().mark((function e(t){var r;return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=0,e.abrupt("return",new Promise((function(e){t.forEach((function(n){n.then((function(n){n.errors.length&&e([n]),(r+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yd(e){return fd(e)}function $d(e,t){var r={};return t.forEach((function(t){var n=Ha(e,t);r=Va(r,t,n)})),r}function Zd(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Qd(t,e,r)}))}function Qd(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,r){return e[r]===t}))}function Jd(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Ne(t.target)&&e in t.target?t.target[e]:t}function ef(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(Vo(e.slice(0,r)),[o],Vo(e.slice(r,t)),Vo(e.slice(t+1,n))):i<0?[].concat(Vo(e.slice(0,t)),Vo(e.slice(t+1,r+1)),[o],Vo(e.slice(r+1,n))):e}var tf=["name"],rf=[];function nf(e,t,r,n,o,i){return"function"==typeof e?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var of=function(e){Bs(r,e);var t=Us(r);function r(e){var n;return ei(this,r),De(Hs(n=t.call(this,e)),"state",{resetCount:0}),De(Hs(n),"cancelRegisterFunc",null),De(Hs(n),"mounted",!1),De(Hs(n),"touched",!1),De(Hs(n),"dirty",!1),De(Hs(n),"validatePromise",void 0),De(Hs(n),"prevValidating",void 0),De(Hs(n),"errors",rf),De(Hs(n),"warnings",rf),De(Hs(n),"cancelRegister",(function(){var e=n.props,t=e.preserve,r=e.isListField,o=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,Yd(o)),n.cancelRegisterFunc=null})),De(Hs(n),"getNamePath",(function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName;return void 0!==t?[].concat(Vo(void 0===r?[]:r),Vo(t)):[]})),De(Hs(n),"getRules",(function(){var e=n.props,t=e.rules,r=void 0===t?[]:t,o=e.fieldContext;return r.map((function(e){return"function"==typeof e?e(o):e}))})),De(Hs(n),"refresh",(function(){n.mounted&&n.setState((function(e){return{resetCount:e.resetCount+1}}))})),De(Hs(n),"metaCache",null),De(Hs(n),"triggerMetaEvent",(function(e){var t=n.props.onMetaChange;if(t){var r=At(At({},n.getMeta()),{},{destroy:e});Jo(n.metaCache,r)||t(r),n.metaCache=r}else n.metaCache=null})),De(Hs(n),"onStoreChange",(function(e,t,r){var o=n.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=r.store,u=n.getNamePath(),d=n.getValue(e),f=n.getValue(c),h=t&&Zd(t,u);switch("valueUpdate"!==r.type||"external"!==r.source||Jo(d,f)||(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=rf,n.warnings=rf,n.triggerMetaEvent()),r.type){case"reset":if(!t||h)return n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=rf,n.warnings=rf,n.triggerMetaEvent(),null==l||l(),void n.refresh();break;case"remove":if(i&&nf(i,e,c,d,f,r))return void n.reRender();break;case"setField":var p=r.data;if(h)return"touched"in p&&(n.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(n.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(n.errors=p.errors||rf),"warnings"in p&&(n.warnings=p.warnings||rf),n.dirty=!0,n.triggerMetaEvent(),void n.reRender();if("value"in p&&Zd(t,u,!0))return void n.reRender();if(i&&!u.length&&nf(i,e,c,d,f,r))return void n.reRender();break;case"dependenciesUpdate":if(s.map(Yd).some((function(e){return Zd(r.relatedFields,e)})))return void n.reRender();break;default:if(h||(!s.length||u.length||i)&&nf(i,e,c,d,f,r))return void n.reRender()}!0===i&&n.reRender()})),De(Hs(n),"validateRules",(function(e){var t=n.getNamePath(),r=n.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(wc(bc().mark((function o(){var a,s,c,u,d,f,h;return bc().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=n.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,f=n.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||fd(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(n.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(h=qd(t,r,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rf;if(n.validatePromise===l){var t;n.validatePromise=null;var r=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors,i=void 0===n?rf:n;t?o.push.apply(o,Vo(i)):r.push.apply(r,Vo(i))})),n.errors=r,n.warnings=o,n.triggerMetaEvent(),n.reRender()}})),o.abrupt("return",h);case 13:case"end":return o.stop()}}),o)}))));return s||(n.validatePromise=l,n.dirty=!0,n.errors=rf,n.warnings=rf,n.triggerMetaEvent(),n.reRender()),l})),De(Hs(n),"isFieldValidating",(function(){return!!n.validatePromise})),De(Hs(n),"isFieldTouched",(function(){return n.touched})),De(Hs(n),"isFieldDirty",(function(){return!(!n.dirty&&void 0===n.props.initialValue)||void 0!==(0,n.props.fieldContext.getInternalHooks(ld).getInitialValue)(n.getNamePath())})),De(Hs(n),"getErrors",(function(){return n.errors})),De(Hs(n),"getWarnings",(function(){return n.warnings})),De(Hs(n),"isListField",(function(){return n.props.isListField})),De(Hs(n),"isList",(function(){return n.props.isList})),De(Hs(n),"isPreserve",(function(){return n.props.preserve})),De(Hs(n),"getMeta",(function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}})),De(Hs(n),"getOnlyChild",(function(e){if("function"==typeof e){var t=n.getMeta();return At(At({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=sd(e);return 1===r.length&&m.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),De(Hs(n),"getValue",(function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return Ha(e||t(!0),r)})),De(Hs(n),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=n.getNamePath(),h=u.getInternalHooks,p=u.getFieldsValue,m=h(ld).dispatch,g=n.getValue(),v=c||function(e){return De({},l,e)},b=e[o],y=void 0!==r?v(g):{},w=At(At({},e),y);return w[o]=function(){var e;n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e=a?a.apply(void 0,r):Jd.apply(void 0,[l].concat(r)),s&&(e=s(e,g,p(!0))),e!==g&&m({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,r)},fd(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var r=n.props.rules;r&&r.length&&m({type:"validateField",namePath:f,triggerName:e})}})),w})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(ld).initEntityValue)(Hs(n)),n}return ri(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,r=e.fieldContext;if(this.mounted=!0,r){var n=(0,r.getInternalHooks)(ld).registerField;this.cancelRegisterFunc=n(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 e,t=this.state.resetCount,r=this.props.children,n=this.getOnlyChild(r),o=n.child;return n.isFunction?e=o:m.isValidElement(o)?e=m.cloneElement(o,this.getControlled(o.props)):(Xt(!o,"`children` of Field is not validate ReactElement."),e=o),m.createElement(m.Fragment,{key:t},e)}}]),r}(m.Component);De(of,"contextType",ud),De(of,"defaultProps",{trigger:"onChange",valuePropName:"value"});const af=function(e){var t,r=e.name,n=Be(e,tf),o=m.useContext(ud),i=m.useContext(dd),a=void 0!==r?Yd(r):void 0,s=null!==(t=n.isListField)&&void 0!==t?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),m.createElement(of,Te({key:l,name:a,isListField:s},n,{fieldContext:o}))},sf=function(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=m.useContext(ud),l=m.useContext(dd),c=m.useRef({keys:[],id:0}).current,u=m.useMemo((function(){var e=Yd(s.prefixName)||[];return[].concat(Vo(e),Vo(Yd(t)))}),[s.prefixName,t]),d=m.useMemo((function(){return At(At({},s),{},{prefixName:u})}),[s,u]),f=m.useMemo((function(){return{getKey:function(e){var t=u.length,r=e[t];return[c.keys[r],e.slice(t+1)]}}}),[u]);return"function"!=typeof n?(Xt(!1,"Form.List only accepts function as children."),null):m.createElement(dd.Provider,{value:f},m.createElement(ud.Provider,{value:d},m.createElement(af,{name:[],shouldUpdate:function(e,t,r){return"internal"!==r.source&&e!==t},rules:o,validateTrigger:i,initialValue:r,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var r=e.value,o=void 0===r?[]:r,i=e.onChange,a=s.getFieldValue,l=function(){return a(u||[])||[]},d={add:function(e,t){var r=l();t>=0&&t<=r.length?(c.keys=[].concat(Vo(c.keys.slice(0,t)),[c.id],Vo(c.keys.slice(t))),i([].concat(Vo(r.slice(0,t)),[e],Vo(r.slice(t))))):(c.keys=[].concat(Vo(c.keys),[c.id]),i([].concat(Vo(r),[e]))),c.id+=1},remove:function(e){var t=l(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((function(e,t){return!r.has(t)})),i(t.filter((function(e,t){return!r.has(t)}))))},move:function(e,t){if(e!==t){var r=l();e<0||e>=r.length||t<0||t>=r.length||(c.keys=ef(c.keys,e,t),i(ef(r,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),n(f.map((function(e,t){var r=c.keys[t];return void 0===r&&(c.keys[t]=c.id,r=c.keys[t],c.id+=1),{name:t,key:r,isListField:!0}})),d,t)}))))};var lf="__@field_split__";function cf(e){return e.map((function(e){return"".concat(Ne(e),":").concat(e)})).join(lf)}var uf=function(){function e(){ei(this,e),De(this,"kvs",new Map)}return ri(e,[{key:"set",value:function(e,t){this.kvs.set(cf(e),t)}},{key:"get",value:function(e){return this.kvs.get(cf(e))}},{key:"update",value:function(e,t){var r=t(this.get(e));r?this.set(e,r):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(cf(e))}},{key:"map",value:function(e){return Vo(this.kvs.entries()).map((function(t){var r=Ie(t,2),n=r[0],o=r[1],i=n.split(lf);return e({key:i.map((function(e){var t=Ie(e.match(/^([^:]*):(.*)$/),3),r=t[1],n=t[2];return"number"===r?Number(n):n})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var r=t.key,n=t.value;return e[r.join(".")]=n,null})),e}}]),e}();const df=uf;var ff=["name"],hf=ri((function e(t){var r=this;ei(this,e),De(this,"formHooked",!1),De(this,"forceRootUpdate",void 0),De(this,"subscribable",!0),De(this,"store",{}),De(this,"fieldEntities",[]),De(this,"initialValues",{}),De(this,"callbacks",{}),De(this,"validateMessages",null),De(this,"preserve",null),De(this,"lastValidatePromise",null),De(this,"getForm",(function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}})),De(this,"getInternalHooks",(function(e){return e===ld?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Xt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),De(this,"useSubscribe",(function(e){r.subscribable=e})),De(this,"prevWithoutPreserves",null),De(this,"setInitialValues",(function(e,t){if(r.initialValues=e||{},t){var n,o=qa(e,r.store);null===(n=r.prevWithoutPreserves)||void 0===n||n.map((function(t){var r=t.key;o=Va(o,r,Ha(e,r))})),r.prevWithoutPreserves=null,r.updateStore(o)}})),De(this,"destroyForm",(function(e){if(e)r.updateStore({});else{var t=new df;r.getFieldEntities(!0).forEach((function(e){r.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),r.prevWithoutPreserves=t}})),De(this,"getInitialValue",(function(e){var t=Ha(r.initialValues,e);return e.length?qa(t):t})),De(this,"setCallbacks",(function(e){r.callbacks=e})),De(this,"setValidateMessages",(function(e){r.validateMessages=e})),De(this,"setPreserve",(function(e){r.preserve=e})),De(this,"watchList",[]),De(this,"registerWatch",(function(e){return r.watchList.push(e),function(){r.watchList=r.watchList.filter((function(t){return t!==e}))}})),De(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach((function(r){r(t,n,e)}))}})),De(this,"timeoutId",null),De(this,"warningUnhooked",(function(){})),De(this,"updateStore",(function(e){r.store=e})),De(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?r.fieldEntities.filter((function(e){return e.getNamePath().length})):r.fieldEntities})),De(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new df;return r.getFieldEntities(e).forEach((function(e){var r=e.getNamePath();t.set(r,e)})),t})),De(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map((function(e){var r=Yd(e);return t.get(r)||{INVALIDATE_NAME_PATH:Yd(e)}}))})),De(this,"getFieldsValue",(function(e,t){var n,o,i;if(r.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,o=t):e&&"object"===Ne(e)&&(i=e.strict,o=e.filter),!0===n&&!o)return r.store;var a=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),s=[];return a.forEach((function(e){var t,r,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!n&&null!==(t=(r=e).isListField)&&void 0!==t&&t.call(r))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)})),$d(r.store,s.map(Yd))})),De(this,"getFieldValue",(function(e){r.warningUnhooked();var t=Yd(e);return Ha(r.store,t)})),De(this,"getFieldsError",(function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map((function(t,r){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Yd(e[r]),errors:[],warnings:[]}}))})),De(this,"getFieldError",(function(e){r.warningUnhooked();var t=Yd(e);return r.getFieldsError([t])[0].errors})),De(this,"getFieldWarning",(function(e){r.warningUnhooked();var t=Yd(e);return r.getFieldsError([t])[0].warnings})),De(this,"isFieldsTouched",(function(){r.warningUnhooked();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Yd),s=!1):(o=null,s=i):(o=i.map(Yd),s=a);var l=r.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 df;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(r){r.every((function(e,r){return t[r]===e}))&&u.update(r,(function(t){return[].concat(Vo(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),De(this,"isFieldTouched",(function(e){return r.warningUnhooked(),r.isFieldsTouched([e])})),De(this,"isFieldsValidating",(function(e){r.warningUnhooked();var t=r.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var n=e.map(Yd);return t.some((function(e){var t=e.getNamePath();return Zd(n,t)&&e.isFieldValidating()}))})),De(this,"isFieldValidating",(function(e){return r.warningUnhooked(),r.isFieldsValidating([e])})),De(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new df,o=r.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var o=n.get(r)||new Set;o.add({entity:e,value:t}),n.set(r,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var r,o=n.get(t);o&&(r=e).push.apply(r,Vo(Vo(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==r.getInitialValue(o))Xt(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=n.get(o);if(i&&i.size>1)Xt(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=r.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||r.updateStore(Va(r.store,o,Vo(i)[0].value))}}}}))})),De(this,"resetFields",(function(e){r.warningUnhooked();var t=r.store;if(!e)return r.updateStore(qa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),void r.notifyWatch();var n=e.map(Yd);n.forEach((function(e){var t=r.getInitialValue(e);r.updateStore(Va(r.store,e,t))})),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)})),De(this,"setFields",(function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach((function(e){var o=e.name,i=Be(e,ff),a=Yd(o);n.push(a),"value"in i&&r.updateStore(Va(r.store,a,i.value)),r.notifyObservers(t,[a],{type:"setField",data:e})})),r.notifyWatch(n)})),De(this,"getFields",(function(){return r.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),n=At(At({},e.getMeta()),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(n,"originRCField",{value:!0}),n}))})),De(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===Ha(r.store,n)&&r.updateStore(Va(r.store,n,t))}})),De(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:r.preserve;return null==t||t})),De(this,"registerField",(function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter((function(t){return t!==e})),!r.isMergedPreserve(o)&&(!n||i.length>1)){var a=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==a&&r.fieldEntities.every((function(e){return!Qd(e.getNamePath(),t)}))){var s=r.store;r.updateStore(Va(s,t,a,!0)),r.notifyObservers(s,[t],{type:"remove"}),r.triggerDependenciesUpdate(s,t)}}r.notifyWatch([t])}})),De(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var o=e.namePath,i=e.triggerName;r.validateFields([o],{triggerName:i})}})),De(this,"notifyObservers",(function(e,t,n){if(r.subscribable){var o=At(At({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach((function(r){(0,r.onStoreChange)(e,t,o)}))}else r.forceRootUpdate()})),De(this,"triggerDependenciesUpdate",(function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat(Vo(n))}),n})),De(this,"updateValue",(function(e,t){var n=Yd(e),o=r.store;r.updateStore(Va(r.store,n,t)),r.notifyObservers(o,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var i=r.triggerDependenciesUpdate(o,n),a=r.callbacks.onValuesChange;a&&a($d(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat(Vo(i)))})),De(this,"setFieldsValue",(function(e){r.warningUnhooked();var t=r.store;if(e){var n=qa(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()})),De(this,"setFieldValue",(function(e,t){r.setFields([{name:e,value:t,errors:[],warnings:[]}])})),De(this,"getDependencyChildrenFields",(function(e){var t=new Set,n=[],o=new df;return r.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var r=Yd(t);o.update(r,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(r){(o.get(r)||new Set).forEach((function(r){if(!t.has(r)){t.add(r);var o=r.getNamePath();r.isFieldDirty()&&o.length&&(n.push(o),e(o))}}))}(e),n})),De(this,"triggerOnFieldsChange",(function(e,t){var n=r.callbacks.onFieldsChange;if(n){var o=r.getFields();if(t){var i=new df;t.forEach((function(e){var t=e.name,r=e.errors;i.set(t,r)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var r=t.name;return Zd(e,r)}));a.length&&n(a,o)}})),De(this,"validateFields",(function(e,t){var n,o;r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(n=e,o=t):o=e;var i=!!n,a=i?n.map(Yd):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;r.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Zd(a,t,d)){var n=e.validateRules(At({validateMessages:At(At({},zd),r.validateMessages)},o));s.push(n.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var r,n=[],o=[];return null===(r=e.forEach)||void 0===r||r.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors;t?o.push.apply(o,Vo(r)):n.push.apply(n,Vo(r))})),n.length?Promise.reject({name:t,errors:n,warnings:o}):{name:t,errors:n,warnings:o}})))}}}));var h=function(e){var t=!1,r=e.length,n=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){r-=1,n[a]=e,r>0||(t&&i(n),o(n))}))}))})):Promise.resolve([])}(s);r.lastValidatePromise=h,h.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)}));var p=h.then((function(){return r.lastValidatePromise===h?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:r.getFieldsValue(a),errorFields:t,outOfDate:r.lastValidatePromise!==h})}));p.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return r.triggerOnFieldsChange(m),p})),De(this,"submit",(function(){r.warningUnhooked(),r.validateFields().then((function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=r.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const pf=function(e){var t=m.useRef(),r=Ie(m.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var n=new hf((function(){r({})}));t.current=n.getForm()}return[t.current]};var mf=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),gf=function(e){var t=e.validateMessages,r=e.onFormChange,n=e.onFormFinish,o=e.children,i=m.useContext(mf),a=m.useRef({});return m.createElement(mf.Provider,{value:At(At({},i),{},{validateMessages:At(At({},i.validateMessages),t),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=At(At({},a.current),{},De({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=At({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)};const vf=mf;var bf=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const yf=function(e,t){var r=e.name,n=e.initialValues,o=e.fields,i=e.form,a=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,h=e.onValuesChange,p=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,y=Be(e,bf),w=m.useRef(null),x=m.useContext(vf),S=Ie(pf(i),1)[0],C=S.getInternalHooks(ld),k=C.useSubscribe,E=C.setInitialValues,O=C.setCallbacks,A=C.setValidateMessages,T=C.setPreserve,j=C.destroyForm;m.useImperativeHandle(t,(function(){return At(At({},S),{},{nativeElement:w.current})})),m.useEffect((function(){return x.registerForm(r,S),function(){x.unregisterForm(r)}}),[x,S,r]),A(At(At({},x.validateMessages),u)),O({onValuesChange:h,onFieldsChange:function(e){if(x.triggerFormChange(r,e),p){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];p.apply(void 0,[e].concat(n))}},onFinish:function(e){x.triggerFormFinish(r,e),g&&g(e)},onFinishFailed:v}),T(a);var P,M=m.useRef(null);E(n,!M.current),M.current||(M.current=!0),m.useEffect((function(){return function(){return j(b)}}),[]);var R="function"==typeof s;P=R?s(S.getFieldsValue(!0),S):s,k(!R);var _=m.useRef();m.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Ne(e)||"object"!==Ne(t))return!1;var r=Object.keys(e),n=Object.keys(t);return Vo(new Set([].concat(r,n))).every((function(r){var n=e[r],o=t[r];return"function"==typeof n&&"function"==typeof o||n===o}))})(_.current||[],o||[])||S.setFields(o||[]),_.current=o}),[o,S]);var I=m.useMemo((function(){return At(At({},S),{},{validateTrigger:f})}),[S,f]),N=m.createElement(dd.Provider,{value:null},m.createElement(ud.Provider,{value:I},P));return!1===c?N:m.createElement(c,Te({},y,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()},onReset:function(e){var t;e.preventDefault(),S.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),N)};function wf(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}const xf=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,s=a.form,l=Ie((0,m.useState)(),2),c=l[0],u=l[1],d=(0,m.useMemo)((function(){return wf(c)}),[c]),f=(0,m.useRef)(d);f.current=d;var h=(0,m.useContext)(ud),p=s||h,g=p&&p._init,v=Yd(n),b=(0,m.useRef)(v);return b.current=v,(0,m.useEffect)((function(){if(g){var e=p.getFieldsValue,t=(0,p.getInternalHooks)(ld).registerWatch,r=function(e,t){var r=a.preserve?t:e;return"function"==typeof n?n(r):Ha(r,b.current)},o=t((function(e,t){var n=r(e,t),o=wf(n);f.current!==o&&(f.current=o,u(n))})),i=r(e(),e(!0));return c!==i&&u(i),o}}),[g]),c};var Sf=m.forwardRef(yf);Sf.FormProvider=gf,Sf.Field=af,Sf.List=sf,Sf.useForm=pf,Sf.useWatch=xf;const Cf=Sf;function kf(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete r[e]})),r}const Ef=m.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Of=m.createContext(null),Af=e=>{const t=kf(e,["prefixCls"]);return m.createElement(gf,Object.assign({},t))},Tf=m.createContext({prefixCls:""}),jf=m.createContext({}),Pf=e=>{let{children:t,status:r,override:n}=e;const o=m.useContext(jf),i=m.useMemo((()=>{const e=Object.assign({},o);return n&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,n,o]);return m.createElement(jf.Provider,{value:i},t)},Mf=m.createContext(void 0),Rf=e=>{const t=m.useContext(Es);return m.useMemo((()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t),[e,t])},_f=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},If=e=>{const{componentCls:t,antCls:r}=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"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Nf=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}}}},Ff=Iu("Space",(e=>{const t=Au(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[If(t),Nf(t),_f(t)]}),(()=>({})),{resetStyle:!1});var Df=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const Bf=m.createContext(null),Lf=(e,t)=>{const r=m.useContext(Bf),n=m.useMemo((()=>{if(!r)return"";const{compactDirection:n,isFirstItem:o,isLastItem:i}=r,a="vertical"===n?"-vertical-":"-";return ze()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:n}},zf=e=>{const{children:t}=e;return m.createElement(Bf.Provider,{value:null},t)},Hf=e=>{const{children:t}=e,r=Df(e,["children"]);return m.createElement(Bf.Provider,{value:m.useMemo((()=>r),[r])},t)},Uf=e=>{const{space:t,form:r,children:n}=e;if(null==n)return null;let o=n;return r&&(o=m.createElement(Pf,{override:!0,status:!0},o)),t&&(o=m.createElement(zf,null,o)),o};function Vf(e){return t=>m.createElement(vc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},t)))}const Wf=(e,t,r,n,o)=>Vf((i=>{const{prefixCls:a,style:s}=i,l=m.useRef(null),[c,u]=m.useState(0),[d,f]=m.useState(0),[h,p]=Ks(!1,{value:i.open}),{getPrefixCls:g}=m.useContext(Xo),v=g(n||"select",a);m.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 r;const n=o?`.${o(v)}`:`.${v}-dropdown`,i=null===(r=l.current)||void 0===r?void 0:r.querySelector(n);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});r&&(b=r(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:c,position:"relative",minWidth:d};return m.createElement("div",{ref:l,style:y},m.createElement(e,Object.assign({},b)))}));function Gf(e,t,r){return ze()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}const qf=(e,t)=>t||e,Kf=e=>e?"function"==typeof e?e():e:null,Xf=()=>({height:0,opacity:0}),Yf=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},$f=e=>({height:e?e.offsetHeight:0}),Zf=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Qf=(e,t,r)=>void 0!==r?r:`${e}-${t}`,Jf=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Go}-motion-collapse`,onAppearStart:Xf,onEnterStart:Xf,onAppearActive:Yf,onEnterActive:Yf,onLeaveStart:$f,onLeaveActive:Xf,onAppearEnd:Zf,onEnterEnd:Zf,onLeaveEnd:Zf,motionDeadline:500}};function eh(e){return e&&m.isValidElement(e)&&e.type===m.Fragment}function th(e,t){return((e,t,r)=>m.isValidElement(e)?m.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t)(e,e,t)}function rh(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return m.createElement("div",{className:ze()("".concat(r,"-content"),a),style:s},m.createElement("div",{className:ze()("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},"function"==typeof t?t():t))}const nh=m.createContext(null);var oh=[];var ih="rc-util-locker-".concat(Date.now()),ah=0;function sh(e){var t=!!e,r=Ie(m.useState((function(){return ah+=1,"".concat(ih,"_").concat(ah)})),1)[0];Pi((function(){if(t){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n,o,i=r.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.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,";"):"";Lt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),n=l,o=c}}document.body.appendChild(r);var f=e&&n&&!isNaN(n)?n:r.offsetWidth-r.clientWidth,h=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Bt(t),{width:f,height:h}}(o):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Lt("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else Bt(r);var o;return function(){Bt(r)}}),[t,r])}var lh=!1,ch=function(e){return!1!==e&&(Tt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},uh=m.forwardRef((function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,s=e.children,l=Ie(m.useState(r),2),c=l[0],u=l[1],d=c||r;m.useEffect((function(){(a||r)&&u(r)}),[r,a]);var f=Ie(m.useState((function(){return ch(o)})),2),h=f[0],p=f[1];m.useEffect((function(){var e=ch(o);p(null!=e?e:null)}));var g=function(e){var t=Ie(m.useState((function(){return Tt()?document.createElement("div"):null})),1)[0],r=m.useRef(!1),n=m.useContext(nh),o=Ie(m.useState(oh),2),i=o[0],a=o[1],s=n||(r.current?void 0:function(e){a((function(t){return[e].concat(Vo(t))}))});function l(){t.parentElement||document.body.appendChild(t),r.current=!0}function c(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),r.current=!1}return Pi((function(){return e?n?n(l):l():c(),c}),[e]),Pi((function(){i.length&&(i.forEach((function(e){return e()})),a(oh))}),[i]),[t,s]}(d&&!h),v=Ie(g,2),b=v[0],y=v[1],w=null!=h?h:b;sh(n&&r&&Tt()&&(w===b||w===document.body));var x=null;s&&En(s)&&t&&(x=s.ref);var S=kn(x,t);if(!d||!Tt()||void 0===h)return null;var C=!1===w||lh,k=s;return t&&(k=m.cloneElement(s,{ref:S})),m.createElement(nh.Provider,{value:y},C?k:(0,js.createPortal)(k,w))}));const dh=uh;var fh=m.createContext(null),hh=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,n){return e[0]===t&&(r=n,!0)})),r}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 r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,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 r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),ph="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,mh=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),gh="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(mh):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},vh=["top","right","bottom","left","width","height","size","weight"],bh="undefined"!=typeof MutationObserver,yh=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,r=!1,n=0;function o(){t&&(t=!1,e()),r&&a()}function i(){gh(o)}function a(){var e=Date.now();if(t){if(e-n<2)return;r=!0}else t=!0,r=!1,setTimeout(i,20);n=e}return a}(this.refresh.bind(this))}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_,r=t.indexOf(e);~r&&t.splice(r,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(){ph&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),bh?(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(){ph&&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,r=void 0===t?"":t;vh.some((function(e){return!!~r.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wh=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},xh=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||mh},Sh=Ah(0,0,0,0);function Ch(e){return parseFloat(e)||0}function kh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){return t+Ch(e["border-"+r+"-width"])}),0)}var Eh="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof xh(e).SVGGraphicsElement}:function(e){return e instanceof xh(e).SVGElement&&"function"==typeof e.getBBox};function Oh(e){return ph?Eh(e)?function(e){var t=e.getBBox();return Ah(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Sh;var n=xh(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=Ch(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=Ch(n.width),l=Ch(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=kh(n,"left","right")+i),Math.round(l+a)!==r&&(l-=kh(n,"top","bottom")+a)),!function(e){return e===xh(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Ah(o.left,o.top,s,l)}(e):Sh}function Ah(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Th=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ah(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Oh(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}(),jh=function(e,t){var r,n,o,i,a,s,l,c=(n=(r=t).x,o=r.y,i=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),wh(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);wh(this,{target:e,contentRect:c})},Ph=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new hh,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}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 xh(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Th(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 xh(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 jh(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}(),Mh="undefined"!=typeof WeakMap?new WeakMap:new hh,Rh=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 r=yh.getInstance(),n=new Ph(t,r,this);Mh.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){Rh.prototype[e]=function(){var t;return(t=Mh.get(this))[e].apply(t,arguments)}}));const _h=void 0!==mh.ResizeObserver?mh.ResizeObserver:Rh;var Ih=new Map,Nh=new _h((function(e){e.forEach((function(e){var t,r=e.target;null===(t=Ih.get(r))||void 0===t||t.forEach((function(e){return e(r)}))}))})),Fh=function(e){Bs(r,e);var t=Us(r);function r(){return ei(this,r),t.apply(this,arguments)}return ri(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function Dh(e,t){var r=e.children,n=e.disabled,o=m.useRef(null),i=m.useRef(null),a=m.useContext(fh),s="function"==typeof r,l=s?r(o):r,c=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m.isValidElement(l)&&En(l),d=u?An(l):null,f=kn(d,o),h=function(){var e;return _s(o.current)||(o.current&&"object"===Ne(o.current)?_s(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||_s(i.current)};m.useImperativeHandle(t,(function(){return h()}));var p=m.useRef(e);p.current=e;var g=m.useCallback((function(e){var t=p.current,r=t.onResize,n=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,l=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(s);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var h={width:d,height:f,offsetWidth:l,offsetHeight:u};c.current=h;var m=l===Math.round(i)?i:l,g=u===Math.round(s)?s:u,v=At(At({},h),{},{offsetWidth:m,offsetHeight:g});null==a||a(v,e,n),r&&Promise.resolve().then((function(){r(v,e)}))}}),[]);return m.useEffect((function(){var e,t,r=h();return r&&!n&&(e=r,t=g,Ih.has(e)||(Ih.set(e,new Set),Nh.observe(e)),Ih.get(e).add(t)),function(){return function(e,t){Ih.has(e)&&(Ih.get(e).delete(t),Ih.get(e).size||(Nh.unobserve(e),Ih.delete(e)))}(r,g)}}),[o.current,n]),m.createElement(Fh,{ref:i},u?m.cloneElement(l,{ref:f}):l)}const Bh=m.forwardRef(Dh);function Lh(e,t){var r=e.children;return("function"==typeof r?[r]:sd(r)).map((function(r,n){var o=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(n);return m.createElement(Bh,Te({},e,{key:o,ref:0===n?t:void 0}),r)}))}var zh=m.forwardRef(Lh);zh.Collection=function(e){var t=e.children,r=e.onBatchResize,n=m.useRef(0),o=m.useRef([]),i=m.useContext(fh),a=m.useCallback((function(e,t,a){n.current+=1;var s=n.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===n.current&&(null==r||r(o.current),o.current=[])})),null==i||i(e,t,a)}),[r,i]);return m.createElement(fh.Provider,{value:a},t)};const Hh=zh;var Uh=0,Vh=At({},g).useId;const Wh=Vh?function(e){var t=Vh();return e||t}:function(e){var t=Ie(m.useState("ssr-id"),2),r=t[0],n=t[1];return m.useEffect((function(){var e=Uh;Uh+=1,n("rc_unique_".concat(e))}),[]),e||r},Gh=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.substr(0,4))};function qh(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=void 0===l?0:l,u=o.y,d=void 0===u?0:u,f=m.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(!1!==r.autoArrow){var p=r.points[0],g=r.points[1],v=p[0],b=p[1],y=g[0],w=g[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=d,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=c}return m.createElement("div",{ref:f,className:ze()("".concat(t,"-arrow"),a),style:h},s)}function Kh(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(Vl,Te({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(e){var r=e.className;return m.createElement("div",{style:{zIndex:n},className:ze()("".concat(t,"-mask"),r)})})):null}var Xh=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Yh=Xh;var $h=m.forwardRef((function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,h=e.arrow,p=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,S=e.portal,C=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,O=e.onPointerEnter,A=e.onPointerDownCapture,T=e.ready,j=e.offsetX,P=e.offsetY,M=e.offsetR,R=e.offsetB,_=e.onAlign,I=e.onPrepare,N=e.stretch,F=e.targetWidth,D=e.targetHeight,B="function"==typeof r?r():r,L=l||c,z=(null==w?void 0:w.length)>0,H=Ie(m.useState(!w||!z),2),U=H[0],V=H[1];if(Pi((function(){!U&&z&&a&&V(!0)}),[U,z,a]),!U)return null;var W="auto",G={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(T||!l){var q,K=g.points,X=g.dynamicInset||(null===(q=g._experimental)||void 0===q?void 0:q.dynamicInset),Y=X&&"r"===K[0][1],$=X&&"b"===K[0][0];Y?(G.right=M,G.left=W):(G.left=j,G.right=W),$?(G.bottom=R,G.top=W):(G.top=P,G.bottom=W)}var Z={};return N&&(N.includes("height")&&D?Z.height=D:N.includes("minHeight")&&D&&(Z.minHeight=D),N.includes("width")&&F?Z.width=F:N.includes("minWidth")&&F&&(Z.minWidth=F)),l||(Z.pointerEvents="none"),m.createElement(S,{open:y||L,getContainer:w&&function(){return w(a)},autoDestroy:x},m.createElement(Kh,{prefixCls:o,open:l,zIndex:C,mask:f,motion:b}),m.createElement(Hh,{onResize:_,disabled:!l},(function(e){return m.createElement(Vl,Te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),(function(r,a){var s=r.className,c=r.style,f=ze()(o,s,n);return m.createElement("div",{ref:Cn(e,t,a),className:f,style:At(At(At(At({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},G),Z),c),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:k,onMouseLeave:E,onPointerEnter:O,onClick:d,onPointerDownCapture:A},h&&m.createElement(qh,{prefixCls:o,arrow:h,arrowPos:p,align:g}),m.createElement(Yh,{cache:!l&&!u},B))}))})))}));const Zh=$h;var Qh=m.forwardRef((function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=En(r),i=m.useCallback((function(e){Sn(t,n?n(e):e)}),[n]),a=kn(i,An(r));return o?m.cloneElement(r,{ref:a}):r}));const Jh=Qh,ep=m.createContext(null);function tp(e){return e?Array.isArray(e)?e:[e]:[]}const rp=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function np(){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 op(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function ip(e){return e.ownerDocument.defaultView}function ap(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=ip(r).getComputedStyle(r);[o.overflowX,o.overflowY,o.overflow].some((function(e){return n.includes(e)}))&&t.push(r),r=r.parentElement}return t}function sp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function lp(e){return sp(parseFloat(e),0)}function cp(e,t){var r=At({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=ip(e).getComputedStyle(e),n=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=lp(i),m=lp(a),g=lp(s),v=lp(l),b=sp(Math.round(c.width/f*1e3)/1e3),y=sp(Math.round(c.height/u*1e3)/1e3),w=(f-h-g-v)*b,x=(u-d-p-m)*y,S=p*y,C=m*y,k=g*b,E=v*b,O=0,A=0;if("clip"===n){var T=lp(o);O=T*b,A=T*y}var j=c.x+k-O,P=c.y+S-A,M=j+c.width+2*O-k-E-w,R=P+c.height+2*A-S-C-x;r.left=Math.max(r.left,j),r.top=Math.max(r.top,P),r.right=Math.min(r.right,M),r.bottom=Math.min(r.bottom,R)}})),r}function up(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),r=t.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(t)}function dp(e,t){var r=Ie(t||[],2),n=r[0],o=r[1];return[up(e.width,n),up(e.height,o)]}function fp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function hp(e,t){var r,n=t[0],o=t[1];return r="t"===n?e.y:"b"===n?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:r}}function pp(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,n){return n===t?r[e]||"c":e})).join("")}var mp=["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 gp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dh,t=m.forwardRef((function(t,r){var n=t.prefixCls,o=void 0===n?"rc-trigger-popup":n,i=t.children,a=t.action,s=void 0===a?"hover":a,l=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,p=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,w=t.mask,x=t.maskClosable,S=void 0===x||x,C=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,O=t.destroyPopupOnHide,A=t.popup,T=t.popupClassName,j=t.popupStyle,P=t.popupPlacement,M=t.builtinPlacements,R=void 0===M?{}:M,_=t.popupAlign,I=t.zIndex,N=t.stretch,F=t.getPopupClassNameFromAlign,D=t.fresh,B=t.alignPoint,L=t.onPopupClick,z=t.onPopupAlign,H=t.arrow,U=t.popupMotion,V=t.maskMotion,W=t.popupTransitionName,G=t.popupAnimation,q=t.maskTransitionName,K=t.maskAnimation,X=t.className,Y=t.getTriggerDOMNode,$=Be(t,mp),Z=E||O||!1,Q=Ie(m.useState(!1),2),J=Q[0],ee=Q[1];Pi((function(){ee(Gh())}),[]);var te=m.useRef({}),re=m.useContext(ep),ne=m.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==re||re.registerSubPopup(e,t)}}}),[re]),oe=Wh(),ie=Ie(m.useState(null),2),ae=ie[0],se=ie[1],le=m.useRef(null),ce=Ws((function(e){le.current=e,Ms(e)&&ae!==e&&se(e),null==re||re.registerSubPopup(oe,e)})),ue=Ie(m.useState(null),2),de=ue[0],fe=ue[1],he=m.useRef(null),pe=Ws((function(e){Ms(e)&&de!==e&&(fe(e),he.current=e)})),me=m.Children.only(i),ge=(null==me?void 0:me.props)||{},ve={},be=Ws((function(e){var t,r,n=de;return(null==n?void 0:n.contains(e))||(null===(t=Ht(n))||void 0===t?void 0:t.host)===e||e===n||(null==ae?void 0:ae.contains(e))||(null===(r=Ht(ae))||void 0===r?void 0:r.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ye=op(o,U,G,W),we=op(o,V,K,q),xe=Ie(m.useState(d||!1),2),Se=xe[0],Ce=xe[1],ke=null!=u?u:Se,Ee=Ws((function(e){void 0===u&&Ce(e)}));Pi((function(){Ce(u||!1)}),[u]);var Oe=m.useRef(ke);Oe.current=ke;var Ae=m.useRef([]);Ae.current=[];var Te=Ws((function(e){var t;Ee(e),(null!==(t=Ae.current[Ae.current.length-1])&&void 0!==t?t:ke)!==e&&(Ae.current.push(e),null==f||f(e))})),je=m.useRef(),Pe=function(){clearTimeout(je.current)},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Pe(),0===t?Te(e):je.current=setTimeout((function(){Te(e)}),1e3*t)};m.useEffect((function(){return Pe}),[]);var Re=Ie(m.useState(!1),2),_e=Re[0],Ne=Re[1];Pi((function(e){e&&!ke||Ne(!0)}),[ke]);var Fe=Ie(m.useState(null),2),De=Fe[0],Le=Fe[1],He=Ie(m.useState(null),2),Ue=He[0],Ve=He[1],We=function(e){Ve([e.clientX,e.clientY])},Ge=function(e,t,r,n,o,i,a){var s=Ie(m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),2),l=s[0],c=s[1],u=m.useRef(0),d=m.useMemo((function(){return t?ap(t):[]}),[t]),f=m.useRef({});e||(f.current={});var h=Ws((function(){if(t&&r&&e){var s,l,u,h,p,m=t,g=m.ownerDocument,v=ip(m).getComputedStyle(m),b=v.width,y=v.height,w=v.position,x=m.style.left,S=m.style.top,C=m.style.right,k=m.style.bottom,E=m.style.overflow,O=At(At({},o[n]),i),A=g.createElement("div");if(null===(s=m.parentElement)||void 0===s||s.appendChild(A),A.style.left="".concat(m.offsetLeft,"px"),A.style.top="".concat(m.offsetTop,"px"),A.style.position=w,A.style.height="".concat(m.offsetHeight,"px"),A.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(r))p={x:r[0],y:r[1],width:0,height:0};else{var T,j,P=r.getBoundingClientRect();P.x=null!==(T=P.x)&&void 0!==T?T:P.left,P.y=null!==(j=P.y)&&void 0!==j?j:P.top,p={x:P.x,y:P.y,width:P.width,height:P.height}}var M=m.getBoundingClientRect();M.x=null!==(l=M.x)&&void 0!==l?l:M.left,M.y=null!==(u=M.y)&&void 0!==u?u:M.top;var R=g.documentElement,_=R.clientWidth,I=R.clientHeight,N=R.scrollWidth,F=R.scrollHeight,D=R.scrollTop,B=R.scrollLeft,L=M.height,z=M.width,H=p.height,U=p.width,V={left:0,top:0,right:_,bottom:I},W={left:-B,top:-D,right:N-B,bottom:F-D},G=O.htmlRegion,q="visible",K="visibleFirst";"scroll"!==G&&G!==K&&(G=q);var X=G===K,Y=cp(W,d),$=cp(V,d),Z=G===q?$:Y,Q=X?$:Z;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var J=m.getBoundingClientRect();m.style.left=x,m.style.top=S,m.style.right=C,m.style.bottom=k,m.style.overflow=E,null===(h=m.parentElement)||void 0===h||h.removeChild(A);var ee=sp(Math.round(z/parseFloat(b)*1e3)/1e3),te=sp(Math.round(L/parseFloat(y)*1e3)/1e3);if(0===ee||0===te||Ms(r)&&!rp(r))return;var re=O.offset,ne=O.targetOffset,oe=Ie(dp(M,re),2),ie=oe[0],ae=oe[1],se=Ie(dp(p,ne),2),le=se[0],ce=se[1];p.x-=le,p.y-=ce;var ue=Ie(O.points||[],2),de=ue[0],fe=fp(ue[1]),he=fp(de),pe=hp(p,fe),me=hp(M,he),ge=At({},O),ve=pe.x-me.x+ie,be=pe.y-me.y+ae;function ft(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z,n=M.x+e,o=M.y+t,i=n+z,a=o+L,s=Math.max(n,r.left),l=Math.max(o,r.top),c=Math.min(i,r.right),u=Math.min(a,r.bottom);return Math.max(0,(c-s)*(u-l))}var ye,we,xe,Se,Ce=ft(ve,be),ke=ft(ve,be,$),Ee=hp(p,["t","l"]),Oe=hp(M,["t","l"]),Ae=hp(p,["b","r"]),Te=hp(M,["b","r"]),je=O.overflow||{},Pe=je.adjustX,Me=je.adjustY,Re=je.shiftX,_e=je.shiftY,Ne=function(e){return"boolean"==typeof e?e:e>=0};function ht(){ye=M.y+be,we=ye+L,xe=M.x+ve,Se=xe+z}ht();var Fe=Ne(Me),De=he[0]===fe[0];if(Fe&&"t"===he[0]&&(we>Q.bottom||f.current.bt)){var Be=be;De?Be-=L-H:Be=Ee.y-Te.y-ae;var Le=ft(ve,Be),ze=ft(ve,Be,$);Le>Ce||Le===Ce&&(!X||ze>=ke)?(f.current.bt=!0,be=Be,ae=-ae,ge.points=[pp(he,0),pp(fe,0)]):f.current.bt=!1}if(Fe&&"b"===he[0]&&(ye<Q.top||f.current.tb)){var He=be;De?He+=L-H:He=Ae.y-Oe.y-ae;var Ue=ft(ve,He),Ve=ft(ve,He,$);Ue>Ce||Ue===Ce&&(!X||Ve>=ke)?(f.current.tb=!0,be=He,ae=-ae,ge.points=[pp(he,0),pp(fe,0)]):f.current.tb=!1}var We=Ne(Pe),Ge=he[1]===fe[1];if(We&&"l"===he[1]&&(Se>Q.right||f.current.rl)){var qe=ve;Ge?qe-=z-U:qe=Ee.x-Te.x-ie;var Ke=ft(qe,be),Xe=ft(qe,be,$);Ke>Ce||Ke===Ce&&(!X||Xe>=ke)?(f.current.rl=!0,ve=qe,ie=-ie,ge.points=[pp(he,1),pp(fe,1)]):f.current.rl=!1}if(We&&"r"===he[1]&&(xe<Q.left||f.current.lr)){var Ye=ve;Ge?Ye+=z-U:Ye=Ae.x-Oe.x-ie;var $e=ft(Ye,be),Ze=ft(Ye,be,$);$e>Ce||$e===Ce&&(!X||Ze>=ke)?(f.current.lr=!0,ve=Ye,ie=-ie,ge.points=[pp(he,1),pp(fe,1)]):f.current.lr=!1}ht();var Qe=!0===Re?0:Re;"number"==typeof Qe&&(xe<$.left&&(ve-=xe-$.left-ie,p.x+U<$.left+Qe&&(ve+=p.x-$.left+U-Qe)),Se>$.right&&(ve-=Se-$.right-ie,p.x>$.right-Qe&&(ve+=p.x-$.right+Qe)));var Je=!0===_e?0:_e;"number"==typeof Je&&(ye<$.top&&(be-=ye-$.top-ae,p.y+H<$.top+Je&&(be+=p.y-$.top+H-Je)),we>$.bottom&&(be-=we-$.bottom-ae,p.y>$.bottom-Je&&(be+=p.y-$.bottom+Je)));var et=M.x+ve,tt=et+z,rt=M.y+be,nt=rt+L,ot=p.x,it=ot+U,at=p.y,st=at+H,lt=(Math.max(et,ot)+Math.min(tt,it))/2-et,ct=(Math.max(rt,at)+Math.min(nt,st))/2-rt;null==a||a(t,ge);var ut=J.right-M.x-(ve+M.width),dt=J.bottom-M.y-(be+M.height);1===ee&&(ve=Math.round(ve),ut=Math.round(ut)),1===te&&(be=Math.round(be),dt=Math.round(dt)),c({ready:!0,offsetX:ve/ee,offsetY:be/te,offsetR:ut/ee,offsetB:dt/te,arrowX:lt/ee,arrowY:ct/te,scaleX:ee,scaleY:te,align:ge})}})),p=function(){c((function(e){return At(At({},e),{},{ready:!1})}))};return Pi(p,[n]),Pi((function(){e||p()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&h()}))}]}(ke,ae,B&&null!==Ue?Ue:de,P,R,_,z),qe=Ie(Ge,11),Ke=qe[0],Xe=qe[1],Ye=qe[2],$e=qe[3],Ze=qe[4],Qe=qe[5],Je=qe[6],et=qe[7],tt=qe[8],rt=qe[9],nt=qe[10],ot=function(e,t,r,n){return m.useMemo((function(){var o=tp(null!=r?r:t),i=tp(null!=n?n:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,r,n])}(J,s,l,c),it=Ie(ot,2),at=it[0],st=it[1],lt=at.has("click"),ct=st.has("click")||st.has("contextMenu"),ut=Ws((function(){_e||nt()}));!function(e,t,r,n){Pi((function(){if(e&&t&&r){var o=r,i=ap(t),a=ap(o),s=ip(o),l=new Set([s].concat(Vo(i),Vo(a)));function c(){n(),Oe.current&&B&&ct&&Me(!1)}return l.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),s.addEventListener("resize",c,{passive:!0}),n(),function(){l.forEach((function(e){e.removeEventListener("scroll",c),s.removeEventListener("resize",c)}))}}}),[e,t,r])}(ke,de,ae,ut),Pi((function(){ut()}),[Ue,P]),Pi((function(){!ke||null!=R&&R[P]||ut()}),[JSON.stringify(_)]);var dt=m.useMemo((function(){var e=function(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(np(null===(s=e[l])||void 0===s?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}(R,o,rt,B);return ze()(e,null==F?void 0:F(rt))}),[rt,F,R,o,B]);m.useImperativeHandle(r,(function(){return{nativeElement:he.current,popupElement:le.current,forceAlign:ut}}));var ft=Ie(m.useState(0),2),ht=ft[0],pt=ft[1],mt=Ie(m.useState(0),2),gt=mt[0],vt=mt[1],bt=function(){if(N&&de){var e=de.getBoundingClientRect();pt(e.width),vt(e.height)}};function yt(e,t,r,n){ve[e]=function(o){var i;null==n||n(o),Me(t,r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=ge[e])||void 0===i||i.call.apply(i,[ge,o].concat(s))}}Pi((function(){De&&(nt(),De(),Le(null))}),[De]),(lt||ct)&&(ve.onClick=function(e){var t;Oe.current&&ct?Me(!1):!Oe.current&<&&(We(e),Me(!0));for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(n))});var wt,xt,St=function(e,t,r,n,o,i,a,s){var l=m.useRef(e);l.current=e;var c=m.useRef(!1);return m.useEffect((function(){if(t&&n&&(!o||i)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||s(!1)},d=ip(n);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=Ht(r);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}}),[t,r,n,o,i]),function(){c.current=!0}}(ke,ct,de,ae,w,S,be,Me),Ct=at.has("hover"),kt=st.has("hover");Ct&&(yt("onMouseEnter",!0,p,(function(e){We(e)})),yt("onPointerEnter",!0,p,(function(e){We(e)})),wt=function(e){(ke||_e)&&null!=ae&&ae.contains(e.target)&&Me(!0,p)},B&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),kt&&(yt("onMouseLeave",!1,v),yt("onPointerLeave",!1,v),xt=function(){Me(!1,v)}),at.has("focus")&&yt("onFocus",!0,b),st.has("focus")&&yt("onBlur",!1,y),at.has("contextMenu")&&(ve.onContextMenu=function(e){var t;Oe.current&&st.has("contextMenu")?Me(!1):(We(e),Me(!0)),e.preventDefault();for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(n))}),X&&(ve.className=ze()(ge.className,X));var Et=At(At({},ge),ve),Ot={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){$[e]&&(Ot[e]=function(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null===(t=Et[e])||void 0===t||t.call.apply(t,[Et].concat(n)),$[e].apply($,n)})}));var Tt=m.cloneElement(me,At(At({},Et),Ot)),jt={x:Qe,y:Je},Pt=H?At({},!0!==H?H:{}):null;return m.createElement(m.Fragment,null,m.createElement(Hh,{disabled:!ke,ref:pe,onResize:function(){bt(),ut()}},m.createElement(Jh,{getTriggerDOMNode:Y},Tt)),m.createElement(ep.Provider,{value:ne},m.createElement(Zh,{portal:e,ref:ce,prefixCls:o,popup:A,className:ze()(T,dt),style:j,target:de,onMouseEnter:wt,onMouseLeave:xt,onPointerEnter:wt,zIndex:I,open:ke,keepDom:_e,fresh:D,onClick:L,onPointerDownCapture:St,mask:w,motion:ye,maskMotion:we,onVisibleChanged:function(e){Ne(!1),nt(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){bt(),Le((function(){return e}))}))},forceRender:k,autoDestroy:Z,getPopupContainer:C,align:rt,arrow:Pt,arrowPos:jt,ready:Ke,offsetX:Xe,offsetY:Ye,offsetR:$e,offsetB:Ze,onAlign:ut,stretch:N,targetWidth:ht/et,targetHeight:gt/tt})))}));return t}(dh);var vp={shiftX:64,adjustY:1},bp={adjustX:1,shiftY:!0},yp=[0,0],wp={left:{points:["cr","cl"],overflow:bp,offset:[-4,0],targetOffset:yp},right:{points:["cl","cr"],overflow:bp,offset:[4,0],targetOffset:yp},top:{points:["bc","tc"],overflow:vp,offset:[0,-4],targetOffset:yp},bottom:{points:["tc","bc"],overflow:vp,offset:[0,4],targetOffset:yp},topLeft:{points:["bl","tl"],overflow:vp,offset:[0,-4],targetOffset:yp},leftTop:{points:["tr","tl"],overflow:bp,offset:[-4,0],targetOffset:yp},topRight:{points:["br","tr"],overflow:vp,offset:[0,-4],targetOffset:yp},rightTop:{points:["tl","tr"],overflow:bp,offset:[4,0],targetOffset:yp},bottomRight:{points:["tr","br"],overflow:vp,offset:[0,4],targetOffset:yp},rightBottom:{points:["bl","br"],overflow:bp,offset:[4,0],targetOffset:yp},bottomLeft:{points:["tl","bl"],overflow:vp,offset:[0,4],targetOffset:yp},leftBottom:{points:["br","bl"],overflow:bp,offset:[-4,0],targetOffset:yp}},xp=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Sp=function(e,t){var r=e.overlayClassName,n=e.trigger,o=void 0===n?["hover"]:n,i=e.mouseEnterDelay,a=void 0===i?0:i,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,h=e.onVisibleChange,p=e.afterVisibleChange,g=e.transitionName,v=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,x=e.align,S=void 0===x?{}:x,C=e.destroyTooltipOnHide,k=void 0!==C&&C,E=e.defaultVisible,O=e.getTooltipContainer,A=e.overlayInnerStyle,T=(e.arrowContent,e.overlay),j=e.id,P=e.showArrow,M=void 0===P||P,R=e.classNames,_=e.styles,I=Be(e,xp),N=Wh(j),F=(0,m.useRef)(null);(0,m.useImperativeHandle)(t,(function(){return F.current}));var D,B,L=At({},I);return"visible"in e&&(L.popupVisible=e.visible),m.createElement(gp,Te({popupClassName:ze()(r,null==R?void 0:R.root),prefixCls:d,popup:function(){return m.createElement(rh,{key:"content",prefixCls:d,id:N,bodyClassName:null==R?void 0:R.body,overlayInnerStyle:At(At({},A),null==_?void 0:_.body)},T)},action:o,builtinPlacements:wp,popupPlacement:w,ref:F,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:k,mouseLeaveDelay:l,popupStyle:At(At({},c),null==_?void 0:_.root),mouseEnterDelay:a,arrow:M},L),(B=At(At({},(null==(D=m.Children.only(f))?void 0:D.props)||{}),{},{"aria-describedby":T?N:null}),m.cloneElement(f,B)))};const Cp=(0,m.forwardRef)(Sp);function kp(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=o,a=1*n/Math.sqrt(2),s=o-n*(1-1/Math.sqrt(2)),l=o-r*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),u=2*o-l,d=c,f=2*o-a,h=s,p=2*o-0,m=i,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${n} ${n} 0 0 0 ${a} ${s} L ${l} ${c} A ${r} ${r} 0 0 1 ${u} ${d} L ${f} ${h} A ${n} ${n} 0 0 0 ${p} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const Ep=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Si(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};function Op(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?8:n}}function Ap(e,t){return e?t:{}}function Tp(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ep(e,t,o)),{"&:before":{background:t}})]},Ap(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Si(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ap(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Si(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ap(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Ap(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}const jp={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"]}},Pp={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"]}},Mp=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rp(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(jp).forEach((e=>{const c=n&&Pp[e]||jp[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,Mp.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=Op({contentRadius:i,limitVerticalRadius:!0});if(n)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]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};const o=n&&"object"==typeof n?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+r,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,r),a&&(u.htmlRegion="visibleFirst")})),l}const _p=e=>({animationDuration:e,animationFillMode:"both"}),Ip=e=>({animationDuration:e,animationFillMode:"both"}),Np=function(e,t,r,n){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},_p(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ip(n)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Fp=new Ba("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Dp=new Ba("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Bp=new Ba("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lp=new Ba("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zp=new Ba("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Hp=new Ba("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Up=new Ba("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Vp=new Ba("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Wp=new Ba("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Gp=new Ba("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),qp=new Ba("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Kp=new Ba("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Xp={zoom:{inKeyframes:Fp,outKeyframes:Dp},"zoom-big":{inKeyframes:Bp,outKeyframes:Lp},"zoom-big-fast":{inKeyframes:Bp,outKeyframes:Lp},"zoom-left":{inKeyframes:Up,outKeyframes:Vp},"zoom-right":{inKeyframes:Wp,outKeyframes:Gp},"zoom-up":{inKeyframes:zp,outKeyframes:Hp},"zoom-down":{inKeyframes:qp,outKeyframes:Kp}},Yp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Xp[t];return[Np(n,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$p=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Zp(e,t){return $p.reduce(((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Qp=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:h}=e,p=t(a).add(h).add(f).equal(),m=t(a).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},rc(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:m,minHeight:l,padding:`${Si(e.calc(u).div(2).equal())} ${Si(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,8)}},[`${r}-content`]:{position:"relative"}}),Zp(e,((e,t)=>{let{darkColor:n}=t;return{[`&${r}-${e}`]:{[`${r}-inner`]:{backgroundColor:n},[`${r}-arrow`]:{"--antd-arrow-background-color":n}}}}))),{"&-rtl":{direction:"rtl"}})},Tp(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jp=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Op({contentRadius:e.borderRadius,limitVerticalRadius:!0})),kp(Au(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),em=function(e){const t=Iu("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:r,colorBgSpotlight:n}=e,o=Au(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:t,tooltipBg:n});return[Qp(o),Yp(e,"zoom-big-fast")]}),Jp,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},tm=$p.map((e=>`${e}-inverse`));function rm(e,t){const r=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?$p.includes(e):[].concat(Vo(tm),Vo($p)).includes(e)}(t),n=ze()({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const nm=m.forwardRef(((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:h,arrow:p=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:x,getPopupContainer:S,placement:C="top",mouseEnterDelay:k=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:A,overlayClassName:T,styles:j,classNames:P}=e,M=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!p,[,_]=Ql(),{getPopupContainer:I,getPrefixCls:N,direction:F,className:D,style:B,classNames:L,styles:z}=Zo("tooltip"),H=Ya(),U=m.useRef(null),V=()=>{var e;null===(e=U.current)||void 0===e||e.forceAlign()};m.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:V,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null===(e=U.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=U.current)||void 0===t?void 0:t.popupElement}}));const[W,G]=Ks(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(n=e.defaultOpen)&&void 0!==n?n:e.defaultVisible}),q=!g&&!v&&0!==g,K=m.useMemo((()=>{var e,t;let r=y;return"object"==typeof p&&(r=null!==(t=null!==(e=p.pointAtCenter)&&void 0!==e?e:p.arrowPointAtCenter)&&void 0!==t?t:y),b||Rp({arrowPointAtCenter:r,autoAdjustOverflow:w,arrowWidth:R?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})}),[y,p,b,_]),X=m.useMemo((()=>0===g?g:v||g||""),[v,g]),Y=m.createElement(Uf,{space:!0},"function"==typeof X?X():X),$=N("tooltip",o),Z=N(),Q=e["data-popover-inject"];let J=W;"open"in e||"visible"in e||!q||(J=!1);const ee=m.isValidElement(c)&&!eh(c)?c:m.createElement("span",null,c),te=ee.props,re=te.className&&"string"!=typeof te.className?te.className:ze()(te.className,i||`${$}-open`),[ne,oe,ie]=em($,!Q),ae=rm($,s),se=ae.arrowStyle,le=ze()(T,{[`${$}-rtl`]:"rtl"===F},ae.className,A,oe,ie,D,L.root,null==P?void 0:P.root),ce=ze()(L.body,null==P?void 0:P.body),[ue,de]=gu("Tooltip",M.zIndex),fe=m.createElement(Cp,Object.assign({},M,{zIndex:ue,showArrow:R,placement:C,mouseEnterDelay:k,mouseLeaveDelay:E,prefixCls:$,classNames:{root:le,body:ce},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),z.root),B),O),null==j?void 0:j.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},z.body),l),null==j?void 0:j.body),ae.overlayStyle)},getTooltipContainer:S||a||I,ref:U,builtinPlacements:K,overlay:Y,visible:J,onVisibleChange:t=>{var r,n;G(!q&&t),q||(null===(r=e.onOpenChange)||void 0===r||r.call(e,t),null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},afterVisibleChange:null!=u?u:d,arrowContent:m.createElement("span",{className:`${$}-arrow-content`}),motion:{motionName:Qf(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=h?h:!!f}),J?th(ee,{className:re}):ee);return ne(m.createElement(fu.Provider,{value:de},fe))})),om=nm;om._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=m.useContext(Xo),l=s("tooltip",t),[c,u,d]=em(l),f=rm(l,i),h=f.arrowStyle,p=Object.assign(Object.assign({},a),f.overlayStyle),g=ze()(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(m.createElement("div",{className:g,style:h},m.createElement("div",{className:`${l}-arrow`}),m.createElement(rh,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),o)))};const im=om,am=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,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({},rc(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:n,marginBottom:u,color:s,fontWeight:o,borderBottom:h,padding:m},[`${t}-inner-content`]:{color:r,padding:p}})},Tp(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},sm=e=>{const{componentCls:t}=e;return{[t]:$p.map((r=>{const n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},lm=Iu("Popover",(e=>{const{colorBgElevated:t,colorText:r}=e,n=Au(e,{popoverBg:t,popoverColor:r});return[am(n),sm(n),Yp(n,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=r-n,h=f/2,p=f/2-t,m=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},kp(e)),Op({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${h}px ${m}px ${p}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${m}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const cm=e=>{let{title:t,content:r,prefixCls:n}=e;return t||r?m.createElement(m.Fragment,null,t&&m.createElement("div",{className:`${n}-title`},t),r&&m.createElement("div",{className:`${n}-inner-content`},r)):null},um=e=>{const{hashId:t,prefixCls:r,className:n,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Kf(a),u=Kf(s),d=ze()(t,r,`${r}-pure`,`${r}-placement-${i}`,n);return m.createElement("div",{className:d,style:o},m.createElement("div",{className:`${r}-arrow`}),m.createElement(rh,Object.assign({},e,{className:t,prefixCls:r}),l||m.createElement(cm,{prefixCls:r,title:c,content:u})))};const dm=m.forwardRef(((e,t)=>{var r,n;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:h,overlayStyle:p={},styles:g,classNames:v}=e,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:w,style:x,classNames:S,styles:C}=Zo("popover"),k=y("popover",o),[E,O,A]=lm(k),T=y(),j=ze()(s,O,A,w,S.root,null==v?void 0:v.root),P=ze()(S.body,null==v?void 0:v.body),[M,R]=Ks(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(n=e.defaultOpen)&&void 0!==n?n:e.defaultVisible}),_=(e,t)=>{R(e,!0),null==h||h(e,t)},I=Kf(i),N=Kf(a);return E(m.createElement(im,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f},b,{prefixCls:k,classNames:{root:j,body:P},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),x),p),null==g?void 0:g.root),body:Object.assign(Object.assign({},C.body),null==g?void 0:g.body)},ref:t,open:M,onOpenChange:e=>{_(e)},overlay:I||N?m.createElement(cm,{prefixCls:k,title:I,content:N}):null,transitionName:Qf(T,"zoom-big",b.transitionName),"data-popover-inject":!0}),th(u,{onKeyDown:e=>{var t,r;m.isValidElement(u)&&(null===(r=null==u?void 0:(t=u.props).onKeyDown)||void 0===r||r.call(t,e)),(e=>{e.keyCode===$c.ESC&&_(!1,e)})(e)}})))})),fm=dm;fm._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className"]),{getPrefixCls:o}=m.useContext(Xo),i=o("popover",t),[a,s,l]=lm(i);return a(m.createElement(um,Object.assign({},n,{prefixCls:i,hashId:s,className:ze()(r,l)})))};const hm=fm;var pm=["b"],mm=["v"],gm=function(e){return Math.round(Number(e||0))},vm=function(e){Bs(r,e);var t=Us(r);function r(e){return ei(this,r),t.call(this,function(e){if(e instanceof Ge)return e;if(e&&"object"===Ne(e)&&"h"in e&&"b"in e){var t=e,r=t.b;return At(At({},Be(t,pm)),{},{v:r})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return ri(r,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=gm(100*e.s),r=gm(100*e.b),n=gm(e.h),o=e.a,i="hsb(".concat(n,", ").concat(t,"%, ").concat(r,"%)"),a="hsba(".concat(n,", ").concat(t,"%, ").concat(r,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return At(At({},Be(e,mm)),{},{b:t,a:this.a})}}]),r}(Ge),bm=function(e){return e instanceof vm?e:new vm(e)},ym=bm("#1677ff"),wm=function(e){var t=e.offset,r=e.targetRef,n=e.containerRef,o=e.color,i=e.type,a=n.current.getBoundingClientRect(),s=a.width,l=a.height,c=r.current.getBoundingClientRect(),u=c.width/2,d=c.height/2,f=(t.x+u)/s,h=1-(t.y+d)/l,p=o.toHsb(),m=f,g=(t.x+u)/s*360;if(i)switch(i){case"hue":return bm(At(At({},p),{},{h:g<=0?0:g}));case"alpha":return bm(At(At({},p),{},{a:m<=0?0:m}))}return bm({h:p.h,s:f<=0?0:f,b:h>=1?1:h,a:p.a})},xm=function(e,t){var r=e.toHsb();switch(t){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*r.s,y:100*(1-r.b)}}};const Sm=function(e){var t=e.color,r=e.prefixCls,n=e.className,o=e.style,i=e.onClick,a="".concat(r,"-color-block");return m.createElement("div",{className:ze()(a,n),style:o,onClick:i},m.createElement("div",{className:"".concat(a,"-inner"),style:{background:t}}))},Cm=function(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=Ie((0,m.useState)({x:0,y:0}),2),u=c[0],d=c[1],f=(0,m.useRef)(null),h=(0,m.useRef)(null);(0,m.useEffect)((function(){d(a())}),[s]),(0,m.useEffect)((function(){return function(){document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",h.current),f.current=null,h.current=null}}),[]);var p=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}(e),a=i.pageX,s=i.pageY,l=r.current.getBoundingClientRect(),c=l.x,d=l.y,f=l.width,h=l.height,p=t.current.getBoundingClientRect(),m=p.width,g=p.height,v=m/2,b=g/2,y=Math.max(0,Math.min(a-c,f))-v,w=Math.max(0,Math.min(s-d,h))-b,x={x:y,y:"x"===n?u.y:w};if(0===m&&0===g||m!==g)return!1;null==o||o(x)},g=function(e){e.preventDefault(),p(e)},v=function(e){e.preventDefault(),document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",h.current),f.current=null,h.current=null,null==i||i()};return[u,function(e){document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),l||(p(e),document.addEventListener("mousemove",g),document.addEventListener("mouseup",v),document.addEventListener("touchmove",g),document.addEventListener("touchend",v),f.current=g,h.current=v)}]},km=function(e){var t=e.size,r=void 0===t?"default":t,n=e.color,o=e.prefixCls;return m.createElement("div",{className:ze()("".concat(o,"-handler"),De({},"".concat(o,"-handler-sm"),"small"===r)),style:{backgroundColor:n}})},Em=function(e){var t=e.children,r=e.style,n=e.prefixCls;return m.createElement("div",{className:"".concat(n,"-palette"),style:At({position:"relative"},r)},t)},Om=(0,m.forwardRef)((function(e,t){var r=e.children,n=e.x,o=e.y;return m.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)})),Am=function(e){var t=e.color,r=e.onChange,n=e.prefixCls,o=e.onChangeComplete,i=e.disabled,a=(0,m.useRef)(),s=(0,m.useRef)(),l=(0,m.useRef)(t),c=Ws((function(e){var n=wm({offset:e,targetRef:s,containerRef:a,color:t});l.current=n,r(n)})),u=Ie(Cm({color:t,containerRef:a,targetRef:s,calculate:function(){return xm(t)},onDragChange:c,onDragChangeComplete:function(){return null==o?void 0:o(l.current)},disabledDrag:i}),2),d=u[0],f=u[1];return m.createElement("div",{ref:a,className:"".concat(n,"-select"),onMouseDown:f,onTouchStart:f},m.createElement(Em,{prefixCls:n},m.createElement(Om,{x:d.x,y:d.y,ref:s},m.createElement(km,{color:t.toRgbString(),prefixCls:n})),m.createElement("div",{className:"".concat(n,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Tm=function(e){var t=e.colors,r=e.children,n=e.direction,o=void 0===n?"to right":n,i=e.type,a=e.prefixCls,s=(0,m.useMemo)((function(){return t.map((function(e,r){var n=bm(e);return"alpha"===i&&r===t.length-1&&(n=new vm(n.setA(1))),n.toRgbString()})).join(",")}),[t,i]);return m.createElement("div",{className:"".concat(a,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(s,")")}},r)},jm=function(e){var t=e.prefixCls,r=e.colors,n=e.disabled,o=e.onChange,i=e.onChangeComplete,a=e.color,s=e.type,l=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useRef)(a),d=function(e){return"hue"===s?e.getHue():100*e.a},f=Ws((function(e){var t=wm({offset:e,targetRef:c,containerRef:l,color:a,type:s});u.current=t,o(d(t))})),h=Ie(Cm({color:a,targetRef:c,containerRef:l,calculate:function(){return xm(a,s)},onDragChange:f,onDragChangeComplete:function(){i(d(u.current))},direction:"x",disabledDrag:n}),2),p=h[0],g=h[1],v=m.useMemo((function(){if("hue"===s){var e=a.toHsb();return e.s=1,e.b=1,e.a=1,new vm(e)}return a}),[a,s]),b=m.useMemo((function(){return r.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[r]);return m.createElement("div",{ref:l,className:ze()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(s)),onMouseDown:g,onTouchStart:g},m.createElement(Em,{prefixCls:t},m.createElement(Om,{x:p.x,y:p.y,ref:c},m.createElement(km,{size:"small",color:v.toHexString(),prefixCls:t})),m.createElement(Tm,{colors:b,type:s,prefixCls:t})))};var Pm=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Mm=(0,m.forwardRef)((function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,i=void 0===o?"rc-color-picker":o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=void 0!==d&&d,h=e.disabled,p=void 0!==h&&h,g=function(e){return m.useMemo((function(){return[(e||{}).slider||jm]}),[e])}(e.components),v=Ie(g,1)[0],b=Ie(function(e,t){var r=Ie(Ks(e,{value:t}),2),n=r[0],o=r[1];return[(0,m.useMemo)((function(){return bm(n)}),[n]),o]}(n||ym,r),2),y=b[0],w=b[1],x=(0,m.useMemo)((function(){return y.setA(1).toRgbString()}),[y]),S=function(e,t){r||w(e),null==a||a(e,t)},C=function(e){return new vm(y.setHue(e))},k=function(e){return new vm(y.setA(e/100))},E=ze()("".concat(i,"-panel"),l,De({},"".concat(i,"-panel-disabled"),p)),O={prefixCls:i,disabled:p,color:y},A=m.createElement(m.Fragment,null,m.createElement(Am,Te({onChange:S},O,{onChangeComplete:s})),m.createElement("div",{className:"".concat(i,"-slider-container")},m.createElement("div",{className:ze()("".concat(i,"-slider-group"),De({},"".concat(i,"-slider-group-disabled-alpha"),f))},m.createElement(v,Te({},O,{type:"hue",colors:Pm,min:0,max:359,value:y.getHue(),onChange:function(e){S(C(e),{type:"hue",value:e})},onChangeComplete:function(e){s&&s(C(e))}})),!f&&m.createElement(v,Te({},O,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:100*y.a,onChange:function(e){S(k(e),{type:"alpha",value:e})},onChangeComplete:function(e){s&&s(k(e))}}))),m.createElement(Sm,{color:y.toRgbString(),prefixCls:i})));return m.createElement("div",{className:E,style:c,ref:t},"function"==typeof u?u(A):A)}));const Rm=Mm,_m=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let Im=function(){return ri((function e(t){var r;if(ei(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(r=t.colors)||void 0===r?void 0:r.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const n=Array.isArray(t);n&&t.length?(this.colors=t.map((t=>{let{color:r,percent:n}=t;return{color:new e(r),percent:n}})),this.metaColor=new vm(this.colors[0].color.metaColor)):this.metaColor=new vm(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?_m(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,r)=>{const n=e.colors[r];return t.percent===n.percent&&t.color.equals(n.color)})):this.toHexString()===e.toHexString())}}])}();const Nm=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Fm=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},rc(e)),{borderBlockStart:`${Si(o)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Si(o)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Si(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Si(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Si(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${Si(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${Si(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}},Dm=Iu("Divider",(e=>{const t=Au(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Fm(t),Nm(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const Bm={small:"sm",middle:"md"},Lm=e=>{const{getPrefixCls:t,direction:r,className:n,style:o}=Zo("divider"),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:f,variant:h="solid",plain:p,style:g,size:v}=e,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),y=t("divider",i),[w,x,S]=Dm(y),C=Rf(v),k=Bm[C],E=!!d,O=m.useMemo((()=>"left"===s?"rtl"===r?"end":"start":"right"===s?"rtl"===r?"start":"end":s),[r,s]),A="start"===O&&null!=l,T="end"===O&&null!=l,j=ze()(y,n,x,S,`${y}-${a}`,{[`${y}-with-text`]:E,[`${y}-with-text-${O}`]:E,[`${y}-dashed`]:!!f,[`${y}-${h}`]:"solid"!==h,[`${y}-plain`]:!!p,[`${y}-rtl`]:"rtl"===r,[`${y}-no-default-orientation-margin-start`]:A,[`${y}-no-default-orientation-margin-end`]:T,[`${y}-${k}`]:!!k},c,u),P=m.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),M={marginInlineStart:A?P:void 0,marginInlineEnd:T?P:void 0};return w(m.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},o),g)},b,{role:"separator"}),d&&"vertical"!==a&&m.createElement("span",{className:`${y}-inner-text`,style:M},d)))};var zm=function(e,t){if(!e)return null;var r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Hm=function(e){return void 0!==e?"".concat(e,"px"):void 0};function Um(e){var t=e.prefixCls,r=e.containerRef,n=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=void 0!==c&&c,d=m.useRef(null),f=Ie(m.useState(n),2),h=f[0],p=f[1],g=function(e){var n,i=o(e),a=null===(n=r.current)||void 0===n?void 0:n.querySelectorAll(".".concat(t,"-item"))[i];return(null==a?void 0:a.offsetParent)&&a},v=Ie(m.useState(null),2),b=v[0],y=v[1],w=Ie(m.useState(null),2),x=w[0],S=w[1];Pi((function(){if(h!==n){var e=g(h),t=g(n),r=zm(e,u),o=zm(t,u);p(n),y(r),S(o),e&&t?a():s()}}),[n]);var C=m.useMemo((function(){var e;return Hm(u?null!==(e=null==b?void 0:b.top)&&void 0!==e?e:0:"rtl"===l?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,l,b]),k=m.useMemo((function(){var e;return Hm(u?null!==(e=null==x?void 0:x.top)&&void 0!==e?e:0:"rtl"===l?-(null==x?void 0:x.right):null==x?void 0:x.left)}),[u,l,x]);return b&&x?m.createElement(Vl,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){y(null),S(null),s()}},(function(e,r){var n=e.className,o=At(At({},e.style),{},{"--thumb-start-left":C,"--thumb-start-width":Hm(null==b?void 0:b.width),"--thumb-active-left":k,"--thumb-active-width":Hm(null==x?void 0:x.width),"--thumb-start-top":C,"--thumb-start-height":Hm(null==b?void 0:b.height),"--thumb-active-top":k,"--thumb-active-height":Hm(null==x?void 0:x.height)}),i={ref:Cn(d,r),style:o,className:ze()("".concat(t,"-thumb"),n)};return m.createElement("div",i)})):null}var Vm=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];var Wm=function(e){var t=e.prefixCls,r=e.className,n=e.disabled,o=e.checked,i=e.label,a=e.title,s=e.value,l=e.name,c=e.onChange,u=e.onFocus,d=e.onBlur,f=e.onKeyDown,h=e.onKeyUp,p=e.onMouseDown;return m.createElement("label",{className:ze()(r,De({},"".concat(t,"-item-disabled"),n)),onMouseDown:p},m.createElement("input",{name:l,className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:o,onChange:function(e){n||c(e,s)},onFocus:u,onBlur:d,onKeyDown:f,onKeyUp:h}),m.createElement("div",{className:"".concat(t,"-item-label"),title:a,"aria-selected":o},i))},Gm=m.forwardRef((function(e,t){var r,n,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.vertical,l=e.options,c=void 0===l?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,h=e.name,p=e.onChange,g=e.className,v=void 0===g?"":g,b=e.motionName,y=void 0===b?"thumb-motion":b,w=Be(e,Vm),x=m.useRef(null),S=m.useMemo((function(){return Cn(x,t)}),[x,t]),C=m.useMemo((function(){return function(e){return e.map((function(e){if("object"===Ne(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Ne(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return At(At({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(c)}),[c]),k=Ie(Ks(null===(r=C[0])||void 0===r?void 0:r.value,{value:f,defaultValue:d}),2),E=k[0],O=k[1],A=Ie(m.useState(!1),2),T=A[0],j=A[1],P=function(e,t){O(t),null==p||p(t)},M=kf(w,["children"]),R=Ie(m.useState(!1),2),_=R[0],I=R[1],N=Ie(m.useState(!1),2),F=N[0],D=N[1],B=function(){D(!0)},L=function(){D(!1)},z=function(){I(!1)},H=function(e){"Tab"===e.key&&I(!0)},U=function(e){var t=C.findIndex((function(e){return e.value===E})),r=C.length,n=C[(t+e+r)%r];n&&(O(n.value),null==p||p(n.value))},V=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":U(-1);break;case"ArrowRight":case"ArrowDown":U(1)}};return m.createElement("div",Te({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},M,{className:ze()(i,(n={},De(n,"".concat(i,"-rtl"),"rtl"===a),De(n,"".concat(i,"-disabled"),u),De(n,"".concat(i,"-vertical"),s),n),v),ref:S}),m.createElement("div",{className:"".concat(i,"-group")},m.createElement(Um,{vertical:s,prefixCls:i,value:E,containerRef:x,motionName:"".concat(i,"-").concat(y),direction:a,getValueIndex:function(e){return C.findIndex((function(t){return t.value===e}))},onMotionStart:function(){j(!0)},onMotionEnd:function(){j(!1)}}),C.map((function(e){var t;return m.createElement(Wm,Te({},e,{name:h,key:e.value,prefixCls:i,className:ze()(e.className,"".concat(i,"-item"),(t={},De(t,"".concat(i,"-item-selected"),e.value===E&&!T),De(t,"".concat(i,"-item-focused"),F&&_&&e.value===E),t)),checked:e.value===E,onChange:P,onFocus:B,onBlur:L,onKeyDown:V,onKeyUp:H,onMouseDown:z,disabled:!!u||!!e.disabled}))}))))}));const qm=Gm;function Km(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Xm(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Ym=Object.assign({overflow:"hidden"},tc),$m=e=>{const{componentCls:t}=e,r=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),oc(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${Si(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Xm(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},nc(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:r,lineHeight:Si(r),padding:`0 ${Si(e.segmentedPaddingHorizontal)}`},Ym),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Xm(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Si(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:n,lineHeight:Si(n),padding:`0 ${Si(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:Si(o),padding:`0 ${Si(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Km(`&-disabled ${t}-item`,e)),Km(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Zm=Iu("Segmented",(e=>{const{lineWidth:t,calc:r}=e,n=Au(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()});return[$m(n)]}),(e=>{const{colorTextLabel:t,colorText:r,colorFillSecondary:n,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:r,itemHoverBg:n,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:r}}));var Qm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const Jm=m.forwardRef(((e,t)=>{const r=Wh(),{prefixCls:n,className:o,rootClassName:i,block:a,options:s=[],size:l="middle",style:c,vertical:u,shape:d="default",name:f=r}=e,h=Qm(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:p,direction:g,className:v,style:b}=Zo("segmented"),y=p("segmented",n),[w,x,S]=Zm(y),C=Rf(l),k=m.useMemo((()=>s.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:r}=e,n=Qm(e,["icon","label"]);return Object.assign(Object.assign({},n),{label:m.createElement(m.Fragment,null,m.createElement("span",{className:`${y}-item-icon`},t),r&&m.createElement("span",null,r))})}return e}))),[s,y]),E=ze()(o,i,v,{[`${y}-block`]:a,[`${y}-sm`]:"small"===C,[`${y}-lg`]:"large"===C,[`${y}-vertical`]:u,[`${y}-shape-${d}`]:"round"===d},x,S),O=Object.assign(Object.assign({},b),c);return w(m.createElement(qm,Object.assign({},h,{name:f,className:E,style:O,options:k,ref:t,prefixCls:y,direction:g,vertical:u})))})),eg=Jm,tg=m.createContext({}),rg=m.createContext({}),ng=e=>e instanceof Im?e:new Im(e),og=e=>Math.round(Number(e||0)),ig=e=>og(100*e.toHsb().a),ag=(e,t)=>{const r=e.toRgb();if(!r.r&&!r.g&&!r.b){const r=e.toHsb();return r.a=t||1,ng(r)}return r.a=t||1,ng(r)},sg=(e,t)=>{const r=[{percent:0,color:e[0].color}].concat(Vo(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<r.length-1;e+=1){const n=r[e].percent,o=r[e+1].percent,i=r[e].color,a=r[e+1].color;if(n<=t&&t<=o){const e=o-n;if(0===e)return i;const r=(t-n)/e*100,s=new vm(i),l=new vm(a);return s.mix(l,r).toRgbString()}}return""},lg=e=>{let{prefixCls:t,value:r,onChange:n}=e;return m.createElement("div",{className:`${t}-clear`,onClick:()=>{if(n&&r&&!r.cleared){const e=r.toHsb();e.a=0;const t=ng(e);t.cleared=!0,n(t)}}})},cg=function(e){var t=e.className,r=e.customizeIcon,n=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,s="function"==typeof r?r(n):r;return m.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==s?s:m.createElement("span",{className:ze()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},o))};var ug=m.createContext(null);function dg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=m.useRef(null),r=m.useRef(null);return m.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return t.current},function(n){(n||null===t.current)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout((function(){t.current=null}),e)}]}var fg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],hg=void 0;function pg(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,p=e.order,g=e.component,v=void 0===g?"div":g,b=Be(e,fg),y=a&&!h;function w(e){l(c,e)}m.useEffect((function(){return function(){w(null)}}),[]);var x,S=i&&o!==hg?i(o,{index:p}):f;n||(x={opacity:y?0:1,height:y?0:hg,overflowY:y?"hidden":hg,order:a?p:hg,pointerEvents:y?"none":hg,position:y?"absolute":hg});var C={};y&&(C["aria-hidden"]=!0);var k=m.createElement(v,Te({className:ze()(!n&&r,u),style:At(At({},x),d)},C,b,{ref:t}),S);return a&&(k=m.createElement(Hh,{onResize:function(e){w(e.offsetWidth)},disabled:s},k)),k}var mg=m.forwardRef(pg);mg.displayName="Item";const gg=mg;function vg(e,t){var r=Ie(m.useState(t),2),n=r[0],o=r[1];return[n,Ws((function(t){e((function(){o(t)}))}))]}var bg=m.createContext(null),yg=["component"],wg=["className"],xg=["className"],Sg=function(e,t){var r=m.useContext(bg);if(!r){var n=e.component,o=void 0===n?"div":n,i=Be(e,yg);return m.createElement(o,Te({},i,{ref:t}))}var a=r.className,s=Be(r,wg),l=e.className,c=Be(e,xg);return m.createElement(bg.Provider,{value:null},m.createElement(gg,Te({ref:t,className:ze()(a,l)},s,c)))},Cg=m.forwardRef(Sg);Cg.displayName="RawItem";const kg=Cg;var Eg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Og="responsive",Ag="invalidate";function Tg(e){return"+ ".concat(e.length," ...")}function jg(e,t){var r,n=e.prefixCls,o=void 0===n?"rc-overflow":n,i=e.data,a=void 0===i?[]:i,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,h=e.style,p=e.className,g=e.maxCount,v=e.renderRest,b=e.renderRawRest,y=e.suffix,w=e.component,x=void 0===w?"div":w,S=e.itemComponent,C=e.onVisibleChange,k=Be(e,Eg),E="full"===f,O=(r=m.useRef(null),function(e){r.current||(r.current=[],function(e){if("undefined"==typeof MessageChannel)Ol(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,js.unstable_batchedUpdates)((function(){r.current.forEach((function(e){e()})),r.current=null}))}))),r.current.push(e)}),A=Ie(vg(O,null),2),T=A[0],j=A[1],P=T||0,M=Ie(vg(O,new Map),2),R=M[0],_=M[1],I=Ie(vg(O,0),2),N=I[0],F=I[1],D=Ie(vg(O,0),2),B=D[0],L=D[1],z=Ie(vg(O,0),2),H=z[0],U=z[1],V=Ie((0,m.useState)(null),2),W=V[0],G=V[1],q=Ie((0,m.useState)(null),2),K=q[0],X=q[1],Y=m.useMemo((function(){return null===K&&E?Number.MAX_SAFE_INTEGER:K||0}),[K,T]),$=Ie((0,m.useState)(!1),2),Z=$[0],Q=$[1],J="".concat(o,"-item"),ee=Math.max(N,B),te=g===Og,re=a.length&&te,ne=g===Ag,oe=re||"number"==typeof g&&a.length>g,ie=(0,m.useMemo)((function(){var e=a;return re?e=null===T&&E?a:a.slice(0,Math.min(a.length,P/d)):"number"==typeof g&&(e=a.slice(0,g)),e}),[a,d,T,g,re]),ae=(0,m.useMemo)((function(){return re?a.slice(Y+1):a.slice(ie.length)}),[a,ie,re,Y]),se=(0,m.useCallback)((function(e,t){var r;return"function"==typeof c?c(e):null!==(r=c&&(null==e?void 0:e[c]))&&void 0!==r?r:t}),[c]),le=(0,m.useCallback)(s||function(e){return e},[s]);function ce(e,t,r){(K!==e||void 0!==t&&t!==W)&&(X(e),r||(Q(e<a.length-1),null==C||C(e)),void 0!==t&&G(t))}function ue(e,t){_((function(r){var n=new Map(r);return null===t?n.delete(e):n.set(e,t),n}))}function de(e){return R.get(se(ie[e],e))}Pi((function(){if(P&&"number"==typeof ee&&ie){var e=H,t=ie.length,r=t-1;if(!t)return void ce(0,null);for(var n=0;n<t;n+=1){var o=de(n);if(E&&(o=o||0),void 0===o){ce(n-1,void 0,!0);break}if(e+=o,0===r&&e<=P||n===r-1&&e+de(r)<=P){ce(r,null);break}if(e+ee>P){ce(n-1,e-o-H+B);break}}y&&de(0)+H>P&&G(null)}}),[P,R,B,H,se,ie]);var fe=Z&&!!ae.length,he={};null!==W&&re&&(he={position:"absolute",left:W,top:0});var pe={prefixCls:J,responsive:re,component:S,invalidate:ne},me=l?function(e,t){var r=se(e,t);return m.createElement(bg.Provider,{key:r,value:At(At({},pe),{},{order:t,item:e,itemKey:r,registerSize:ue,display:t<=Y})},l(e,t))}:function(e,t){var r=se(e,t);return m.createElement(gg,Te({},pe,{order:t,key:r,item:e,renderItem:le,itemKey:r,registerSize:ue,display:t<=Y}))},ge={order:fe?Y:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){L(t),F(B)},display:fe},ve=v||Tg,be=b?m.createElement(bg.Provider,{value:At(At({},pe),ge)},b(ae)):m.createElement(gg,Te({},pe,ge),"function"==typeof ve?ve(ae):ve),ye=m.createElement(x,Te({className:ze()(!ne&&o,p),style:h,ref:t},k),ie.map(me),oe?be:null,y&&m.createElement(gg,Te({},pe,{responsive:te,responsiveDisabled:!re,order:Y,className:"".concat(J,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:he}),y));return te?m.createElement(Hh,{onResize:function(e,t){j(t.clientWidth)},disabled:!re},ye):ye}var Pg=m.forwardRef(jg);Pg.displayName="Overflow",Pg.Item=kg,Pg.RESPONSIVE=Og,Pg.INVALIDATE=Ag;const Mg=Pg;var Rg=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_g=function(e,t){var r=e.prefixCls,n=e.id,o=e.inputElement,i=e.autoFocus,a=e.autoComplete,s=e.editable,l=e.activeDescendantId,c=e.value,u=e.open,d=e.attrs,f=Be(e,Rg),h=o||m.createElement("input",null),p=h,g=p.ref,v=p.props;return h.props,m.cloneElement(h,At(At(At({type:"search"},function(e,t,r){var n=At(At({},e),r?t:{});return Object.keys(t).forEach((function(r){var o=t[r];"function"==typeof o&&(n[r]=function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[r])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})})),n}(f,v,!0)),{},{id:n,ref:Cn(t,g),autoComplete:a||"off",autoFocus:i,className:ze()("".concat(r,"-selection-search-input"),null==v?void 0:v.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(n,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(n,"_list"),"aria-activedescendant":u?l:void 0},d),{},{value:s?c:"",readOnly:!s,unselectable:s?null:"on",style:At(At({},v.style),{},{opacity:s?null:0})}))};const Ig=m.forwardRef(_g);function Ng(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Fg="undefined"!=typeof window&&window.document&&window.document.documentElement;function Dg(e){return["string","number"].includes(Ne(e))}function Bg(e){var t=void 0;return e&&(Dg(e.title)?t=e.title.toString():Dg(e.label)&&(t=e.label.toString())),t}function Lg(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var zg=function(e){e.preventDefault(),e.stopPropagation()};const Hg=function(e){var t,r,n=e.id,o=e.prefixCls,i=e.values,a=e.open,s=e.searchValue,l=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,h=e.showSearch,p=e.autoFocus,g=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,w=e.maxTagCount,x=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=e.tagRender,E=e.onToggleOpen,O=e.onRemove,A=e.onInputChange,T=e.onInputPaste,j=e.onInputKeyDown,P=e.onInputMouseDown,M=e.onInputCompositionStart,R=e.onInputCompositionEnd,_=e.onInputBlur,I=m.useRef(null),N=Ie((0,m.useState)(0),2),F=N[0],D=N[1],B=Ie((0,m.useState)(!1),2),L=B[0],z=B[1],H="".concat(o,"-selection"),U=a||"multiple"===f&&!1===l||"tags"===f?s:"",V="tags"===f||"multiple"===f&&!1===l||h&&(a||L);t=function(){D(I.current.scrollWidth)},r=[U],Fg?m.useLayoutEffect(t,r):m.useEffect(t,r);var W=function(e,t,r,n,o){return m.createElement("span",{title:Bg(e),className:ze()("".concat(H,"-item"),De({},"".concat(H,"-item-disabled"),r))},m.createElement("span",{className:"".concat(H,"-item-content")},t),n&&m.createElement(cg,{className:"".concat(H,"-item-remove"),onMouseDown:zg,onClick:o,customizeIcon:y},"×"))},G=function(e,t,r,n,o,i){return m.createElement("span",{onMouseDown:function(e){zg(e),E(!a)}},k({label:t,value:e,disabled:r,closable:n,onClose:o,isMaxTag:!!i}))},q=m.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},m.createElement(Ig,{ref:c,open:a,prefixCls:o,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:g,editable:V,activeDescendantId:v,value:U,onKeyDown:j,onMouseDown:P,onChange:A,onPaste:T,onCompositionStart:M,onCompositionEnd:R,onBlur:_,tabIndex:b,attrs:Jc(e,!0)}),m.createElement("span",{ref:I,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),K=m.createElement(Mg,{prefixCls:"".concat(H,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,r=e.label,n=e.value,o=!d&&!t,i=r;if("number"==typeof x&&("string"==typeof r||"number"==typeof r)){var a=String(i);a.length>x&&(i="".concat(a.slice(0,x),"..."))}var s=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof k?G(n,i,t,o,s):W(e,i,t,o,s)},renderRest:function(e){if(!i.length)return null;var t="function"==typeof C?C(e):C;return"function"==typeof k?G(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:q,itemKey:Lg,maxCount:w});return m.createElement("span",{className:"".concat(H,"-wrap")},K,!i.length&&!U&&m.createElement("span",{className:"".concat(H,"-placeholder")},u))},Ug=function(e){var t=e.inputElement,r=e.prefixCls,n=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,h=e.tabIndex,p=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,k=e.onInputCompositionEnd,E=e.onInputBlur,O=e.title,A=Ie(m.useState(!1),2),T=A[0],j=A[1],P="combobox"===c,M=P||p,R=d[0],_=g||"";P&&v&&!T&&(_=v),m.useEffect((function(){P&&j(!1)}),[P,v]);var I=!("combobox"!==c&&!u&&!p||!_),N=void 0===O?Bg(R):O,F=m.useMemo((function(){return R?null:m.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},f)}),[R,I,f,r]);return m.createElement("span",{className:"".concat(r,"-selection-wrap")},m.createElement("span",{className:"".concat(r,"-selection-search")},m.createElement(Ig,{ref:o,prefixCls:r,id:n,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:s,editable:M,activeDescendantId:l,value:_,onKeyDown:y,onMouseDown:w,onChange:function(e){j(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:k,onBlur:E,tabIndex:h,attrs:Jc(e,!0),maxLength:P?b:void 0})),!P&&R?m.createElement("span",{className:"".concat(r,"-selection-item"),title:N,style:I?{visibility:"hidden"}:void 0},R.label):null,F)};var Vg=function(e,t){var r=(0,m.useRef)(null),n=(0,m.useRef)(!1),o=e.prefixCls,i=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.disabled,u=e.prefix,d=e.autoClearSearchValue,f=e.onSearch,h=e.onSearchSubmit,p=e.onToggleOpen,g=e.onInputKeyDown,v=e.onInputBlur,b=e.domRef;m.useImperativeHandle(t,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=Ie(dg(0),2),w=y[0],x=y[1],S=(0,m.useRef)(null),C=function(e){!1!==f(e,!0,n.current)&&p(!0)},k={inputRef:r,onInputKeyDown:function(e){var t,o=e.which,s=r.current instanceof HTMLTextAreaElement;s||!i||o!==$c.UP&&o!==$c.DOWN||e.preventDefault(),g&&g(e),o!==$c.ENTER||"tags"!==a||n.current||i||null==h||h(e.target.value),s&&!i&&~[$c.UP,$c.DOWN,$c.LEFT,$c.RIGHT].indexOf(o)||(t=o)&&![$c.ESC,$c.SHIFT,$c.BACKSPACE,$c.TAB,$c.WIN_KEY,$c.ALT,$c.META,$c.WIN_KEY_RIGHT,$c.CTRL,$c.SEMICOLON,$c.EQUALS,$c.CAPS_LOCK,$c.CONTEXT_MENU,$c.F1,$c.F2,$c.F3,$c.F4,$c.F5,$c.F6,$c.F7,$c.F8,$c.F9,$c.F10,$c.F11,$c.F12].includes(t)&&p(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(l&&S.current&&/[\r\n]/.test(S.current)){var r=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(r,S.current)}S.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData,r=null==t?void 0:t.getData("text");S.current=r||""},onInputCompositionStart:function(){n.current=!0},onInputCompositionEnd:function(e){n.current=!1,"combobox"!==a&&C(e.target.value)},onInputBlur:v},E="multiple"===a||"tags"===a?m.createElement(Hg,Te({},e,k)):m.createElement(Ug,Te({},e,k));return m.createElement("div",{ref:b,className:"".concat(o,"-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=w();e.target===r.current||t||"combobox"===a&&c||e.preventDefault(),("combobox"===a||s&&t)&&i||(i&&!1!==d&&f("",!0,!1),p())}},u&&m.createElement("div",{className:"".concat(o,"-prefix")},u),E)};const Wg=m.forwardRef(Vg);var Gg=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],qg=function(e,t){var r=e.prefixCls,n=(e.disabled,e.visible),o=e.children,i=e.popupElement,a=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,h=e.builtinPlacements,p=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,w=e.getTriggerDOMNode,x=e.onPopupVisibleChange,S=e.onPopupMouseEnter,C=Be(e,Gg),k="".concat(r,"-dropdown"),E=i;g&&(E=g(i));var O=m.useMemo((function(){return h||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"}}}(p)}),[h,p]),A=a?"".concat(k,"-").concat(a):s,T="number"==typeof p,j=m.useMemo((function(){return T?null:!1===p?"minWidth":"width"}),[p,T]),P=l;T&&(P=At(At({},P),{},{width:p}));var M=m.useRef(null);return m.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.popupElement}}})),m.createElement(gp,Te({},C,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:k,popupTransitionName:A,popup:m.createElement("div",{onMouseEnter:S},E),ref:M,stretch:j,popupAlign:v,popupVisible:n,getPopupContainer:b,popupClassName:ze()(c,De({},"".concat(k,"-empty"),y)),popupStyle:P,getTriggerDOMNode:w,onPopupVisibleChange:x}),o)};const Kg=m.forwardRef(qg);function Xg(e,t){var r,n=e.key;return"value"in e&&(r=e.value),null!=n?n:void 0!==r?r:"rc-index-key-".concat(t)}function Yg(e){return void 0!==e&&!Number.isNaN(e)}function $g(e,t){var r=e||{},n=r.label||(t?"children":"label");return{label:n,value:r.value||"value",options:r.options||"options",groupLabel:r.groupLabel||n}}function Zg(e){var t=At({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Xt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Qg=m.createContext(null);function Jg(e){var t=e.visible,r=e.values;return t?m.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map((function(e){var t=e.label,r=e.value;return["number","string"].includes(Ne(t))?t:r})).join(", ")),r.length>50?", ...":null):null}var ev=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],tv=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],rv=function(e){return"tags"===e||"multiple"===e},nv=m.forwardRef((function(e,t){var r,n=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,h=e.notFoundContent,p=void 0===h?"Not Found":h,g=e.onClear,v=e.mode,b=e.disabled,y=e.loading,w=e.getInputElement,x=e.getRawInputElement,S=e.open,C=e.defaultOpen,k=e.onDropdownVisibleChange,E=e.activeValue,O=e.onActiveValueChange,A=e.activeDescendantId,T=e.searchValue,j=e.autoClearSearchValue,P=e.onSearch,M=e.onSearchSplit,R=e.tokenSeparators,_=e.allowClear,I=e.prefix,N=e.suffixIcon,F=e.clearIcon,D=e.OptionList,B=e.animation,L=e.transitionName,z=e.dropdownStyle,H=e.dropdownClassName,U=e.dropdownMatchSelectWidth,V=e.dropdownRender,W=e.dropdownAlign,G=e.placement,q=e.builtinPlacements,K=e.getPopupContainer,X=e.showAction,Y=void 0===X?[]:X,$=e.onFocus,Z=e.onBlur,Q=e.onKeyUp,J=e.onKeyDown,ee=e.onMouseDown,te=Be(e,ev),re=rv(v),ne=(void 0!==a?a:re)||"combobox"===v,oe=At({},te);tv.forEach((function(e){delete oe[e]})),null==c||c.forEach((function(e){delete oe[e]}));var ie=Ie(m.useState(!1),2),ae=ie[0],se=ie[1];m.useEffect((function(){se(Gh())}),[]);var le=m.useRef(null),ce=m.useRef(null),ue=m.useRef(null),de=m.useRef(null),fe=m.useRef(null),he=m.useRef(!1),pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Ie(m.useState(!1),2),r=t[0],n=t[1],o=m.useRef(null),i=function(){window.clearTimeout(o.current)};return m.useEffect((function(){return i}),[]),[r,function(t,r){i(),o.current=window.setTimeout((function(){n(t),r&&r()}),e)},i]}(),me=Ie(pe,3),ge=me[0],ve=me[1],be=me[2];m.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=de.current)||void 0===e?void 0:e.focus,blur:null===(t=de.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=fe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:le.current||ce.current}}));var ye=m.useMemo((function(){var e;if("combobox"!==v)return T;var t=null===(e=u[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[T,v,u]),we="combobox"===v&&"function"==typeof w&&w()||null,xe="function"==typeof x&&x(),Se=kn(ce,null==xe||null===(r=xe.props)||void 0===r?void 0:r.ref),Ce=Ie(m.useState(!1),2),ke=Ce[0],Ee=Ce[1];Pi((function(){Ee(!0)}),[]);var Oe=Ie(Ks(!1,{defaultValue:C,value:S}),2),Ae=Oe[0],je=Oe[1],Pe=!!ke&&Ae,Me=!p&&f;(b||Me&&Pe&&"combobox"===v)&&(Pe=!1);var Re=!Me&&Pe,_e=m.useCallback((function(e){var t=void 0!==e?e:!Pe;b||(je(t),Pe!==t&&(null==k||k(t)))}),[b,Pe,je,k]),Fe=m.useMemo((function(){return(R||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[R]),Le=m.useContext(Qg)||{},He=Le.maxCount,Ue=Le.rawValues,Ve=function(e,t,r){if(!(re&&Yg(He)&&(null==Ue?void 0:Ue.size)>=He)){var n=!0,o=e;null==O||O(null);var i=function(e,t,r){if(!t||!t.length)return null;var n=!1,o=function e(t,r){var o=za(r),i=o[0],a=o.slice(1);if(!i)return[t];var s=t.split(i);return n=n||s.length>1,s.reduce((function(t,r){return[].concat(Vo(t),Vo(e(r,a)))}),[]).filter(Boolean)}(e,t);return n?void 0!==r?o.slice(0,r):o:null}(e,R,Yg(He)?He-Ue.size:void 0),a=r?null:i;return"combobox"!==v&&a&&(o="",null==M||M(a),_e(!1),n=!1),P&&ye!==o&&P(o,{source:t?"typing":"effect"}),n}};m.useEffect((function(){Pe||re||"combobox"===v||Ve("",!1,!1)}),[Pe]),m.useEffect((function(){Ae&&b&&je(!1),b&&!he.current&&ve(!1)}),[b]);var We=Ie(dg(),2),Ge=We[0],qe=We[1],Ke=m.useRef(!1),Xe=m.useRef(!1),Ye=[];m.useEffect((function(){return function(){Ye.forEach((function(e){return clearTimeout(e)})),Ye.splice(0,Ye.length)}}),[]);var $e,Ze=Ie(m.useState({}),2)[1];xe&&($e=function(e){_e(e)}),function(e,t,r,n){var o=m.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},m.useEffect((function(){function e(e){var t,r;if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var n=e.target;n.shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),o.current.open&&[le.current,null===(r=ue.current)||void 0===r?void 0:r.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,Re,_e,!!xe);var Qe,Je=m.useMemo((function(){return At(At({},e),{},{notFoundContent:p,open:Pe,triggerOpen:Re,id:n,showSearch:ne,multiple:re,toggleOpen:_e})}),[e,p,Re,Pe,n,ne,re,_e]),et=!!N||y;et&&(Qe=m.createElement(cg,{className:ze()("".concat(o,"-arrow"),De({},"".concat(o,"-arrow-loading"),y)),customizeIcon:N,customizeIconProps:{loading:y,searchValue:ye,open:Pe,focused:ge,showSearch:ne}}));var tt,rt=function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=m.useMemo((function(){return"object"===Ne(n)?n.clearIcon:o||void 0}),[n,o]);return{allowClear:m.useMemo((function(){return!(i||!n||!r.length&&!a||"combobox"===s&&""===a)}),[n,i,r.length,a,s]),clearIcon:m.createElement(cg,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(o,(function(){var e;null==g||g(),null===(e=de.current)||void 0===e||e.focus(),d([],{type:"clear",values:u}),Ve("",!1,!1)}),u,_,F,b,ye,v),nt=rt.allowClear,ot=rt.clearIcon,it=m.createElement(D,{ref:fe}),at=ze()(o,i,De(De(De(De(De(De(De(De(De(De({},"".concat(o,"-focused"),ge),"".concat(o,"-multiple"),re),"".concat(o,"-single"),!re),"".concat(o,"-allow-clear"),_),"".concat(o,"-show-arrow"),et),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),Pe),"".concat(o,"-customize-input"),we),"".concat(o,"-show-search"),ne)),st=m.createElement(Kg,{ref:ue,disabled:b,prefixCls:o,visible:Re,popupElement:it,animation:B,transitionName:L,dropdownStyle:z,dropdownClassName:H,direction:l,dropdownMatchSelectWidth:U,dropdownRender:V,dropdownAlign:W,placement:G,builtinPlacements:q,getPopupContainer:K,empty:f,getTriggerDOMNode:function(e){return ce.current||e},onPopupVisibleChange:$e,onPopupMouseEnter:function(){Ze({})}},xe?m.cloneElement(xe,{ref:Se}):m.createElement(Wg,Te({},e,{domRef:ce,prefixCls:o,inputElement:we,ref:de,id:n,prefix:I,showSearch:ne,autoClearSearchValue:j,mode:v,activeDescendantId:A,tagRender:s,values:u,open:Pe,onToggleOpen:_e,activeValue:E,searchValue:ye,onSearch:Ve,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=u.filter((function(t){return t!==e}));d(t,{type:"remove",values:[e]})},tokenWithEnter:Fe,onInputBlur:function(){Ke.current=!1}})));return tt=xe?st:m.createElement("div",Te({className:at},oe,{ref:le,onMouseDown:function(e){var t,r=e.target,n=null===(t=ue.current)||void 0===t?void 0:t.getPopupElement();if(n&&n.contains(r)){var o=setTimeout((function(){var e,t=Ye.indexOf(o);-1!==t&&Ye.splice(t,1),be(),ae||n.contains(document.activeElement)||null===(e=de.current)||void 0===e||e.focus()}));Ye.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==ee||ee.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,r=Ge(),n=e.key,o="Enter"===n;if(o&&("combobox"!==v&&e.preventDefault(),Pe||_e(!0)),qe(!!ye),"Backspace"===n&&!r&&re&&!ye&&u.length){for(var i=Vo(u),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&d(i,{type:"remove",values:[a]})}for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];!Pe||o&&Ke.current||(o&&(Ke.current=!0),null===(t=fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(f))),null==J||J.apply(void 0,[e].concat(f))},onKeyUp:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o;Pe&&(null===(o=fe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(r))),"Enter"===e.key&&(Ke.current=!1),null==Q||Q.apply(void 0,[e].concat(r))},onFocus:function(){ve(!0),b||($&&!Xe.current&&$.apply(void 0,arguments),Y.includes("focus")&&_e(!0)),Xe.current=!0},onBlur:function(){he.current=!0,ve(!1,(function(){Xe.current=!1,he.current=!1,_e(!1)})),b||(ye&&("tags"===v?P(ye,{source:"submit"}):"multiple"===v&&P("",{source:"blur"})),Z&&Z.apply(void 0,arguments))}}),m.createElement(Jg,{visible:ge&&!Pe,values:u}),st,Qe,nt&&ot),m.createElement(ug.Provider,{value:Je},tt)}));const ov=nv;var iv=function(){return null};iv.isSelectOptGroup=!0;const av=iv;var sv=function(){return null};sv.isSelectOption=!0;const lv=sv;var cv=m.forwardRef((function(e,t){var r=e.height,n=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==n&&(d={height:r,position:"relative",overflow:"hidden"},f=At(At({},f),{},De(De(De(De(De({transform:"translateY(".concat(n,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:d},m.createElement(Hh,{onResize:function(e){e.offsetHeight&&s&&s()}},m.createElement("div",Te({style:f,className:ze()(De({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}));cv.displayName="Filler";const uv=cv;function dv(e){var t=e.children,r=e.setRef,n=m.useCallback((function(e){r(e)}),[]);return m.cloneElement(t,{ref:n})}const fv="object"===("undefined"==typeof navigator?"undefined":Ne(navigator))&&/Firefox/i.test(navigator.userAgent),hv=function(e,t,r,n){var o=(0,m.useRef)(!1),i=(0,m.useRef)(null),a=(0,m.useRef)({top:e,bottom:t,left:r,right:n});return a.current.top=e,a.current.bottom=t,a.current.left=r,a.current.right=n,function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return r&&n?(clearTimeout(i.current),o.current=!1):n&&!o.current||(clearTimeout(i.current),o.current=!0,i.current=setTimeout((function(){o.current=!1}),50)),!o.current&&n}};const pv=function(){function e(){ei(this,e),De(this,"maps",void 0),De(this,"id",0),De(this,"diffRecords",new Map),this.maps=Object.create(null)}return ri(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function mv(e){var t=parseFloat(e);return isNaN(t)?0:t}var gv=14/15;function vv(e){return Math.floor(Math.pow(e,.5))}function bv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var yv=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,h=e.thumbStyle,p=e.showScrollBar,g=Ie(m.useState(!1),2),v=g[0],b=g[1],y=Ie(m.useState(null),2),w=y[0],x=y[1],S=Ie(m.useState(null),2),C=S[0],k=S[1],E=!n,O=m.useRef(),A=m.useRef(),T=Ie(m.useState(p),2),j=T[0],P=T[1],M=m.useRef(),R=function(){!0!==p&&!1!==p&&(clearTimeout(M.current),P(!0),M.current=setTimeout((function(){P(!1)}),3e3))},_=i-d||0,I=d-u||0,N=m.useMemo((function(){return 0===o||0===_?0:o/_*I}),[o,_,I]),F=m.useRef({top:N,dragging:v,pageY:w,startTop:C});F.current={top:N,dragging:v,pageY:w,startTop:C};var D=function(e){b(!0),x(bv(e,c)),k(F.current.top),a(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=O.current,r=A.current;return t.addEventListener("touchstart",e,{passive:!1}),r.addEventListener("touchstart",D,{passive:!1}),function(){t.removeEventListener("touchstart",e),r.removeEventListener("touchstart",D)}}),[]);var B=m.useRef();B.current=_;var L=m.useRef();L.current=I,m.useEffect((function(){if(v){var e,t=function(t){var r=F.current,n=r.dragging,o=r.pageY,i=r.startTop;Ol.cancel(e);var a=O.current.getBoundingClientRect(),s=d/(c?a.width:a.height);if(n){var u=(bv(t,c)-o)*s,f=i;!E&&c?f-=u:f+=u;var h=B.current,p=L.current,m=p?f/p:0,g=Math.ceil(m*h);g=Math.max(g,0),g=Math.min(g,h),e=Ol((function(){l(g,c)}))}},r=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",r,{passive:!0}),window.addEventListener("touchend",r,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",r),window.removeEventListener("touchend",r),Ol.cancel(e)}}}),[v]),m.useEffect((function(){return R(),function(){clearTimeout(M.current)}}),[o]),m.useImperativeHandle(t,(function(){return{delayHidden:R}}));var z="".concat(r,"-scrollbar"),H={position:"absolute",visibility:j?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(H.height=8,H.left=0,H.right=0,H.bottom=0,U.height="100%",U.width=u,E?U.left=N:U.right=N):(H.width=8,H.top=0,H.bottom=0,E?H.right=0:H.left=0,U.width="100%",U.height=u,U.top=N),m.createElement("div",{ref:O,className:ze()(z,De(De(De({},"".concat(z,"-horizontal"),c),"".concat(z,"-vertical"),!c),"".concat(z,"-visible"),j)),style:At(At({},H),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},m.createElement("div",{ref:A,className:ze()("".concat(z,"-thumb"),De({},"".concat(z,"-thumb-moving"),v)),style:At(At({},U),h),onMouseDown:D}))}));const wv=yv;function xv(){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,20),Math.floor(t)}var Sv=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Cv=[],kv={overflowY:"auto",overflowAnchor:"none"};function Ev(e,t){var r=e.prefixCls,n=void 0===r?"rc-virtual-list":r,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,f=e.itemKey,h=e.virtual,p=e.direction,g=e.scrollWidth,v=e.component,b=void 0===v?"div":v,y=e.onScroll,w=e.onVirtualScroll,x=e.onVisibleChange,S=e.innerProps,C=e.extraRender,k=e.styles,E=e.showScrollBar,O=void 0===E?"optional":E,A=Be(e,Sv),T=m.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),j=function(e){var t=Ie(m.useState(0),2),r=t[0],n=t[1],o=(0,m.useRef)(new Map),i=(0,m.useRef)(new pv),a=(0,m.useRef)(0);function s(){a.current+=1}function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;o.current.forEach((function(t,r){if(t&&t.offsetParent){var n=t.offsetHeight,o=getComputedStyle(t),a=o.marginTop,s=o.marginBottom,l=n+mv(a)+mv(s);i.current.get(r)!==l&&(i.current.set(r,l),e=!0)}})),e&&n((function(e){return e+1}))};if(e)t();else{a.current+=1;var r=a.current;Promise.resolve().then((function(){r===a.current&&t()}))}}return(0,m.useEffect)((function(){return s}),[]),[function(t,r){var n=e(t);o.current.get(n);r?(o.current.set(n,r),l()):o.current.delete(n)},l,i.current,r]}(T),P=Ie(j,4),M=P[0],R=P[1],_=P[2],I=P[3],N=!(!1===h||!i||!a),F=m.useMemo((function(){return Object.values(_.maps).reduce((function(e,t){return e+t}),0)}),[_.id,_.maps]),D=N&&u&&(Math.max(a*u.length,F)>i||!!g),B="rtl"===p,L=ze()(n,De({},"".concat(n,"-rtl"),B),o),z=u||Cv,H=(0,m.useRef)(),U=(0,m.useRef)(),V=(0,m.useRef)(),W=Ie((0,m.useState)(0),2),G=W[0],q=W[1],K=Ie((0,m.useState)(0),2),X=K[0],Y=K[1],$=Ie((0,m.useState)(!1),2),Z=$[0],Q=$[1],J=function(){Q(!0)},ee=function(){Q(!1)},te={getKey:T};function re(e){q((function(t){var r=function(e){var t=e;return Number.isNaN(ye.current)||(t=Math.min(t,ye.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return H.current.scrollTop=r,r}))}var ne=(0,m.useRef)({start:0,end:z.length}),oe=(0,m.useRef)(),ie=Ie(function(e,t,r){var n=Ie(m.useState(e),2),o=n[0],i=n[1],a=Ie(m.useState(null),2),s=a[0],l=a[1];return m.useEffect((function(){var n=function(e,t,r){var n,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(n=e,o=t):(n=t,o=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?r(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=l(n[d]);if(f!==l(o[d])){c=d,u=u||f!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==n?void 0:n.index)&&(null==r||r(n.index),l(e[n.index])),i(e)}),[e]),[s]}(z,T),1)[0];oe.current=ie;var ae=m.useMemo((function(){if(!N)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};var e;if(!D)return{scrollHeight:(null===(e=U.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:z.length-1,offset:void 0};for(var t,r,n,o=0,s=z.length,l=0;l<s;l+=1){var c=z[l],u=T(c),d=_.get(u),f=o+(void 0===d?a:d);f>=G&&void 0===t&&(t=l,r=o),f>G+i&&void 0===n&&(n=l),o=f}return void 0===t&&(t=0,r=0,n=Math.ceil(i/a)),void 0===n&&(n=z.length-1),{scrollHeight:o,start:t,end:n=Math.min(n+1,z.length-1),offset:r}}),[D,N,G,z,I,i]),se=ae.scrollHeight,le=ae.start,ce=ae.end,ue=ae.offset;ne.current.start=le,ne.current.end=ce,m.useLayoutEffect((function(){var e=_.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],r=e.get(t),n=z[le];if(n&&void 0===r&&T(n)===t){var o=_.get(t)-a;re((function(e){return e+o}))}}_.resetRecord()}),[se]);var de=Ie(m.useState({width:0,height:i}),2),fe=de[0],he=de[1],pe=(0,m.useRef)(),me=(0,m.useRef)(),ge=m.useMemo((function(){return xv(fe.width,g)}),[fe.width,g]),ve=m.useMemo((function(){return xv(fe.height,se)}),[fe.height,se]),be=se-i,ye=(0,m.useRef)(be);ye.current=be;var we=G<=0,xe=G>=be,Se=X<=0,Ce=X>=g,ke=hv(we,xe,Se,Ce),Ee=function(){return{x:B?-X:X,y:G}},Oe=(0,m.useRef)(Ee()),Ae=Ws((function(e){if(w){var t=At(At({},Ee()),e);Oe.current.x===t.x&&Oe.current.y===t.y||(w(t),Oe.current=t)}}));function je(e,t){var r=e;t?((0,js.flushSync)((function(){Y(r)})),Ae()):re(r)}var Pe=function(e){var t=e,r=g?g-fe.width:0;return t=Math.max(t,0),Math.min(t,r)},Me=Ws((function(e,t){t?((0,js.flushSync)((function(){Y((function(t){return Pe(t+(B?-e:e))}))})),Ae()):re((function(t){return t+e}))})),Re=Ie(function(e,t,r,n,o,i,a){var s=(0,m.useRef)(0),l=(0,m.useRef)(null),c=(0,m.useRef)(null),u=(0,m.useRef)(!1),d=hv(t,r,n,o),f=(0,m.useRef)(null),h=(0,m.useRef)(null);return[function(t){if(e){Ol.cancel(h.current),h.current=Ol((function(){f.current=null}),2);var r=t.deltaX,n=t.deltaY,o=t.shiftKey,p=r,m=n;("sx"===f.current||!f.current&&o&&n&&!r)&&(p=n,m=0,f.current="sx");var g=Math.abs(p),v=Math.abs(m);null===f.current&&(f.current=i&&g>v?"x":"y"),"y"===f.current?function(e,t){if(Ol.cancel(l.current),!d(!1,t)){var r=e;r._virtualHandled||(r._virtualHandled=!0,s.current+=t,c.current=t,fv||r.preventDefault(),l.current=Ol((function(){var e=u.current?10:1;a(s.current*e,!1),s.current=0})))}}(t,m):function(e,t){a(t,!0),fv||e.preventDefault()}(t,p)}},function(t){e&&(u.current=t.detail===c.current)}]}(N,we,xe,Se,Ce,!!g,Me),2),_e=Re[0],Fe=Re[1];!function(e,t,r){var n,o=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),s=(0,m.useRef)(null),l=(0,m.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),s=i.current-t,c=a.current-n,u=Math.abs(s)>Math.abs(c);u?i.current=t:a.current=n;var d=r(u,u?s:c,!1,e);d&&e.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval((function(){u?s*=gv:c*=gv;var e=Math.floor(u?s:c);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},u=function(){o.current=!1,n()},d=function(e){n(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};n=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},Pi((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),n(),clearInterval(l.current)}}),[e])}(N,H,(function(e,t,r,n){var o=n;return!(ke(e,t,r)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),_e({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(e,t){m.useEffect((function(){var r=t.current;if(e&&r){var n,o,i=!1,a=function(){Ol.cancel(n)},s=function e(){a(),n=Ol((function(){var t;t=o,re((function(e){return e+t})),e()}))},l=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},c=function(){i=!1,a()},u=function(e){if(i){var t=bv(e,!1),n=r.getBoundingClientRect(),l=n.top,c=n.bottom;t<=l?(o=-vv(l-t),s()):t>=c?(o=vv(t-c),s()):a()}};return r.addEventListener("mousedown",l),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",u),function(){r.removeEventListener("mousedown",l),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",u),a()}}}),[e])}(D,H),Pi((function(){function e(e){var t=we&&e.detail<0,r=xe&&e.detail>0;!N||t||r||e.preventDefault()}var t=H.current;return t.addEventListener("wheel",_e,{passive:!1}),t.addEventListener("DOMMouseScroll",Fe,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",_e),t.removeEventListener("DOMMouseScroll",Fe),t.removeEventListener("MozMousePixelScroll",e)}}),[N,we,xe]),Pi((function(){if(g){var e=Pe(X);Y(e),Ae({x:e})}}),[fe.width,g]);var Le=function(){var e,t;null===(e=pe.current)||void 0===e||e.delayHidden(),null===(t=me.current)||void 0===t||t.delayHidden()},He=function(e,t,r,n,o,i,a,s){var l=m.useRef(),c=Ie(m.useState(null),2),u=c[0],d=c[1];return Pi((function(){if(u&&u.times<10){if(!e.current)return void d((function(e){return At({},e)}));i();var s=u.targetAlign,l=u.originAlign,c=u.index,f=u.offset,h=e.current.clientHeight,p=!1,m=s,g=null;if(h){for(var v=s||l,b=0,y=0,w=0,x=Math.min(t.length-1,c),S=0;S<=x;S+=1){var C=o(t[S]);y=b;var k=r.get(C);b=w=y+(void 0===k?n:k)}for(var E="top"===v?f:h-f,O=x;O>=0;O-=1){var A=o(t[O]),T=r.get(A);if(void 0===T){p=!0;break}if((E-=T)<=0)break}switch(v){case"top":g=y-f;break;case"bottom":g=w-h+f;break;default:var j=e.current.scrollTop;y<j?m="top":w>j+h&&(m="bottom")}null!==g&&a(g),g!==u.lastTop&&(p=!0)}p&&d(At(At({},u),{},{times:u.times+1,targetAlign:m,lastTop:g}))}}),[u,e.current]),function(e){if(null!=e){if(Ol.cancel(l.current),"number"==typeof e)a(e);else if(e&&"object"===Ne(e)){var r,n=e.align;r="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;d({times:0,index:r,offset:void 0===i?0:i,originAlign:n})}}else s()}}(H,z,_,a,T,(function(){return R(!0)}),re,Le);m.useImperativeHandle(t,(function(){return{nativeElement:V.current,getScrollInfo:Ee,scrollTo:function(e){var t;(t=e)&&"object"===Ne(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Y(Pe(e.left)),He(e.top)):He(e)}}})),Pi((function(){if(x){var e=z.slice(le,ce+1);x(e,z)}}),[le,ce,z]);var Ue=function(e,t,r,n){var o=Ie(m.useMemo((function(){return[new Map,[]]}),[e,r.id,n]),2),i=o[0],a=o[1];return function(o){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=i.get(o),c=i.get(s);if(void 0===l||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var f,h=e[d],p=t(h);i.set(p,d);var m=null!==(f=r.get(p))&&void 0!==f?f:n;if(a[d]=(a[d-1]||0)+m,p===o&&(l=d),p===s&&(c=d),void 0!==l&&void 0!==c)break}return{top:a[l-1]||0,bottom:a[c]}}}(z,T,_,a),Ve=null==C?void 0:C({start:le,end:ce,virtual:D,offsetX:X,offsetY:ue,rtl:B,getSize:Ue}),We=function(e,t,r,n,o,i,a,s){var l=s.getKey;return e.slice(t,r+1).map((function(e,r){var s=a(e,t+r,{style:{width:n},offsetX:o}),c=l(e);return m.createElement(dv,{key:c,setRef:function(t){return i(e,t)}},s)}))}(z,le,ce,g,X,M,d,te),Ge=null;i&&(Ge=At(De({},l?"height":"maxHeight",i),kv),N&&(Ge.overflowY="hidden",g&&(Ge.overflowX="hidden"),Z&&(Ge.pointerEvents="none")));var qe={};return B&&(qe.dir="rtl"),m.createElement("div",Te({ref:V,style:At(At({},c),{},{position:"relative"}),className:L},qe,A),m.createElement(Hh,{onResize:function(e){he({width:e.offsetWidth,height:e.offsetHeight})}},m.createElement(b,{className:"".concat(n,"-holder"),style:Ge,ref:H,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==G&&re(t),null==y||y(e),Ae()},onMouseEnter:Le},m.createElement(uv,{prefixCls:n,height:se,offsetX:X,offsetY:ue,scrollWidth:g,onInnerResize:R,ref:U,innerProps:S,rtl:B,extra:Ve},We))),D&&se>i&&m.createElement(wv,{ref:pe,prefixCls:n,scrollOffset:G,scrollRange:se,rtl:B,onScroll:je,onStartMove:J,onStopMove:ee,spinSize:ve,containerSize:fe.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb,showScrollBar:O}),D&&g>fe.width&&m.createElement(wv,{ref:me,prefixCls:n,scrollOffset:X,scrollRange:g,rtl:B,onScroll:je,onStartMove:J,onStopMove:ee,spinSize:ge,containerSize:fe.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb,showScrollBar:O}))}var Ov=m.forwardRef(Ev);Ov.displayName="List";const Av=Ov;var Tv=["disabled","title","children","style","className"];function jv(e){return"string"==typeof e||"number"==typeof e}var Pv=function(e,t){var r=m.useContext(ug),n=r.prefixCls,o=r.id,i=r.open,a=r.multiple,s=r.mode,l=r.searchValue,c=r.toggleOpen,u=r.notFoundContent,d=r.onPopupScroll,f=m.useContext(Qg),h=f.maxCount,p=f.flattenOptions,g=f.onActiveValue,v=f.defaultActiveFirstOption,b=f.onSelect,y=f.menuItemSelectedIcon,w=f.rawValues,x=f.fieldNames,S=f.virtual,C=f.direction,k=f.listHeight,E=f.listItemHeight,O=f.optionRender,A="".concat(n,"-item"),T=gn((function(){return p}),[i,p],(function(e,t){return t[0]&&e[1]!==t[1]})),j=m.useRef(null),P=m.useMemo((function(){return a&&Yg(h)&&(null==w?void 0:w.size)>=h}),[a,h,null==w?void 0:w.size]),M=function(e){e.preventDefault()},R=function(e){var t;null===(t=j.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},_=m.useCallback((function(e){return"combobox"!==s&&w.has(e)}),[s,Vo(w).toString(),w.size]),I=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=T.length,n=0;n<r;n+=1){var o=(e+n*t+r)%r,i=T[o]||{},a=i.group,s=i.data;if(!a&&(null==s||!s.disabled)&&(_(s.value)||!P))return o}return-1},N=Ie(m.useState((function(){return I(0)})),2),F=N[0],D=N[1],B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(e);var r={source:t?"keyboard":"mouse"},n=T[e];n?g(n.value,e,r):g(null,-1,r)};(0,m.useEffect)((function(){B(!1!==v?I(0):-1)}),[T.length,l]);var L=m.useCallback((function(e){return"combobox"===s?String(e).toLowerCase()===l.toLowerCase():w.has(e)}),[s,l,Vo(w).toString(),w.size]);(0,m.useEffect)((function(){var e,t=setTimeout((function(){if(!a&&i&&1===w.size){var e=Array.from(w)[0],t=T.findIndex((function(t){var r=t.data;return l?String(r.value).startsWith(l):r.value===e}));-1!==t&&(B(t),R(t))}}));return i&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[i,l]);var z=function(e){void 0!==e&&b(e,{selected:!w.has(e)}),a||c(!1)};if(m.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,r=e.ctrlKey;switch(t){case $c.N:case $c.P:case $c.UP:case $c.DOWN:var n=0;if(t===$c.UP?n=-1:t===$c.DOWN?n=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&r&&(t===$c.N?n=1:t===$c.P&&(n=-1)),0!==n){var o=I(F+n,n);R(o),B(o,!0)}break;case $c.TAB:case $c.ENTER:var a,s=T[F];!s||null!=s&&null!==(a=s.data)&&void 0!==a&&a.disabled||P?z(void 0):z(s.value),i&&e.preventDefault();break;case $c.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===T.length)return m.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(A,"-empty"),onMouseDown:M},u);var H=Object.keys(x).map((function(e){return x[e]})),U=function(e){return e.label};function V(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var W=function(e){var t=T[e];if(!t)return null;var r=t.data||{},n=r.value,o=t.group,i=Jc(r,!0),a=U(t);return t?m.createElement("div",Te({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},V(t,e),{"aria-selected":L(n)}),n):null},G={role:"listbox",id:"".concat(o,"_list")};return m.createElement(m.Fragment,null,S&&m.createElement("div",Te({},G,{style:{height:0,width:0,overflow:"hidden"}}),W(F-1),W(F),W(F+1)),m.createElement(Av,{itemKey:"key",ref:j,data:T,height:k,itemHeight:E,fullHeight:!1,onMouseDown:M,onScroll:d,virtual:S,direction:C,innerProps:S?null:G},(function(e,t){var r=e.group,n=e.groupOption,o=e.data,i=e.label,a=e.value,s=o.key;if(r){var l,c=null!==(l=o.title)&&void 0!==l?l:jv(i)?i.toString():void 0;return m.createElement("div",{className:ze()(A,"".concat(A,"-group"),o.className),title:c},void 0!==i?i:s)}var u=o.disabled,d=o.title,f=(o.children,o.style),h=o.className,p=kf(Be(o,Tv),H),g=_(a),v=u||!g&&P,b="".concat(A,"-option"),w=ze()(A,b,h,De(De(De(De({},"".concat(b,"-grouped"),n),"".concat(b,"-active"),F===t&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),g)),x=U(e),C=!y||"function"==typeof y||g,k="number"==typeof x?x:x||a,E=jv(k)?k.toString():void 0;return void 0!==d&&(E=d),m.createElement("div",Te({},Jc(p),S?{}:V(e,t),{"aria-selected":L(a),className:w,title:E,onMouseMove:function(){F===t||v||B(t)},onClick:function(){v||z(a)},style:f}),m.createElement("div",{className:"".concat(b,"-content")},"function"==typeof O?O(e,{index:t}):k),m.isValidElement(y)||g,C&&m.createElement(cg,{className:"".concat(A,"-option-state"),customizeIcon:y,customizeIconProps:{value:a,disabled:v,isSelected:g}},g?"✓":null))})))};const Mv=m.forwardRef(Pv);function Rv(e,t){return Ng(e).join("").toUpperCase().includes(t)}var _v=0,Iv=Tt();var Nv=["children","value"],Fv=["children"];function Dv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return sd(e).map((function(e,r){if(!m.isValidElement(e)||!e.type)return null;var n=e,o=n.type.isSelectOptGroup,i=n.key,a=n.props,s=a.children,l=Be(a,Fv);return t||!o?function(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value;return At({key:r,value:void 0!==i?i:r,children:o},Be(n,Nv))}(e):At(At({key:"__RC_SELECT_GRP__".concat(null===i?r:i,"__"),label:i},l),{},{options:Dv(s)})})).filter((function(e){return e}))}const Bv=function(e,t,r,n,o){return m.useMemo((function(){var i=e;!e&&(i=Dv(t));var a=new Map,s=new Map,l=function(e,t,r){r&&"string"==typeof r&&e.set(t[r],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[r.options]||i?(a.set(u[r.value],u),l(s,u,r.label),l(s,u,n),l(s,u,o)):e(u[r.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}}),[e,t,r,n,o])};function Lv(e){var t=m.useRef();t.current=e;var r=m.useCallback((function(){return t.current.apply(t,arguments)}),[]);return r}var zv=["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"],Hv=["inputValue"],Uv=m.forwardRef((function(e,t){var r=e.id,n=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,h=e.onSelect,p=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,w=e.optionFilterProp,x=e.optionLabelProp,S=e.options,C=e.optionRender,k=e.children,E=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,A=e.virtual,T=e.direction,j=e.listHeight,P=void 0===j?200:j,M=e.listItemHeight,R=void 0===M?20:M,_=e.labelRender,I=e.value,N=e.defaultValue,F=e.labelInValue,D=e.onChange,B=e.maxCount,L=Be(e,zv),z=function(e){var t=Ie(m.useState(),2),r=t[0],n=t[1];return m.useEffect((function(){var e;n("rc_select_".concat((Iv?(e=_v,_v+=1):e="TEST_OR_SSR",e)))}),[]),e||r}(r),H=rv(n),U=!(S||!k),V=m.useMemo((function(){return(void 0!==b||"combobox"!==n)&&b}),[b,n]),W=m.useMemo((function(){return $g(s,U)}),[JSON.stringify(s),U]),G=Ie(Ks("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),2),q=G[0],K=G[1],X=Bv(S,k,W,w,x),Y=X.valueOptions,$=X.labelOptions,Z=X.options,Q=m.useCallback((function(e){return Ng(e).map((function(e){var t,r,n,o,i,a;!function(e){return!e||"object"!==Ne(e)}(e)?(n=e.key,r=e.label,t=null!==(a=e.value)&&void 0!==a?a:n):t=e;var s,l=Y.get(t);return l&&(void 0===r&&(r=null==l?void 0:l[x||W.label]),void 0===n&&(n=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:t),o=null==l?void 0:l.disabled,i=null==l?void 0:l.title),{label:r,value:t,key:n,disabled:o,title:i}}))}),[W,x,Y]),J=Ie(Ks(N,{value:I}),2),ee=J[0],te=J[1],re=m.useMemo((function(){var e,t=Q(H&&null===ee?[]:ee);return"combobox"===n&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ee,Q,n,H]),ne=function(e,t){var r=m.useRef({values:new Map,options:new Map});return[m.useMemo((function(){var n=r.current,o=n.values,i=n.options,a=e.map((function(e){var t;return void 0===e.label?At(At({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),r.current.values=s,r.current.options=l,a}),[e,t]),m.useCallback((function(e){return t.get(e)||r.current.options.get(e)}),[t])]}(re,Y),oe=Ie(ne,2),ie=oe[0],ae=oe[1],se=m.useMemo((function(){if(!n&&1===ie.length){var e=ie[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ie.map((function(e){var t;return At(At({},e),{},{label:null!==(t="function"==typeof _?_(e):e.label)&&void 0!==t?t:e.value})}))}),[n,ie,_]),le=m.useMemo((function(){return new Set(ie.map((function(e){return e.value})))}),[ie]);m.useEffect((function(){if("combobox"===n){var e,t=null===(e=ie[0])||void 0===e?void 0:e.value;K(function(e){return null!=e}(t)?String(t):"")}}),[ie]);var ce=Lv((function(e,t){var r=null!=t?t:e;return De(De({},W.value,e),W.label,r)})),ue=function(e,t,r,n,o){return m.useMemo((function(){if(!r||!1===n)return e;var i=t.options,a=t.label,s=t.value,l=[],c="function"==typeof n,u=r.toUpperCase(),d=c?n:function(e,t){return o?Rv(t[o],u):t[i]?Rv(t["children"!==a?a:"label"],u):Rv(t[s],u)},f=c?function(e){return Zg(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(r,f(e)))l.push(e);else{var t=e[i].filter((function(e){return d(r,f(e))}));t.length&&l.push(At(At({},e),{},De({},i,t)))}else d(r,f(e))&&l.push(e)})),l}),[e,n,o,r,t])}(m.useMemo((function(){if("tags"!==n)return Z;var e=Vo(Z);return Vo(ie).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var r=t.value;(function(e){return Y.has(e)})(r)||e.push(ce(r,t.label))})),e}),[ce,Z,Y,ie,n]),W,q,V,w),de=m.useMemo((function(){return"tags"!==n||!q||ue.some((function(e){return e[w||"value"]===q}))||ue.some((function(e){return e[W.value]===q}))?ue:[ce(q)].concat(Vo(ue))}),[ce,w,n,ue,q,W]),fe=function e(t){return Vo(t).sort((function(e,t){return y(e,t,{searchValue:q})})).map((function(t){return Array.isArray(t.options)?At(At({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},he=m.useMemo((function(){return y?fe(de):de}),[de,y,q]),pe=m.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=$g(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,r){Array.isArray(t)&&t.forEach((function(t){if(r||!(l in t)){var i=t[s];o.push({key:Xg(t,o.length),groupOption:r,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&n&&(u=t.label),o.push({key:Xg(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),o}(he,{fieldNames:W,childrenAsData:U})}),[he,W,U]),me=function(e){var t=Q(e);if(te(t),D&&(t.length!==ie.length||t.some((function(e,t){var r;return(null===(r=ie[t])||void 0===r?void 0:r.value)!==(null==e?void 0:e.value)})))){var r=F?t:t.map((function(e){return e.value})),n=t.map((function(e){return Zg(ae(e.value))}));D(H?r:r[0],H?n:n[0])}},ge=Ie(m.useState(null),2),ve=ge[0],be=ge[1],ye=Ie(m.useState(0),2),we=ye[0],xe=ye[1],Se=void 0!==E?E:"combobox"!==n,Ce=m.useCallback((function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===r?"keyboard":r;xe(t),a&&"combobox"===n&&null!==e&&"keyboard"===o&&be(String(e))}),[a,n]),ke=function(e,t,r){var n=function(){var t,r=ae(e);return[F?{label:null==r?void 0:r[W.label],value:e,key:null!==(t=null==r?void 0:r.key)&&void 0!==t?t:e}:e,Zg(r)]};if(t&&h){var o=Ie(n(),2),i=o[0],a=o[1];h(i,a)}else if(!t&&p&&"clear"!==r){var s=Ie(n(),2),l=s[0],c=s[1];p(l,c)}},Ee=Lv((function(e,t){var r,o=!H||t.selected;r=o?H?[].concat(Vo(ie),[e]):[e]:ie.filter((function(t){return t.value!==e})),me(r),ke(e,o),"combobox"===n?be(""):rv&&!f||(K(""),be(""))})),Oe=m.useMemo((function(){var e=!1!==A&&!1!==v;return At(At({},X),{},{flattenOptions:pe,onActiveValue:Ce,defaultActiveFirstOption:Se,onSelect:Ee,menuItemSelectedIcon:O,rawValues:le,fieldNames:W,virtual:e,direction:T,listHeight:P,listItemHeight:R,childrenAsData:U,maxCount:B,optionRender:C})}),[B,X,pe,Ce,Se,Ee,O,le,W,A,v,T,P,R,U,C]);return m.createElement(Qg.Provider,{value:Oe},m.createElement(ov,Te({},L,{id:z,prefixCls:i,ref:t,omitDomProps:Hv,mode:n,displayValues:se,onDisplayValuesChange:function(e,t){me(e);var r=t.type,n=t.values;"remove"!==r&&"clear"!==r||n.forEach((function(e){ke(e.value,!1,r)}))},direction:T,searchValue:q,onSearch:function(e,t){if(K(e),be(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===n&&me(e),null==u||u(e));else{var r=(e||"").trim();if(r){var o=Array.from(new Set([].concat(Vo(le),[r])));me(o),ke(r,!0),K("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==n&&(t=e.map((function(e){var t=$.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var r=Array.from(new Set([].concat(Vo(le),Vo(t))));me(r),r.forEach((function(e){ke(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:Mv,emptyOptions:!pe.length,activeValue:ve,activeDescendantId:"".concat(z,"_list_").concat(we)})))})),Vv=Uv;Vv.Option=lv,Vv.OptGroup=av;const Wv=Vv,Gv=(e,t)=>{const r=m.useContext(as);return[m.useMemo((()=>{var n;const o=t||ts[e],i=null!==(n=null==r?void 0:r[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,r]),m.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?ts.locale:e}),[r])]},qv=()=>{const[,e]=Ql(),[t]=Gv("Empty"),r=new Ge(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(null==t?void 0:t.description)||"Empty"),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.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"}),m.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)"}),m.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"}),m.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"})),m.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"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Kv=()=>{const[,e]=Ql(),[t]=Gv("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,m.useMemo)((()=>({borderColor:new Ge(r).onBackground(i).toHexString(),shadowColor:new Ge(n).onBackground(i).toHexString(),contentColor:new Ge(o).onBackground(i).toHexString()})),[r,n,o,i]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(null==t?void 0:t.description)||"Empty"),m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:a},m.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"}),m.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}))))},Xv=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Yv=Iu("Empty",(e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,o=Au(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[Xv(o)]}));const $v=m.createElement(qv,null),Zv=m.createElement(Kv,null),Qv=e=>{const{className:t,rootClassName:r,prefixCls:n,image:o=$v,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:h,className:p,style:g,classNames:v,styles:b}=Zo("empty"),y=f("empty",n),[w,x,S]=Yv(y),[C]=Gv("Empty"),k=void 0!==i?i:null==C?void 0:C.description,E="string"==typeof k?k:"empty";let O=null;return O="string"==typeof o?m.createElement("img",{alt:E,src:o}):o,w(m.createElement("div",Object.assign({className:ze()(x,S,y,p,{[`${y}-normal`]:o===Zv,[`${y}-rtl`]:"rtl"===h},t,r,v.root,null==c?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),g),null==u?void 0:u.root),l)},d),m.createElement("div",{className:ze()(`${y}-image`,v.image,null==c?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},s),b.image),null==u?void 0:u.image)},O),k&&m.createElement("div",{className:ze()(`${y}-description`,v.description,null==c?void 0:c.description),style:Object.assign(Object.assign({},b.description),null==u?void 0:u.description)},k),a&&m.createElement("div",{className:ze()(`${y}-footer`,v.footer,null==c?void 0:c.footer),style:Object.assign(Object.assign({},b.footer),null==u?void 0:u.footer)},a)))};Qv.PRESENTED_IMAGE_DEFAULT=$v,Qv.PRESENTED_IMAGE_SIMPLE=Zv;const Jv=Qv,eb=e=>{const{componentName:t}=e,{getPrefixCls:r}=(0,m.useContext)(Xo),n=r("empty");switch(t){case"Table":case"List":return m.createElement(Jv,{image:Jv.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(Jv,{image:Jv.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return m.createElement(Jv,null)}},tb=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var n,o;const{variant:i,[e]:a}=m.useContext(Xo),s=m.useContext(Mf),l=null==a?void 0:a.variant;let c;return c=void 0!==t?t:!1===r?"borderless":null!==(o=null!==(n=null!=s?s:l)&&void 0!==n?n:i)&&void 0!==o?o:"outlined",[c,Ko.includes(c)]},rb=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 nb(e,t,r){const{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function ob(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ib(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},nb(e,n,t)),ob(r,n,t))}}const ab=new Ba("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),sb=new Ba("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),lb=new Ba("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),cb=new Ba("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ub=new Ba("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),db=new Ba("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),fb=new Ba("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),hb=new Ba("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),pb={"slide-up":{inKeyframes:ab,outKeyframes:sb},"slide-down":{inKeyframes:lb,outKeyframes:cb},"slide-left":{inKeyframes:ub,outKeyframes:db},"slide-right":{inKeyframes:fb,outKeyframes:hb}},mb=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=pb[t];return[Np(n,o,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},gb=new Ba("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vb=new Ba("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),bb=new Ba("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yb=new Ba("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wb=new Ba("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xb=new Ba("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sb={"move-up":{inKeyframes:new Ba("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 Ba("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:gb,outKeyframes:vb},"move-left":{inKeyframes:bb,outKeyframes:yb},"move-right":{inKeyframes:wb,outKeyframes:xb}},Cb=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Sb[t];return[Np(n,o,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},kb=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},Eb=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},rc(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 ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:ab},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:lb},[`${a}${s}bottomLeft`]:{animationName:sb},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:cb},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},kb(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},tc),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-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({},kb(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},mb(e,"slide-up"),mb(e,"slide-down"),Cb(e,"move-up"),Cb(e,"move-down")]},Ob=e=>{const{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).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",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Ab=(e,t)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()})(e),s=t?`${r}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Si(t),itemLineHeight:Si(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},Ob(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Si(n)} 0`,lineHeight:Si(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:Si(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Si(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,\n ${r}-prefix + ${r}-selection-wrap\n `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Si(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Tb(e,t){const{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`\n &${r}-show-arrow ${r}-selector,\n &${r}-allow-clear ${r}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Ab(e,t),o]}const jb=e=>{const{componentCls:t}=e,r=Au(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=Au(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Tb(e),Tb(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Tb(n,"lg")]};function Pb(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},rc(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:Si(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${r}-selection-item,\n ${r}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:Si(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${r}-show-arrow ${r}-selection-item,\n &${r}-show-arrow ${r}-selection-search,\n &${r}-show-arrow ${r}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Si(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:Si(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Si(n)}`,"&:after":{display:"none"}}}}}}}function Mb(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Pb(e),Pb(Au(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Si(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Pb(Au(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Rb=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${Si(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Si(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},_b=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rb(e,t))}),Ib=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Rb(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),_b(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),_b(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Si(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Nb=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${Si(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Fb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Nb(e,t))}),Db=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Nb(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Fb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Fb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Si(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Bb=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Si(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Si(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Lb=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${Si(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},zb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Lb(e,t))}),Hb=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Lb(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),zb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),zb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Si(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ub=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ib(e)),Db(e)),Bb(e)),Hb(e))}),Vb=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Wb=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Gb=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},rc(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},Vb(e)),Wb(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},tc),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},tc),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-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:n,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 ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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 ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},qb=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Gb(e),Mb(e),jb(e),Eb(e),{[`${t}-rtl`]:{direction:"rtl"}},ib(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Kb=Iu("Select",((e,t)=>{let{rootPrefixCls:r}=t;const n=Au(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[qb(n),Ub(n)]}),(e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:w}=e,x=2*s,S=2*n,C=Math.min(o-x,o-S),k=Math.min(i-x,i-S),E=Math.min(a-x,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:h,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:k,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:w,selectAffixPadding:s}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Xb={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 Yb=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Xb}))};const $b=m.forwardRef(Yb),Zb={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 Qb=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Zb}))};const Jb=m.forwardRef(Qb),ey={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 ty=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:ey}))};const ry=m.forwardRef(ty);const ny="SECRET_COMBOBOX_MODE_DO_NOT_USE",oy=(e,t)=>{var r,n,o,i,a;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:d,popupClassName:f,dropdownClassName:h,listHeight:p=256,placement:g,listItemHeight:v,size:b,disabled:y,notFoundContent:w,status:x,builtinPlacements:S,dropdownMatchSelectWidth:C,popupMatchSelectWidth:k,direction:E,style:O,allowClear:A,variant:T,dropdownStyle:j,transitionName:P,tagRender:M,maxCount:R,prefix:_,dropdownRender:I,popupRender:N,onDropdownVisibleChange:F,onOpenChange:D,styles:B,classNames:L}=e,z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["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","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:H,getPrefixCls:U,renderEmpty:V,direction:W,virtual:G,popupMatchSelectWidth:q,popupOverflow:K}=m.useContext(Xo),{showSearch:X,style:Y,styles:$,className:Z,classNames:Q}=Zo("select"),[,J]=Ql(),ee=null!=v?v:null==J?void 0:J.controlHeight,te=U("select",s),re=U(),ne=null!=E?E:W,{compactSize:oe,compactItemClassnames:ie}=Lf(te,ne),[ae,se]=tb("select",T,l),le=du(te),[ce,ue,de]=Kb(te,le),fe=m.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===ny?"combobox":t}),[e.mode]),he="multiple"===fe||"tags"===fe,pe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),me=null!==(r=null!=k?k:C)&&void 0!==r?r:q,ge=(null===(n=null==B?void 0:B.popup)||void 0===n?void 0:n.root)||(null===(o=$.popup)||void 0===o?void 0:o.root)||j,ve=N||I,be=D||F,{status:ye,hasFeedback:we,isFormItemInput:xe,feedbackIcon:Se}=m.useContext(jf),Ce=qf(ye,x);let ke;ke=void 0!==w?w:"combobox"===fe?null:(null==V?void 0:V("Select"))||m.createElement(eb,{componentName:"Select"});const{suffixIcon:Ee,itemIcon:Oe,removeIcon:Ae,clearIcon:Te}=function(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:n,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const h=null!=r?r:m.createElement(Lc,null),p=e=>null!==t||s||d?m.createElement(m.Fragment,null,!1!==c&&e,s&&u):null;let g=null;if(void 0!==t)g=p(t);else if(i)g=p(m.createElement(Xc,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:r,showSearch:n}=t;return p(r&&n?m.createElement(ry,{className:e}):m.createElement(Jb,{className:e}))}}let v=null;v=void 0!==n?n:a?m.createElement($b,null):null;let b=null;return b=void 0!==o?o:m.createElement(Vu,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},z),{multiple:he,hasFeedback:we,feedbackIcon:Se,showSuffixIcon:pe,prefixCls:te,componentName:"Select"})),je=!0===A?{clearIcon:Te}:A,Pe=kf(z,["suffixIcon","itemIcon"]),Me=ze()((null===(i=null==L?void 0:L.popup)||void 0===i?void 0:i.root)||(null===(a=null==Q?void 0:Q.popup)||void 0===a?void 0:a.root)||f||h,{[`${te}-dropdown-${ne}`]:"rtl"===ne},u,Q.root,null==L?void 0:L.root,de,le,ue),Re=Rf((e=>{var t;return null!==(t=null!=b?b:oe)&&void 0!==t?t:e})),_e=m.useContext(Ss),Ie=null!=y?y:_e,Ne=ze()({[`${te}-lg`]:"large"===Re,[`${te}-sm`]:"small"===Re,[`${te}-rtl`]:"rtl"===ne,[`${te}-${ae}`]:se,[`${te}-in-form-item`]:xe},Gf(te,Ce,we),ie,Z,c,Q.root,null==L?void 0:L.root,u,de,le,ue),Fe=m.useMemo((()=>void 0!==g?g:"rtl"===ne?"bottomRight":"bottomLeft"),[g,ne]),[De]=gu("SelectLike",null==ge?void 0:ge.zIndex);return ce(m.createElement(Wv,Object.assign({ref:t,virtual:G,showSearch:X},Pe,{style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),null==B?void 0:B.root),Y),O),dropdownMatchSelectWidth:me,transitionName:Qf(re,"slide-up",P),builtinPlacements:rb(S,K),listHeight:p,listItemHeight:ee,mode:fe,prefixCls:te,placement:Fe,direction:ne,prefix:_,suffixIcon:Ee,menuItemSelectedIcon:Oe,removeIcon:Ae,allowClear:je,notFoundContent:ke,className:Ne,getPopupContainer:d||H,dropdownClassName:Me,disabled:Ie,dropdownStyle:Object.assign(Object.assign({},ge),{zIndex:De}),maxCount:he?R:void 0,tagRender:he?M:void 0,dropdownRender:ve,onDropdownVisibleChange:be})))},iy=m.forwardRef(oy),ay=Wf(iy,"dropdownAlign");iy.SECRET_COMBOBOX_MODE_DO_NOT_USE=ny,iy.Option=lv,iy.OptGroup=av,iy._InternalPanelDoNotUseOrYouWillBeFired=ay;const sy=iy,ly="hex",cy="rgb",uy="hsb",dy={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 fy=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:dy}))};const hy=m.forwardRef(fy);function py(){return"function"==typeof BigInt}function my(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function gy(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(n)}}function vy(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function by(e){var t=String(e);if(vy(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return null!=n&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&wy(t)?t.length-t.indexOf(".")-1:0}function yy(e){var t=String(e);if(vy(e)){if(e>Number.MAX_SAFE_INTEGER)return String(py()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(py()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(by(t))}return gy(t).fullStr}function wy(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 xy=function(){function e(t){if(ei(this,e),De(this,"origin",""),De(this,"negative",void 0),De(this,"integer",void 0),De(this,"decimal",void 0),De(this,"decimalLen",void 0),De(this,"empty",void 0),De(this,"nan",void 0),my(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var r=t;if(vy(r)&&(r=Number(r)),wy(r="string"==typeof r?r:yy(r))){var n=gy(r);this.negative=n.negative;var o=n.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 ri(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,r,n){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=r(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=n(o),s=gy(i),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=new e(t);return r.isInvalidate()?this:this.cal(r,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var r=new e(t);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,(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.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.origin:this.isInvalidate()?"":gy("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),Sy=function(){function e(t){ei(this,e),De(this,"origin",""),De(this,"number",void 0),De(this,"empty",void 0),my(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return ri(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=Number(t);if(Number.isNaN(r))return this;var n=this.number+r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(by(this.number),by(r));return new e(n.toFixed(o))}},{key:"multi",value:function(t){var r=Number(t);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var n=this.number*r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(by(this.number),by(r));return new e(n.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.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.origin:this.isInvalidate()?"":yy(this.number)}}]),e}();function Cy(e){return py()?new xy(e):new Sy(e)}function ky(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=gy(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);return u>=5&&!n?ky(Cy(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u)).toString(),t,r,n):0===r?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return".0"===l?c:"".concat(c).concat(l)}const Ey=Cy;function Oy(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ay(e,t,r,n){if(r){var o=t;"click"!==t.type?"file"===e.type||void 0===n?r(o):r(o=Oy(t,e,n)):r(o=Oy(t,e,""))}}function Ty(e,t){if(e){e.focus(t);var r=(t||{}).cursor;if(r){var n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var jy=m.forwardRef((function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,h=e.style,p=e.disabled,g=e.readOnly,v=e.focused,b=e.triggerFocus,y=e.allowClear,w=e.value,x=e.handleReset,S=e.hidden,C=e.classes,k=e.classNames,E=e.dataAttrs,O=e.styles,A=e.components,T=e.onClear,j=null!=a?a:i,P=(null==A?void 0:A.affixWrapper)||"span",M=(null==A?void 0:A.groupWrapper)||"span",R=(null==A?void 0:A.wrapper)||"span",_=(null==A?void 0:A.groupAddon)||"span",I=(0,m.useRef)(null),N=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),F=(0,m.cloneElement)(j,{value:w,className:ze()(null===(r=j.props)||void 0===r?void 0:r.className,!N&&(null==k?void 0:k.variant))||null}),D=(0,m.useRef)(null);if(m.useImperativeHandle(t,(function(){return{nativeElement:D.current||I.current}})),N){var B=null;if(y){var L=!p&&!g&&w,z="".concat(s,"-clear-icon"),H="object"===Ne(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";B=m.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==x||x(e),null==T||T()},onMouseDown:function(e){return e.preventDefault()},className:ze()(z,De(De({},"".concat(z,"-hidden"),!L),"".concat(z,"-has-suffix"),!!c))},H)}var U="".concat(s,"-affix-wrapper"),V=ze()(U,De(De(De(De(De({},"".concat(s,"-disabled"),p),"".concat(U,"-disabled"),p),"".concat(U,"-focused"),v),"".concat(U,"-readonly"),g),"".concat(U,"-input-with-clear-btn"),c&&y&&w),null==C?void 0:C.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),W=(c||y)&&m.createElement("span",{className:ze()("".concat(s,"-suffix"),null==k?void 0:k.suffix),style:null==O?void 0:O.suffix},B,c);F=m.createElement(P,Te({className:V,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())}},null==E?void 0:E.affixWrapper,{ref:I}),l&&m.createElement("span",{className:ze()("".concat(s,"-prefix"),null==k?void 0:k.prefix),style:null==O?void 0:O.prefix},l),F,W)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(s,"-group"),q="".concat(G,"-addon"),K="".concat(G,"-wrapper"),X=ze()("".concat(s,"-wrapper"),G,null==C?void 0:C.wrapper,null==k?void 0:k.wrapper),Y=ze()(K,De({},"".concat(K,"-disabled"),p),null==C?void 0:C.group,null==k?void 0:k.groupWrapper);F=m.createElement(M,{className:Y,ref:D},m.createElement(R,{className:X},u&&m.createElement(_,{className:q},u),F,d&&m.createElement(_,{className:q},d)))}return m.cloneElement(F,{className:ze()(null===(n=F.props)||void 0===n?void 0:n.className,f)||null,style:At(At({},null===(o=F.props)||void 0===o?void 0:o.style),h),hidden:S})}));const Py=jy;var My=["show"];function Ry(e,t){return m.useMemo((function(){var r={};t&&(r.show="object"===Ne(t)&&t.formatter?t.formatter:!!t);var n=r=At(At({},r),e),o=n.show,i=Be(n,My);return At(At({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var _y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Iy=(0,m.forwardRef)((function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=void 0===c?"rc-input":c,d=e.disabled,f=e.htmlSize,h=e.className,p=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,w=void 0===y?"text":y,x=e.classes,S=e.classNames,C=e.styles,k=e.onCompositionStart,E=e.onCompositionEnd,O=Be(e,_y),A=Ie((0,m.useState)(!1),2),T=A[0],j=A[1],P=(0,m.useRef)(!1),M=(0,m.useRef)(!1),R=(0,m.useRef)(null),_=(0,m.useRef)(null),I=function(e){R.current&&Ty(R.current,e)},N=Ie(Ks(e.defaultValue,{value:e.value}),2),F=N[0],D=N[1],B=null==F?"":String(F),L=Ie((0,m.useState)(null),2),z=L[0],H=L[1],U=Ry(b,v),V=U.max||p,W=U.strategy(B),G=!!V&&W>V;(0,m.useImperativeHandle)(t,(function(){var e;return{focus:I,blur:function(){var e;null===(e=R.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,r){var n;null===(n=R.current)||void 0===n||n.setSelectionRange(e,t,r)},select:function(){var e;null===(e=R.current)||void 0===e||e.select()},input:R.current,nativeElement:(null===(e=_.current)||void 0===e?void 0:e.nativeElement)||R.current}})),(0,m.useEffect)((function(){M.current&&(M.current=!1),j((function(e){return(!e||!d)&&e}))}),[d]);var q=function(e,t,r){var o,i,a=t;if(!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&H([(null===(o=R.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=R.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===r.source)return;D(a),R.current&&Ay(R.current,e,n,a)};(0,m.useEffect)((function(){var e;z&&(null===(e=R.current)||void 0===e||e.setSelectionRange.apply(e,Vo(z)))}),[z]);var K,X=G&&"".concat(u,"-out-of-range");return m.createElement(Py,Te({},O,{prefixCls:u,className:ze()(h,X),handleReset:function(e){D(""),I(),R.current&&Ay(R.current,e,n)},value:B,focused:T,triggerFocus:I,suffix:function(){var e=Number(V)>0;if(g||U.show){var t=U.showFormatter?U.showFormatter({value:B,count:W,maxLength:V}):"".concat(W).concat(e?" / ".concat(V):"");return m.createElement(m.Fragment,null,U.show&&m.createElement("span",{className:ze()("".concat(u,"-show-count-suffix"),De({},"".concat(u,"-show-count-has-suffix"),!!g),null==S?void 0:S.count),style:At({},null==C?void 0:C.count)},t),g)}return null}(),disabled:d,classes:x,classNames:S,styles:C,ref:_}),(K=kf(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),m.createElement("input",Te({autoComplete:r},K,{onChange:function(e){q(e,e.target.value,{source:"change"})},onFocus:function(e){j(!0),null==o||o(e)},onBlur:function(e){M.current&&(M.current=!1),j(!1),null==i||i(e)},onKeyDown:function(e){a&&"Enter"===e.key&&!M.current&&(M.current=!0,a(e)),null==s||s(e)},onKeyUp:function(e){"Enter"===e.key&&(M.current=!1),null==l||l(e)},className:ze()(u,De({},"".concat(u,"-disabled"),d),null==S?void 0:S.input),style:null==C?void 0:C.input,ref:R,size:f,type:w,onCompositionStart:function(e){P.current=!0,null==k||k(e)},onCompositionEnd:function(e){P.current=!1,q(e,e.currentTarget.value,{source:"compositionEnd"}),null==E||E(e)}}))))}));const Ny=Iy;function Fy(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=m.useRef(),l=m.useRef([]),c=m.useRef();c.current=a;var u,d,f,h=function(){clearTimeout(s.current)},p=function(e,t){e.preventDefault(),h(),c.current(t),s.current=setTimeout((function e(){c.current(t),s.current=setTimeout(e,200)}),600)};if(m.useEffect((function(){return function(){h(),l.current.forEach((function(e){return Ol.cancel(e)}))}}),[]),u=Ie((0,m.useState)(!1),2),d=u[0],f=u[1],Pi((function(){f(Gh())}),[]),d)return null;var g="".concat(t,"-handler"),v=ze()(g,"".concat(g,"-up"),De({},"".concat(g,"-up-disabled"),o)),b=ze()(g,"".concat(g,"-down"),De({},"".concat(g,"-down-disabled"),i)),y=function(){return l.current.push(Ol(h))},w={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return m.createElement("div",{className:"".concat(g,"-wrap")},m.createElement("span",Te({},w,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:v}),r||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m.createElement("span",Te({},w,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),n||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Dy(e){var t="number"==typeof e?yy(e):gy(e).fullStr;return t.includes(".")?gy(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var By=["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"],Ly=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],zy=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Hy=function(e){var t=Ey(e);return t.isInvalidate()?null:t},Uy=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=void 0===s?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,h=e.upHandler,p=e.downHandler,g=e.keyboard,v=e.changeOnWheel,b=void 0!==v&&v,y=e.controls,w=void 0===y||y,x=(e.classNames,e.stringMode),S=e.parser,C=e.formatter,k=e.precision,E=e.decimalSeparator,O=e.onChange,A=e.onInput,T=e.onPressEnter,j=e.onStep,P=e.changeOnBlur,M=void 0===P||P,R=e.domRef,_=Be(e,By),I="".concat(r,"-input"),N=m.useRef(null),F=Ie(m.useState(!1),2),D=F[0],B=F[1],L=m.useRef(!1),z=m.useRef(!1),H=m.useRef(!1),U=Ie(m.useState((function(){return Ey(null!=u?u:c)})),2),V=U[0],W=U[1],G=m.useCallback((function(e,t){if(!t)return k>=0?k:Math.max(by(e),by(l))}),[k,l]),q=m.useCallback((function(e){var t=String(e);if(S)return S(t);var r=t;return E&&(r=r.replace(E,".")),r.replace(/[^\w.-]+/g,"")}),[S,E]),K=m.useRef(""),X=m.useCallback((function(e,t){if(C)return C(e,{userTyping:t,input:String(K.current)});var r="number"==typeof e?yy(e):e;if(!t){var n=G(r,t);wy(r)&&(E||n>=0)&&(r=ky(r,E||".",n))}return r}),[C,G,E]),Y=Ie(m.useState((function(){var e=null!=c?c:u;return V.isInvalidate()&&["string","number"].includes(Ne(e))?Number.isNaN(e)?"":e:X(V.toString(),!1)})),2),$=Y[0],Z=Y[1];function Q(e,t){Z(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}K.current=$;var J,ee,te=m.useMemo((function(){return Hy(a)}),[a,k]),re=m.useMemo((function(){return Hy(i)}),[i,k]),ne=m.useMemo((function(){return!(!te||!V||V.isInvalidate())&&te.lessEquals(V)}),[te,V]),oe=m.useMemo((function(){return!(!re||!V||V.isInvalidate())&&V.lessEquals(re)}),[re,V]),ie=function(e,t){var r=(0,m.useRef)(null);return[function(){try{var t=e.selectionStart,n=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(n);r.current={start:t,end:n,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&r.current&&t)try{var n=e.value,o=r.current,i=o.beforeTxt,a=o.afterTxt,s=o.start,l=n.length;if(n.startsWith(i))l=i.length;else if(n.endsWith(a))l=n.length-r.current.afterTxt.length;else{var c=i[s-1],u=n.indexOf(c,s-1);-1!==u&&(l=u+1)}e.setSelectionRange(l,l)}catch(e){Xt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(N.current,D),ae=Ie(ie,2),se=ae[0],le=ae[1],ce=function(e){return te&&!e.lessEquals(te)?te:re&&!re.lessEquals(e)?re:null},ue=function(e){return!ce(e)},de=function(e,t){var r=e,n=ue(r)||r.isEmpty();if(r.isEmpty()||t||(r=ce(r)||r,n=!0),!f&&!d&&n){var o=r.toString(),i=G(o,t);return i>=0&&(r=Ey(ky(o,".",i)),ue(r)||(r=Ey(ky(o,".",i,!0)))),r.equals(V)||(void 0===u&&W(r),null==O||O(r.isEmpty()?null:zy(x,r)),void 0===u&&Q(r,t)),r}return V},fe=(J=(0,m.useRef)(0),ee=function(){Ol.cancel(J.current)},(0,m.useEffect)((function(){return ee}),[]),function(e){ee(),J.current=Ol((function(){e()}))}),he=function e(t){if(se(),K.current=t,Z(t),!z.current){var r=q(t),n=Ey(r);n.isNaN()||de(n,!0)}null==A||A(t),fe((function(){var r=t;S||(r=t.replace(/。/g,".")),r!==t&&e(r)}))},pe=function(e){var t;if(!(e&&ne||!e&&oe)){L.current=!1;var r=Ey(H.current?Dy(l):l);e||(r=r.negate());var n=(V||Ey(0)).add(r.toString()),o=de(n,!1);null==j||j(zy(x,o),{offset:H.current?Dy(l):l,type:e?"up":"down"}),null===(t=N.current)||void 0===t||t.focus()}},me=function(e){var t,r=Ey(q($));t=r.isNaN()?de(V,e):de(r,e),void 0!==u?Q(V,!1):t.isNaN()||Q(t,!1)};return m.useEffect((function(){if(b&&D){var e=function(e){pe(e.deltaY<0),e.preventDefault()},t=N.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}})),ji((function(){V.isInvalidate()||Q(V,!1)}),[k,C]),ji((function(){var e=Ey(u);W(e);var t=Ey(q($));e.equals(t)&&L.current&&!C||Q(e,L.current)}),[u]),ji((function(){C&&le()}),[$]),m.createElement("div",{ref:R,className:ze()(r,n,De(De(De(De(De({},"".concat(r,"-focused"),D),"".concat(r,"-disabled"),d),"".concat(r,"-readonly"),f),"".concat(r,"-not-a-number"),V.isNaN()),"".concat(r,"-out-of-range"),!V.isInvalidate()&&!ue(V))),style:o,onFocus:function(){B(!0)},onBlur:function(){M&&me(!1),B(!1),L.current=!1},onKeyDown:function(e){var t=e.key,r=e.shiftKey;L.current=!0,H.current=r,"Enter"===t&&(z.current||(L.current=!1),me(!1),null==T||T(e)),!1!==g&&!z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(pe("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){L.current=!1,H.current=!1},onCompositionStart:function(){z.current=!0},onCompositionEnd:function(){z.current=!1,he(N.current.value)},onBeforeInput:function(){L.current=!0}},w&&m.createElement(Fy,{prefixCls:r,upNode:h,downNode:p,upDisabled:ne,downDisabled:oe,onStep:pe}),m.createElement("div",{className:"".concat(I,"-wrap")},m.createElement("input",Te({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:l},_,{ref:Cn(N,t),className:I,value:$,onChange:function(e){he(e.target.value)},disabled:d,readOnly:f}))))})),Vy=m.forwardRef((function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=void 0===o?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,h=Be(e,Ly),p=m.useRef(null),g=m.useRef(null),v=m.useRef(null),b=function(e){v.current&&Ty(v.current,e)};return m.useImperativeHandle(t,(function(){return e=v.current,t={focus:b,nativeElement:p.current.nativeElement||g.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,r){if(t[r])return t[r];var n=e[r];return"function"==typeof n?n.bind(e):n}}):e;var e,t})),m.createElement(Py,{className:d,triggerFocus:b,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},m.createElement(Uy,Te({prefixCls:i,disabled:r,ref:v,domRef:g,className:null==f?void 0:f.input},h)))}));const Wy=Vy;function Gy(e){return Au(e,{inputAffixPadding:e.paddingXXS})}const qy=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=w||r,k=S||C,E=x||s,O=Math.round((t-C*n)/2*10)/10-o,A=Math.round((i-k*n)/2*10)/10-o,T=Math.ceil((a-E*l)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(T,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:E,inputFontSizeSM:k}},Ky=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Xy=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({},Ky(Au(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Yy=(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}}),$y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Zy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Xy(e))}),$y(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),$y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Qy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Jy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Qy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Qy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Xy(e))}})}),ew=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},tw=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(r=null==t?void 0:t.inputColor)&&void 0!==r?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},rw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),nw=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Xy(e))}),rw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rw(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ow=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),iw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Si(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Si(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},ow(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ow(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),aw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Si(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),sw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),lw=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),sw(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),sw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),cw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),uw=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Si(t)} ${Si(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},dw=e=>({padding:`${Si(e.paddingBlockSM)} ${Si(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),fw=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Si(e.paddingBlock)} ${Si(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},cw(e.colorTextPlaceholder)),{"&-lg":Object.assign({},uw(e)),"&-sm":Object.assign({},dw(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),hw=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},uw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},dw(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${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 ${Si(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Si(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Si(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Si(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Si(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${r}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,\n & > ${r}-select-auto-complete ${t},\n & > ${r}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${r}-select:first-child > ${r}-select-selector,\n & > ${r}-select-auto-complete:first-child ${t},\n & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${r}-select:last-child > ${r}-select-selector,\n & > ${r}-cascader-picker:last-child ${t},\n & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},pw=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,i=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc(e)),fw(e)),Zy(e)),nw(e)),ew(e)),lw(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},mw=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Si(e.inputAffixPadding)}`}}}},gw=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},fw(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),mw(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},vw=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},rc(e)),hw(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Jy(e)),iw(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},bw=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},yw=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},ww=Iu(["Input","Shared"],(e=>{const t=Au(e,Gy(e));return[pw(t),gw(t)]}),qy,{resetFont:!1}),xw=Iu(["Input","Component"],(e=>{const t=Au(e,Gy(e));return[vw(t),bw(t),yw(t),ib(t)]}),qy,{resetFont:!1}),Sw=(e,t)=>{let{componentCls:r,borderRadiusSM:n,borderRadiusLG:o}=e;const i="lg"===t?o:n;return{[`&-${t}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${r}-handler-up`]:{borderStartEndRadius:i},[`${r}-handler-down`]:{borderEndEndRadius:i}}}},Cw=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:h,colorIcon:p,motionDurationMid:m,handleHoverColor:g,handleOpacity:v,paddingInline:b,paddingBlock:y,handleBg:w,handleActiveBg:x,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:k,controlWidth:E,handleBorderColor:O,filledHandleBg:A,lineHeightLG:T,calc:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc(e)),fw(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),Zy(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${Si(r)} ${n} ${O}`}}})),nw(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${Si(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),lw(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${Si(r)} ${n} ${O}`}}})),ew(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:T,borderRadius:k,[`input${t}-input`]:{height:j(s).sub(j(r).mul(2)).equal(),padding:`${Si(f)} ${Si(h)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:j(l).sub(j(r).mul(2)).equal(),padding:`${Si(d)} ${Si(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},rc(e)),hw(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Jy(e)),iw(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},rc(e)),{width:"100%",padding:`${Si(y)} ${Si(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),cw(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Si(r)} ${n} ${O}`,transition:`all ${m} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${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 ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Sw(e,"lg")),Sw(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:S}})}]},kw=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Si(r)} 0`}},fw(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Si(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Si(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}})}},Ew=Iu("InputNumber",(e=>{const t=Au(e,Gy(e));return[Cw(t),kw(t),ib(t)]}),(e=>{var t;const r=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",n=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},qy(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ge(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===r?1:0,handleVisibleWidth:!0===r?n:0})}),{unitless:{handleOpacity:!0}});const Ow=m.forwardRef(((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(Xo),o=m.useRef(null);m.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:h,bordered:p,readOnly:g,status:v,controls:b,variant:y}=e,w=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),x=r("input-number",c),S=du(x),[C,k,E]=Ew(x,S),{compactSize:O,compactItemClassnames:A}=Lf(x,n);let T=m.createElement(hy,{className:`${x}-handler-up-inner`}),j=m.createElement(Jb,{className:`${x}-handler-down-inner`});const P="boolean"==typeof b?b:void 0;"object"==typeof b&&(T=void 0===b.upIcon?T:m.createElement("span",{className:`${x}-handler-up-inner`},b.upIcon),j=void 0===b.downIcon?j:m.createElement("span",{className:`${x}-handler-down-inner`},b.downIcon));const{hasFeedback:M,status:R,isFormItemInput:_,feedbackIcon:I}=m.useContext(jf),N=qf(R,v),F=Rf((e=>{var t;return null!==(t=null!=s?s:O)&&void 0!==t?t:e})),D=m.useContext(Ss),B=null!=l?l:D,[L,z]=tb("inputNumber",y,p),H=M&&m.createElement(m.Fragment,null,I),U=ze()({[`${x}-lg`]:"large"===F,[`${x}-sm`]:"small"===F,[`${x}-rtl`]:"rtl"===n,[`${x}-in-form-item`]:_},k),V=`${x}-group`;return C(m.createElement(Wy,Object.assign({ref:o,disabled:B,className:ze()(E,S,i,a,A),upHandler:T,downHandler:j,prefixCls:x,readOnly:g,controls:P,prefix:f,suffix:H||h,addonBefore:u&&m.createElement(Uf,{form:!0,space:!0},u),addonAfter:d&&m.createElement(Uf,{form:!0,space:!0},d),classNames:{input:U,variant:ze()({[`${x}-${L}`]:z},Gf(x,N,M)),affixWrapper:ze()({[`${x}-affix-wrapper-sm`]:"small"===F,[`${x}-affix-wrapper-lg`]:"large"===F,[`${x}-affix-wrapper-rtl`]:"rtl"===n,[`${x}-affix-wrapper-without-controls`]:!1===b||B},k),wrapper:ze()({[`${V}-rtl`]:"rtl"===n},k),groupWrapper:ze()({[`${x}-group-wrapper-sm`]:"small"===F,[`${x}-group-wrapper-lg`]:"large"===F,[`${x}-group-wrapper-rtl`]:"rtl"===n,[`${x}-group-wrapper-${L}`]:z},Gf(`${x}-group-wrapper`,N,M),k)}},w)))})),Aw=Ow;Aw._InternalPanelDoNotUseOrYouWillBeFired=e=>m.createElement(vc,{theme:{components:{InputNumber:{handleVisible:!0}}}},m.createElement(Ow,Object.assign({},e)));const Tw=Aw,jw=e=>{let{prefixCls:t,min:r=0,max:n=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=(0,m.useState)(0),d=Number.isNaN(o)?c:o;return m.createElement(Tw,{className:ze()(l,a),min:r,max:n,value:d,formatter:s,size:"small",onChange:e=>{u(e||0),null==i||i(e)}})},Pw=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-alpha-input`,[i,a]=(0,m.useState)((()=>ng(r||"#000"))),s=r||i;return m.createElement(jw,{value:ig(s),prefixCls:t,formatter:e=>`${e}%`,className:o,onChange:e=>{const t=s.toHsb();t.a=(e||0)/100;const r=ng(t);a(r),null==n||n(r)}})},Mw=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:m.createElement(Lc,null)}),t};function Rw(e,t){const r=(0,m.useRef)([]),n=()=>{r.current.push(setTimeout((()=>{var t,r,n,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(r=e.current)||void 0===r?void 0:r.input.getAttribute("type"))&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,m.useEffect)((()=>(t&&n(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),n}const _w=(0,m.forwardRef)(((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:h,style:p,styles:g,rootClassName:v,onChange:b,classNames:y,variant:w}=e,x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:C,allowClear:k,autoComplete:E,className:O,style:A,classNames:T,styles:j}=Zo("input"),P=S("input",r),M=(0,m.useRef)(null),R=du(P),[_,I,N]=ww(P,v),[F]=xw(P,R),{compactSize:D,compactItemClassnames:B}=Lf(P,C),L=Rf((e=>{var t;return null!==(t=null!=i?i:D)&&void 0!==t?t:e})),z=m.useContext(Ss),H=null!=a?a:z,{status:U,hasFeedback:V,feedbackIcon:W}=(0,m.useContext)(jf),G=qf(U,o),q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!V;(0,m.useRef)(q);const K=Rw(M,!0),X=(V||c)&&m.createElement(m.Fragment,null,c,V&&W),Y=Mw(null!=u?u:k),[$,Z]=tb("input",w,n);return _(F(m.createElement(Ny,Object.assign({ref:Cn(t,M),prefixCls:P,autoComplete:E},x,{disabled:H,onBlur:e=>{K(),null==s||s(e)},onFocus:e=>{K(),null==l||l(e)},style:Object.assign(Object.assign({},A),p),styles:Object.assign(Object.assign({},j),g),suffix:X,allowClear:Y,className:ze()(h,v,N,R,B,O),onChange:e=>{K(),null==b||b(e)},addonBefore:f&&m.createElement(Uf,{form:!0,space:!0},f),addonAfter:d&&m.createElement(Uf,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},y),T),{input:ze()({[`${P}-sm`]:"small"===L,[`${P}-lg`]:"large"===L,[`${P}-rtl`]:"rtl"===C},null==y?void 0:y.input,T.input,I),variant:ze()({[`${P}-${$}`]:Z},Gf(P,G)),affixWrapper:ze()({[`${P}-affix-wrapper-sm`]:"small"===L,[`${P}-affix-wrapper-lg`]:"large"===L,[`${P}-affix-wrapper-rtl`]:"rtl"===C},I),wrapper:ze()({[`${P}-group-rtl`]:"rtl"===C},I),groupWrapper:ze()({[`${P}-group-wrapper-sm`]:"small"===L,[`${P}-group-wrapper-lg`]:"large"===L,[`${P}-group-wrapper-rtl`]:"rtl"===C,[`${P}-group-wrapper-${$}`]:Z},Gf(`${P}-group-wrapper`,G,V),I)})}))))})),Iw=_w,Nw=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Fw=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-hex-input`,[i,a]=(0,m.useState)(""),s=r?_m(r.toHexString()):i;return m.createElement(Iw,{className:o,value:s,prefix:"#",onChange:e=>{const t=e.target.value;var r;a(_m(t)),r=_m(t,!0),Nw.test(`#${r}`)&&(null==n||n(ng(t)))},size:"small"})},Dw=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-hsb-input`,[i,a]=(0,m.useState)((()=>ng(r||"#000"))),s=r||i,l=(e,t)=>{const r=s.toHsb();r[t]="h"===t?e:(e||0)/100;const o=ng(r);a(o),null==n||n(o)};return m.createElement("div",{className:o},m.createElement(jw,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:t,className:o,formatter:e=>og(e||0).toString(),onChange:e=>l(Number(e),"h")}),m.createElement(jw,{max:100,min:0,value:100*Number(s.toHsb().s),prefixCls:t,className:o,formatter:e=>`${og(e||0)}%`,onChange:e=>l(Number(e),"s")}),m.createElement(jw,{max:100,min:0,value:100*Number(s.toHsb().b),prefixCls:t,className:o,formatter:e=>`${og(e||0)}%`,onChange:e=>l(Number(e),"b")}))},Bw=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-rgb-input`,[i,a]=(0,m.useState)((()=>ng(r||"#000"))),s=r||i,l=(e,t)=>{const r=s.toRgb();r[t]=e||0;const o=ng(r);a(o),null==n||n(o)};return m.createElement("div",{className:o},m.createElement(jw,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:t,className:o,onChange:e=>l(Number(e),"r")}),m.createElement(jw,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:t,className:o,onChange:e=>l(Number(e),"g")}),m.createElement(jw,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:t,className:o,onChange:e=>l(Number(e),"b")}))},Lw=[ly,uy,cy].map((e=>({value:e,label:e.toUpperCase()}))),zw=e=>{const{prefixCls:t,format:r,value:n,disabledAlpha:o,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=Ks(ly,{value:r,onChange:i}),u=`${t}-input`,d=(0,m.useMemo)((()=>{const e={value:n,prefixCls:t,onChange:a};switch(l){case uy:return m.createElement(Dw,Object.assign({},e));case cy:return m.createElement(Bw,Object.assign({},e));default:return m.createElement(Fw,Object.assign({},e))}}),[l,t,n,a]);return m.createElement("div",{className:`${u}-container`},!s&&m.createElement(sy,{value:l,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{c(e)},className:`${t}-format-select`,size:"small",options:Lw}),m.createElement("div",{className:u},d),!o&&m.createElement(Pw,{prefixCls:t,value:n,onChange:a}))};function Hw(e,t,r){return(e-t)/(r-t)}function Uw(e,t,r,n){var o=Hw(t,r,n),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Vw(e,t){return Array.isArray(e)?e[t]:e}const Ww=m.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var Gw=m.createContext({}),qw=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Kw=m.forwardRef((function(e,t){var r,n=e.prefixCls,o=e.value,i=e.valueIndex,a=e.onStartMove,s=e.onDelete,l=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,p=e.onFocus,g=e.onMouseEnter,v=Be(e,qw),b=m.useContext(Ww),y=b.min,w=b.max,x=b.direction,S=b.disabled,C=b.keyboard,k=b.range,E=b.tabIndex,O=b.ariaLabelForHandle,A=b.ariaLabelledByForHandle,T=b.ariaRequired,j=b.ariaValueTextFormatterForHandle,P=b.styles,M=b.classNames,R="".concat(n,"-handle"),_=function(e){S||a(e,i)},I=Uw(x,o,y,w),N={};null!==i&&(N={tabIndex:S?null:Vw(E,i),role:"slider","aria-valuemin":y,"aria-valuemax":w,"aria-valuenow":o,"aria-disabled":S,"aria-label":Vw(O,i),"aria-labelledby":Vw(A,i),"aria-required":Vw(T,i),"aria-valuetext":null===(r=Vw(j,i))||void 0===r?void 0:r(o),"aria-orientation":"ltr"===x||"rtl"===x?"horizontal":"vertical",onMouseDown:_,onTouchStart:_,onFocus:function(e){null==p||p(e,i)},onMouseEnter:function(e){g(e,i)},onKeyDown:function(e){if(!S&&C){var t=null;switch(e.which||e.keyCode){case $c.LEFT:t="ltr"===x||"btt"===x?-1:1;break;case $c.RIGHT:t="ltr"===x||"btt"===x?1:-1;break;case $c.UP:t="ttb"!==x?1:-1;break;case $c.DOWN:t="ttb"!==x?-1:1;break;case $c.HOME:t="min";break;case $c.END:t="max";break;case $c.PAGE_UP:t=2;break;case $c.PAGE_DOWN:t=-2;break;case $c.BACKSPACE:case $c.DELETE:s(i)}null!==t&&(e.preventDefault(),f(t,i))}},onKeyUp:function(e){switch(e.which||e.keyCode){case $c.LEFT:case $c.RIGHT:case $c.UP:case $c.DOWN:case $c.HOME:case $c.END:case $c.PAGE_UP:case $c.PAGE_DOWN:null==h||h()}}});var F=m.createElement("div",Te({ref:t,className:ze()(R,De(De(De({},"".concat(R,"-").concat(i+1),null!==i&&k),"".concat(R,"-dragging"),u),"".concat(R,"-dragging-delete"),d),M.handle),style:At(At(At({},I),l),P.handle)},N,v));return c&&(F=c(F,{index:i,prefixCls:n,value:o,dragging:u,draggingDelete:d})),F}));const Xw=Kw;var Yw=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],$w=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,f=Be(e,Yw),h=m.useRef({}),p=Ie(m.useState(!1),2),g=p[0],v=p[1],b=Ie(m.useState(-1),2),y=b[0],w=b[1],x=function(e){w(e),v(!0)};m.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,js.flushSync)((function(){v(!1)}))}}}));var S=At({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:function(e,t){x(t),null==d||d(e)},onMouseEnter:function(e,t){x(t)}},f);return m.createElement(m.Fragment,null,a.map((function(e,t){var r=c===t;return m.createElement(Xw,Te({ref:function(e){e?h.current[t]=e:delete h.current[t]},dragging:r,draggingDelete:r&&u,style:Vw(n,t),key:t,value:e,valueIndex:t},S))})),l&&g&&m.createElement(Xw,Te({key:"a11y"},S,{value:a[y],valueIndex:null,dragging:-1!==c,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}));const Zw=$w,Qw=function(e){var t=e.prefixCls,r=e.style,n=e.children,o=e.value,i=e.onClick,a=m.useContext(Ww),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,h="".concat(t,"-text"),p=Uw(c,o,s,l);return m.createElement("span",{className:ze()(h,De({},"".concat(h,"-active"),f&&u<=o&&o<=d)),style:At(At({},p),r),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},n)},Jw=function(e){var t=e.prefixCls,r=e.marks,n=e.onClick,o="".concat(t,"-mark");return r.length?m.createElement("div",{className:o},r.map((function(e){var t=e.value,r=e.style,i=e.label;return m.createElement(Qw,{key:t,prefixCls:o,style:r,value:t,onClick:n},i)}))):null},ex=function(e){var t=e.prefixCls,r=e.value,n=e.style,o=e.activeStyle,i=m.useContext(Ww),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,f="".concat(t,"-dot"),h=c&&u<=r&&r<=d,p=At(At({},Uw(l,r,a,s)),"function"==typeof n?n(r):n);return h&&(p=At(At({},p),"function"==typeof o?o(r):o)),m.createElement("span",{className:ze()(f,De({},"".concat(f,"-active"),h)),style:p})},tx=function(e){var t=e.prefixCls,r=e.marks,n=e.dots,o=e.style,i=e.activeStyle,a=m.useContext(Ww),s=a.min,l=a.max,c=a.step,u=m.useMemo((function(){var e=new Set;if(r.forEach((function(t){e.add(t.value)})),n&&null!==c)for(var t=s;t<=l;)e.add(t),t+=c;return Array.from(e)}),[s,l,c,n,r]);return m.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return m.createElement(ex,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})})))},rx=function(e){var t=e.prefixCls,r=e.style,n=e.start,o=e.end,i=e.index,a=e.onStartMove,s=e.replaceCls,l=m.useContext(Ww),c=l.direction,u=l.min,d=l.max,f=l.disabled,h=l.range,p=l.classNames,g="".concat(t,"-track"),v=Hw(n,u,d),b=Hw(o,u,d),y=function(e){!f&&a&&a(e,-1)},w={};switch(c){case"rtl":w.right="".concat(100*v,"%"),w.width="".concat(100*b-100*v,"%");break;case"btt":w.bottom="".concat(100*v,"%"),w.height="".concat(100*b-100*v,"%");break;case"ttb":w.top="".concat(100*v,"%"),w.height="".concat(100*b-100*v,"%");break;default:w.left="".concat(100*v,"%"),w.width="".concat(100*b-100*v,"%")}var x=s||ze()(g,De(De({},"".concat(g,"-").concat(i+1),null!==i&&h),"".concat(t,"-track-draggable"),a),p.track);return m.createElement("div",{className:x,style:At(At({},w),r),onMouseDown:y,onTouchStart:y})},nx=function(e){var t=e.prefixCls,r=e.style,n=e.values,o=e.startPoint,i=e.onStartMove,a=m.useContext(Ww),s=a.included,l=a.range,c=a.min,u=a.styles,d=a.classNames,f=m.useMemo((function(){if(!l){if(0===n.length)return[];var e=null!=o?o:c,t=n[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var r=[],i=0;i<n.length-1;i+=1)r.push({start:n[i],end:n[i+1]});return r}),[n,l,o,c]);if(!s)return null;var h=null!=f&&f.length&&(d.tracks||u.tracks)?m.createElement(rx,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:ze()(d.tracks,"".concat(t,"-tracks")),style:u.tracks}):null;return m.createElement(m.Fragment,null,h,f.map((function(e,n){var o=e.start,a=e.end;return m.createElement(rx,{index:n,prefixCls:t,style:At(At({},Vw(r,n)),u.track),start:o,end:a,key:n,onStartMove:i})})))};function ox(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}var ix=m.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"rc-slider":r,o=e.className,i=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=void 0!==c&&c,d=e.keyboard,f=void 0===d||d,h=e.autoFocus,p=e.onFocus,g=e.onBlur,v=e.min,b=void 0===v?0:v,y=e.max,w=void 0===y?100:y,x=e.step,S=void 0===x?1:x,C=e.value,k=e.defaultValue,E=e.range,O=e.count,A=e.onChange,T=e.onBeforeChange,j=e.onAfterChange,P=e.onChangeComplete,M=e.allowCross,R=void 0===M||M,_=e.pushable,I=void 0!==_&&_,N=e.reverse,F=e.vertical,D=e.included,B=void 0===D||D,L=e.startPoint,z=e.trackStyle,H=e.handleStyle,U=e.railStyle,V=e.dotStyle,W=e.activeDotStyle,G=e.marks,q=e.dots,K=e.handleRender,X=e.activeHandleRender,Y=e.track,$=e.tabIndex,Z=void 0===$?0:$,Q=e.ariaLabelForHandle,J=e.ariaLabelledByForHandle,ee=e.ariaRequired,te=e.ariaValueTextFormatterForHandle,re=m.useRef(null),ne=m.useRef(null),oe=m.useMemo((function(){return F?N?"ttb":"btt":N?"rtl":"ltr"}),[N,F]),ie=function(e){return(0,m.useMemo)((function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,r=e.draggableTrack;return[!0,t,!t&&r,e.minCount||0,e.maxCount]}),[e])}(E),ae=Ie(ie,5),se=ae[0],le=ae[1],ce=ae[2],ue=ae[3],de=ae[4],fe=m.useMemo((function(){return isFinite(b)?b:0}),[b]),he=m.useMemo((function(){return isFinite(w)?w:100}),[w]),pe=m.useMemo((function(){return null!==S&&S<=0?1:S}),[S]),me=m.useMemo((function(){return"boolean"==typeof I?!!I&&pe:I>=0&&I}),[I,pe]),ge=m.useMemo((function(){return Object.keys(G||{}).map((function(e){var t=G[e],r={value:Number(e)};return t&&"object"===Ne(t)&&!m.isValidElement(t)&&("label"in t||"style"in t)?(r.style=t.style,r.label=t.label):r.label=t,r})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[G]),ve=function(e,t,r,n,o,i){var a=m.useCallback((function(r){return Math.max(e,Math.min(t,r))}),[e,t]),s=m.useCallback((function(n){if(null!==r){var o=e+Math.round((a(n)-e)/r)*r,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(r),i(t),i(e)),l=Number(o.toFixed(s));return e<=l&&l<=t?l:null}return null}),[r,e,t,a]),l=m.useCallback((function(o){var i=a(o),l=n.map((function(e){return e.value}));null!==r&&l.push(s(o)),l.push(e,t);var c=l[0],u=t-e;return l.forEach((function(e){var t=Math.abs(i-e);t<=u&&(c=e,u=t)})),c}),[e,t,n,r,a,s]),c=function o(i,a,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[l],f=d+a,h=[];n.forEach((function(e){h.push(e.value)})),h.push(e,t),h.push(s(d));var p=a>0?1:-1;"unit"===c?h.push(s(d+p*r)):h.push(s(f)),h=h.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===c&&(h=h.filter((function(e){return e!==d})));var m="unit"===c?d:f;u=h[0];var g=Math.abs(u-m);if(h.forEach((function(e){var t=Math.abs(e-m);t<g&&(u=e,g=t)})),void 0===u)return a<0?e:t;if("dist"===c)return u;if(Math.abs(a)>1){var v=Vo(i);return v[l]=u,o(v,a-p,l,c)}return u}return"min"===a?e:"max"===a?t:void 0},u=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[r],i=c(e,t,r,n);return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e<i};return[l,function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(l),s=a[r],f=c(a,t,r,n);if(a[r]=f,!1===o){var h=i||0;r>0&&a[r-1]!==s&&(a[r]=Math.max(a[r],a[r-1]+h)),r<a.length-1&&a[r+1]!==s&&(a[r]=Math.min(a[r],a[r+1]-h))}else if("number"==typeof i||null===i){for(var p=r+1;p<a.length;p+=1)for(var m=!0;d(a[p]-a[p-1])&&m;){var g=u(a,1,p);a[p]=g.value,m=g.changed}for(var v=r;v>0;v-=1)for(var b=!0;d(a[v]-a[v-1])&&b;){var y=u(a,-1,v-1);a[v-1]=y.value,b=y.changed}for(var w=a.length-1;w>0;w-=1)for(var x=!0;d(a[w]-a[w-1])&&x;){var S=u(a,-1,w-1);a[w-1]=S.value,x=S.changed}for(var C=0;C<a.length-1;C+=1)for(var k=!0;d(a[C+1]-a[C])&&k;){var E=u(a,1,C+1);a[C+1]=E.value,k=E.changed}}return{value:a[r],values:a}}]}(fe,he,pe,ge,R,me),be=Ie(ve,2),ye=be[0],we=be[1],xe=Ie(Ks(k,{value:C}),2),Se=xe[0],Ce=xe[1],ke=m.useMemo((function(){var e=null==Se?[]:Array.isArray(Se)?Se:[Se],t=Ie(e,1)[0],r=null===Se?[]:[void 0===t?fe:t];if(se){if(r=Vo(e),O||void 0===Se){var n=O>=0?O+1:2;for(r=r.slice(0,n);r.length<n;){var o;r.push(null!==(o=r[r.length-1])&&void 0!==o?o:fe)}}r.sort((function(e,t){return e-t}))}return r.forEach((function(e,t){r[t]=ye(e)})),r}),[Se,se,fe,O,ye]),Ee=function(e){return se?e:e[0]},Oe=Ws((function(e){var t=Vo(e).sort((function(e,t){return e-t}));A&&!Jo(t,ke,!0)&&A(Ee(t)),Ce(t)})),Ae=Ws((function(e){e&&re.current.hideHelp();var t=Ee(ke);null==j||j(t),Xt(!j,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==P||P(t)})),Te=Ie(function(e,t,r,n,o,i,a,s,l,c,u){var d=Ie(m.useState(null),2),f=d[0],h=d[1],p=Ie(m.useState(-1),2),g=p[0],v=p[1],b=Ie(m.useState(!1),2),y=b[0],w=b[1],x=Ie(m.useState(r),2),S=x[0],C=x[1],k=Ie(m.useState(r),2),E=k[0],O=k[1],A=m.useRef(null),T=m.useRef(null),j=m.useRef(null),P=m.useContext(Gw),M=P.onDragStart,R=P.onDragChange;Pi((function(){-1===g&&C(r)}),[r,g]),m.useEffect((function(){return function(){document.removeEventListener("mousemove",A.current),document.removeEventListener("mouseup",T.current),j.current&&(j.current.removeEventListener("touchmove",A.current),j.current.removeEventListener("touchend",T.current))}}),[]);var _=function(e,t,r){void 0!==t&&h(t),C(e);var n=e;r&&(n=e.filter((function(e,t){return t!==g}))),a(n),R&&R({rawValues:e,deleteIndex:r?g:-1,draggingIndex:g,draggingValue:t})},I=Ws((function(e,t,r){if(-1===e){var a=E[0],s=E[E.length-1],c=n-a,u=o-s,d=t*(o-n);d=Math.max(d,c),d=Math.min(d,u);var f=i(a+d);d=f-a;var h=E.map((function(e){return e+d}));_(h)}else{var p=(o-n)*t,m=Vo(S);m[e]=E[e];var g=l(m,p,e,"dist");_(g.values,g.value,r)}})),N=m.useMemo((function(){var e=Vo(r).sort((function(e,t){return e-t})),t=Vo(S).sort((function(e,t){return e-t})),n={};t.forEach((function(e){n[e]=(n[e]||0)+1})),e.forEach((function(e){n[e]=(n[e]||0)-1}));var o=c?1:0,i=Object.values(n).reduce((function(e,t){return e+Math.abs(t)}),0);return i<=o?S:r}),[r,S,c]);return[g,f,y,N,function(n,o,i){n.stopPropagation();var a=i||r,l=a[o];v(o),h(l),O(a),C(a),w(!1);var d=ox(n),f=d.pageX,p=d.pageY,m=!1;M&&M({rawValues:a,draggingIndex:o,draggingValue:l});var g=function(r){r.preventDefault();var n,i,a=ox(r),s=a.pageX,l=a.pageY,d=s-f,h=l-p,g=e.current.getBoundingClientRect(),v=g.width,b=g.height;switch(t){case"btt":n=-h/b,i=d;break;case"ttb":n=h/b,i=d;break;case"rtl":n=-d/v,i=h;break;default:n=d/v,i=h}m=!!c&&Math.abs(i)>130&&u<S.length,w(m),I(o,n,m)},b=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",g),j.current&&(j.current.removeEventListener("touchmove",A.current),j.current.removeEventListener("touchend",T.current)),A.current=null,T.current=null,j.current=null,s(m),v(-1),w(!1)};document.addEventListener("mouseup",b),document.addEventListener("mousemove",g),n.currentTarget.addEventListener("touchend",b),n.currentTarget.addEventListener("touchmove",g),A.current=g,T.current=b,j.current=n.currentTarget}]}(ne,oe,ke,fe,he,ye,Oe,Ae,we,le,ue),5),je=Te[0],Pe=Te[1],Me=Te[2],Re=Te[3],_e=Te[4],Fe=function(e,t){if(!u){var r=Vo(ke),n=0,o=0,i=he-fe;ke.forEach((function(t,r){var a=Math.abs(e-t);a<=i&&(i=a,n=r),t<e&&(o=r)}));var a=n;le&&0!==i&&(!de||ke.length<de)?(r.splice(o+1,0,e),a=o+1):r[n]=e,se&&!ke.length&&void 0===O&&r.push(e);var s,l,c=Ee(r);null==T||T(c),Oe(r),t?(null===(s=document.activeElement)||void 0===s||null===(l=s.blur)||void 0===l||l.call(s),re.current.focus(a),_e(t,a,r)):(null==j||j(c),Xt(!j,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==P||P(c))}},Be=Ie(m.useState(null),2),Le=Be[0],He=Be[1];m.useEffect((function(){if(null!==Le){var e=ke.indexOf(Le);e>=0&&re.current.focus(e)}He(null)}),[Le]);var Ue=m.useMemo((function(){return(!ce||null!==pe)&&ce}),[ce,pe]),Ve=Ws((function(e,t){_e(e,t),null==T||T(Ee(ke))})),We=-1!==je;m.useEffect((function(){if(!We){var e=ke.lastIndexOf(Pe);re.current.focus(e)}}),[We]);var Ge=m.useMemo((function(){return Vo(Re).sort((function(e,t){return e-t}))}),[Re]),qe=Ie(m.useMemo((function(){return se?[Ge[0],Ge[Ge.length-1]]:[fe,Ge[0]]}),[Ge,se,fe]),2),Ke=qe[0],Xe=qe[1];m.useImperativeHandle(t,(function(){return{focus:function(){re.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=ne.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}})),m.useEffect((function(){h&&re.current.focus(0)}),[]);var Ye=m.useMemo((function(){return{min:fe,max:he,direction:oe,disabled:u,keyboard:f,step:pe,included:B,includedStart:Ke,includedEnd:Xe,range:se,tabIndex:Z,ariaLabelForHandle:Q,ariaLabelledByForHandle:J,ariaRequired:ee,ariaValueTextFormatterForHandle:te,styles:s||{},classNames:a||{}}}),[fe,he,oe,u,f,pe,B,Ke,Xe,se,Z,Q,J,ee,te,s,a]);return m.createElement(Ww.Provider,{value:Ye},m.createElement("div",{ref:ne,className:ze()(n,o,De(De(De(De({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),F),"".concat(n,"-horizontal"),!F),"".concat(n,"-with-marks"),ge.length)),style:i,onMouseDown:function(e){e.preventDefault();var t,r=ne.current.getBoundingClientRect(),n=r.width,o=r.height,i=r.left,a=r.top,s=r.bottom,l=r.right,c=e.clientX,u=e.clientY;switch(oe){case"btt":t=(s-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(l-c)/n;break;default:t=(c-i)/n}Fe(ye(fe+t*(he-fe)),e)},id:l},m.createElement("div",{className:ze()("".concat(n,"-rail"),null==a?void 0:a.rail),style:At(At({},U),null==s?void 0:s.rail)}),!1!==Y&&m.createElement(nx,{prefixCls:n,style:z,values:ke,startPoint:L,onStartMove:Ue?Ve:void 0}),m.createElement(tx,{prefixCls:n,marks:ge,dots:q,style:V,activeStyle:W}),m.createElement(Zw,{ref:re,prefixCls:n,style:H,values:Re,draggingIndex:je,draggingDelete:Me,onStartMove:Ve,onOffsetChange:function(e,t){if(!u){var r=we(ke,e,t);null==T||T(Ee(ke)),Oe(r.values),He(r.value)}},onFocus:p,onBlur:g,handleRender:K,activeHandleRender:X,onChangeComplete:Ae,onDelete:le?function(e){if(!(u||!le||ke.length<=ue)){var t=Vo(ke);t.splice(e,1),null==T||T(Ee(t)),Oe(t);var r=Math.max(0,e-1);re.current.hideHelp(),re.current.focus(r)}}:void 0}),m.createElement(Jw,{prefixCls:n,marks:ge,onClick:Fe})))}));const ax=ix,sx=(0,m.createContext)({}),lx=m.forwardRef(((e,t)=>{const{open:r,draggingDelete:n,value:o}=e,i=(0,m.useRef)(null),a=r&&!n,s=(0,m.useRef)(null);function l(){Ol.cancel(s.current),s.current=null}return m.useEffect((()=>(a?s.current=Ol((()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),s.current=null})):l(),l)),[a,e.title,o]),m.createElement(im,Object.assign({ref:Cn(i,t)},e,{open:a}))})),cx=e=>{const{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:h,handleLineWidth:p,handleLineWidthHover:m,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},rc(e)),{position:"relative",height:n,margin:`${Si(a)} ${Si(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Si(i)} ${Si(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Si(p)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(p).mul(-1).equal(),insetBlockStart:c(p).mul(-1).equal(),width:c(u).add(c(p).mul(2)).equal(),height:c(u).add(c(p).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Si(p)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${g},\n inset-block-start ${g},\n width ${g},\n height ${g},\n box-shadow ${g},\n outline ${g}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(m).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(m).mul(-1).equal(),width:c(d).add(c(m).mul(2)).equal(),height:c(d).add(c(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Si(m)} ${f}`,outline:`6px solid ${h}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Si(p)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Si(p)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},ux=(e,t)=>{const{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",h=s(n).mul(3).sub(o).div(2).equal(),p=s(o).sub(n).div(2).equal(),m=t?{borderWidth:`${Si(p)} 0`,transform:`translateY(${Si(s(p).mul(-1).equal())})`}:{borderWidth:`0 ${Si(p)}`,transform:`translateX(${Si(e.calc(p).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:Object.assign({},m),[`${r}-handle`]:{[d]:h},[`${r}-mark`]:{insetInlineStart:0,top:0,[f]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[f]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[d]:s(n).sub(i).div(2).equal()}}},dx=e=>{const{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},ux(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},fx=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},ux(e,!1)),{height:"100%"})}},hx=Iu("Slider",(e=>{const t=Au(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[cx(t),dx(t),fx(t)]}),(e=>{const t=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new Ge(i).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Ge(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));function px(){const[e,t]=m.useState(!1),r=m.useRef(null),n=()=>{Ol.cancel(r.current)};return m.useEffect((()=>n),[]),[e,e=>{n(),e?t(e):r.current=Ol((()=>{t(e)}))}]}const mx=m.forwardRef(((e,t)=>{const{prefixCls:r,range:n,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f,tooltip:h={},onChangeComplete:p,classNames:g,styles:v}=e,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:w,direction:x,className:S,style:C,classNames:k,styles:E,getPopupContainer:O}=Zo("slider"),A=m.useContext(Ss),T=null!=s?s:A,{handleRender:j,direction:P}=m.useContext(sx),M="rtl"===(P||x),[R,_]=px(),[I,N]=px(),F=Object.assign({},h),{open:D,placement:B,getPopupContainer:L,prefixCls:z,formatter:H}=F,U=null!=D?D:u,V=(R||I)&&!1!==U,W=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(H,c),[G,q]=px(),K=(e,t)=>e||(t?M?"left":"right":"top"),X=w("slider",r),[Y,$,Z]=hx(X),Q=ze()(o,S,k.root,null==g?void 0:g.root,i,{[`${X}-rtl`]:M,[`${X}-lock`]:G},$,Z);M&&!b.vertical&&(b.reverse=!b.reverse),m.useEffect((()=>{const e=()=>{Ol((()=>{N(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const J=n&&!U,ee=j||((e,t)=>{const{index:r}=t,n=e.props;function o(e,t,r){var o,i,a,s;r&&(null===(i=(o=b)[e])||void 0===i||i.call(o,t)),null===(s=(a=n)[e])||void 0===s||s.call(a,t)}const i=Object.assign(Object.assign({},n),{onMouseEnter:e=>{_(!0),o("onMouseEnter",e)},onMouseLeave:e=>{_(!1),o("onMouseLeave",e)},onMouseDown:e=>{N(!0),q(!0),o("onMouseDown",e)},onFocus:e=>{var t;N(!0),null===(t=b.onFocus)||void 0===t||t.call(b,e),o("onFocus",e,!0)},onBlur:e=>{var t;N(!1),null===(t=b.onBlur)||void 0===t||t.call(b,e),o("onBlur",e,!0)}}),a=m.cloneElement(e,i),s=(!!U||V)&&null!==W;return J?a:m.createElement(lx,Object.assign({},F,{prefixCls:w("tooltip",null!=z?z:l),title:W?W(t.value):"",value:t.value,open:s,placement:K(null!=B?B:f,y),key:r,classNames:{root:`${X}-tooltip`},getPopupContainer:L||d||O}),a)}),te=J?(e,t)=>{const r=m.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return m.createElement(lx,Object.assign({},F,{prefixCls:w("tooltip",null!=z?z:l),title:W?W(t.value):"",open:null!==W&&V,placement:K(null!=B?B:f,y),key:"tooltip",classNames:{root:`${X}-tooltip`},getPopupContainer:L||d||O,draggingDelete:t.draggingDelete}),r)}:void 0,re=Object.assign(Object.assign(Object.assign(Object.assign({},E.root),C),null==v?void 0:v.root),a),ne=Object.assign(Object.assign({},E.tracks),null==v?void 0:v.tracks),oe=ze()(k.tracks,null==g?void 0:g.tracks);return Y(m.createElement(ax,Object.assign({},b,{classNames:Object.assign({handle:ze()(k.handle,null==g?void 0:g.handle),rail:ze()(k.rail,null==g?void 0:g.rail),track:ze()(k.track,null==g?void 0:g.track)},oe?{tracks:oe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},E.handle),null==v?void 0:v.handle),rail:Object.assign(Object.assign({},E.rail),null==v?void 0:v.rail),track:Object.assign(Object.assign({},E.track),null==v?void 0:v.track)},Object.keys(ne).length?{tracks:ne}:{}),step:b.step,range:n,className:Q,style:re,disabled:T,ref:t,prefixCls:X,handleRender:ee,activeHandleRender:te,onChangeComplete:e=>{null==p||p(e),q(!1)}})))})),gx=mx;const vx=e=>{const{prefixCls:t,colors:r,type:n,color:o,range:i=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:d}=e,f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},f),{track:!1}),p=m.useMemo((()=>`linear-gradient(90deg, ${r.map((e=>`${e.color} ${e.percent}%`)).join(", ")})`),[r]),g=m.useMemo((()=>o&&n?"alpha"===n?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`:null),[o,n]),v=Ws(c),b=Ws(u),y=m.useMemo((()=>({onDragStart:v,onDragChange:b})),[]),w=Ws(((e,o)=>{const{onFocus:i,style:a,className:c,onKeyDown:u}=e.props,f=Object.assign({},a);return"gradient"===n&&(f.background=sg(r,o.value)),m.cloneElement(e,{onFocus:e=>{null==l||l(o.index),null==i||i(e)},style:f,className:ze()(c,{[`${t}-slider-handle-active`]:s===o.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!d||d(o.index),null==u||u(e)}})})),x=m.useMemo((()=>({direction:"ltr",handleRender:w})),[]);return m.createElement(sx.Provider,{value:x},m.createElement(Gw.Provider,{value:y},m.createElement(gx,Object.assign({},h,{className:ze()(a,`${t}-slider`),tooltip:{open:!1},range:{editable:i,minCount:2},styles:{rail:{background:p},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))};function bx(e){return Vo(e).sort(((e,t)=>e.percent-t.percent))}const yx=e=>{const{prefixCls:t,mode:r,onChange:n,onChangeComplete:o,onActive:i,activeIndex:a,onGradientDragging:s,colors:l}=e,c="gradient"===r,u=m.useMemo((()=>l.map((e=>({percent:e.percent,color:e.color.toRgbString()})))),[l]),d=m.useMemo((()=>u.map((e=>e.percent))),[u]),f=m.useRef(u);return c?m.createElement(vx,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:e=>{o(new Im(u)),a>=e.length&&i(e.length-1),s(!1)},disabled:!1,type:"gradient",activeIndex:a,onActive:i,onDragStart:e=>{let{rawValues:t,draggingIndex:r,draggingValue:o}=e;if(t.length>u.length){const e=sg(u,o),t=Vo(u);t.splice(r,0,{percent:o,color:e}),f.current=t}else f.current=u;s(!0),n(new Im(bx(f.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:r,draggingValue:o}=e,i=Vo(f.current);-1!==t?i.splice(t,1):(i[r]=Object.assign(Object.assign({},i[r]),{percent:o}),i=bx(i)),n(new Im(i),!0)},onKeyDelete:e=>{const t=Vo(u);t.splice(e,1);const r=new Im(t);n(r),o(r)}}):null},wx=m.memo(yx);const xx={slider:e=>{const{value:t,onChange:r,onChangeComplete:n}=e;return m.createElement(vx,Object.assign({},e,{value:[t],onChange:e=>r(e[0]),onChangeComplete:e=>n(e[0])}))}},Sx=()=>{const e=(0,m.useContext)(tg),{mode:t,onModeChange:r,modeOptions:n,prefixCls:o,allowClear:i,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:f}=e,h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),p=m.useMemo((()=>a.cleared?[{percent:0,color:new Im("")},{percent:100,color:new Im("")}]:a.getColors()),[a]),g=!a.isGradient(),[v,b]=m.useState(a);Pi((()=>{var e;g||b(null===(e=p[d])||void 0===e?void 0:e.color)}),[f,d]);const y=m.useMemo((()=>{var e;return g?a:f?v:null===(e=p[d])||void 0===e?void 0:e.color}),[a,d,g,v,f]),[w,x]=m.useState(y),[S,C]=m.useState(0),k=(null==w?void 0:w.equals(y))?y:w;Pi((()=>{x(y)}),[S,null==y?void 0:y.toHexString()]);const E=(e,r)=>{let n=ng(e);if(a.cleared){const e=n.toRgb();if(e.r||e.g||e.b||!r)n=ag(n);else{const{type:e,value:t=0}=r;n=new Im({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return n;const o=Vo(p);return o[d]=Object.assign(Object.assign({},o[d]),{color:n}),new Im(o)};let O=null;const A=n.length>1;return(i||A)&&(O=m.createElement("div",{className:`${o}-operation`},A&&m.createElement(eg,{size:"small",options:n,value:t,onChange:r}),m.createElement(lg,Object.assign({prefixCls:o,value:a,onChange:e=>{l(e),null==c||c()}},h)))),m.createElement(m.Fragment,null,O,m.createElement(wx,Object.assign({},e,{colors:p})),m.createElement(Rm,{prefixCls:o,value:null==k?void 0:k.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,r)=>{const n=E(e,r);x(n.isGradient()?n.getColors()[d].color:n),l(n,!0)})(e,0,t)},onChangeComplete:(e,t)=>{((e,t)=>{u(E(e,t)),C((e=>e+1))})(e,t)},components:xx}),m.createElement(zw,Object.assign({value:y,onChange:e=>{l(E(e))},prefixCls:o,disabledAlpha:s},h)))},Cx={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 kx=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Cx}))};const Ex=m.forwardRef(kx);var Ox=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.forceRender,o=e.className,i=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,d=Ie(m.useState(s||n),2),f=d[0],h=d[1];return m.useEffect((function(){(n||s)&&h(!0)}),[n,s]),f?m.createElement("div",{ref:t,className:ze()("".concat(r,"-content"),De(De({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),o),style:i,role:l},m.createElement("div",{className:ze()("".concat(r,"-content-box"),null==c?void 0:c.body),style:null==u?void 0:u.body},a)):null}));Ox.displayName="PanelContent";const Ax=Ox;var Tx=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],jx=m.forwardRef((function(e,t){var r=e.showArrow,n=void 0===r||r,o=e.headerClass,i=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=void 0===c?{}:c,d=e.styles,f=void 0===d?{}:d,h=e.prefixCls,p=e.collapsible,g=e.accordion,v=e.panelKey,b=e.extra,y=e.header,w=e.expandIcon,x=e.openMotion,S=e.destroyInactivePanel,C=e.children,k=Be(e,Tx),E="disabled"===p,O=null!=b&&"boolean"!=typeof b,A=De(De(De({onClick:function(){null==a||a(v)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==$c.ENTER&&e.which!==$c.ENTER||null==a||a(v)},role:g?"tab":"button"},"aria-expanded",i),"aria-disabled",E),"tabIndex",E?-1:0),T="function"==typeof w?w(e):m.createElement("i",{className:"arrow"}),j=T&&m.createElement("div",Te({className:"".concat(h,"-expand-icon")},["header","icon"].includes(p)?A:{}),T),P=ze()("".concat(h,"-item"),De(De({},"".concat(h,"-item-active"),i),"".concat(h,"-item-disabled"),E),l),M=At({className:ze()(o,"".concat(h,"-header"),De({},"".concat(h,"-collapsible-").concat(p),!!p),u.header),style:f.header},["header","icon"].includes(p)?{}:A);return m.createElement("div",Te({},k,{ref:t,className:P}),m.createElement("div",M,n&&j,m.createElement("span",Te({className:"".concat(h,"-header-text")},"header"===p?A:{}),y),O&&m.createElement("div",{className:"".concat(h,"-extra")},b)),m.createElement(Vl,Te({visible:i,leavedClassName:"".concat(h,"-content-hidden")},x,{forceRender:s,removeOnLeave:S}),(function(e,t){var r=e.className,n=e.style;return m.createElement(Ax,{ref:t,prefixCls:h,className:r,classNames:u,style:n,styles:f,isActive:i,forceRender:s,role:g?"tabpanel":void 0},C)})))}));const Px=jx;var Mx=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function Rx(e){var t=e;if(!Array.isArray(t)){var r=Ne(t);t="number"===r||"string"===r?[t]:[]}return t.map((function(e){return String(e)}))}var _x=m.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"rc-collapse":r,o=e.destroyInactivePanel,i=void 0!==o&&o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,h=e.activeKey,p=e.defaultActiveKey,g=e.onChange,v=e.items,b=ze()(n,l),y=Ie(Ks([],{value:h,onChange:function(e){return null==g?void 0:g(e)},defaultValue:p,postState:Rx}),2),w=y[0],x=y[1];Xt(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=function(e,t,r){return Array.isArray(e)?function(e,t){var r=t.prefixCls,n=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,f=e.label,h=e.key,p=e.collapsible,g=e.onItemClick,v=e.destroyInactivePanel,b=Be(e,Mx),y=String(null!=h?h:t),w=null!=p?p:o,x=null!=v?v:i;return u=n?s[0]===y:s.indexOf(y)>-1,m.createElement(Px,Te({},b,{prefixCls:r,key:y,panelKey:y,isActive:u,accordion:n,openMotion:l,expandIcon:c,header:f,collapsible:w,onItemClick:function(e){"disabled"!==w&&(a(e),null==g||g(e))},destroyInactivePanel:x}),d)}))}(e,r):sd(t).map((function(e,t){return function(e,t,r){if(!e)return null;var n,o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,f=e.key||String(t),h=e.props,p=h.header,g=h.headerClass,v=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick;n=i?c[0]===f:c.indexOf(f)>-1;var w=null!=b?b:a,x={key:f,panelKey:f,header:p,headerClass:g,isActive:n,prefixCls:o,destroyInactivePanel:null!=v?v:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(l(e),null==y||y(e))},expandIcon:d,collapsible:w};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),m.cloneElement(e,x))}(e,t,r)}))}(v,c,{prefixCls:n,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:i,onItemClick:function(e){return x((function(){return s?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(Vo(w),[e])}))},activeKey:w});return m.createElement("div",Te({ref:t,className:b,style:a,role:s?"tablist":void 0},Jc(e,{aria:!0,data:!0})),S)}));const Ix=Object.assign(_x,{Panel:Px}),Nx=Ix;Ix.Panel;const Fx=m.forwardRef(((e,t)=>{const{getPrefixCls:r}=m.useContext(Xo),{prefixCls:n,className:o,showArrow:i=!0}=e,a=r("collapse",n),s=ze()({[`${a}-no-arrow`]:!i},o);return m.createElement(Nx.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),Dx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Bx=e=>{const{componentCls:t,contentBg:r,padding:n,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:h,colorTextDisabled:p,fontSizeLG:m,lineHeight:g,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,A=`${Si(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},rc(e)),{backgroundColor:o,border:A,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:A,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${Si(l)} ${Si(l)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Si(l)} ${Si(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:h,lineHeight:g,cursor:"pointer",transition:`all ${S}, visibility 0s`},oc(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-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"}}),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:r,borderTop:A,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:n,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(n).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Si(l)} ${Si(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Lx=e=>{const{componentCls:t}=e,r=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},zx=e=>{const{componentCls:t,headerBg:r,borderlessContentPadding:n,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:r,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:n}}}},Hx=e=>{const{componentCls:t,paddingSM:r}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:r}}}}}},Ux=Iu("Collapse",(e=>{const t=Au(e,{collapseHeaderPaddingSM:`${Si(e.paddingXS)} ${Si(e.paddingSM)}`,collapseHeaderPaddingLG:`${Si(e.padding)} ${Si(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Bx(t),zx(t),Hx(t),Lx(t),Dx(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}))),Vx=m.forwardRef(((e,t)=>{const{getPrefixCls:r,direction:n,expandIcon:o,className:i,style:a}=Zo("collapse"),{prefixCls:s,className:l,rootClassName:c,style:u,bordered:d=!0,ghost:f,size:h,expandIconPosition:p="start",children:g,destroyInactivePanel:v,destroyOnHidden:b,expandIcon:y}=e,w=Rf((e=>{var t;return null!==(t=null!=h?h:e)&&void 0!==t?t:"middle"})),x=r("collapse",s),S=r(),[C,k,E]=Ux(x),O=m.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),A=null!=y?y:o,T=m.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof A?A(e):m.createElement(Ex,{rotate:e.isActive?"rtl"===n?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return th(t,(()=>{var e;return{className:ze()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${x}-arrow`)}}))}),[A,x]),j=ze()(`${x}-icon-position-${O}`,{[`${x}-borderless`]:!d,[`${x}-rtl`]:"rtl"===n,[`${x}-ghost`]:!!f,[`${x}-${w}`]:"middle"!==w},i,l,c,k,E),P=Object.assign(Object.assign({},Jf(S)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),M=m.useMemo((()=>g?sd(g).map(((e,t)=>{var r,n;const o=e.props;if(null==o?void 0:o.disabled){const i=null!==(r=e.key)&&void 0!==r?r:String(t);return th(e,Object.assign(Object.assign({},kf(e.props,["disabled"])),{key:i,collapsible:null!==(n=o.collapsible)&&void 0!==n?n:"disabled"}))}return e})):null),[g]);return C(m.createElement(Nx,Object.assign({ref:t,openMotion:P},kf(e,["rootClassName"]),{expandIcon:T,prefixCls:x,className:j,style:Object.assign(Object.assign({},a),u),destroyInactivePanel:null!=b?b:v}),M))})),Wx=Object.assign(Vx,{Panel:Fx}),Gx=e=>e.map((e=>(e.colors=e.colors.map(ng),e))),qx=(e,t)=>{const{r,g:n,b:o,a:i}=e.toRgb(),a=new vm(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*r+.587*n+.114*o>192},Kx=(e,t)=>{var r;return`panel-${null!==(r=e.key)&&void 0!==r?r:t}`},Xx=e=>{let{prefixCls:t,presets:r,value:n,onChange:o}=e;const[i]=Gv("ColorPicker"),[,a]=Ql(),[s]=Ks(Gx(r),{value:Gx(r),postState:Gx}),l=`${t}-presets`,c=(0,m.useMemo)((()=>s.reduce(((e,t,r)=>{const{defaultOpen:n=!0}=t;return n&&e.push(Kx(t,r)),e}),[])),[s]),u=s.map(((e,r)=>{var s;return{key:Kx(e,r),label:m.createElement("div",{className:`${l}-label`},null==e?void 0:e.label),children:m.createElement("div",{className:`${l}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(s=e.colors)||void 0===s?void 0:s.length)>0?e.colors.map(((e,r)=>m.createElement(Sm,{key:`preset-${r}-${e.toHexString()}`,color:ng(e).toRgbString(),prefixCls:t,className:ze()(`${l}-color`,{[`${l}-color-checked`]:e.toHexString()===(null==n?void 0:n.toHexString()),[`${l}-color-bright`]:qx(e,a.colorBgElevated)}),onClick:()=>{null==o||o(e)}}))):m.createElement("span",{className:`${l}-empty`},i.presetEmpty))}}));return m.createElement("div",{className:l},m.createElement(Wx,{defaultActiveKey:c,ghost:!0,items:u}))},Yx=()=>{const{prefixCls:e,value:t,presets:r,onChange:n}=(0,m.useContext)(rg);return Array.isArray(r)?m.createElement(Xx,{value:t,presets:r,prefixCls:e,onChange:n}):null},$x=e=>{const{prefixCls:t,presets:r,panelRender:n,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:h,onActive:p,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:w}=e,x=`${t}-inner`,S=m.useMemo((()=>({prefixCls:t,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:h,onActive:p,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:w})),[t,o,i,a,s,l,c,u,d,f,h,p,g,v,b,y,w]),C=m.useMemo((()=>({prefixCls:t,value:o,presets:r,onChange:i})),[t,o,r,i]),k=m.createElement("div",{className:`${x}-content`},m.createElement(Sx,null),Array.isArray(r)&&m.createElement(Lm,null),m.createElement(Yx,null));return m.createElement(tg.Provider,{value:S},m.createElement(rg.Provider,{value:C},m.createElement("div",{className:x},"function"==typeof n?n(k,{components:{Picker:Sx,Presets:Yx}}):k)))};const Zx=(0,m.forwardRef)(((e,t)=>{const{color:r,prefixCls:n,open:o,disabled:i,format:a,className:s,showText:l,activeIndex:c}=e,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${n}-trigger`,f=`${d}-text`,h=`${f}-cell`,[p]=Gv("ColorPicker"),g=m.useMemo((()=>{if(!l)return"";if("function"==typeof l)return l(r);if(r.cleared)return p.transparent;if(r.isGradient())return r.getColors().map(((e,t)=>{const r=-1!==c&&c!==t;return m.createElement("span",{key:t,className:ze()(h,r&&`${h}-inactive`)},e.color.toRgbString()," ",e.percent,"%")}));const e=r.toHexString().toUpperCase(),t=ig(r);switch(a){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}}),[r,a,l,c]),v=(0,m.useMemo)((()=>r.cleared?m.createElement(lg,{prefixCls:n}):m.createElement(Sm,{prefixCls:n,color:r.toCssString()})),[r,n]);return m.createElement("div",Object.assign({ref:t,className:ze()(d,s,{[`${d}-active`]:o,[`${d}-disabled`]:i})},Jc(u)),v,l&&m.createElement("div",{className:f},g))})),Qx=Zx,Jx=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),eS=(e,t)=>{const{componentCls:r,borderRadiusSM:n,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${r}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:n,width:t,height:t,boxShadow:o,flex:"none"},Jx("50%",e.colorFillSecondary)),{[`${r}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Si(i)} ${a}`,borderRadius:"inherit"}})}},tS=e=>{const{componentCls:t,antCls:r,fontSizeSM:n,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:h,lineWidth:p}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${r}-input-number`]:{fontSize:n,lineHeight:o,[`${r}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${r}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Si(i)}`,marginInlineStart:a},[`${t}-format-select${r}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${r}-select-selector`]:{padding:0,border:0},[`${r}-select-arrow`]:{insetInlineEnd:0},[`${r}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:n,lineHeight:Si(l)},[`${r}-select-item-option-content`]:{fontSize:n,lineHeight:o},[`${r}-select-dropdown`]:{[`${r}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:`0 ${Si(d)}`,[`${r}-input`]:{fontSize:n,textTransform:"uppercase",lineHeight:Si(e.calc(l).sub(e.calc(p).mul(2)).equal())},[`${r}-input-prefix`]:{color:f}}}}}},rS=e=>{const{componentCls:t,controlHeightLG:r,borderRadiusSM:n,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:n},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${Si(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},nS=e=>{const{componentCls:t,antCls:r,colorTextQuaternary:n,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:h,paddingXS:p,fontHeightSM:m}=e;return{[`${t}-presets`]:{[`${r}-collapse-item > ${r}-collapse-header`]:{padding:0,[`${r}-collapse-expand-icon`]:{height:m,color:n,paddingInlineEnd:o}},[`${r}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${r}-collapse-item > ${r}-collapse-content > ${r}-collapse-content-box`]:{padding:`${Si(p)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Si(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${Si(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:n}}}},oS=e=>{const{componentCls:t,colorPickerInsetShadow:r,colorBgElevated:n,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${r}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Jx(Si(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:r},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${Si(i)} solid ${n}`,boxShadow:`${r}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},iS=(e,t,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Si(e.controlOutlineWidth)} ${r}`,outline:0}),aS=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},sS=(e,t,r)=>{const{componentCls:n,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${n}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${Si(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},r),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},lS=e=>{const{componentCls:t,colorError:r,colorWarning:n,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},iS(e,r,a))},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},iS(e,n,s))}}},cS=e=>{const{componentCls:t,controlHeightLG:r,controlHeightSM:n,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:r,minHeight:r,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:Si(i)}}}},uS=e=>{const{antCls:t,componentCls:r,colorPickerWidth:n,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:f,controlHeight:h,controlHeightSM:p,colorBgTextActive:m,colorPickerPresetColorSize:g,colorPickerPreviewSize:v,lineWidth:b,colorBorder:y,paddingXXS:w,fontSize:x,colorPrimaryHover:S,controlOutline:C}=e;return[{[r]:Object.assign({[`${r}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:`${Si(f)} 0 ${Si(d)}`}},[`${r}-panel`]:Object.assign({},rS(e))},oS(e)),eS(e,v)),tS(e)),nS(e)),sS(e,g,{marginInlineStart:"auto"})),{[`${r}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:u,border:`${Si(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(b).equal(),[`${r}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(w).sub(b)).equal(),fontSize:x,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${r}-trigger-active`]:Object.assign({},iS(e,o,C)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:m},[`${r}-trigger-text`]:{color:s}}},sS(e,p)),eS(e,p)),lS(e)),cS(e))},aS(e))},ib(e,{focusElCls:`${r}-trigger-active`})]},dS=Iu("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:r}=e,n=Au(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(r).equal()});return[uS(n)]}));const fS=e=>{const{mode:t,value:r,defaultValue:n,format:o,defaultFormat:i,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:d,placement:f="bottomLeft",arrow:h=!0,panelRender:p,showText:g,style:v,className:b,size:y,rootClassName:w,prefixCls:x,styles:S,disabledAlpha:C=!1,onFormatChange:k,onChange:E,onClear:O,onOpenChange:A,onChangeComplete:T,getPopupContainer:j,autoAdjustOverflow:P=!0,destroyTooltipOnHide:M,destroyOnHidden:R,disabledFormat:_}=e,I=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:N,direction:F,colorPicker:D}=(0,m.useContext)(Xo),B=(0,m.useContext)(Ss),L=null!=d?d:B,[z,H]=Ks(!1,{value:u,postState:e=>!L&&e,onChange:A}),[U,V]=Ks(o,{value:o,defaultValue:i,onChange:k}),W=N("color-picker",x),[G,q,K,X,Y]=function(e,t,r){const[n]=Gv("ColorPicker"),[o,i]=Ks(e,{value:t}),[a,s]=m.useState("single"),[l,c]=m.useMemo((()=>{const e=(Array.isArray(r)?r:[r]).filter((e=>e));e.length||e.push("single");const t=new Set(e),o=[],i=(e,r)=>{t.has(e)&&o.push({label:r,value:e})};return i("single",n.singleColor),i("gradient",n.gradientColor),[o,t]}),[r]),[u,d]=m.useState(null),f=Ws((e=>{d(e),i(e)})),h=m.useMemo((()=>{const e=ng(o||"");return e.equals(u)?u:e}),[o,u]),p=m.useMemo((()=>{var e;return c.has(a)?a:null===(e=l[0])||void 0===e?void 0:e.value}),[c,a,l]);return m.useEffect((()=>{s(h.isGradient()?"gradient":"single")}),[h]),[h,f,p,s,l]}(n,r,t),$=(0,m.useMemo)((()=>ig(G)<100),[G]),[Z,Q]=m.useState(null),J=e=>{if(T){let t=ng(e);C&&$&&(t=ag(e)),T(t)}},ee=(e,t)=>{let r=ng(e);C&&$&&(r=ag(r)),q(r),Q(null),E&&E(r,r.toCssString()),t||J(r)},[te,re]=m.useState(0),[ne,oe]=m.useState(!1),{status:ie}=m.useContext(jf),{compactSize:ae,compactItemClassnames:se}=Lf(W,F),le=Rf((e=>{var t;return null!==(t=null!=y?y:ae)&&void 0!==t?t:e})),ce=du(W),[ue,de,fe]=dS(W,ce),he={[`${W}-rtl`]:F},pe=ze()(w,fe,ce,he),me=ze()(Gf(W,ie),{[`${W}-sm`]:"small"===le,[`${W}-lg`]:"large"===le},se,null==D?void 0:D.className,pe,b,de),ge=ze()(W,pe),ve={open:z,trigger:c,placement:f,arrow:h,rootClassName:w,getPopupContainer:j,autoAdjustOverflow:P,destroyOnHidden:null!=R?R:!!M},be=Object.assign(Object.assign({},null==D?void 0:D.style),v);return ue(m.createElement(hm,Object.assign({style:null==S?void 0:S.popup,styles:{body:null==S?void 0:S.popupOverlayInner},onOpenChange:e=>{e&&L||H(e)},content:m.createElement(Uf,{form:!0},m.createElement($x,{mode:K,onModeChange:e=>{if(X(e),"single"===e&&G.isGradient())re(0),ee(new Im(G.getColors()[0].color)),Q(G);else if("gradient"===e&&!G.isGradient()){const e=$?ag(G):G;ee(new Im(Z||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:W,value:G,allowClear:a,disabled:L,disabledAlpha:C,presets:s,panelRender:p,format:U,onFormatChange:V,onChange:ee,onChangeComplete:J,onClear:O,activeIndex:te,onActive:re,gradientDragging:ne,onGradientDragging:oe,disabledFormat:_})),classNames:{root:ge}},ve),l||m.createElement(Qx,Object.assign({activeIndex:z?te:-1,open:z,className:me,style:be,prefixCls:W,disabled:L,showText:g,format:U},I,{color:G}))))},hS=Wf(fS,void 0,(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})),"color-picker",(e=>e));fS._InternalPanelDoNotUseOrYouWillBeFired=hS;const pS=fS;function mS(e){return["small","middle","large"].includes(e)}function gS(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const vS=m.createContext({latestIndex:0}),bS=vS.Provider,yS=e=>{let{className:t,index:r,children:n,split:o,style:i}=e;const{latestIndex:a}=m.useContext(vS);return null==n?null:m.createElement(m.Fragment,null,m.createElement("div",{className:t,style:i},n),r<a&&o&&m.createElement("span",{className:`${t}-split`},o))};const wS=m.forwardRef(((e,t)=>{var r;const{getPrefixCls:n,direction:o,size:i,className:a,style:s,classNames:l,styles:c}=Zo("space"),{size:u=(null!=i?i:"small"),align:d,className:f,rootClassName:h,children:p,direction:g="horizontal",prefixCls:v,split:b,style:y,wrap:w=!1,classNames:x,styles:S}=e,C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,E]=Array.isArray(u)?u:[u,u],O=mS(E),A=mS(k),T=gS(E),j=gS(k),P=sd(p,{keepEmpty:!0}),M=void 0===d&&"horizontal"===g?"center":d,R=n("space",v),[_,I,N]=Ff(R),F=ze()(R,a,I,`${R}-${g}`,{[`${R}-rtl`]:"rtl"===o,[`${R}-align-${M}`]:M,[`${R}-gap-row-${E}`]:O,[`${R}-gap-col-${k}`]:A},f,h,N),D=ze()(`${R}-item`,null!==(r=null==x?void 0:x.item)&&void 0!==r?r:l.item);let B=0;const L=P.map(((e,t)=>{var r;null!=e&&(B=t);const n=(null==e?void 0:e.key)||`${D}-${t}`;return m.createElement(yS,{className:D,key:n,index:t,split:b,style:null!==(r=null==S?void 0:S.item)&&void 0!==r?r:c.item},e)})),z=m.useMemo((()=>({latestIndex:B})),[B]);if(0===P.length)return null;const H={};return w&&(H.flexWrap="wrap"),!A&&j&&(H.columnGap=k),!O&&T&&(H.rowGap=E),_(m.createElement("div",Object.assign({ref:t,className:F,style:Object.assign(Object.assign(Object.assign({},H),s),y)},C),m.createElement(bS,{value:z},L)))})),xS=wS;xS.Compact=e=>{const{getPrefixCls:t,direction:r}=m.useContext(Xo),{size:n,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Df(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Rf((e=>null!=n?n:e)),f=t("space-compact",a),[h,p]=Ff(f),g=ze()(f,p,{[`${f}-rtl`]:"rtl"===r,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},s,l),v=m.useContext(Bf),b=sd(c),y=m.useMemo((()=>b.map(((e,t)=>{const r=(null==e?void 0:e.key)||`${f}-item-${t}`;return m.createElement(Hf,{key:r,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:t===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}))),[n,b,v]);return 0===b.length?null:h(m.createElement("div",Object.assign({className:g},u),y))};const SS=xS,CS=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},kS=Nu("Wave",(e=>[CS(e)])),ES=`${Go}-wave-target`;function OS(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function AS(e){return Number.isNaN(e)?0:e}const TS=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,i=m.useRef(null),a=m.useRef(null);m.useEffect((()=>{a.current=o()}),[]);const[s,l]=m.useState(null),[c,u]=m.useState([]),[d,f]=m.useState(0),[h,p]=m.useState(0),[g,v]=m.useState(0),[b,y]=m.useState(0),[w,x]=m.useState(!1),S={left:d,top:h,width:g,height:b,borderRadius:c.map((e=>`${e}px`)).join(" ")};function C(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return OS(t)?t:OS(r)?r:OS(n)?n:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;f(t?r.offsetLeft:AS(-parseFloat(n))),p(t?r.offsetTop:AS(-parseFloat(o))),v(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;u([i,a,c,s].map((e=>AS(parseFloat(e)))))}if(s&&(S["--wave-color"]=s),m.useEffect((()=>{if(r){const e=Ol((()=>{C(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(r)),()=>{Ol.cancel(e),null==t||t.disconnect()}}}),[]),!w)return null;const k=("Checkbox"===n||"Radio"===n)&&(null==r?void 0:r.classList.contains(ES));return m.createElement(Vl,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r,n;if(t.deadline||"opacity"===t.propertyName){const e=null===(r=i.current)||void 0===r?void 0:r.parentElement;null===(n=a.current)||void 0===n||n.call(a).then((()=>{null==e||e.remove()}))}return!1}},((e,r)=>{let{className:n}=e;return m.createElement("div",{ref:Cn(i,r),className:ze()(t,n,{"wave-quick":k}),style:S})}))},jS=(e,t)=>{var r;const{component:n}=t;if("Checkbox"===n&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);const i=_c();let a=null;a=i(m.createElement(TS,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),o)},PS=(e,t,r)=>{const{wave:n}=m.useContext(Xo),[,o,i]=Ql(),a=Ws((a=>{const s=e.current;if((null==n?void 0:n.disabled)||!s)return;const l=s.querySelector(`.${ES}`)||s,{showEffect:c}=n||{};(c||jS)(l,{className:t,token:o,component:r,event:a,hashId:i})})),s=m.useRef(null);return e=>{Ol.cancel(s.current),s.current=Ol((()=>{a(e)}))}},MS=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,m.useContext)(Xo),i=(0,m.useRef)(null),a=o("wave"),[,s]=kS(a),l=PS(i,ze()(a,s),n);return m.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!rp(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),m.isValidElement(t)?th(t,{ref:En(t)?Cn(An(t),i):i}):null!=t?t:null};const RS=m.createContext(void 0),_S=/^[\u4E00-\u9FA5]{2}$/,IS=_S.test.bind(_S);function NS(e){return"danger"===e?{danger:!0}:{type:e}}function FS(e){return"string"==typeof e}function DS(e){return"text"===e||"link"===e}["default","primary","danger"].concat(Vo($p));const BS=(0,m.forwardRef)(((e,t)=>{const{className:r,style:n,children:o,prefixCls:i}=e,a=ze()(`${i}-icon`,r);return m.createElement("span",{ref:t,className:a,style:n},o)})),LS=BS,zS=(0,m.forwardRef)(((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=ze()(`${r}-loading-icon`,n);return m.createElement(LS,{prefixCls:r,className:a,style:o,ref:t},m.createElement(Xc,{className:i}))})),HS=()=>({width:0,opacity:0,transform:"scale(0)"}),US=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),VS=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?m.createElement(zS,{prefixCls:t,className:o,style:i}):m.createElement(Vl,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:HS,onAppearActive:US,onEnterStart:HS,onEnterActive:US,onLeaveStart:US,onLeaveActive:HS},((e,r)=>{let{className:n,style:a}=e;const s=Object.assign(Object.assign({},i),a);return m.createElement(zS,{prefixCls:t,className:ze()(o,n),style:s,ref:r})}))},WS=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),GS=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},WS(`${t}-primary`,o),WS(`${t}-danger`,i)]}},qS=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Au(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},KS=e=>{var t,r,n,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(r=e.contentFontSizeSM)&&void 0!==r?r:e.fontSize,c=null!==(n=e.contentFontSizeLG)&&void 0!==n?n:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:us(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:us(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:us(c),h=qx(new Im(e.colorBgSolid),"#fff")?"#000":"#fff",p=$p.reduce(((t,r)=>Object.assign(Object.assign({},t),{[`${r}ShadowColor`]:`0 ${Si(e.controlOutlineWidth)} 0 ${Gl(e[`${r}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},p),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,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,solidTextColor:h,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)})},XS=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Si(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":oc(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},YS=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),$S=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ZS=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),QS=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),JS=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},YS(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),eC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},QS(e))}),tC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),rC=(e,t,r,n)=>{const o=n&&["link","text"].includes(n)?tC:eC;return Object.assign(Object.assign({},o(e)),YS(e.componentCls,t,r))},nC=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},rC(e,n,o))}),oC=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},rC(e,n,o))}),iC=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),aC=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},rC(e,r,n))}),sC=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},rC(e,n,o,r))}),lC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},nC(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),iC(e)),aC(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),JS(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),sC(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},oC(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),iC(e)),aC(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),sC(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),sC(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),JS(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),uC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},nC(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),oC(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),iC(e)),aC(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),sC(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),sC(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),JS(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),dC=e=>Object.assign(Object.assign({},sC(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),JS(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),fC=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:lC(e),[`${t}-color-primary`]:cC(e),[`${t}-color-dangerous`]:uC(e),[`${t}-color-link`]:dC(e)},(e=>{const{componentCls:t}=e;return $p.reduce(((r,n)=>{const o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},nC(e,e.colorTextLightSolid,o,{background:a},{background:c})),oC(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),iC(e)),aC(e,i,{background:s},{background:l})),sC(e,o,"link",{color:a},{color:c})),sC(e,o,"text",{color:a,background:i},{color:c,background:l}))})}),{})})(e))},hC=e=>Object.assign(Object.assign(Object.assign(Object.assign({},oC(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),sC(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),nC(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),sC(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),pC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${Si(l)} ${Si(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:$S(e)},{[`${r}${r}-round${t}`]:ZS(e)}]},mC=e=>{const t=Au(e,{fontSize:e.contentFontSize});return pC(t,e.componentCls)},gC=e=>{const t=Au(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return pC(t,`${e.componentCls}-sm`)},vC=e=>{const t=Au(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return pC(t,`${e.componentCls}-lg`)},bC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},yC=Iu("Button",(e=>{const t=qS(e);return[XS(t),mC(t),gC(t),vC(t),bC(t),fC(t),hC(t),GS(t)]}),KS,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function wC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function xC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},wC(e,t)),(r=e.componentCls,n=t,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var r,n}const SC=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:r,content:'""',width:e?"100%":n,height:e?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},CC=Fu(["Button","compact"],(e=>{const t=qS(e);return[ib(t),xC(t),SC(t)]}),KS);const kC={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},EC=m.forwardRef(((e,t)=>{var r,n;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:h,className:p,rootClassName:g,children:v,icon:b,iconPosition:y="start",ghost:w=!1,block:x=!1,htmlType:S="button",classNames:C,style:k={},autoInsertSpace:E,autoFocus:O}=e,A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=l||"default",{button:j}=m.useContext(Xo),[P,M]=(0,m.useMemo)((()=>{if(a&&s)return[a,s];if(l||c){const e=kC[T]||[];return c?["danger",e[1]]:e}return(null==j?void 0:j.color)&&(null==j?void 0:j.variant)?[j.color,j.variant]:["default","outlined"]}),[l,a,s,c,null==j?void 0:j.variant,null==j?void 0:j.color]),R="danger"===P?"dangerous":P,{getPrefixCls:_,direction:I,autoInsertSpace:N,className:F,style:D,classNames:B,styles:L}=Zo("button"),z=null===(r=null!=E?E:N)||void 0===r||r,H=_("btn",i),[U,V,W]=yC(H),G=(0,m.useContext)(Ss),q=null!=h?h:G,K=(0,m.useContext)(RS),X=(0,m.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==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}}(o)),[o]),[Y,$]=(0,m.useState)(X.loading),[Z,Q]=(0,m.useState)(!1),J=(0,m.useRef)(null),ee=kn(t,J),te=1===m.Children.count(v)&&!b&&!DS(M),re=(0,m.useRef)(!0);m.useEffect((()=>(re.current=!1,()=>{re.current=!0})),[]),(0,m.useEffect)((()=>{let e=null;return X.delay>0?e=setTimeout((()=>{e=null,$(!0)}),X.delay):$(X.loading),function(){e&&(clearTimeout(e),e=null)}}),[X]),(0,m.useEffect)((()=>{if(!J.current||!z)return;const e=J.current.textContent||"";te&&IS(e)?Z||Q(!0):Z&&Q(!1)})),(0,m.useEffect)((()=>{O&&J.current&&J.current.focus()}),[]);const ne=m.useCallback((t=>{var r;Y||q?t.preventDefault():null===(r=e.onClick)||void 0===r||r.call(e,t)}),[e.onClick,Y,q]),{compactSize:oe,compactItemClassnames:ie}=Lf(H,I),ae=Rf((e=>{var t,r;return null!==(r=null!==(t=null!=d?d:oe)&&void 0!==t?t:K)&&void 0!==r?r:e})),se=ae&&null!==(n={large:"lg",small:"sm",middle:void 0}[ae])&&void 0!==n?n:"",le=Y?"loading":b,ce=kf(A,["navigate"]),ue=ze()(H,V,W,{[`${H}-${u}`]:"default"!==u&&u,[`${H}-${T}`]:T,[`${H}-dangerous`]:c,[`${H}-color-${R}`]:R,[`${H}-variant-${M}`]:M,[`${H}-${se}`]:se,[`${H}-icon-only`]:!v&&0!==v&&!!le,[`${H}-background-ghost`]:w&&!DS(M),[`${H}-loading`]:Y,[`${H}-two-chinese-chars`]:Z&&z&&!Y,[`${H}-block`]:x,[`${H}-rtl`]:"rtl"===I,[`${H}-icon-end`]:"end"===y},ie,p,g,F),de=Object.assign(Object.assign({},D),k),fe=ze()(null==C?void 0:C.icon,B.icon),he=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),L.icon||{}),pe=b&&!Y?m.createElement(LS,{prefixCls:H,className:fe,style:he},b):o&&"object"==typeof o&&o.icon?m.createElement(LS,{prefixCls:H,className:fe,style:he},o.icon):m.createElement(VS,{existIcon:!!b,prefixCls:H,loading:Y,mount:re.current}),me=v||0===v?function(e,t){let r=!1;const n=[];return m.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(r&&o){const t=n.length-1,r=n[t];n[t]=`${r}${e}`}else n.push(e);r=o})),m.Children.map(n,(e=>function(e,t){if(null==e)return;const r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&FS(e.type)&&IS(e.props.children)?th(e,{children:e.props.children.split("").join(r)}):FS(e)?IS(e)?m.createElement("span",null,e.split("").join(r)):m.createElement("span",null,e):eh(e)?m.createElement("span",null,e):e}(e,t)))}(v,te&&z):null;if(void 0!==ce.href)return U(m.createElement("a",Object.assign({},ce,{className:ze()(ue,{[`${H}-disabled`]:q}),href:q?void 0:ce.href,style:de,onClick:ne,ref:ee,tabIndex:q?-1:0}),pe,me));let ge=m.createElement("button",Object.assign({},A,{type:S,className:ue,style:de,onClick:ne,disabled:q,ref:ee}),pe,me,ie&&m.createElement(CC,{prefixCls:H}));return DS(M)||(ge=m.createElement(MS,{component:"Button",disabled:Y},ge)),U(ge)})),OC=EC;OC.Group=e=>{const{getPrefixCls:t,direction:r}=m.useContext(Xo),{prefixCls:n,size:o,className:i}=e,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Ql(),c=m.useMemo((()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}}),[o]),u=ze()(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===r},i,l);return m.createElement(RS.Provider,{value:o},m.createElement("div",Object.assign({},a,{className:u})))},OC.__ANT_BUTTON=!0;const AC=OC;function TC(e){return!!(null==e?void 0:e.then)}const jC=e=>{const{type:t,children:r,prefixCls:n,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m.useRef(!1),f=m.useRef(null),[h,p]=Gs(!1),g=function(){null==i||i.apply(void 0,arguments)};return m.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})}))),()=>{e&&clearTimeout(e)}}),[]),m.createElement(AC,Object.assign({},NS(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!TC(t))return d.current=!1,void g(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!TC(t))return void g();(e=>{TC(e)&&(p(!0),e.then((function(){p(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(p(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:n},o,{ref:f}),r)},PC=m.createContext({}),{Provider:MC}=PC,RC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=(0,m.useContext)(PC);return o?m.createElement(jC,{isSilent:n,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},r):null},_C=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=(0,m.useContext)(PC);return m.createElement(jC,{isSilent:r,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:n,prefixCls:`${o}-btn`},i)};var IC=m.createContext({});function NC(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function FC(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}const DC=m.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var BC={width:0,height:0,overflow:"hidden",outline:"none"},LC={outline:"none"},zC=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,h=e.bodyProps,p=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,b=e.holderRef,y=e.visible,w=e.forceRender,x=e.width,S=e.height,C=e.classNames,k=e.styles,E=m.useContext(IC).panel,O=kn(b,E),A=(0,m.useRef)(),T=(0,m.useRef)();m.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=A.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===T.current?A.current.focus({preventScroll:!0}):e||t!==A.current||T.current.focus({preventScroll:!0})}}}));var j={};void 0!==x&&(j.width=x),void 0!==S&&(j.height=S);var P=s?m.createElement("div",{className:ze()("".concat(r,"-footer"),null==C?void 0:C.footer),style:At({},null==k?void 0:k.footer)},s):null,M=i?m.createElement("div",{className:ze()("".concat(r,"-header"),null==C?void 0:C.header),style:At({},null==k?void 0:k.header)},m.createElement("div",{className:"".concat(r,"-title"),id:a},i)):null,R=(0,m.useMemo)((function(){return"object"===Ne(l)&&null!==l?l:l?{closeIcon:null!=c?c:m.createElement("span",{className:"".concat(r,"-close-x")})}:{}}),[l,c,r]),_=Jc(R,!0),I="object"===Ne(l)&&l.disabled,N=l?m.createElement("button",Te({type:"button",onClick:u,"aria-label":"Close"},_,{className:"".concat(r,"-close"),disabled:I}),R.closeIcon):null,F=m.createElement("div",{className:ze()("".concat(r,"-content"),null==C?void 0:C.content),style:null==k?void 0:k.content},N,M,m.createElement("div",Te({className:ze()("".concat(r,"-body"),null==C?void 0:C.body),style:At(At({},f),null==k?void 0:k.body)},h),d),P);return m.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:At(At({},o),j),className:ze()(r,n),onMouseDown:g,onMouseUp:v},m.createElement("div",{ref:A,tabIndex:0,style:LC},m.createElement(DC,{shouldUpdate:y||w},p?p(F):F)),m.createElement("div",{tabIndex:0,ref:T,style:BC}))}));const HC=zC;var UC=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,h=(0,m.useRef)(),p=Ie(m.useState(),2),g=p[0],v=p[1],b={};function y(){var e,t,r,n,o,i=(r={left:(t=(e=h.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=FC(o),r.top+=FC(o,!0),r);v(f&&(f.x||f.y)?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}return g&&(b.transformOrigin=g),m.createElement(Vl,{visible:a,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:c,removeOnLeave:l,ref:h},(function(a,s){var l=a.className,c=a.style;return m.createElement(HC,Te({},e,{ref:t,title:n,ariaId:u,prefixCls:r,holderRef:s,style:At(At(At({},c),o),b),className:ze()(i,l)}))}))}));UC.displayName="Content";const VC=UC,WC=function(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return m.createElement(Vl,{key:"mask",visible:n,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,n){var i=e.className,s=e.style;return m.createElement("div",Te({ref:n,style:At(At({},s),r),className:ze()("".concat(t,"-mask"),i,a)},o))}))},GC=function(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,s=void 0===a||a,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,h=e.onClose,p=e.afterOpenChange,g=e.afterClose,v=e.transitionName,b=e.animation,y=e.closable,w=void 0===y||y,x=e.mask,S=void 0===x||x,C=e.maskTransitionName,k=e.maskAnimation,E=e.maskClosable,O=void 0===E||E,A=e.maskStyle,T=e.maskProps,j=e.rootClassName,P=e.classNames,M=e.styles,R=(0,m.useRef)(),_=(0,m.useRef)(),I=(0,m.useRef)(),N=Ie(m.useState(i),2),F=N[0],D=N[1],B=Wh();function L(e){null==h||h(e)}var z=(0,m.useRef)(!1),H=(0,m.useRef)(),U=null;O&&(U=function(e){z.current?z.current=!1:_.current===e.target&&L(e)}),(0,m.useEffect)((function(){i&&(D(!0),jt(_.current,document.activeElement)||(R.current=document.activeElement))}),[i]),(0,m.useEffect)((function(){return function(){clearTimeout(H.current)}}),[]);var V=At(At(At({zIndex:n},u),null==M?void 0:M.wrapper),{},{display:F?null:"none"});return m.createElement("div",Te({className:ze()("".concat(r,"-root"),j)},Jc(e,{data:!0})),m.createElement(WC,{prefixCls:r,visible:S&&i,motionName:NC(r,C,k),style:At(At({zIndex:n},A),null==M?void 0:M.mask),maskProps:T,className:null==P?void 0:P.mask}),m.createElement("div",Te({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===$c.ESC)return e.stopPropagation(),void L(e);i&&e.keyCode===$c.TAB&&I.current.changeActive(!e.shiftKey)},className:ze()("".concat(r,"-wrap"),d,null==P?void 0:P.wrapper),ref:_,onClick:U,style:V},f),m.createElement(VC,Te({},e,{onMouseDown:function(){clearTimeout(H.current),z.current=!0},onMouseUp:function(){H.current=setTimeout((function(){z.current=!1}))},ref:I,closable:w,ariaId:B,prefixCls:r,visible:i&&F,onClose:L,onVisibleChanged:function(e){if(e)jt(_.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(D(!1),S&&R.current&&c){try{R.current.focus({preventScroll:!0})}catch(e){}R.current=null}F&&(null==g||g())}var t;null==p||p(e)},motionName:NC(r,v,b)}))))};var qC=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=e.panelRef,l=Ie(m.useState(t),2),c=l[0],u=l[1],d=m.useMemo((function(){return{panel:s}}),[s]);return m.useEffect((function(){t&&u(!0)}),[t]),n||!i||c?m.createElement(IC.Provider,{value:d},m.createElement(dh,{open:t||n||c,autoDestroy:!1,getContainer:r,autoLock:t||c},m.createElement(GC,Te({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};qC.displayName="Dialog";const KC=qC,XC=function(){const e={};for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((t=>{t&&Object.keys(t).forEach((r=>{void 0!==t[r]&&(e[r]=t[r])}))})),e};function YC(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function $C(e){const{closable:t,closeIcon:r}=e||{};return m.useMemo((()=>{if(!t&&(!1===t||!1===r||null===r))return!1;if(void 0===t&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,r])}const ZC={},QC=e=>{const{prefixCls:t,className:r,style:n,size:o,shape:i}=e,a=ze()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=ze()({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=m.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return m.createElement("span",{className:ze()(t,a,s,r),style:Object.assign(Object.assign({},l),n)})},JC=new Ba("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ek=e=>({height:e,lineHeight:Si(e)}),tk=e=>Object.assign({width:e},ek(e)),rk=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:JC,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),nk=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ek(e)),ok=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},tk(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},tk(o)),[`${t}${t}-sm`]:Object.assign({},tk(i))}},ik=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:r},nk(t,s)),[`${n}-lg`]:Object.assign({},nk(o,s)),[`${n}-sm`]:Object.assign({},nk(i,s))}},ak=e=>Object.assign({width:e},ek(e)),sk=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:o},ak(i(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},ak(r)),{maxWidth:i(r).mul(4).equal(),maxHeight:i(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},lk=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},ck=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ek(e)),uk=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},ck(n,s))},lk(e,n,r)),{[`${r}-lg`]:Object.assign({},ck(o,s))}),lk(e,o,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},ck(i,s))}),lk(e,i,`${r}-sm`))},dk=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:h,borderRadius:p,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},tk(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},tk(c)),[`${r}-sm`]:Object.assign({},tk(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${o} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},uk(e)),ok(e)),ik(e)),sk(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${n},\n ${o} > li,\n ${r},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},rk(e))}}},fk=Iu("Skeleton",(e=>{const{componentCls:t,calc:r}=e,n=Au(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[dk(n)]}),(e=>{const{colorFillContent:t,colorFill:r}=e;return{color:t,colorGradientEnd:r,gradientFromColor:t,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),hk=(e,t)=>{const{width:r,rows:n=2}=t;return Array.isArray(r)?r[e]:n-1===e?r:void 0},pk=e=>{const{prefixCls:t,className:r,style:n,rows:o=0}=e,i=Array.from({length:o}).map(((t,r)=>m.createElement("li",{key:r,style:{width:hk(r,e)}})));return m.createElement("ul",{className:ze()(t,r),style:n},i)},mk=e=>{let{prefixCls:t,className:r,width:n,style:o}=e;return m.createElement("h3",{className:ze()(t,r),style:Object.assign({width:n},o)})};function gk(e){return e&&"object"==typeof e?e:{}}const vk=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:h,className:p,style:g}=Zo("skeleton"),v=f("skeleton",t),[b,y,w]=fk(v);if(r||!("loading"in e)){const e=!!s,t=!!l,r=!!c;let a,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,r)),gk(s));a=m.createElement("div",{className:`${v}-header`},m.createElement(QC,Object.assign({},e)))}if(t||r){let n,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,r)),gk(l));n=m.createElement(mk,Object.assign({},t))}if(r){const r=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const r={};return e&&t||(r.width="61%"),r.rows=!e&&t?3:2,r}(e,t)),gk(c));o=m.createElement(pk,Object.assign({},r))}f=m.createElement("div",{className:`${v}-content`},n,o)}const x=ze()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:u,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:d},p,n,o,y,w);return b(m.createElement("div",{className:x,style:Object.assign(Object.assign({},g),i)},a,f))}return null!=a?a:null};vk.Button=e=>{const{prefixCls:t,className:r,rootClassName:n,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=m.useContext(Xo),l=s("skeleton",t),[c,u,d]=fk(l),f=kf(e,["prefixCls"]),h=ze()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},r,n,u,d);return c(m.createElement("div",{className:h},m.createElement(QC,Object.assign({prefixCls:`${l}-button`,size:a},f))))},vk.Avatar=e=>{const{prefixCls:t,className:r,rootClassName:n,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=m.useContext(Xo),l=s("skeleton",t),[c,u,d]=fk(l),f=kf(e,["prefixCls","className"]),h=ze()(l,`${l}-element`,{[`${l}-active`]:o},r,n,u,d);return c(m.createElement("div",{className:h},m.createElement(QC,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},f))))},vk.Input=e=>{const{prefixCls:t,className:r,rootClassName:n,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=m.useContext(Xo),l=s("skeleton",t),[c,u,d]=fk(l),f=kf(e,["prefixCls"]),h=ze()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},r,n,u,d);return c(m.createElement("div",{className:h},m.createElement(QC,Object.assign({prefixCls:`${l}-input`,size:a},f))))},vk.Image=e=>{const{prefixCls:t,className:r,rootClassName:n,style:o,active:i}=e,{getPrefixCls:a}=m.useContext(Xo),s=a("skeleton",t),[l,c,u]=fk(s),d=ze()(s,`${s}-element`,{[`${s}-active`]:i},r,n,c,u);return l(m.createElement("div",{className:d},m.createElement("div",{className:ze()(`${s}-image`,r),style:o},m.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},m.createElement("title",null,"Image placeholder"),m.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:`${s}-image-path`})))))},vk.Node=e=>{const{prefixCls:t,className:r,rootClassName:n,style:o,active:i,children:a}=e,{getPrefixCls:s}=m.useContext(Xo),l=s("skeleton",t),[c,u,d]=fk(l),f=ze()(l,`${l}-element`,{[`${l}-active`]:i},u,r,n,d);return c(m.createElement("div",{className:f},m.createElement("div",{className:ze()(`${l}-image`,r),style:o},a)))};const bk=vk;function yk(){}const wk=m.createContext({add:yk,remove:yk}),xk=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=(0,m.useContext)(PC);return m.createElement(AC,Object.assign({onClick:r},e),t)},Sk=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:o}=(0,m.useContext)(PC);return m.createElement(AC,Object.assign({},NS(r),{loading:e,onClick:o},t),n)};function Ck(e,t){return m.createElement("span",{className:`${e}-close-x`},t||m.createElement(Vu,{className:`${e}-close-icon`}))}const kk=e=>{const{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Gv("Modal",is()),d={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:n||(null==u?void 0:u.cancelText),okType:r,onOk:i,onCancel:a},f=m.useMemo((()=>d),Vo(Object.values(d)));let h;return"function"==typeof c||void 0===c?(h=m.createElement(m.Fragment,null,m.createElement(xk,null),m.createElement(Sk,null)),"function"==typeof c&&(h=c(h,{OkBtn:Sk,CancelBtn:xk})),h=m.createElement(MC,{value:f},h)):h=c,m.createElement(xs,{disabled:!1},h)},Ek=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Ok=(e,t)=>((e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${n}${t}-${e}`]={display:"none"},i[`${n}-push-${e}`]={insetInlineStart:"auto"},i[`${n}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${e}`]={marginInlineStart:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${n}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${n}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${n}${t}-order-${e}`]={order:e});return i[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},i})(e,t),Ak=Iu("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"}}}}),(()=>({}))),Tk=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),jk=Iu("Grid",(e=>{const t=Au(e,{gridColumns:24}),r=Tk(t);return delete r.xs,[Ek(t),Ok(t,""),Ok(t,"-xs"),Object.keys(r).map((e=>((e,t,r)=>({[`@media (min-width: ${Si(t)})`]:Object.assign({},Ok(e,r))}))(t,r[e],`-${e}`))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({}))),Pk=new Ba("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Mk=new Ba("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Rk=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[Np(n,Pk,Mk,e.motionDurationMid,t),{[`\n ${o}${n}-enter,\n ${o}${n}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};function _k(e){return{position:e,inset:0}}const Ik=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},_k("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},_k("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Rk(e)}]},Nk=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${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: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Si(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},rc(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Si(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${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 ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Si(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},oc(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Si(e.borderRadiusLG)} ${Si(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Si(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Fk=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Dk=e=>{const{componentCls:t}=e,r=Tk(e);delete r.xs;const n=Object.keys(r).map((e=>({[`@media (min-width: ${Si(r[e])})`]:{width:`var(--${t.replace(".","")}-${e}-width)`}})));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Vo(n))}}},Bk=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return Au(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).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()})},Lk=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Si(e.paddingMD)} ${Si(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Si(e.padding)} ${Si(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Si(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Si(e.paddingXS)} ${Si(e.padding)}`:0,footerBorderTop:e.wireframe?`${Si(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Si(e.borderRadiusLG)} ${Si(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Si(2*e.padding)} ${Si(2*e.padding)} ${Si(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),zk=Iu("Modal",(e=>{const t=Bk(e);return[Nk(t),Fk(t),Ik(t),Yp(t,"zoom"),Dk(t)]}),Lk,{unitless:{titleLineHeight:!0}});let Hk;Tt()&&window.document.documentElement&&document.documentElement.addEventListener("click",(e=>{Hk={x:e.pageX,y:e.pageY},setTimeout((()=>{Hk=null}),100)}),!0);const Uk=e=>{const{prefixCls:t,className:r,rootClassName:n,open:o,wrapClassName:i,centered:a,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:u,width:d=520,footer:f,classNames:h,styles:p,children:g,loading:v,confirmLoading:b,zIndex:y,mousePosition:w,onOk:x,onCancel:S,destroyOnHidden:C,destroyOnClose:k}=e,E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:O,getPrefixCls:A,direction:T,modal:j}=m.useContext(Xo),P=e=>{b||null==S||S(e)},M=A("modal",t),R=A(),_=du(M),[I,N,F]=zk(M,_),D=ze()(i,{[`${M}-centered`]:null!=a?a:null==j?void 0:j.centered,[`${M}-wrap-rtl`]:"rtl"===T}),B=null===f||v?null:m.createElement(kk,Object.assign({},e,{onOk:e=>{null==x||x(e)},onCancel:P})),[L,z,H,U]=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ZC;const n=$C(e),o=$C(t),[i]=Gv("global",ts.global),a="boolean"!=typeof n&&!!(null==n?void 0:n.disabled),s=m.useMemo((()=>Object.assign({closeIcon:m.createElement(Vu,null)},r)),[r]),l=m.useMemo((()=>!1!==n&&(n?XC(s,o,n):!1!==o&&(o?XC(s,o):!!s.closable&&s))),[n,o,s]);return m.useMemo((()=>{if(!1===l)return[!1,null,a,{}];const{closeIconRender:e}=s,{closeIcon:t}=l;let r=t;const n=Jc(l,!0);return null!=r&&(e&&(r=e(t)),r=m.isValidElement(r)?m.cloneElement(r,Object.assign({"aria-label":i.close},n)):m.createElement("span",Object.assign({"aria-label":i.close},n),r)),[!0,r,a,n]}),[l,s])}(YC(e),YC(j),{closable:!0,closeIcon:m.createElement(Vu,{className:`${M}-close-icon`}),closeIconRender:e=>Ck(M,e)}),V=function(e){const t=m.useContext(wk),r=m.useRef(null);return Ws((n=>{if(n){const o=e?n.querySelector(e):n;t.add(o),r.current=o}else t.remove(r.current)}))}(`.${M}-content`),[W,G]=gu("Modal",y),[q,K]=m.useMemo((()=>d&&"object"==typeof d?[void 0,d]:[d,void 0]),[d]),X=m.useMemo((()=>{const e={};return K&&Object.keys(K).forEach((t=>{const r=K[t];void 0!==r&&(e[`--${M}-${t}-width`]="number"==typeof r?`${r}px`:r)})),e}),[K]);return I(m.createElement(Uf,{form:!0,space:!0},m.createElement(fu.Provider,{value:G},m.createElement(KC,Object.assign({width:q},E,{zIndex:W,getContainer:void 0===s?O:s,prefixCls:M,rootClassName:ze()(N,n,F,_),footer:B,visible:null!=o?o:u,mousePosition:null!=w?w:Hk,onClose:P,closable:L?Object.assign({disabled:H,closeIcon:z},U):L,closeIcon:z,focusTriggerAfterClose:l,transitionName:Qf(R,"zoom",e.transitionName),maskTransitionName:Qf(R,"fade",e.maskTransitionName),className:ze()(N,r,null==j?void 0:j.className),style:Object.assign(Object.assign(Object.assign({},null==j?void 0:j.style),c),X),classNames:Object.assign(Object.assign(Object.assign({},null==j?void 0:j.classNames),h),{wrapper:ze()(D,null==h?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},null==j?void 0:j.styles),p),panelRef:V,destroyOnClose:null!=C?C:k}),v?m.createElement(bk,{active:!0,title:!1,paragraph:{rows:4},className:`${M}-body-skeleton`}):g))))},Vk=e=>{const{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Si(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Si(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Wk=Fu(["Modal","confirm"],(e=>{const t=Bk(e);return[Vk(t)]}),Lk,{order:-1e3});function Gk(e){const{prefixCls:t,icon:r,okText:n,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=r;if(!r&&null!==r)switch(a){case"info":d=m.createElement(Gc,null);break;case"success":d=m.createElement(Fc,null);break;case"error":d=m.createElement(Lc,null);break;default:d=m.createElement(Uc,null)}const f=null!=s?s:"confirm"===a,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[p]=Gv("Modal"),g=c||p,v=n||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=o||(null==g?void 0:g.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:f},u),w=m.useMemo((()=>y),Vo(Object.values(y))),x=m.createElement(m.Fragment,null,m.createElement(RC,null),m.createElement(_C,null)),S=void 0!==e.title&&null!==e.title,C=`${i}-body`;return m.createElement("div",{className:`${i}-body-wrapper`},m.createElement("div",{className:ze()(C,{[`${C}-has-title`]:S})},d,m.createElement("div",{className:`${i}-paragraph`},S&&m.createElement("span",{className:`${i}-title`},e.title),m.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?m.createElement(MC,{value:w},m.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(x,{OkBtn:_C,CancelBtn:RC}):x)):l,m.createElement(Wk,{prefixCls:t}))}const qk=e=>{const{close:t,zIndex:r,maskStyle:n,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d}=e,f=`${i}-confirm`,h=e.width||416,p=e.style||{},g=void 0===e.mask||e.mask,v=void 0!==e.maskClosable&&e.maskClosable,b=ze()(f,`${f}-${e.type}`,{[`${f}-rtl`]:"rtl"===o},e.className),[,y]=Ql(),w=m.useMemo((()=>void 0!==r?r:y.zIndexPopupBase+1e3),[r,y]);return m.createElement(Uk,Object.assign({},e,{className:b,wrapClassName:ze()({[`${f}-centered`]:!!e.centered},a),onCancel:()=>{null==t||t({triggerCancel:!0}),null==u||u(!1)},title:"",footer:null,transitionName:Qf(s||"","zoom",e.transitionName),maskTransitionName:Qf(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:p,styles:Object.assign({body:l,mask:n},d),width:h,zIndex:w,closable:c}),m.createElement(Gk,Object.assign({},e,{confirmPrefixCls:f})))},Kk=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:o}=e;return m.createElement(vc,{prefixCls:t,iconPrefixCls:r,direction:n,theme:o},m.createElement(qk,Object.assign({},e)))},Xk=[];let Yk="";function $k(){return Yk}const Zk=e=>{var t,r;const{prefixCls:n,getContainer:o,direction:i}=e,a=is(),s=(0,m.useContext)(Xo),l=$k()||s.getPrefixCls(),c=n||`${l}-modal`;let u=o;return!1===u&&(u=void 0),m.createElement(Kk,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=i?i:s.direction,locale:null!==(r=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==r?r:a,getContainer:u}))};function Qk(e){const t=pc(),r=document.createDocumentFragment();let n,o,i=Object.assign(Object.assign({},e),{close:l,open:!0});function a(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(Vo(n.slice(1)))));for(let e=0;e<Xk.length;e++)if(Xk[e]===l){Xk.splice(e,1);break}o()}function s(e){clearTimeout(n),n=setTimeout((()=>{const n=t.getPrefixCls(void 0,$k()),i=t.getIconPrefixCls(),a=t.getTheme(),s=m.createElement(Zk,Object.assign({},e)),l=_c();o=l(m.createElement(vc,{prefixCls:n,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(s):s),r)}))}function l(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,r)}}),i.visible&&delete i.visible,s(i)}return s(i),Xk.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function Jk(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eE(e){return Object.assign(Object.assign({},e),{type:"info"})}function tE(e){return Object.assign(Object.assign({},e),{type:"success"})}function rE(e){return Object.assign(Object.assign({},e),{type:"error"})}function nE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const oE=Vf((e=>{const{prefixCls:t,className:r,closeIcon:n,closable:o,type:i,title:a,children:s,footer:l}=e,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=m.useContext(Xo),d=u(),f=t||u("modal"),h=du(d),[p,g,v]=zk(f,h),b=`${f}-confirm`;let y={};return y=i?{closable:null!=o&&o,title:"",footer:"",children:m.createElement(Gk,Object.assign({},e,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:a,footer:null!==l&&m.createElement(kk,Object.assign({},e)),children:s},p(m.createElement(HC,Object.assign({prefixCls:f,className:ze()(g,`${f}-pure-panel`,i&&b,i&&`${b}-${i}`,r,v,h)},c,{closeIcon:Ck(f,n),closable:o},y)))}));const iE=(e,t)=>{var r,{afterClose:n,config:o}=e,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["afterClose","config"]);const[a,s]=m.useState(!0),[l,c]=m.useState(o),{direction:u,getPrefixCls:d}=m.useContext(Xo),f=d("modal"),h=d(),p=function(){var e,t;s(!1);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=l.onCancel)||void 0===e||(t=e).call.apply(t,[l,()=>{}].concat(Vo(n.slice(1)))))};m.useImperativeHandle(t,(()=>({destroy:p,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(r=l.okCancel)&&void 0!==r?r:"confirm"===l.type,[v]=Gv("Modal",ts.Modal);return m.createElement(Kk,Object.assign({prefixCls:f,rootPrefixCls:h},l,{close:p,open:a,afterClose:()=>{var e;n(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==v?void 0:v.cancelText)},i))},aE=m.forwardRef(iE);let sE=0;const lE=m.memo(m.forwardRef(((e,t)=>{const[r,n]=function(){const[e,t]=m.useState([]);return[e,m.useCallback((e=>(t((t=>[].concat(Vo(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return m.useImperativeHandle(t,(()=>({patchElement:n})),[]),m.createElement(m.Fragment,null,r)})));function cE(e){return Qk(Jk(e))}const uE=Uk;uE.useModal=function(){const e=m.useRef(null),[t,r]=m.useState([]);m.useEffect((()=>{t.length&&(Vo(t).forEach((e=>{e()})),r([]))}),[t]);const n=m.useCallback((t=>function(n){var o;sE+=1;const i=m.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=m.createElement(aE,{key:`modal-${sE}`,config:t(n),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&Xk.push(l);const d={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():r((t=>[].concat(Vo(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():r((e=>[].concat(Vo(e),[t])))},then:e=>(c=!0,s.then(e))};return d}),[]);return[m.useMemo((()=>({info:n(eE),success:n(tE),error:n(rE),warning:n(Jk),confirm:n(nE)})),[]),m.createElement(lE,{key:"modal-holder",ref:e})]},uE.info=function(e){return Qk(eE(e))},uE.success=function(e){return Qk(tE(e))},uE.error=function(e){return Qk(rE(e))},uE.warning=cE,uE.warn=cE,uE.confirm=function(e){return Qk(nE(e))},uE.destroyAll=function(){for(;Xk.length;){const e=Xk.pop();e&&e()}},uE.config=function(e){let{rootPrefixCls:t}=e;Yk=t},uE._InternalPanelDoNotUseOrYouWillBeFired=oE;const dE=uE,fE=m.createContext(null),hE=fE.Provider,pE=fE,mE=m.createContext(null),gE=mE.Provider;var vE=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],bE=(0,m.forwardRef)((function(e,t){var r=e.prefixCls,n=void 0===r?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=void 0!==l&&l,u=e.type,d=void 0===u?"checkbox":u,f=e.title,h=e.onChange,p=Be(e,vE),g=(0,m.useRef)(null),v=(0,m.useRef)(null),b=Ie(Ks(c,{value:a}),2),y=b[0],w=b[1];(0,m.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=g.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=g.current)||void 0===e||e.blur()},input:g.current,nativeElement:v.current}}));var x=ze()(n,o,De(De({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s));return m.createElement("span",{className:x,title:f,style:i,ref:v},m.createElement("input",Te({},p,{className:"".concat(n,"-input"),ref:g,onChange:function(t){s||("checked"in e||w(t.target.checked),null==h||h({target:At(At({},e),{},{type:d,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!y,type:d})),m.createElement("span",{className:"".concat(n,"-inner")}))}));const yE=bE;function wE(e){const t=m.useRef(null),r=()=>{Ol.cancel(t.current),t.current=null};return[()=>{r(),t.current=Ol((()=>{t.current=null}))},n=>{t.current&&(n.stopPropagation(),r()),null==e||e(n)}]}const xE=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},rc(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},SE=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:h,dotColorDisabled:p,lineType:m,radioColor:g,radioBgColor:v,calc:b}=e,y=`${t}-inner`,w=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},rc(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Si(u)} ${m} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},rc(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},nc(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${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 ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},CE=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:h,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:A,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:P,calc:M}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Si(M(r).sub(M(o).mul(2)).equal()),background:d,border:`${Si(o)} ${i} ${a}`,borderBlockStartWidth:M(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-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:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Si(o)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:h,fontSize:f,lineHeight:Si(M(h).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${n}-group-small &`]:{height:p,paddingInline:M(m).sub(o).equal(),paddingBlock:0,lineHeight:Si(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({},nc(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:A,borderColor:A,"&::before":{backgroundColor:A}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:w,background:T,borderColor:T,"&:hover":{color:w,background:j,borderColor:j},"&:active":{color:w,background:P,borderColor:P}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:k,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},kE=Iu("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${Si(r)} ${t}`,o=Au(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[xE(o),SE(o),CE(o)]}),(e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:h,colorWhite:p}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:r-o,wrapperMarginInlineEnd:n,radioColor:t?d:p,radioBgColor:t?s:d}}),{unitless:{radioSize:!0,dotSize:!0}});const EE=(e,t)=>{var r,n;const o=m.useContext(pE),i=m.useContext(mE),{getPrefixCls:a,direction:s,radio:l}=m.useContext(Xo),c=m.useRef(null),u=Cn(t,c),{isFormItemInput:d}=m.useContext(jf),{prefixCls:f,className:h,rootClassName:p,children:g,style:v,title:b}=e,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",f),x="button"===((null==o?void 0:o.optionType)||i),S=x?`${w}-button`:w,C=du(w),[k,E,O]=kE(w,C),A=Object.assign({},y),T=m.useContext(Ss);o&&(A.name=o.name,A.onChange=t=>{var r,n;null===(r=e.onChange)||void 0===r||r.call(e,t),null===(n=null==o?void 0:o.onChange)||void 0===n||n.call(o,t)},A.checked=e.value===o.value,A.disabled=null!==(r=A.disabled)&&void 0!==r?r:o.disabled),A.disabled=null!==(n=A.disabled)&&void 0!==n?n:T;const j=ze()(`${S}-wrapper`,{[`${S}-wrapper-checked`]:A.checked,[`${S}-wrapper-disabled`]:A.disabled,[`${S}-wrapper-rtl`]:"rtl"===s,[`${S}-wrapper-in-form-item`]:d,[`${S}-wrapper-block`]:!!(null==o?void 0:o.block)},null==l?void 0:l.className,h,p,E,O,C),[P,M]=wE(A.onClick);return k(m.createElement(MS,{component:"Radio",disabled:A.disabled},m.createElement("label",{className:j,style:Object.assign(Object.assign({},null==l?void 0:l.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:P},m.createElement(yE,Object.assign({},A,{className:ze()(A.className,{[ES]:!x}),type:"radio",prefixCls:S,ref:u,onClick:M})),void 0!==g?m.createElement("span",{className:`${S}-label`},g):null)))},OE=m.forwardRef(EE),AE=m.forwardRef(((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(Xo),o=Wh(),{prefixCls:i,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:f,style:h,id:p,optionType:g,name:v=o,defaultValue:b,value:y,block:w=!1,onChange:x,onMouseEnter:S,onMouseLeave:C,onFocus:k,onBlur:E}=e,[O,A]=Ks(b,{value:y}),T=m.useCallback((t=>{const r=O,n=t.target.value;"value"in e||A(n),n!==r&&(null==x||x(t))}),[O,A,x]),j=r("radio",i),P=`${j}-group`,M=du(j),[R,_,I]=kE(j,M);let N=d;l&&l.length>0&&(N=l.map((e=>"string"==typeof e||"number"==typeof e?m.createElement(OE,{key:e.toString(),prefixCls:j,disabled:u,value:e,checked:O===e},e):m.createElement(OE,{key:`radio-group-value-options-${e.value}`,prefixCls:j,disabled:e.disabled||u,value:e.value,checked:O===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label))));const F=Rf(f),D=ze()(P,`${P}-${c}`,{[`${P}-${F}`]:F,[`${P}-rtl`]:"rtl"===n,[`${P}-block`]:w},a,s,_,I,M),B=m.useMemo((()=>({onChange:T,value:O,disabled:u,name:v,optionType:g,block:w})),[T,O,u,v,g,w]);return R(m.createElement("div",Object.assign({},Jc(e,{aria:!0,data:!0}),{className:D,style:h,onMouseEnter:S,onMouseLeave:C,onFocus:k,onBlur:E,id:p,ref:t}),m.createElement(hE,{value:B},N)))})),TE=m.memo(AE);const jE=(e,t)=>{const{getPrefixCls:r}=m.useContext(Xo),{prefixCls:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls"]),i=r("radio",n);return m.createElement(gE,{value:"button"},m.createElement(OE,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},PE=m.forwardRef(jE),ME=OE;ME.Button=PE,ME.Group=TE,ME.__ANT_RADIO=!0;const RE=ME;var _E=o(5778),IE=o.n(_E);const NE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{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:"plus-circle",theme:"outlined"};var FE=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:NE}))};const DE=m.forwardRef(FE),BE=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),a=t.toLowerCase(),s=[a];return".jpg"!==a&&".jpeg"!==a||(s=[".jpg",".jpeg"]),s.some((function(e){return r.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(Xt(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function LE(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function zE(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var n=e.data[t];Array.isArray(n)?n.forEach((function(e){r.append("".concat(t,"[]"),e)})):r.append(t,n)})),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}(e,t),LE(t)):e.onSuccess(LE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach((function(e){null!==n[e]&&t.setRequestHeader(e,n[e])})),t.send(r),{abort:function(){t.abort()}}}const HE=function(){var e=wc(bc().mark((function e(t,r){var n,o,i,a,s,l,c,u;return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=function(){return(l=wc(bc().mark((function e(t){return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(n){r(n)?(t.fullPath&&!n.webkitRelativePath&&(Object.defineProperties(n,{webkitRelativePath:{writable:!0}}),n.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(n,{webkitRelativePath:{writable:!1}})),e(n)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},s=function(e){return l.apply(this,arguments)},a=function(){return(a=wc(bc().mark((function e(t){var r,n,o,i,a;return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.createReader(),n=[];case 2:return e.next=5,new Promise((function(e){r.readEntries(e,(function(){return e([])}))}));case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)n.push(o[a]);e.next=2;break;case 12:return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)},i=function(e){return a.apply(this,arguments)},n=[],o=[],t.forEach((function(e){return o.push(e.webkitGetAsEntry())})),c=function(){var e=wc(bc().mark((function e(t,r){var a,l;return bc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=r||"",!t.isFile){e.next=10;break}return e.next=6,s(t);case 6:(a=e.sent)&&n.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:l=e.sent,o.push.apply(o,Vo(l));case 15:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<o.length)){e.next=15;break}return e.next=12,c(o[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();var UE=+new Date,VE=0;function WE(){return"rc-upload-".concat(UE,"-").concat(++VE)}var GE=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],qE=function(e){Bs(r,e);var t=Us(r);function r(){var e;ei(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return De(Hs(e=t.call.apply(t,[this].concat(o))),"state",{uid:WE()}),De(Hs(e),"reqs",{}),De(Hs(e),"fileInput",void 0),De(Hs(e),"_isMounted",void 0),De(Hs(e),"onChange",(function(t){var r=e.props,n=r.accept,o=r.directory,i=Vo(t.target.files).filter((function(e){return!o||BE(e,n)}));e.uploadFiles(i),e.reset()})),De(Hs(e),"onClick",(function(t){var r=e.fileInput;if(r){var n=t.target,o=e.props.onClick;n&&"BUTTON"===n.tagName&&(r.parentNode.focus(),n.blur()),r.click(),o&&o(t)}})),De(Hs(e),"onKeyDown",(function(t){"Enter"===t.key&&e.onClick(t)})),De(Hs(e),"onFileDropOrPaste",function(){var t=wc(bc().mark((function t(r){var n,o,i,a,s,l,c,u,d;return bc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),"dragover"!==r.type){t.next=3;break}return t.abrupt("return");case 3:if(n=e.props,o=n.multiple,i=n.accept,a=n.directory,s=[],l=[],"drop"===r.type?(c=r.dataTransfer,s=Vo(c.items||[]),l=Vo(c.files||[])):"paste"===r.type&&(u=r.clipboardData,s=Vo(u.items||[]),l=Vo(u.files||[])),!a){t.next=14;break}return t.next=10,HE(Array.prototype.slice.call(s),(function(t){return BE(t,e.props.accept)}));case 10:l=t.sent,e.uploadFiles(l),t.next=17;break;case 14:d=Vo(l).filter((function(e){return BE(e,i)})),!1===o&&(d=l.slice(0,1)),e.uploadFiles(d);case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),De(Hs(e),"onPrePaste",(function(t){e.props.pastable&&e.onFileDropOrPaste(t)})),De(Hs(e),"uploadFiles",(function(t){var r=Vo(t),n=r.map((function(t){return t.uid=WE(),e.processFile(t,r)}));Promise.all(n).then((function(t){var r=e.props.onBatchStart;null==r||r(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))})),De(Hs(e),"processFile",function(){var t=wc(bc().mark((function t(r,n){var o,i,a,s,l,c,u,d,f;return bc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=r,!o){t.next=14;break}return t.prev=3,t.next=6,o(r,n);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:r,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(r);case 18:s=t.sent,t.next=22;break;case 21:s=a;case 22:if("function"!=typeof(l=e.props.data)){t.next=29;break}return t.next=26,l(r);case 26:c=t.sent,t.next=30;break;case 29:c=l;case 30:return u="object"!==Ne(i)&&"string"!=typeof i||!i?r:i,d=u instanceof File?u:new File([u],r.name,{type:r.type}),(f=d).uid=r.uid,t.abrupt("return",{origin:r,data:c,parsedFile:f,action:s});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,r){return t.apply(this,arguments)}}()),De(Hs(e),"saveFileInput",(function(t){e.fileInput=t})),e}return ri(r,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onPrePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onPrePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onPrePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onPrePaste)}},{key:"post",value:function(e){var t=this,r=e.data,n=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,s=a.onStart,l=a.customRequest,c=a.name,u=a.headers,d=a.withCredentials,f=a.method,h=n.uid,p=l||zE,m={action:o,filename:c,data:r,file:i,headers:u,withCredentials:d,method:f||"post",onProgress:function(e){var r=t.props.onProgress;null==r||r(e,i)},onSuccess:function(e,r){var n=t.props.onSuccess;null==n||n(e,i,r),delete t.reqs[h]},onError:function(e,r){var n=t.props.onError;null==n||n(e,r,i),delete t.reqs[h]}};s(n),this.reqs[h]=p(m)}}},{key:"reset",value:function(){this.setState({uid:WE()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var r=e.uid?e.uid:e;t[r]&&t[r].abort&&t[r].abort(),delete t[r]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.prefixCls,n=e.className,o=e.classNames,i=void 0===o?{}:o,a=e.disabled,s=e.id,l=e.name,c=e.style,u=e.styles,d=void 0===u?{}:u,f=e.multiple,h=e.accept,p=e.capture,g=e.children,v=e.directory,b=e.openFileDialogOnClick,y=e.onMouseEnter,w=e.onMouseLeave,x=e.hasControlInside,S=Be(e,GE),C=ze()(De(De(De({},r,!0),"".concat(r,"-disabled"),a),n,n)),k=v?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},E=a?{}:{onClick:b?this.onClick:function(){},onKeyDown:b?this.onKeyDown:function(){},onMouseEnter:y,onMouseLeave:w,onDrop:this.onFileDropOrPaste,onDragOver:this.onFileDropOrPaste,tabIndex:x?void 0:"0"};return m.createElement(t,Te({},E,{className:C,role:x?void 0:"button",style:c}),m.createElement("input",Te({},Jc(S,{aria:!0,data:!0}),{id:s,name:l,disabled:a,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:At({display:"none"},d.input),className:i.input,accept:h},k,{multiple:f,onChange:this.onChange},null!=p?{capture:p}:{})),g)}}]),r}(m.Component);const KE=qE;function XE(){}var YE=function(e){Bs(r,e);var t=Us(r);function r(){var e;ei(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return De(Hs(e=t.call.apply(t,[this].concat(o))),"uploader",void 0),De(Hs(e),"saveUploader",(function(t){e.uploader=t})),e}return ri(r,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return m.createElement(KE,Te({},this.props,{ref:this.saveUploader}))}}]),r}(m.Component);De(YE,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:XE,onError:XE,onSuccess:XE,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const $E=YE,ZE=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Si(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Si(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Si(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},QE=e=>{const{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},tc),{padding:`0 ${Si(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${l}:focus-visible,\n &.picture ${l}\n `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},JE=e=>{const{componentCls:t}=e,r=new Ba("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new Ba("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:Rk(e)},r,n]},eO=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},tc),{width:n,height:n,lineHeight:Si(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${Si(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${at[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${at.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},tO=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Si(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Si(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Si(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${r}-eye,\n ${r}-download,\n ${r}-delete\n `]:{zIndex:10,width:n,margin:`0 ${Si(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Si(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Si(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},rO=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},nO=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},rc(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},oO=Iu("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=Au(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[nO(a),ZE(a),eO(a),tO(a),QE(a),JE(a),rO(a),Dx(a)]}),(e=>({actionsColor:e.colorIcon}))),iO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var aO=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:iO}))};const sO=m.forwardRef(aO),lO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var cO=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:lO}))};const uO=m.forwardRef(cO),dO={icon:function(e,t){return{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 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var fO=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:dO}))};const hO=m.forwardRef(fO);function pO(){const[,e]=m.useReducer((e=>e+1),0);return e}function mO(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function gO(e,t){const r=Vo(t),n=r.findIndex((t=>{let{uid:r}=t;return r===e.uid}));return-1===n?r.push(e):r[n]=e,r}function vO(e,t){const r=void 0!==e.uid?"uid":"name";return t.filter((t=>t[r]===e[r]))[0]}const bO=e=>0===e.indexOf("image/"),yO=e=>{if(e.type&&!e.thumbUrl)return bO(e.type);const t=e.thumbUrl||e.url||"",r=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r},wO=200;function xO(e){return new Promise((t=>{if(!e.type||!bO(e.type))return void t("");const r=document.createElement("canvas");r.width=wO,r.height=wO,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);const n=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=wO,s=wO,l=0,c=0;e>i?(s=i*(wO/e),c=-(s-a)/2):(a=e*(wO/i),l=-(a-s)/2),n.drawImage(o,l,c,a,s);const u=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}const SO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var CO=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:SO}))};const kO=m.forwardRef(CO),EO={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 OO=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:EO}))};const AO=m.forwardRef(OO),TO={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 jO=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:TO}))};const PO=m.forwardRef(jO);var MO={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},RO=0,_O=Tt();var IO=function(e){var t=e.bg,r=e.children;return m.createElement("div",{style:{width:"100%",height:"100%",background:t}},r)};function NO(e,t){return Object.keys(e).map((function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)}))}var FO=m.forwardRef((function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=n&&"object"===Ne(n),h=f?"#FFF":void 0,p=u/2,g=m.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:p,cy:p,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:0===s?0:1,style:a,ref:t});if(!f)return g;var v="".concat(o,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=NO(n,(360-d)/360),w=NO(n,1),x="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),S="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return m.createElement(m.Fragment,null,m.createElement("mask",{id:v},g),m.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},m.createElement(IO,{bg:S},m.createElement(IO,{bg:x}))))}));const DO=FO;var BO=function(e,t,r,n,o,i,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=r/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],h=(100-n)/100*t;return"round"===l&&100!==n&&(h+=c/2)>=t&&(h=t-.01),{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}},LO=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function zO(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const HO=function(e){var t,r,n,o,i,a=At(At({},MO),e),s=a.id,l=a.prefixCls,c=a.steps,u=a.strokeWidth,d=a.trailWidth,f=a.gapDegree,h=void 0===f?0:f,p=a.gapPosition,g=a.trailColor,v=a.strokeLinecap,b=a.style,y=a.className,w=a.strokeColor,x=a.percent,S=Be(a,LO),C=function(e){var t=Ie(m.useState(),2),r=t[0],n=t[1];return m.useEffect((function(){var e;n("rc_progress_".concat((_O?(e=RO,RO+=1):e="TEST_OR_SSR",e)))}),[]),e||r}(s),k="".concat(C,"-gradient"),E=50-u/2,O=2*Math.PI*E,A=h>0?90+h/2:-90,T=O*((360-h)/360),j="object"===Ne(c)?c:{count:c,gap:2},P=j.count,M=j.gap,R=zO(x),_=zO(w),I=_.find((function(e){return e&&"object"===Ne(e)})),N=I&&"object"===Ne(I)?"butt":v,F=BO(O,T,0,100,A,h,p,g,N,u),D=(o=(0,m.useRef)([]),i=(0,m.useRef)(null),(0,m.useEffect)((function(){var e=Date.now(),t=!1;o.current.forEach((function(r){if(r){t=!0;var n=r.style;n.transitionDuration=".3s, .3s, .3s, .06s",i.current&&e-i.current<100&&(n.transitionDuration="0s, 0s")}})),t&&(i.current=Date.now())})),o.current);return m.createElement("svg",Te({className:ze()("".concat(l,"-circle"),y),viewBox:"0 0 ".concat(100," ").concat(100),style:b,id:s,role:"presentation"},S),!P&&m.createElement("circle",{className:"".concat(l,"-circle-trail"),r:E,cx:50,cy:50,stroke:g,strokeLinecap:N,strokeWidth:d||u,style:F}),P?(t=Math.round(P*(R[0]/100)),r=100/P,n=0,new Array(P).fill(null).map((function(e,o){var i=o<=t-1?_[0]:g,a=i&&"object"===Ne(i)?"url(#".concat(k,")"):void 0,s=BO(O,T,n,r,A,h,p,i,"butt",u,M);return n+=100*(T-s.strokeDashoffset+M)/T,m.createElement("circle",{key:o,className:"".concat(l,"-circle-path"),r:E,cx:50,cy:50,stroke:a,strokeWidth:u,opacity:1,style:s,ref:function(e){D[o]=e}})}))):function(){var e=0;return R.map((function(t,r){var n=_[r]||_[_.length-1],o=BO(O,T,e,t,A,h,p,n,N,u);return e+=t,m.createElement(DO,{key:r,color:n,ptg:t,radius:E,prefixCls:l,gradientId:k,style:o,strokeLinecap:N,strokeWidth:u,gapDegree:h,ref:function(e){D[r]=e},size:100})})).reverse()}())};function UO(e){return!e||e<0?0:e>100?100:e}function VO(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const WO=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if("step"===t){const t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=n?n: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==r?void 0:r.strokeWidth;"string"==typeof e||void 0===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||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},GO=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,h]=WO(u,"circle");let{strokeWidth:p}=e;void 0===p&&(p=Math.max((e=>3/e*100)(f),6));const g={width:f,height:h,fontSize:.15*f+6},v=m.useMemo((()=>i||0===i?i:"dashboard"===s?75:void 0),[i,s]),b=(e=>{let{percent:t,success:r,successPercent:n}=e;const o=UO(VO({success:r,successPercent:n}));return[o,UO(UO(t)-o)]})(e),y=o||"dashboard"===s&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(e.strokeColor),x=(e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||Ze.green,r||null]})({success:c,strokeColor:e.strokeColor}),S=ze()(`${t}-inner`,{[`${t}-circle-gradient`]:w}),C=m.createElement(HO,{steps:d,percent:d?b[1]:b,strokeWidth:p,trailWidth:p,strokeColor:d?x[1]:x,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:v,gapPosition:y}),k=f<=20,E=m.createElement("div",{className:S,style:g},C,!k&&l);return k?m.createElement(im,{title:l},E):E},qO="--progress-line-stroke-color",KO="--progress-percent",XO=e=>{const t=e?"100%":"-100%";return new Ba(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},YO=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},rc(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${qO})`]},height:"100%",width:`calc(1 / var(${KO}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Si(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:XO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:XO(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},$O=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${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%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},ZO=e=>{const{componentCls:t}=e;return{[t]:{[`${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 ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},QO=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},JO=Iu("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Au(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[YO(r),$O(r),ZO(r),QO(r)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));const eA=(e,t)=>{const{from:r=Ze.blue,to:n=Ze.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach((r=>{const n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:r}=e;return`${r} ${t}%`})).join(", ")})(i)})`;return{background:e,[qO]:e}}const a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[qO]:a}},tA=e=>{const{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:h}=u,p=a&&"string"!=typeof a?eA(a,r):{[qO]:a,background:a},g="square"===s||"butt"===s?0:void 0,v=null!=o?o:[-1,i||("small"===o?6:8)],[b,y]=WO(v,"line",{strokeWidth:i}),w={backgroundColor:c||void 0,borderRadius:g},x=Object.assign(Object.assign({width:`${UO(n)}%`,height:y,borderRadius:g},p),{[KO]:UO(n)/100}),S=VO(e),C={width:`${UO(S)}%`,height:y,borderRadius:g,backgroundColor:null==d?void 0:d.strokeColor},k={width:b<0?"100%":b},E=m.createElement("div",{className:`${t}-inner`,style:w},m.createElement("div",{className:ze()(`${t}-bg`,`${t}-bg-${h}`),style:x},"inner"===h&&l),void 0!==S&&m.createElement("div",{className:`${t}-success-bg`,style:C})),O="outer"===h&&"start"===f,A="outer"===h&&"end"===f;return"outer"===h&&"center"===f?m.createElement("div",{className:`${t}-layout-bottom`},E,l):m.createElement("div",{className:`${t}-outer`,style:k},O&&l,E,A&&l)},rA=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),d=null!=t?t:["small"===t?2:14,i],[f,h]=WO(d,"step",{steps:r,strokeWidth:i}),p=f/r,g=Array.from({length:r});for(let e=0;e<r;e++){const t=Array.isArray(a)?a[e]:a;g[e]=m.createElement("div",{key:e,className:ze()(`${l}-steps-item`,{[`${l}-steps-item-active`]:e<=u-1}),style:{backgroundColor:e<=u-1?t:s,width:p,height:h}})}return m.createElement("div",{className:`${l}-steps-outer`},g,c)};const nA=["normal","exception","active","success"],oA=m.forwardRef(((e,t)=>{const{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:h,percentPosition:p={}}=e,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=p,y=Array.isArray(a)?a[0]:a,w="string"==typeof a||Array.isArray(a)?a:void 0,x=m.useMemo((()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new Ge(e).isLight()}return!1}),[a]),S=m.useMemo((()=>{var t,r;const n=VO(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=s?s:0)||void 0===r?void 0:r.toString(),10)}),[s,e.success,e.successPercent]),C=m.useMemo((()=>!nA.includes(d)&&S>=100?"success":d||"normal"),[d,S]),{getPrefixCls:k,direction:E,progress:O}=m.useContext(Xo),A=k("progress",r),[T,j,P]=JO(A),M="line"===u,R=M&&!i,_=m.useMemo((()=>{if(!c)return null;const t=VO(e);let r;const n=M&&x&&"inner"===b;return"inner"===b||f||"exception"!==C&&"success"!==C?r=(f||(e=>`${e}%`))(UO(s),UO(t)):"exception"===C?r=M?m.createElement(Lc,null):m.createElement(Vu,null):"success"===C&&(r=M?m.createElement(Fc,null):m.createElement($b,null)),m.createElement("span",{className:ze()(`${A}-text`,{[`${A}-text-bright`]:n,[`${A}-text-${v}`]:R,[`${A}-text-${b}`]:R}),title:"string"==typeof r?r:void 0},r)}),[c,s,S,C,u,A,f]);let I;"line"===u?I=i?m.createElement(rA,Object.assign({},e,{strokeColor:w,prefixCls:A,steps:"object"==typeof i?i.count:i}),_):m.createElement(tA,Object.assign({},e,{strokeColor:y,prefixCls:A,direction:E,percentPosition:{align:v,type:b}}),_):"circle"!==u&&"dashboard"!==u||(I=m.createElement(GO,Object.assign({},e,{strokeColor:y,prefixCls:A,progressStatus:C}),_));const N=ze()(A,`${A}-status-${C}`,{[`${A}-${"dashboard"===u?"circle":u}`]:"line"!==u,[`${A}-inline-circle`]:"circle"===u&&WO(l,"circle")[0]<=20,[`${A}-line`]:R,[`${A}-line-align-${v}`]:R,[`${A}-line-position-${b}`]:R,[`${A}-steps`]:i,[`${A}-show-info`]:c,[`${A}-${l}`]:"string"==typeof l,[`${A}-rtl`]:"rtl"===E},null==O?void 0:O.className,n,o,j,P);return T(m.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==O?void 0:O.style),h),className:N,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},kf(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),I))})),iA=oA,aA=m.forwardRef(((e,t)=>{let{prefixCls:r,className:n,style:o,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:h,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:v,previewIcon:b,removeIcon:y,downloadIcon:w,extra:x,onPreview:S,onDownload:C,onClose:k}=e;var E,O;const{status:A}=s,[T,j]=m.useState(A);m.useEffect((()=>{"removed"!==A&&j(A)}),[A]);const[P,M]=m.useState(!1);m.useEffect((()=>{const e=setTimeout((()=>{M(!0)}),300);return()=>{clearTimeout(e)}}),[]);const R=u(s);let _=m.createElement("div",{className:`${r}-icon`},R);if("picture"===a||"picture-card"===a||"picture-circle"===a)if("uploading"===T||!s.thumbUrl&&!s.url){const e=ze()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:"uploading"!==T});_=m.createElement("div",{className:e},R)}else{const e=(null==h?void 0:h(s))?m.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):R,t=ze()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:h&&!h(s)});_=m.createElement("a",{className:t,onClick:e=>S(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const I=ze()(`${r}-list-item`,`${r}-list-item-${T}`),N="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,F=("function"==typeof g?g(s):g)?d(("function"==typeof y?y(s):y)||m.createElement(kO,null),(()=>k(s)),r,i.removeFile,!0):null,D=("function"==typeof v?v(s):v)&&"done"===T?d(("function"==typeof w?w(s):w)||m.createElement(AO,null),(()=>C(s)),r,i.downloadFile):null,B="picture-card"!==a&&"picture-circle"!==a&&m.createElement("span",{key:"download-delete",className:ze()(`${r}-list-item-actions`,{picture:"picture"===a})},D,F),L="function"==typeof x?x(s):x,z=L&&m.createElement("span",{className:`${r}-list-item-extra`},L),H=ze()(`${r}-list-item-name`),U=s.url?m.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},N,{href:s.url,onClick:e=>S(s,e)}),s.name,z):m.createElement("span",{key:"view",className:H,onClick:e=>S(s,e),title:s.name},s.name,z),V=("function"==typeof p?p(s):p)&&(s.url||s.thumbUrl)?m.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(s,e),title:i.previewFile},"function"==typeof b?b(s):b||m.createElement(PO,null)):null,W=("picture-card"===a||"picture-circle"===a)&&"uploading"!==T&&m.createElement("span",{className:`${r}-list-item-actions`},V,"done"===T&&D,F),{getPrefixCls:G}=m.useContext(Xo),q=G(),K=m.createElement("div",{className:I},_,U,B,W,P&&m.createElement(Vl,{motionName:`${q}-fade`,visible:"uploading"===T,motionDeadline:2e3},(e=>{let{className:t}=e;const n="percent"in s?m.createElement(iA,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return m.createElement("div",{className:ze()(`${r}-list-item-progress`,t)},n)}))),X=s.response&&"string"==typeof s.response?s.response:(null===(E=s.error)||void 0===E?void 0:E.statusText)||(null===(O=s.error)||void 0===O?void 0:O.message)||i.uploadError,Y="error"===T?m.createElement(im,{title:X,getPopupContainer:e=>e.parentNode},K):K;return m.createElement("div",{className:ze()(`${r}-list-item-container`,n),style:o,ref:t},f?f(Y,s,l,{download:C.bind(null,s),preview:S.bind(null,s),remove:k.bind(null,s)}):Y)})),sA=aA,lA=(e,t)=>{const{listType:r="text",previewFile:n=xO,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=yO,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:h=!0,showDownloadIcon:p=!1,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,progress:w={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:S=!0,itemRender:C,disabled:k}=e,E=pO(),[O,A]=m.useState(!1),T=["picture-card","picture-circle"].includes(r);m.useEffect((()=>{r.startsWith("picture")&&(d||[]).forEach((e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==n||n(e.originFileObj).then((t=>{e.thumbUrl=t||"",E()})))}))}),[r,d,n]),m.useEffect((()=>{A(!0)}),[]);const j=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},P=e=>{"function"==typeof i?i(e):e.url&&window.open(e.url)},M=e=>{null==a||a(e)},R=e=>{if(l)return l(e,r);const t="uploading"===e.status;if(r.startsWith("picture")){const n="picture"===r?m.createElement(Xc,null):s.uploading,o=(null==c?void 0:c(e))?m.createElement(hO,null):m.createElement(sO,null);return t?n:o}return t?m.createElement(Xc,null):m.createElement(uO,null)},_=(e,t,r,n,o)=>{const i={type:"text",size:"small",title:n,onClick:r=>{var n,o;t(),m.isValidElement(e)&&(null===(o=(n=e.props).onClick)||void 0===o||o.call(n,r))},className:`${r}-list-item-action`,disabled:!!o&&k};return m.isValidElement(e)?m.createElement(AC,Object.assign({},i,{icon:th(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):m.createElement(AC,Object.assign({},i),m.createElement("span",null,e))};m.useImperativeHandle(t,(()=>({handlePreview:j,handleDownload:P})));const{getPrefixCls:I}=m.useContext(Xo),N=I("upload",u),F=I(),D=ze()(`${N}-list`,`${N}-list-${r}`),B=m.useMemo((()=>kf(Jf(F),["onAppearEnd","onEnterEnd","onLeaveEnd"])),[F]),L=Object.assign(Object.assign({},T?{}:B),{motionDeadline:2e3,motionName:`${N}-${T?"animate-inline":"animate"}`,keys:Vo(d.map((e=>({key:e.uid,file:e})))),motionAppear:O});return m.createElement("div",{className:D},m.createElement(Ul,Object.assign({},L,{component:!1}),(e=>{let{key:t,file:n,className:o,style:i}=e;return m.createElement(sA,{key:t,locale:s,prefixCls:N,className:o,style:i,file:n,items:d,progress:w,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:p,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,iconRender:R,actionIconRender:_,itemRender:C,onPreview:j,onDownload:P,onClose:M})})),x&&m.createElement(Vl,Object.assign({},L,{visible:S,forceRender:!0}),(e=>{let{className:t,style:r}=e;return th(x,(e=>({className:ze()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)})))})))},cA=m.forwardRef(lA);const uA=`__LIST_IGNORE_${Date.now()}__`,dA=(e,t)=>{const{fileList:r,defaultFileList:n,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:h,iconRender:p,isImageUrl:g,progress:v,prefixCls:b,className:y,type:w="select",children:x,style:S,itemRender:C,maxCount:k,data:E={},multiple:O=!1,hasControlInside:A=!0,action:T="",accept:j="",supportServerRender:P=!0,rootClassName:M}=e,R=m.useContext(Ss),_=null!=f?f:R,[I,N]=Ks(n||[],{value:r,postState:e=>null!=e?e:[]}),[F,D]=m.useState("drop"),B=m.useRef(null),L=m.useRef(null);m.useMemo((()=>{const e=Date.now();(r||[]).forEach(((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)}))}),[r]);const z=(e,t,r)=>{let n=Vo(t),o=!1;1===k?n=n.slice(-1):k&&(o=n.length>k,n=n.slice(0,k)),(0,js.flushSync)((()=>{N(n)}));const i={file:e,fileList:n};r&&(i.event=r),o&&"removed"!==e.status&&!n.some((t=>t.uid===e.uid))||(0,js.flushSync)((()=>{null==c||c(i)}))},H=e=>{const t=e.filter((e=>!e.file[uA]));if(!t.length)return;const r=t.map((e=>mO(e.file)));let n=Vo(I);r.forEach((e=>{n=gO(e,n)})),r.forEach(((e,r)=>{let o=e;if(t[r].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let r;try{r=new File([t],t.name,{type:t.type})}catch(e){r=new Blob([t],{type:t.type}),r.name=t.name,r.lastModifiedDate=new Date,r.lastModified=(new Date).getTime()}r.uid=e.uid,o=r}z(o,n)}))},U=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!vO(t,I))return;const n=mO(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;const o=gO(n,I);z(n,o)},V=(e,t)=>{if(!vO(t,I))return;const r=mO(t);r.status="uploading",r.percent=e.percent;const n=gO(r,I);z(r,n,e)},W=(e,t,r)=>{if(!vO(r,I))return;const n=mO(r);n.error=e,n.response=t,n.status="error";const o=gO(n,I);z(n,o)},G=e=>{let t;Promise.resolve("function"==typeof o?o(e):o).then((r=>{var n;if(!1===r)return;const o=function(e,t){const r=void 0!==e.uid?"uid":"name",n=t.filter((t=>t[r]!==e[r]));return n.length===t.length?null:n}(e,I);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==I||I.forEach((e=>{const r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")})),null===(n=B.current)||void 0===n||n.abort(t),z(t,o))}))},q=e=>{D(e.type),"drop"===e.type&&(null==u||u(e))};m.useImperativeHandle(t,(()=>({onBatchStart:H,onSuccess:U,onProgress:V,onError:W,fileList:I,upload:B.current,nativeElement:L.current})));const{getPrefixCls:K,direction:X,upload:Y}=m.useContext(Xo),$=K("upload",b),Z=Object.assign(Object.assign({onBatchStart:H,onError:W,onProgress:V,onSuccess:U},e),{data:E,multiple:O,action:T,accept:j,supportServerRender:P,prefixCls:$,disabled:_,beforeUpload:(t,r)=>{return n=void 0,o=void 0,a=function*(){const{beforeUpload:n,transformFile:o}=e;let i=t;if(n){const e=yield n(t,r);if(!1===e)return!1;if(delete t[uA],e===uA)return Object.defineProperty(t,uA,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i},new((i=void 0)||(i=Promise))((function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,s)}l((a=a.apply(n,o||[])).next())}));var n,o,i,a},onChange:void 0,hasControlInside:A});delete Z.className,delete Z.style,x&&!_||delete Z.id;const Q=`${$}-wrapper`,[J,ee,te]=oO($,Q),[re]=Gv("Upload",ts.Upload),{showRemoveIcon:ne,showPreviewIcon:oe,showDownloadIcon:ie,removeIcon:ae,previewIcon:se,downloadIcon:le,extra:ce}="boolean"==typeof i?{}:i,ue=void 0===ne?!_:ne,de=(e,t)=>i?m.createElement(cA,{prefixCls:$,listType:a,items:I,previewFile:d,onPreview:s,onDownload:l,onRemove:G,showRemoveIcon:ue,showPreviewIcon:oe,showDownloadIcon:ie,removeIcon:ae,previewIcon:se,downloadIcon:le,iconRender:p,extra:ce,locale:Object.assign(Object.assign({},re),h),isImageUrl:g,progress:v,appendAction:e,appendActionVisible:t,itemRender:C,disabled:_}):e,fe=ze()(Q,y,M,ee,te,null==Y?void 0:Y.className,{[`${$}-rtl`]:"rtl"===X,[`${$}-picture-card-wrapper`]:"picture-card"===a,[`${$}-picture-circle-wrapper`]:"picture-circle"===a}),he=Object.assign(Object.assign({},null==Y?void 0:Y.style),S);if("drag"===w){const e=ze()(ee,$,`${$}-drag`,{[`${$}-drag-uploading`]:I.some((e=>"uploading"===e.status)),[`${$}-drag-hover`]:"dragover"===F,[`${$}-disabled`]:_,[`${$}-rtl`]:"rtl"===X});return J(m.createElement("span",{className:fe,ref:L},m.createElement("div",{className:e,style:he,onDrop:q,onDragOver:q,onDragLeave:q},m.createElement($E,Object.assign({},Z,{ref:B,className:`${$}-btn`}),m.createElement("div",{className:`${$}-drag-container`},x))),de()))}const pe=ze()($,`${$}-select`,{[`${$}-disabled`]:_,[`${$}-hidden`]:!x}),me=m.createElement("div",{className:pe},m.createElement($E,Object.assign({},Z,{ref:B})));return J("picture-card"===a||"picture-circle"===a?m.createElement("span",{className:fe,ref:L},de(me,!!x)):m.createElement("span",{className:fe,ref:L},me,de()))},fA=m.forwardRef(dA);const hA=m.forwardRef(((e,t)=>{var{style:r,height:n,hasControlInside:o=!1}=e,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["style","height","hasControlInside"]);return m.createElement(fA,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))})),pA=hA;var mA=function(e,t){return mA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},mA(e,t)};function gA(e,t){function r(){this.constructor=e}mA(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var vA=function(){return vA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vA.apply(this,arguments)};function bA(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function yA(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function wA(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}for(var xA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",SA=new Uint8Array(256),CA=0;CA<64;CA++)SA[xA.charCodeAt(CA)]=CA;var kA,EA=function(e){var t,r,n,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new Uint8Array(a);for(t=0;t<s;t+=4)r=SA[e.charCodeAt(t)],n=SA[e.charCodeAt(t+1)],o=SA[e.charCodeAt(t+2)],i=SA[e.charCodeAt(t+3)],c[l++]=r<<2|n>>4,c[l++]=(15&n)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return c},OA=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,AA=function(e){return e.charCodeAt(0)},TA=function(e){return e.codePointAt(0)},jA=function(e,t){return RA(e.toString(16),t,"0").toUpperCase()},PA=function(e){return jA(e,2)},MA=function(e){return String.fromCharCode(e)},RA=function(e,t,r){for(var n="",o=0,i=t-e.length;o<i;o++)n+=r;return n+e},_A=function(e,t,r){for(var n=e.length,o=0;o<n;o++)t[r++]=e.charCodeAt(o);return n},IA=function(e){return e.replace(/\t|\u0085|\u2028|\u2029/g," ").replace(/[\b\v]/g,"")},NA=["\\n","\\f","\\r","\\u000B"],FA=function(e){return/^[\n\f\r\u000B]$/.test(e)},DA=function(e){return e.split(/[\n\f\r\u000B]/)},BA=function(e){return e.replace(/[\n\f\r\u000B]/g," ")},LA=function(e,t){var r,n=e.charCodeAt(t),o=t+1,i=1;return n>=55296&&n<=56319&&e.length>o&&(r=e.charCodeAt(o))>=56320&&r<=57343&&(i=2),[e.slice(t,t+i),i]},zA=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,HA=function(e){var t=e.match(zA);if(t){var r=t[1],n=t[2],o=void 0===n?"01":n,i=t[3],a=void 0===i?"01":i,s=t[4],l=void 0===s?"00":s,c=t[5],u=void 0===c?"00":c,d=t[6],f=void 0===d?"00":d,h=t[7],p=void 0===h?"Z":h,m=t[8],g=void 0===m?"00":m,v=t[9];return new Date(r+"-"+o+"-"+a+"T"+l+":"+u+":"+f+("Z"===p?"Z":""+p+g+":"+(void 0===v?"00":v)))}},UA=function(e,t){for(var r,n,o=0;o<e.length;){var i=e.substring(o).match(t);if(!i)return{match:n,pos:o};n=i,o+=(null!==(r=i.index)&&void 0!==r?r:0)+i[0].length}return{match:n,pos:o}},VA=function(e){return e[e.length-1]},WA=function(e){if(e instanceof Uint8Array)return e;for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r},GA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.length,n=[],o=0;o<r;o++){var i=e[o];n[o]=i instanceof Uint8Array?i:WA(i)}var a=0;for(o=0;o<r;o++)a+=e[o].length;for(var s=new Uint8Array(a),l=0,c=0;c<r;c++)for(var u=n[c],d=0,f=u.length;d<f;d++)s[l++]=u[d];return s},qA=function(e){for(var t="",r=0,n=e.length;r<n;r++)t+=MA(e[r]);return t},KA=function(e,t){return e.id-t.id},XA=function(e){for(var t=e.length,r=0,n=Math.floor(t/2);r<n;r++){var o=r,i=t-r-1,a=e[r];e[o]=e[i],e[i]=a}return e},YA=function(e){if("string"==typeof e)return function(e){var t=e.trim(),r=t.substring(0,100).match(OA);if(!r)return EA(t);var n=r[0],o=t.substring(n.length);return EA(o)}(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},$A=function(){return new Promise((function(e){setTimeout((function(){return e()}),0)}))},ZA=function(e){return Math.floor((e-65536)/1024)+55296},QA=function(e){return(e-65536)%1024+56320};!function(e){e.BigEndian="BigEndian",e.LittleEndian="LittleEndian"}(kA||(kA={}));for(var JA="<22>".codePointAt(0),eT=function(e,t){if(void 0===t&&(t=!0),e.length<=1)return String.fromCodePoint(JA);for(var r=t?oT(e):kA.BigEndian,n=t?2:0,o=[];e.length-n>=2;){var i=nT(e[n++],e[n++],r);if(tT(i))if(e.length-n<2)o.push(JA);else{var a=nT(e[n++],e[n++],r);rT(a)?o.push(i,a):o.push(JA)}else rT(i)?(n+=2,o.push(JA)):o.push(i)}return n<e.length&&o.push(JA),String.fromCodePoint.apply(String,o)},tT=function(e){return e>=55296&&e<=56319},rT=function(e){return e>=56320&&e<=57343},nT=function(e,t,r){if(r===kA.LittleEndian)return t<<8|e;if(r===kA.BigEndian)return e<<8|t;throw new Error("Invalid byteOrder: "+r)},oT=function(e){return iT(e)?kA.BigEndian:aT(e)?kA.LittleEndian:kA.BigEndian},iT=function(e){return 254===e[0]&&255===e[1]},aT=function(e){return 255===e[0]&&254===e[1]},sT=function(e){return iT(e)||aT(e)},lT=function(e){return Math.ceil(e.toString(2).length/8)},cT=function(e){for(var t=new Uint8Array(lT(e)),r=1;r<=t.length;r++)t[r-1]=e>>8*(t.length-r);return t},uT=function(e){throw new Error(e)},dT=o(1668),fT=o.n(dT),hT=new Uint8Array(256),pT=0;pT<64;pT++)hT["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(pT)]=pT;var mT,gT=function(e){return function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}(fT().inflate(function(e){var t,r,n,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new Uint8Array(a);for(t=0;t<s;t+=4)r=hT[e.charCodeAt(t)],n=hT[e.charCodeAt(t+1)],o=hT[e.charCodeAt(t+2)],i=hT[e.charCodeAt(t+3)],c[l++]=r<<2|n>>4,c[l++]=(15&n)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return c}(e)))},vT={Courier:"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHh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NjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w=="};!function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"}(mT||(mT={}));for(var bT={},yT=function(){function e(){var e=this;this.getWidthOfGlyph=function(t){return e.CharWidths[t]},this.getXAxisKerningForPair=function(t,r){return(e.KernPairXAmounts[t]||{})[r]}}return e.load=function(t){var r=bT[t];if(r)return r;var n=gT(vT[t]),o=Object.assign(new e,JSON.parse(n));return o.CharWidths=o.CharMetrics.reduce((function(e,t){return e[t.N]=t.WX,e}),{}),o.KernPairXAmounts=o.KernPairs.reduce((function(e,t){var r=t[0],n=t[1],o=t[2];return e[r]||(e[r]={}),e[r][n]=o,e}),{}),bT[t]=o,o},e}(),wT=gT("eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlWzxf/aj/UtfWgm258t1GG1X1BVawfdnX0xdoRbjPCdBVGs1svo3R/tPVD1r2YL3k0kUfC04f9ldLkmk0NVwv+pO232SKXa126/vHAO5wPxNGivsRsZ/HDhWzLVg/iBuOSfMUTGrTX+b/qSIG0H8u+NEl1J4jcD7/XBI9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V2/F6t1lDpTlkz6iMTpspj/JI53H83+jZNmt/+ybY2TZ1lRctmcUldonEDLxLEbGV5aZ9AwRnqAJmydSFu6c2dunU6/8yDIL5Og0+8W67VOp98xsL6kr1H8FglO/W45Uq1z6ncPXto6rX432zlpnVW/e6bAGfXPV0aOmXPqZwcbM+fUzw42Zs6pnx/BxsyJ9fMaV8ycW79fre3c+v1qbefW79+u7QT7/ePazrGf+UE7Zk6wf+Mmi8EJ9ocFQnCC/WGBEJxgf3gDgddNNIp/WC3Mb12i24cHXIEfkcs3FzGDM/UPnnJjcKb+cQXOmfrHFThn6h/fgItO1z8+4IjO2P+0LBOdsX9znHgBKUYn7Id+Pkklvh3TCgtpX9DFhbSvll1I+1t0C3NfTBcX5v4IeSHv5sYxX7g7H86dt+/Wbpw7c+8XsLkz934Bmztz79+AzZ2+9w+4cmfww2ptZ/DDam1n8MPbtZ3GDw9rs9ui3KZPblw4tz8vJiuc208LhMK5/bRAKJzbT28gFE7wp9XCTvCnR1zO8ZeLw7Fwjj8tTlw4x78v0Ern+PcFWukc//4GWulE//6AonSu/7paxrn+zZ2YnRclRK/rBXJsCAjxh2cKEAWVJ02ku/wOoFv2+12XkmnODwHgW4uQGVbZ0uM7mAJ1b/68/JlpUMnWdy5MF6/Vd5eL19YYSPd6FqPwBkNQo/h2NQxdQQ3bn/dpCxrGrqCW7U8rKZl/mfi0Xytk3Am66ZhYbg4y+KAVslDwbXdNL2d5qU5hnYBlTZaa6hs2t1qWdaeeTptcLco+hl5R7w4H5uOGcQbtEkpT18GusOI2xT9dYcVJf7zCSjmbD+Iud2s1NPRb9E+0UICmizb8ZK/+5JOLOulSqwaw5VJr2vB8dSFn89fvv/8H0oq1dA=="),xT=JSON.parse(wT),ST=function(e,t){var r=this;this.canEncodeUnicodeCodePoint=function(e){return e in r.unicodeMappings},this.encodeUnicodeCodePoint=function(e){var t=r.unicodeMappings[e];if(!t){var n=String.fromCharCode(e),o="0x"+function(e){for(var t="",r=0,n=4-e.length;r<n;r++)t+="0";return t+e}(e.toString(16)),i=r.name+' cannot encode "'+n+'" ('+o+")";throw new Error(i)}return{code:t[0],name:t[1]}},this.name=e,this.supportedCodePoints=Object.keys(t).map(Number).sort((function(e,t){return e-t})),this.unicodeMappings=t},CT={Symbol:new ST("Symbol",xT.symbol),ZapfDingbats:new ST("ZapfDingbats",xT.zapfdingbats),WinAnsi:new ST("WinAnsi",xT.win1252)},kT=function(e){return Object.keys(e).map((function(t){return e[t]}))},ET=kT(mT),OT=function(e){return ET.includes(e)},AT=function(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},TT=function(e){return"`"+e+"`"},jT=function(e){var t=typeof e;return"string"===t?"'"+e+"'":"undefined"===t?TT(e):e},PT=function(e,t,r){Array.isArray(r)||(r=kT(r));for(var n=0,o=r.length;n<o;n++)if(e===r[n])return;throw new TypeError(function(e,t,r){for(var n=new Array(r.length),o=0,i=r.length;o<i;o++){var a=r[o];n[o]=jT(a)}var s=n.join(" or ");return TT(t)+" must be one of "+s+", but was actually "+jT(e)}(e,t,r))},MT=function(e,t,r){Array.isArray(r)||(r=kT(r)),PT(e,t,r.concat(void 0))},RT=function(e,t){return"null"===t?null===e:"undefined"===t?void 0===e:"string"===t?"string"==typeof e:"number"===t?"number"==typeof e&&!isNaN(e):"boolean"===t?"boolean"==typeof e:"symbol"===t?"symbol"==typeof e:"bigint"===t?"bigint"==typeof e:t===Date?e instanceof Date:t===Array?e instanceof Array:t===Uint8Array?e instanceof Uint8Array:t===ArrayBuffer?e instanceof ArrayBuffer:t===Function?e instanceof Function:e instanceof t[0]},_T=function(e,t,r){for(var n=0,o=r.length;n<o;n++)if(RT(e,r[n]))return;throw new TypeError(function(e,t,r){for(var n=new Array(r.length),o=0,i=r.length;o<i;o++){var a=r[o];"null"===a&&(n[o]=TT("null")),"undefined"===a&&(n[o]=TT("undefined")),"string"===a?n[o]=TT("string"):"number"===a?n[o]=TT("number"):"boolean"===a?n[o]=TT("boolean"):"symbol"===a?n[o]=TT("symbol"):"bigint"===a?n[o]=TT("bigint"):a===Array?n[o]=TT("Array"):a===Uint8Array?n[o]=TT("Uint8Array"):a===ArrayBuffer?n[o]=TT("ArrayBuffer"):n[o]=TT(a[1])}var s,l=n.join(" or ");return TT(t)+" must be of type "+l+", but was actually of type "+TT(null===(s=e)?"null":void 0===s?"undefined":"string"==typeof s?"string":isNaN(s)?"NaN":"number"==typeof s?"number":"boolean"==typeof s?"boolean":"symbol"==typeof s?"symbol":"bigint"==typeof s?"bigint":s.constructor&&s.constructor.name?s.constructor.name:s.name?s.name:s.constructor?String(s.constructor):String(s))}(e,t,r))},IT=function(e,t,r){_T(e,t,r.concat("undefined"))},NT=function(e,t,r){for(var n=0,o=e.length;n<o;n++)_T(e[n],t,r)},FT=function(e,t,r,n){if(_T(e,t,["number"]),_T(r,"min",["number"]),_T(n,"max",["number"]),n=Math.max(r,n),e<r||e>n)throw new Error(TT(t)+" must be at least "+r+" and at most "+n+", but was actually "+e)},DT=function(e,t,r,n){_T(e,t,["number","undefined"]),"number"==typeof e&&FT(e,t,r,n)},BT=function(e,t,r){if(_T(e,t,["number"]),e%r!==0)throw new Error(TT(t)+" must be a multiple of "+r+", but was actually "+e)},LT=function(e,t){if(![1,0].includes(Math.sign(e)))throw new Error(TT(t)+" must be a positive number or 0, but was actually "+e)},zT=new Uint16Array(256),HT=0;HT<256;HT++)zT[HT]=HT;zT[22]=AA(""),zT[24]=AA("˘"),zT[25]=AA("ˇ"),zT[26]=AA("ˆ"),zT[27]=AA("˙"),zT[28]=AA("˝"),zT[29]=AA("˛"),zT[30]=AA("˚"),zT[31]=AA("˜"),zT[127]=AA("<22>"),zT[128]=AA("•"),zT[129]=AA("†"),zT[130]=AA("‡"),zT[131]=AA("…"),zT[132]=AA("—"),zT[133]=AA("–"),zT[134]=AA("ƒ"),zT[135]=AA("⁄"),zT[136]=AA("‹"),zT[137]=AA("›"),zT[138]=AA("−"),zT[139]=AA("‰"),zT[140]=AA("„"),zT[141]=AA("“"),zT[142]=AA("”"),zT[143]=AA("‘"),zT[144]=AA("’"),zT[145]=AA("‚"),zT[146]=AA("™"),zT[147]=AA("fi"),zT[148]=AA("fl"),zT[149]=AA("Ł"),zT[150]=AA("Œ"),zT[151]=AA("Š"),zT[152]=AA("Ÿ"),zT[153]=AA("Ž"),zT[154]=AA("ı"),zT[155]=AA("ł"),zT[156]=AA("œ"),zT[157]=AA("š"),zT[158]=AA("ž"),zT[159]=AA("<22>"),zT[160]=AA("€"),zT[173]=AA("<22>");var UT=function(e){for(var t=new Array(e.length),r=0,n=e.length;r<n;r++)t[r]=zT[e[r]];return String.fromCodePoint.apply(String,t)},VT=function(){function e(e){this.populate=e,this.value=void 0}return e.prototype.getValue=function(){return this.value},e.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},e.prototype.invalidate=function(){this.value=void 0},e.populatedBy=function(t){return new e(t)},e}();const WT=VT;var GT,qT,KT=function(e){function t(t,r){var n="Method "+t+"."+r+"() not implemented";return e.call(this,n)||this}return gA(t,e),t}(Error),XT=function(e){function t(t){var r="Cannot construct "+t+" - it has a private constructor";return e.call(this,r)||this}return gA(t,e),t}(Error),YT=function(e){function t(t,r){var n=function(e){var t,r;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:null===(r=null==e?void 0:e.constructor)||void 0===r?void 0:r.name},o="Expected instance of "+(Array.isArray(t)?t.map(n):[n(t)]).join(" or ")+", but got instance of "+(r?n(r):r);return e.call(this,o)||this}return gA(t,e),t}(Error),$T=function(e){function t(t){var r=t+" stream encoding not supported";return e.call(this,r)||this}return gA(t,e),t}(Error),ZT=function(e){function t(t,r){var n="Cannot call "+t+"."+r+"() more than once";return e.call(this,n)||this}return gA(t,e),t}(Error),QT=(gA((function(e){var t="Missing catalog (ref="+e+")";return qT.call(this,t)||this}),qT=Error),function(e){function t(){return e.call(this,"Can't embed page with missing Contents")||this}return gA(t,e),t}(Error)),JT=function(e){function t(t){var r,n,o,i="Unrecognized stream type: "+(null!==(o=null!==(n=null===(r=null==t?void 0:t.contructor)||void 0===r?void 0:r.name)&&void 0!==n?n:null==t?void 0:t.name)&&void 0!==o?o:t);return e.call(this,i)||this}return gA(t,e),t}(Error),ej=function(e){function t(){return e.call(this,"Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.")||this}return gA(t,e),t}(Error),tj=function(e){function t(t){var r="Attempted to convert PDFArray with "+t+" elements to rectangle, but must have exactly 4 elements.";return e.call(this,r)||this}return gA(t,e),t}(Error),rj=function(e){function t(t){var r='Attempted to convert "'+t+'" to a date, but it does not match the PDF date string format.';return e.call(this,r)||this}return gA(t,e),t}(Error),nj=function(e){function t(t,r){var n="Invalid targetIndex specified: targetIndex="+t+" must be less than Count="+r;return e.call(this,n)||this}return gA(t,e),t}(Error),oj=function(e){function t(t,r){var n="Failed to "+r+" at targetIndex="+t+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return e.call(this,n)||this}return gA(t,e),t}(Error),ij=function(e){function t(t,r,n){var o="index should be at least "+r+" and at most "+n+", but was actually "+t;return e.call(this,o)||this}return gA(t,e),t}(Error),aj=function(e){function t(){return e.call(this,"Attempted to set invalid field value")||this}return gA(t,e),t}(Error),sj=function(e){function t(){return e.call(this,"Attempted to select multiple values for single-select field")||this}return gA(t,e),t}(Error),lj=function(e){function t(t){var r="No /DA (default appearance) entry found for field: "+t;return e.call(this,r)||this}return gA(t,e),t}(Error),cj=function(e){function t(t){var r="No Tf operator found for DA of field: "+t;return e.call(this,r)||this}return gA(t,e),t}(Error),uj=function(e){function t(t,r){var n="Failed to parse number (line:"+t.line+" col:"+t.column+" offset="+t.offset+'): "'+r+'"';return e.call(this,n)||this}return gA(t,e),t}(Error),dj=function(e){function t(t,r){var n="Failed to parse PDF document (line:"+t.line+" col:"+t.column+" offset="+t.offset+"): "+r;return e.call(this,n)||this}return gA(t,e),t}(Error),fj=function(e){function t(t,r,n){var o="Expected next byte to be "+r+" but it was actually "+n;return e.call(this,t,o)||this}return gA(t,e),t}(dj),hj=function(e){function t(t,r){var n="Failed to parse PDF object starting with the following byte: "+r;return e.call(this,t,n)||this}return gA(t,e),t}(dj),pj=function(e){function t(t){return e.call(this,t,"Failed to parse invalid PDF object")||this}return gA(t,e),t}(dj),mj=function(e){function t(t){return e.call(this,t,"Failed to parse PDF stream")||this}return gA(t,e),t}(dj),gj=function(e){function t(t){return e.call(this,t,"Failed to parse PDF literal string due to unbalanced parenthesis")||this}return gA(t,e),t}(dj),vj=function(e){function t(t){return e.call(this,t,"Parser stalled")||this}return gA(t,e),t}(dj),bj=function(e){function t(t){return e.call(this,t,"No PDF header found")||this}return gA(t,e),t}(dj),yj=function(e){function t(t,r){var n="Did not find expected keyword '"+qA(r)+"'";return e.call(this,t,n)||this}return gA(t,e),t}(dj);!function(e){e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Newline=10]="Newline",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationPoint=33]="ExclamationPoint",e[e.Hash=35]="Hash",e[e.Percent=37]="Percent",e[e.LeftParen=40]="LeftParen",e[e.RightParen=41]="RightParen",e[e.Plus=43]="Plus",e[e.Minus=45]="Minus",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.ForwardSlash=47]="ForwardSlash",e[e.Zero=48]="Zero",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.Six=54]="Six",e[e.Seven=55]="Seven",e[e.Eight=56]="Eight",e[e.Nine=57]="Nine",e[e.LessThan=60]="LessThan",e[e.GreaterThan=62]="GreaterThan",e[e.A=65]="A",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.BackSlash=92]="BackSlash",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.a=97]="a",e[e.b=98]="b",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.i=105]="i",e[e.j=106]="j",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.x=120]="x",e[e.LeftCurly=123]="LeftCurly",e[e.RightCurly=125]="RightCurly",e[e.Tilde=126]="Tilde"}(GT||(GT={}));const wj=GT;const xj=function(){function e(e,t){this.major=String(e),this.minor=String(t)}return e.prototype.toString=function(){var e=MA(129);return"%PDF-"+this.major+"."+this.minor+"\n%"+e+e+e+e},e.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},e.prototype.copyBytesInto=function(e,t){var r=t;return e[t++]=wj.Percent,e[t++]=wj.P,e[t++]=wj.D,e[t++]=wj.F,e[t++]=wj.Dash,t+=_A(this.major,e,t),e[t++]=wj.Period,t+=_A(this.minor,e,t),e[t++]=wj.Newline,e[t++]=wj.Percent,e[t++]=129,e[t++]=129,e[t++]=129,e[t++]=129,t-r},e.forVersion=function(t,r){return new e(t,r)},e}(),Sj=function(){function e(){}return e.prototype.clone=function(e){throw new KT(this.constructor.name,"clone")},e.prototype.toString=function(){throw new KT(this.constructor.name,"toString")},e.prototype.sizeInBytes=function(){throw new KT(this.constructor.name,"sizeInBytes")},e.prototype.copyBytesInto=function(e,t){throw new KT(this.constructor.name,"copyBytesInto")},e}();var Cj=function(e){function t(t){var r=e.call(this)||this;return r.numberValue=t,r.stringValue=function(e){var t,r=String(e);if(Math.abs(e)<1){if(t=parseInt(e.toString().split("e-")[1])){var n=e<0;n&&(e*=-1),e*=Math.pow(10,t-1),r="0."+new Array(t).join("0")+e.toString().substring(2),n&&(r="-"+r)}}else(t=parseInt(e.toString().split("+")[1]))>20&&(t-=20,r=(e/=Math.pow(10,t)).toString()+new Array(t+1).join("0"));return r}(t),r}return gA(t,e),t.prototype.asNumber=function(){return this.numberValue},t.prototype.value=function(){return this.numberValue},t.prototype.clone=function(){return t.of(this.numberValue)},t.prototype.toString=function(){return this.stringValue},t.prototype.sizeInBytes=function(){return this.stringValue.length},t.prototype.copyBytesInto=function(e,t){return t+=_A(this.stringValue,e,t),this.stringValue.length},t.of=function(e){return new t(e)},t}(Sj);const kj=Cj;var Ej=function(e){function t(t){var r=e.call(this)||this;return r.array=[],r.context=t,r}return gA(t,e),t.prototype.size=function(){return this.array.length},t.prototype.push=function(e){this.array.push(e)},t.prototype.insert=function(e,t){this.array.splice(e,0,t)},t.prototype.indexOf=function(e){var t=this.array.indexOf(e);return-1===t?void 0:t},t.prototype.remove=function(e){this.array.splice(e,1)},t.prototype.set=function(e,t){this.array[e]=t},t.prototype.get=function(e){return this.array[e]},t.prototype.lookupMaybe=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=this.context).lookupMaybe.apply(t,wA([this.get(e)],r))},t.prototype.lookup=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=this.context).lookup.apply(t,wA([this.get(e)],r))},t.prototype.asRectangle=function(){if(4!==this.size())throw new tj(this.size());var e=this.lookup(0,kj).asNumber(),t=this.lookup(1,kj).asNumber();return{x:e,y:t,width:this.lookup(2,kj).asNumber()-e,height:this.lookup(3,kj).asNumber()-t}},t.prototype.asArray=function(){return this.array.slice()},t.prototype.clone=function(e){for(var r=t.withContext(e||this.context),n=0,o=this.size();n<o;n++)r.push(this.array[n]);return r},t.prototype.toString=function(){for(var e="[ ",t=0,r=this.size();t<r;t++)e+=this.get(t).toString(),e+=" ";return e+"]"},t.prototype.sizeInBytes=function(){for(var e=3,t=0,r=this.size();t<r;t++)e+=this.get(t).sizeInBytes()+1;return e},t.prototype.copyBytesInto=function(e,t){var r=t;e[t++]=wj.LeftSquareBracket,e[t++]=wj.Space;for(var n=0,o=this.size();n<o;n++)t+=this.get(n).copyBytesInto(e,t),e[t++]=wj.Space;return e[t++]=wj.RightSquareBracket,t-r},t.prototype.scalePDFNumbers=function(e,t){for(var r=0,n=this.size();r<n;r++){var o=this.lookup(r);if(o instanceof kj){var i=r%2==0?e:t;this.set(r,kj.of(o.asNumber()*i))}}},t.withContext=function(e){return new t(e)},t}(Sj);const Oj=Ej;var Aj={},Tj=function(e){function t(t,r){var n=this;if(t!==Aj)throw new XT("PDFBool");return(n=e.call(this)||this).value=r,n}return gA(t,e),t.prototype.asBoolean=function(){return this.value},t.prototype.clone=function(){return this},t.prototype.toString=function(){return String(this.value)},t.prototype.sizeInBytes=function(){return this.value?4:5},t.prototype.copyBytesInto=function(e,t){return this.value?(e[t++]=wj.t,e[t++]=wj.r,e[t++]=wj.u,e[t++]=wj.e,4):(e[t++]=wj.f,e[t++]=wj.a,e[t++]=wj.l,e[t++]=wj.s,e[t++]=wj.e,5)},t.True=new t(Aj,!0),t.False=new t(Aj,!1),t}(Sj);const jj=Tj;var Pj=new Uint8Array(256);Pj[wj.LeftParen]=1,Pj[wj.RightParen]=1,Pj[wj.LessThan]=1,Pj[wj.GreaterThan]=1,Pj[wj.LeftSquareBracket]=1,Pj[wj.RightSquareBracket]=1,Pj[wj.LeftCurly]=1,Pj[wj.RightCurly]=1,Pj[wj.ForwardSlash]=1,Pj[wj.Percent]=1;var Mj=new Uint8Array(256);Mj[wj.Null]=1,Mj[wj.Tab]=1,Mj[wj.Newline]=1,Mj[wj.FormFeed]=1,Mj[wj.CarriageReturn]=1,Mj[wj.Space]=1;for(var Rj=new Uint8Array(256),_j=0;_j<256;_j++)Rj[_j]=Mj[_j]||Pj[_j]?1:0;Rj[wj.Hash]=1;var Ij={},Nj=new Map,Fj=function(e){function t(t,r){var n=this;if(t!==Ij)throw new XT("PDFName");n=e.call(this)||this;for(var o,i="/",a=0,s=r.length;a<s;a++){var l=r[a],c=AA(l);i+=(o=c)>=wj.ExclamationPoint&&o<=wj.Tilde&&!Rj[o]?l:"#"+PA(c)}return n.encodedName=i,n}return gA(t,e),t.prototype.asBytes=function(){for(var e=[],t="",r=!1,n=function(t){void 0!==t&&e.push(t),r=!1},o=1,i=this.encodedName.length;o<i;o++){var a=this.encodedName[o],s=AA(a),l=this.encodedName[o+1];r?s>=wj.Zero&&s<=wj.Nine||s>=wj.a&&s<=wj.f||s>=wj.A&&s<=wj.F?2!==(t+=a).length&&(l>="0"&&l<="9"||l>="a"&&l<="f"||l>="A"&&l<="F")||(n(parseInt(t,16)),t=""):n(s):s===wj.Hash?r=!0:n(s)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return String.fromCharCode.apply(String,Array.from(e))},t.prototype.asString=function(){return this.encodedName},t.prototype.value=function(){return this.encodedName},t.prototype.clone=function(){return this},t.prototype.toString=function(){return this.encodedName},t.prototype.sizeInBytes=function(){return this.encodedName.length},t.prototype.copyBytesInto=function(e,t){return t+=_A(this.encodedName,e,t),this.encodedName.length},t.of=function(e){var r=function(e){return e.replace(/#([\dABCDEF]{2})/g,(function(e,t){return function(e){return MA(parseInt(e,16))}(t)}))}(e),n=Nj.get(r);return n||(n=new t(Ij,r),Nj.set(r,n)),n},t.Length=t.of("Length"),t.FlateDecode=t.of("FlateDecode"),t.Resources=t.of("Resources"),t.Font=t.of("Font"),t.XObject=t.of("XObject"),t.ExtGState=t.of("ExtGState"),t.Contents=t.of("Contents"),t.Type=t.of("Type"),t.Parent=t.of("Parent"),t.MediaBox=t.of("MediaBox"),t.Page=t.of("Page"),t.Annots=t.of("Annots"),t.TrimBox=t.of("TrimBox"),t.ArtBox=t.of("ArtBox"),t.BleedBox=t.of("BleedBox"),t.CropBox=t.of("CropBox"),t.Rotate=t.of("Rotate"),t.Title=t.of("Title"),t.Author=t.of("Author"),t.Subject=t.of("Subject"),t.Creator=t.of("Creator"),t.Keywords=t.of("Keywords"),t.Producer=t.of("Producer"),t.CreationDate=t.of("CreationDate"),t.ModDate=t.of("ModDate"),t}(Sj);const Dj=Fj;var Bj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.asNull=function(){return null},t.prototype.clone=function(){return this},t.prototype.toString=function(){return"null"},t.prototype.sizeInBytes=function(){return 4},t.prototype.copyBytesInto=function(e,t){return e[t++]=wj.n,e[t++]=wj.u,e[t++]=wj.l,e[t++]=wj.l,4},t}(Sj);const Lj=new Bj;var zj=function(e){function t(t,r){var n=e.call(this)||this;return n.dict=t,n.context=r,n}return gA(t,e),t.prototype.keys=function(){return Array.from(this.dict.keys())},t.prototype.values=function(){return Array.from(this.dict.values())},t.prototype.entries=function(){return Array.from(this.dict.entries())},t.prototype.set=function(e,t){this.dict.set(e,t)},t.prototype.get=function(e,t){void 0===t&&(t=!1);var r=this.dict.get(e);if(r!==Lj||t)return r},t.prototype.has=function(e){var t=this.dict.get(e);return void 0!==t&&t!==Lj},t.prototype.lookupMaybe=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=r.includes(Lj),i=(t=this.context).lookupMaybe.apply(t,wA([this.get(e,o)],r));if(i!==Lj||o)return i},t.prototype.lookup=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=r.includes(Lj),i=(t=this.context).lookup.apply(t,wA([this.get(e,o)],r));if(i!==Lj||o)return i},t.prototype.delete=function(e){return this.dict.delete(e)},t.prototype.asMap=function(){return new Map(this.dict)},t.prototype.uniqueKey=function(e){void 0===e&&(e="");for(var t=this.keys(),r=Dj.of(this.context.addRandomSuffix(e,10));t.includes(r);)r=Dj.of(this.context.addRandomSuffix(e,10));return r},t.prototype.clone=function(e){for(var r=t.withContext(e||this.context),n=this.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];r.set(s,l)}return r},t.prototype.toString=function(){for(var e="<<\n",t=this.entries(),r=0,n=t.length;r<n;r++){var o=t[r],i=o[0],a=o[1];e+=i.toString()+" "+a.toString()+"\n"}return e+">>"},t.prototype.sizeInBytes=function(){for(var e=5,t=this.entries(),r=0,n=t.length;r<n;r++){var o=t[r],i=o[0],a=o[1];e+=i.sizeInBytes()+a.sizeInBytes()+2}return e},t.prototype.copyBytesInto=function(e,t){var r=t;e[t++]=wj.LessThan,e[t++]=wj.LessThan,e[t++]=wj.Newline;for(var n=this.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];t+=s.copyBytesInto(e,t),e[t++]=wj.Space,t+=l.copyBytesInto(e,t),e[t++]=wj.Newline}return e[t++]=wj.GreaterThan,e[t++]=wj.GreaterThan,t-r},t.withContext=function(e){return new t(new Map,e)},t.fromMapWithContext=function(e,r){return new t(e,r)},t}(Sj);const Hj=zj;var Uj=function(e){function t(t){var r=e.call(this)||this;return r.dict=t,r}return gA(t,e),t.prototype.clone=function(e){throw new KT(this.constructor.name,"clone")},t.prototype.getContentsString=function(){throw new KT(this.constructor.name,"getContentsString")},t.prototype.getContents=function(){throw new KT(this.constructor.name,"getContents")},t.prototype.getContentsSize=function(){throw new KT(this.constructor.name,"getContentsSize")},t.prototype.updateDict=function(){var e=this.getContentsSize();this.dict.set(Dj.Length,kj.of(e))},t.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},t.prototype.toString=function(){this.updateDict();var e=this.dict.toString();return e+="\nstream\n",(e+=this.getContentsString())+"\nendstream"},t.prototype.copyBytesInto=function(e,t){this.updateDict();var r=t;t+=this.dict.copyBytesInto(e,t),e[t++]=wj.Newline,e[t++]=wj.s,e[t++]=wj.t,e[t++]=wj.r,e[t++]=wj.e,e[t++]=wj.a,e[t++]=wj.m,e[t++]=wj.Newline;for(var n=this.getContents(),o=0,i=n.length;o<i;o++)e[t++]=n[o];return e[t++]=wj.Newline,e[t++]=wj.e,e[t++]=wj.n,e[t++]=wj.d,e[t++]=wj.s,e[t++]=wj.t,e[t++]=wj.r,e[t++]=wj.e,e[t++]=wj.a,e[t++]=wj.m,t-r},t}(Sj);const Vj=Uj;var Wj=function(e){function t(t,r){var n=e.call(this,t)||this;return n.contents=r,n}return gA(t,e),t.prototype.asUint8Array=function(){return this.contents.slice()},t.prototype.clone=function(e){return t.of(this.dict.clone(e),this.contents.slice())},t.prototype.getContentsString=function(){return qA(this.contents)},t.prototype.getContents=function(){return this.contents},t.prototype.getContentsSize=function(){return this.contents.length},t.of=function(e,r){return new t(e,r)},t}(Vj);const Gj=Wj;var qj={},Kj=new Map,Xj=function(e){function t(t,r,n){var o=this;if(t!==qj)throw new XT("PDFRef");return(o=e.call(this)||this).objectNumber=r,o.generationNumber=n,o.tag=r+" "+n+" R",o}return gA(t,e),t.prototype.clone=function(){return this},t.prototype.toString=function(){return this.tag},t.prototype.sizeInBytes=function(){return this.tag.length},t.prototype.copyBytesInto=function(e,t){return t+=_A(this.tag,e,t),this.tag.length},t.of=function(e,r){void 0===r&&(r=0);var n=e+" "+r+" R",o=Kj.get(n);return o||(o=new t(qj,e,r),Kj.set(n,o)),o},t}(Sj);const Yj=Xj;var $j=function(){function e(e,t){this.name=e,this.args=t||[]}return e.prototype.clone=function(t){for(var r=new Array(this.args.length),n=0,o=r.length;n<o;n++){var i=this.args[n];r[n]=i instanceof Sj?i.clone(t):i}return e.of(this.name,r)},e.prototype.toString=function(){for(var e="",t=0,r=this.args.length;t<r;t++)e+=String(this.args[t])+" ";return e+this.name},e.prototype.sizeInBytes=function(){for(var e=0,t=0,r=this.args.length;t<r;t++){var n=this.args[t];e+=(n instanceof Sj?n.sizeInBytes():n.length)+1}return e+this.name.length},e.prototype.copyBytesInto=function(e,t){for(var r=t,n=0,o=this.args.length;n<o;n++){var i=this.args[n];t+=i instanceof Sj?i.copyBytesInto(e,t):_A(i,e,t),e[t++]=wj.Space}return(t+=_A(this.name,e,t))-r},e.of=function(t,r){return new e(t,r)},e}();const Zj=$j;var Qj;!function(e){e.NonStrokingColor="sc",e.NonStrokingColorN="scn",e.NonStrokingColorRgb="rg",e.NonStrokingColorGray="g",e.NonStrokingColorCmyk="k",e.NonStrokingColorspace="cs",e.StrokingColor="SC",e.StrokingColorN="SCN",e.StrokingColorRgb="RG",e.StrokingColorGray="G",e.StrokingColorCmyk="K",e.StrokingColorspace="CS",e.BeginMarkedContentSequence="BDC",e.BeginMarkedContent="BMC",e.EndMarkedContent="EMC",e.MarkedContentPointWithProps="DP",e.MarkedContentPoint="MP",e.DrawObject="Do",e.ConcatTransformationMatrix="cm",e.PopGraphicsState="Q",e.PushGraphicsState="q",e.SetFlatness="i",e.SetGraphicsStateParams="gs",e.SetLineCapStyle="J",e.SetLineDashPattern="d",e.SetLineJoinStyle="j",e.SetLineMiterLimit="M",e.SetLineWidth="w",e.SetTextMatrix="Tm",e.SetRenderingIntent="ri",e.AppendRectangle="re",e.BeginInlineImage="BI",e.BeginInlineImageData="ID",e.EndInlineImage="EI",e.ClipEvenOdd="W*",e.ClipNonZero="W",e.CloseAndStroke="s",e.CloseFillEvenOddAndStroke="b*",e.CloseFillNonZeroAndStroke="b",e.ClosePath="h",e.AppendBezierCurve="c",e.CurveToReplicateFinalPoint="y",e.CurveToReplicateInitialPoint="v",e.EndPath="n",e.FillEvenOddAndStroke="B*",e.FillEvenOdd="f*",e.FillNonZeroAndStroke="B",e.FillNonZero="f",e.LegacyFillNonZero="F",e.LineTo="l",e.MoveTo="m",e.ShadingFill="sh",e.StrokePath="S",e.BeginText="BT",e.EndText="ET",e.MoveText="Td",e.MoveTextSetLeading="TD",e.NextLine="T*",e.SetCharacterSpacing="Tc",e.SetFontAndSize="Tf",e.SetTextHorizontalScaling="Tz",e.SetTextLineHeight="TL",e.SetTextRenderingMode="Tr",e.SetTextRise="Ts",e.SetWordSpacing="Tw",e.ShowText="Tj",e.ShowTextAdjusted="TJ",e.ShowTextLine="'",e.ShowTextLineAndSpace='"',e.Type3D0="d0",e.Type3D1="d1",e.BeginCompatibilitySection="BX",e.EndCompatibilitySection="EX"}(Qj||(Qj={}));const Jj=Qj,eP=function(e){function t(t,r){var n=e.call(this,t)||this;return n.computeContents=function(){var e=n.getUnencodedContents();return n.encode?fT().deflate(e):e},n.encode=r,r&&t.set(Dj.of("Filter"),Dj.of("FlateDecode")),n.contentsCache=WT.populatedBy(n.computeContents),n}return gA(t,e),t.prototype.getContents=function(){return this.contentsCache.access()},t.prototype.getContentsSize=function(){return this.contentsCache.access().length},t.prototype.getUnencodedContents=function(){throw new KT(this.constructor.name,"getUnencodedContents")},t}(Vj);var tP=function(e){function t(t,r,n){void 0===n&&(n=!0);var o=e.call(this,t,n)||this;return o.operators=r,o}return gA(t,e),t.prototype.push=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this.operators).push.apply(e,t)},t.prototype.clone=function(e){for(var r=new Array(this.operators.length),n=0,o=this.operators.length;n<o;n++)r[n]=this.operators[n].clone(e);var i=this.dict,a=this.encode;return t.of(i.clone(e),r,a)},t.prototype.getContentsString=function(){for(var e="",t=0,r=this.operators.length;t<r;t++)e+=this.operators[t]+"\n";return e},t.prototype.getUnencodedContents=function(){for(var e=new Uint8Array(this.getUnencodedContentsSize()),t=0,r=0,n=this.operators.length;r<n;r++)t+=this.operators[r].copyBytesInto(e,t),e[t++]=wj.Newline;return e},t.prototype.getUnencodedContentsSize=function(){for(var e=0,t=0,r=this.operators.length;t<r;t++)e+=this.operators[t].sizeInBytes()+1;return e},t.of=function(e,r,n){return void 0===n&&(n=!0),new t(e,r,n)},t}(eP);const rP=tP;var nP=function(){function e(e){this.seed=e}return e.prototype.nextInt=function(){var e=1e4*Math.sin(this.seed++);return e-Math.floor(e)},e.withSeed=function(t){return new e(t)},e}(),oP=function(e,t){var r=e[0],n=t[0];return r.objectNumber-n.objectNumber},iP=function(){function e(){this.largestObjectNumber=0,this.header=xj.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=nP.withSeed(1)}return e.prototype.assign=function(e,t){this.indirectObjects.set(e,t),e.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=e.objectNumber)},e.prototype.nextRef=function(){return this.largestObjectNumber+=1,Yj.of(this.largestObjectNumber)},e.prototype.register=function(e){var t=this.nextRef();return this.assign(t,e),t},e.prototype.delete=function(e){return this.indirectObjects.delete(e)},e.prototype.lookupMaybe=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=t.includes(Lj),o=e instanceof Yj?this.indirectObjects.get(e):e;if(o&&(o!==Lj||n)){for(var i=0,a=t.length;i<a;i++){var s=t[i];if(s===Lj){if(o===Lj)return o}else if(o instanceof s)return o}throw new YT(t,o)}},e.prototype.lookup=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=e instanceof Yj?this.indirectObjects.get(e):e;if(0===t.length)return n;for(var o=0,i=t.length;o<i;o++){var a=t[o];if(a===Lj){if(n===Lj)return n}else if(n instanceof a)return n}throw new YT(t,n)},e.prototype.getObjectRef=function(e){for(var t=Array.from(this.indirectObjects.entries()),r=0,n=t.length;r<n;r++){var o=t[r],i=o[0];if(o[1]===e)return i}},e.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(oP)},e.prototype.obj=function(e){if(e instanceof Sj)return e;if(null==e)return Lj;if("string"==typeof e)return Dj.of(e);if("number"==typeof e)return kj.of(e);if("boolean"==typeof e)return e?jj.True:jj.False;if(Array.isArray(e)){for(var t=Oj.withContext(this),r=0,n=e.length;r<n;r++)t.push(this.obj(e[r]));return t}var o=Hj.withContext(this),i=Object.keys(e);for(r=0,n=i.length;r<n;r++){var a=i[r],s=e[a];void 0!==s&&o.set(Dj.of(a),this.obj(s))}return o},e.prototype.stream=function(e,t){return void 0===t&&(t={}),Gj.of(this.obj(t),WA(e))},e.prototype.flateStream=function(e,t){return void 0===t&&(t={}),this.stream(fT().deflate(WA(e)),vA(vA({},t),{Filter:"FlateDecode"}))},e.prototype.contentStream=function(e,t){return void 0===t&&(t={}),rP.of(this.obj(t),e)},e.prototype.formXObject=function(e,t){return void 0===t&&(t={}),this.contentStream(e,vA(vA({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},t),{Type:"XObject",Subtype:"Form"}))},e.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var e=this.obj({}),t=Zj.of(Jj.PushGraphicsState),r=rP.of(e,[t]);return this.pushGraphicsStateContentStreamRef=this.register(r),this.pushGraphicsStateContentStreamRef},e.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var e=this.obj({}),t=Zj.of(Jj.PopGraphicsState),r=rP.of(e,[t]);return this.popGraphicsStateContentStreamRef=this.register(r),this.popGraphicsStateContentStreamRef},e.prototype.addRandomSuffix=function(e,t){return void 0===t&&(t=4),e+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,t))},e.create=function(){return new e},e}();const aP=iP;var sP=function(e){function t(t,r,n){void 0===n&&(n=!0);var o=e.call(this,t,r)||this;return o.normalized=!1,o.autoNormalizeCTM=n,o}return gA(t,e),t.prototype.clone=function(e){for(var r=t.fromMapWithContext(new Map,e||this.context,this.autoNormalizeCTM),n=this.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];r.set(s,l)}return r},t.prototype.Parent=function(){return this.lookupMaybe(Dj.Parent,Hj)},t.prototype.Contents=function(){return this.lookup(Dj.of("Contents"))},t.prototype.Annots=function(){return this.lookupMaybe(Dj.Annots,Oj)},t.prototype.BleedBox=function(){return this.lookupMaybe(Dj.BleedBox,Oj)},t.prototype.TrimBox=function(){return this.lookupMaybe(Dj.TrimBox,Oj)},t.prototype.ArtBox=function(){return this.lookupMaybe(Dj.ArtBox,Oj)},t.prototype.Resources=function(){var e=this.getInheritableAttribute(Dj.Resources);return this.context.lookupMaybe(e,Hj)},t.prototype.MediaBox=function(){var e=this.getInheritableAttribute(Dj.MediaBox);return this.context.lookup(e,Oj)},t.prototype.CropBox=function(){var e=this.getInheritableAttribute(Dj.CropBox);return this.context.lookupMaybe(e,Oj)},t.prototype.Rotate=function(){var e=this.getInheritableAttribute(Dj.Rotate);return this.context.lookupMaybe(e,kj)},t.prototype.getInheritableAttribute=function(e){var t;return this.ascend((function(r){t||(t=r.get(e))})),t},t.prototype.setParent=function(e){this.set(Dj.Parent,e)},t.prototype.addContentStream=function(e){var t=this.normalizedEntries().Contents||this.context.obj([]);this.set(Dj.Contents,t),t.push(e)},t.prototype.wrapContentStreams=function(e,t){var r=this.Contents();return r instanceof Oj&&(r.insert(0,e),r.push(t),!0)},t.prototype.addAnnot=function(e){this.normalizedEntries().Annots.push(e)},t.prototype.removeAnnot=function(e){var t=this.normalizedEntries().Annots,r=t.indexOf(e);void 0!==r&&t.remove(r)},t.prototype.setFontDictionary=function(e,t){this.normalizedEntries().Font.set(e,t)},t.prototype.newFontDictionaryKey=function(e){return this.normalizedEntries().Font.uniqueKey(e)},t.prototype.newFontDictionary=function(e,t){var r=this.newFontDictionaryKey(e);return this.setFontDictionary(r,t),r},t.prototype.setXObject=function(e,t){this.normalizedEntries().XObject.set(e,t)},t.prototype.newXObjectKey=function(e){return this.normalizedEntries().XObject.uniqueKey(e)},t.prototype.newXObject=function(e,t){var r=this.newXObjectKey(e);return this.setXObject(r,t),r},t.prototype.setExtGState=function(e,t){this.normalizedEntries().ExtGState.set(e,t)},t.prototype.newExtGStateKey=function(e){return this.normalizedEntries().ExtGState.uniqueKey(e)},t.prototype.newExtGState=function(e,t){var r=this.newExtGStateKey(e);return this.setExtGState(r,t),r},t.prototype.ascend=function(e){e(this);var t=this.Parent();t&&t.ascend(e)},t.prototype.normalize=function(){if(!this.normalized){var e=this.context,t=this.get(Dj.Contents);this.context.lookup(t)instanceof Vj&&this.set(Dj.Contents,e.obj([t])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var r=this.getInheritableAttribute(Dj.Resources),n=e.lookupMaybe(r,Hj)||e.obj({});this.set(Dj.Resources,n);var o=n.lookupMaybe(Dj.Font,Hj)||e.obj({});n.set(Dj.Font,o);var i=n.lookupMaybe(Dj.XObject,Hj)||e.obj({});n.set(Dj.XObject,i);var a=n.lookupMaybe(Dj.ExtGState,Hj)||e.obj({});n.set(Dj.ExtGState,a);var s=this.Annots()||e.obj([]);this.set(Dj.Annots,s),this.normalized=!0}},t.prototype.normalizedEntries=function(){this.normalize();var e=this.Annots(),t=this.Resources();return{Annots:e,Resources:t,Contents:this.Contents(),Font:t.lookup(Dj.Font,Hj),XObject:t.lookup(Dj.XObject,Hj),ExtGState:t.lookup(Dj.ExtGState,Hj)}},t.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],t.withContextAndParent=function(e,r){var n=new Map;return n.set(Dj.Type,Dj.Page),n.set(Dj.Parent,r),n.set(Dj.Resources,e.obj({})),n.set(Dj.MediaBox,e.obj([0,0,612,792])),new t(n,e,!1)},t.fromMapWithContext=function(e,r,n){return void 0===n&&(n=!0),new t(e,r,n)},t}(Hj);const lP=sP;var cP=function(){function e(e,t){var r=this;this.traversedObjects=new Map,this.copy=function(e){return e instanceof lP?r.copyPDFPage(e):e instanceof Hj?r.copyPDFDict(e):e instanceof Oj?r.copyPDFArray(e):e instanceof Vj?r.copyPDFStream(e):e instanceof Yj?r.copyPDFIndirectObject(e):e.clone()},this.copyPDFPage=function(e){for(var t=e.clone(),n=lP.InheritableEntries,o=0,i=n.length;o<i;o++){var a=Dj.of(n[o]),s=t.getInheritableAttribute(a);!t.get(a)&&s&&t.set(a,s)}return t.delete(Dj.of("Parent")),r.copyPDFDict(t)},this.copyPDFDict=function(e){if(r.traversedObjects.has(e))return r.traversedObjects.get(e);var t=e.clone(r.dest);r.traversedObjects.set(e,t);for(var n=e.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];t.set(s,r.copy(l))}return t},this.copyPDFArray=function(e){if(r.traversedObjects.has(e))return r.traversedObjects.get(e);var t=e.clone(r.dest);r.traversedObjects.set(e,t);for(var n=0,o=e.size();n<o;n++){var i=e.get(n);t.set(n,r.copy(i))}return t},this.copyPDFStream=function(e){if(r.traversedObjects.has(e))return r.traversedObjects.get(e);var t=e.clone(r.dest);r.traversedObjects.set(e,t);for(var n=e.dict.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];t.dict.set(s,r.copy(l))}return t},this.copyPDFIndirectObject=function(e){if(!r.traversedObjects.has(e)){var t=r.dest.nextRef();r.traversedObjects.set(e,t);var n=r.src.lookup(e);if(n){var o=r.copy(n);r.dest.assign(t,o)}}return r.traversedObjects.get(e)},this.src=e,this.dest=t}return e.for=function(t,r){return new e(t,r)},e}();const uP=cP;var dP=function(){function e(e){this.subsections=e?[[e]]:[],this.chunkIdx=0,this.chunkLength=e?1:0}return e.prototype.addEntry=function(e,t){this.append({ref:e,offset:t,deleted:!1})},e.prototype.addDeletedEntry=function(e,t){this.append({ref:e,offset:t,deleted:!0})},e.prototype.toString=function(){for(var e="xref\n",t=0,r=this.subsections.length;t<r;t++){var n=this.subsections[t];e+=n[0].ref.objectNumber+" "+n.length+"\n";for(var o=0,i=n.length;o<i;o++){var a=n[o];e+=RA(String(a.offset),10,"0"),e+=" ",e+=RA(String(a.ref.generationNumber),5,"0"),e+=" ",e+=a.deleted?"f":"n",e+=" \n"}}return e},e.prototype.sizeInBytes=function(){for(var e=5,t=0,r=this.subsections.length;t<r;t++){var n=this.subsections[t],o=n.length,i=n[0];e+=2,e+=String(i.ref.objectNumber).length,e+=String(o).length,e+=20*o}return e},e.prototype.copyBytesInto=function(e,t){var r=t;return e[t++]=wj.x,e[t++]=wj.r,e[t++]=wj.e,e[t++]=wj.f,e[t++]=wj.Newline,(t+=this.copySubsectionsIntoBuffer(this.subsections,e,t))-r},e.prototype.copySubsectionsIntoBuffer=function(e,t,r){for(var n=r,o=e.length,i=0;i<o;i++){var a=this.subsections[i],s=String(a[0].ref.objectNumber);r+=_A(s,t,r),t[r++]=wj.Space;var l=String(a.length);r+=_A(l,t,r),t[r++]=wj.Newline,r+=this.copyEntriesIntoBuffer(a,t,r)}return r-n},e.prototype.copyEntriesIntoBuffer=function(e,t,r){for(var n=e.length,o=0;o<n;o++){var i=e[o],a=RA(String(i.offset),10,"0");r+=_A(a,t,r),t[r++]=wj.Space;var s=RA(String(i.ref.generationNumber),5,"0");r+=_A(s,t,r),t[r++]=wj.Space,t[r++]=i.deleted?wj.f:wj.n,t[r++]=wj.Space,t[r++]=wj.Newline}return 20*n},e.prototype.append=function(e){if(0===this.chunkLength)return this.subsections.push([e]),this.chunkIdx=0,void(this.chunkLength=1);var t=this.subsections[this.chunkIdx],r=t[this.chunkLength-1];e.ref.objectNumber-r.ref.objectNumber>1?(this.subsections.push([e]),this.chunkIdx+=1,this.chunkLength=1):(t.push(e),this.chunkLength+=1)},e.create=function(){return new e({ref:Yj.of(0,65535),offset:0,deleted:!0})},e.createEmpty=function(){return new e},e}();const fP=dP;const hP=function(){function e(e){this.lastXRefOffset=String(e)}return e.prototype.toString=function(){return"startxref\n"+this.lastXRefOffset+"\n%%EOF"},e.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},e.prototype.copyBytesInto=function(e,t){var r=t;return e[t++]=wj.s,e[t++]=wj.t,e[t++]=wj.a,e[t++]=wj.r,e[t++]=wj.t,e[t++]=wj.x,e[t++]=wj.r,e[t++]=wj.e,e[t++]=wj.f,e[t++]=wj.Newline,t+=_A(this.lastXRefOffset,e,t),e[t++]=wj.Newline,e[t++]=wj.Percent,e[t++]=wj.Percent,e[t++]=wj.E,e[t++]=wj.O,e[t++]=wj.F,t-r},e.forLastCrossRefSectionOffset=function(t){return new e(t)},e}();const pP=function(){function e(e){this.dict=e}return e.prototype.toString=function(){return"trailer\n"+this.dict.toString()},e.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},e.prototype.copyBytesInto=function(e,t){var r=t;return e[t++]=wj.t,e[t++]=wj.r,e[t++]=wj.a,e[t++]=wj.i,e[t++]=wj.l,e[t++]=wj.e,e[t++]=wj.r,e[t++]=wj.Newline,(t+=this.dict.copyBytesInto(e,t))-r},e.of=function(t){return new e(t)},e}();var mP=function(e){function t(t,r,n){void 0===n&&(n=!0);var o=e.call(this,t.obj({}),n)||this;return o.objects=r,o.offsets=o.computeObjectOffsets(),o.offsetsString=o.computeOffsetsString(),o.dict.set(Dj.of("Type"),Dj.of("ObjStm")),o.dict.set(Dj.of("N"),kj.of(o.objects.length)),o.dict.set(Dj.of("First"),kj.of(o.offsetsString.length)),o}return gA(t,e),t.prototype.getObjectsCount=function(){return this.objects.length},t.prototype.clone=function(e){return t.withContextAndObjects(e||this.dict.context,this.objects.slice(),this.encode)},t.prototype.getContentsString=function(){for(var e=this.offsetsString,t=0,r=this.objects.length;t<r;t++)e+=this.objects[t][1]+"\n";return e},t.prototype.getUnencodedContents=function(){for(var e=new Uint8Array(this.getUnencodedContentsSize()),t=_A(this.offsetsString,e,0),r=0,n=this.objects.length;r<n;r++)t+=this.objects[r][1].copyBytesInto(e,t),e[t++]=wj.Newline;return e},t.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+VA(this.offsets)[1]+VA(this.objects)[1].sizeInBytes()+1},t.prototype.computeOffsetsString=function(){for(var e="",t=0,r=this.offsets.length;t<r;t++){var n=this.offsets[t];e+=n[0]+" "+n[1]+" "}return e},t.prototype.computeObjectOffsets=function(){for(var e=0,t=new Array(this.objects.length),r=0,n=this.objects.length;r<n;r++){var o=this.objects[r],i=o[0],a=o[1];t[r]=[i.objectNumber,e],e+=a.sizeInBytes()+1}return t},t.withContextAndObjects=function(e,r,n){return void 0===n&&(n=!0),new t(e,r,n)},t}(eP);const gP=mP;var vP=function(){function e(e,t){var r=this;this.parsedObjects=0,this.shouldWaitForTick=function(e){return r.parsedObjects+=e,r.parsedObjects%r.objectsPerTick===0},this.context=e,this.objectsPerTick=t}return e.prototype.serializeToBuffer=function(){return bA(this,void 0,void 0,(function(){var e,t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g;return yA(this,(function(v){switch(v.label){case 0:return[4,this.computeBufferSize()];case 1:e=v.sent(),t=e.size,r=e.header,n=e.indirectObjects,o=e.xref,i=e.trailerDict,a=e.trailer,s=0,l=new Uint8Array(t),s+=r.copyBytesInto(l,s),l[s++]=wj.Newline,l[s++]=wj.Newline,c=0,u=n.length,v.label=2;case 2:return c<u?(d=n[c],f=d[0],h=d[1],p=String(f.objectNumber),s+=_A(p,l,s),l[s++]=wj.Space,m=String(f.generationNumber),s+=_A(m,l,s),l[s++]=wj.Space,l[s++]=wj.o,l[s++]=wj.b,l[s++]=wj.j,l[s++]=wj.Newline,s+=h.copyBytesInto(l,s),l[s++]=wj.Newline,l[s++]=wj.e,l[s++]=wj.n,l[s++]=wj.d,l[s++]=wj.o,l[s++]=wj.b,l[s++]=wj.j,l[s++]=wj.Newline,l[s++]=wj.Newline,g=h instanceof gP?h.getObjectsCount():1,this.shouldWaitForTick(g)?[4,$A()]:[3,4]):[3,5];case 3:v.sent(),v.label=4;case 4:return c++,[3,2];case 5:return o&&(s+=o.copyBytesInto(l,s),l[s++]=wj.Newline),i&&(s+=i.copyBytesInto(l,s),l[s++]=wj.Newline,l[s++]=wj.Newline),s+=a.copyBytesInto(l,s),[2,l]}}))}))},e.prototype.computeIndirectObjectSize=function(e){var t=e[0],r=e[1];return t.sizeInBytes()+3+(r.sizeInBytes()+9)},e.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},e.prototype.computeBufferSize=function(){return bA(this,void 0,void 0,(function(){var e,t,r,n,o,i,a,s,l,c,u;return yA(this,(function(d){switch(d.label){case 0:e=xj.forVersion(1,7),t=e.sizeInBytes()+2,r=fP.create(),n=this.context.enumerateIndirectObjects(),o=0,i=n.length,d.label=1;case 1:return o<i?(a=n[o],s=a[0],r.addEntry(s,t),t+=this.computeIndirectObjectSize(a),this.shouldWaitForTick(1)?[4,$A()]:[3,3]):[3,4];case 2:d.sent(),d.label=3;case 3:return o++,[3,1];case 4:return l=t,t+=r.sizeInBytes()+1,c=pP.of(this.createTrailerDict()),t+=c.sizeInBytes()+2,u=hP.forLastCrossRefSectionOffset(l),[2,{size:t+=u.sizeInBytes(),header:e,indirectObjects:n,xref:r,trailerDict:c,trailer:u}]}}))}))},e.forContext=function(t,r){return new e(t,r)},e}();const bP=vP;var yP=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return gA(t,e),t.prototype.clone=function(){return t.of(this.data.slice())},t.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},t.prototype.sizeInBytes=function(){return this.data.length},t.prototype.copyBytesInto=function(e,t){for(var r=this.data.length,n=0;n<r;n++)e[t++]=this.data[n];return r},t.of=function(e){return new t(e)},t}(Sj);const wP=yP;var xP;!function(e){e[e.Deleted=0]="Deleted",e[e.Uncompressed=1]="Uncompressed",e[e.Compressed=2]="Compressed"}(xP||(xP={}));var SP=function(e){function t(t,r,n){void 0===n&&(n=!0);var o=e.call(this,t,n)||this;return o.computeIndex=function(){for(var e=[],t=0,r=0,n=o.entries.length;r<n;r++){var i=o.entries[r],a=o.entries[r-1];0===r?e.push(i.ref.objectNumber):i.ref.objectNumber-a.ref.objectNumber>1&&(e.push(t),e.push(i.ref.objectNumber),t=0),t+=1}return e.push(t),e},o.computeEntryTuples=function(){for(var e=new Array(o.entries.length),t=0,r=o.entries.length;t<r;t++){var n=o.entries[t];if(n.type===xP.Deleted){var i=n.type,a=n.nextFreeObjectNumber,s=n.ref;e[t]=[i,a,s.generationNumber]}if(n.type===xP.Uncompressed){i=n.type;var l=n.offset;s=n.ref,e[t]=[i,l,s.generationNumber]}if(n.type===xP.Compressed){i=n.type;var c=n.objectStreamRef,u=n.index;e[t]=[i,c.objectNumber,u]}}return e},o.computeMaxEntryByteWidths=function(){for(var e=o.entryTuplesCache.access(),t=[0,0,0],r=0,n=e.length;r<n;r++){var i=e[r],a=i[0],s=i[1],l=i[2],c=lT(a),u=lT(s),d=lT(l);c>t[0]&&(t[0]=c),u>t[1]&&(t[1]=u),d>t[2]&&(t[2]=d)}return t},o.entries=r||[],o.entryTuplesCache=WT.populatedBy(o.computeEntryTuples),o.maxByteWidthsCache=WT.populatedBy(o.computeMaxEntryByteWidths),o.indexCache=WT.populatedBy(o.computeIndex),t.set(Dj.of("Type"),Dj.of("XRef")),o}return gA(t,e),t.prototype.addDeletedEntry=function(e,t){var r=xP.Deleted;this.entries.push({type:r,ref:e,nextFreeObjectNumber:t}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addUncompressedEntry=function(e,t){var r=xP.Uncompressed;this.entries.push({type:r,ref:e,offset:t}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addCompressedEntry=function(e,t,r){var n=xP.Compressed;this.entries.push({type:n,ref:e,objectStreamRef:t,index:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.clone=function(e){var r=this,n=r.dict,o=r.entries,i=r.encode;return t.of(n.clone(e),o.slice(),i)},t.prototype.getContentsString=function(){for(var e=this.entryTuplesCache.access(),t=this.maxByteWidthsCache.access(),r="",n=0,o=e.length;n<o;n++){for(var i=e[n],a=i[0],s=i[1],l=i[2],c=XA(cT(a)),u=XA(cT(s)),d=XA(cT(l)),f=t[0]-1;f>=0;f--)r+=(c[f]||0).toString(2);for(f=t[1]-1;f>=0;f--)r+=(u[f]||0).toString(2);for(f=t[2]-1;f>=0;f--)r+=(d[f]||0).toString(2)}return r},t.prototype.getUnencodedContents=function(){for(var e=this.entryTuplesCache.access(),t=this.maxByteWidthsCache.access(),r=new Uint8Array(this.getUnencodedContentsSize()),n=0,o=0,i=e.length;o<i;o++){for(var a=e[o],s=a[0],l=a[1],c=a[2],u=XA(cT(s)),d=XA(cT(l)),f=XA(cT(c)),h=t[0]-1;h>=0;h--)r[n++]=u[h]||0;for(h=t[1]-1;h>=0;h--)r[n++]=d[h]||0;for(h=t[2]-1;h>=0;h--)r[n++]=f[h]||0}return r},t.prototype.getUnencodedContentsSize=function(){var e=function(e){for(var t=0,r=0,n=e.length;r<n;r++)t+=e[r];return t}(this.maxByteWidthsCache.access());return e*this.entries.length},t.prototype.updateDict=function(){e.prototype.updateDict.call(this);var t=this.maxByteWidthsCache.access(),r=this.indexCache.access(),n=this.dict.context;this.dict.set(Dj.of("W"),n.obj(t)),this.dict.set(Dj.of("Index"),n.obj(r))},t.create=function(e,r){void 0===r&&(r=!0);var n=new t(e,[],r);return n.addDeletedEntry(Yj.of(0,65535),0),n},t.of=function(e,r,n){return void 0===n&&(n=!0),new t(e,r,n)},t}(eP);const CP=SP;var kP=function(e){function t(t,r,n,o){var i=e.call(this,t,r)||this;return i.encodeStreams=n,i.objectsPerStream=o,i}return gA(t,e),t.prototype.computeBufferSize=function(){return bA(this,void 0,void 0,(function(){var e,t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b;return yA(this,(function(y){switch(y.label){case 0:e=this.context.largestObjectNumber+1,t=xj.forVersion(1,7),r=t.sizeInBytes()+2,n=CP.create(this.createTrailerDict(),this.encodeStreams),o=[],i=[],a=[],s=this.context.enumerateIndirectObjects(),d=0,f=s.length,y.label=1;case 1:return d<f?(l=s[d],p=l[0],c=l[1],p===this.context.trailerInfo.Encrypt||c instanceof Vj||c instanceof wP||0!==p.generationNumber?(o.push(l),n.addUncompressedEntry(p,r),r+=this.computeIndirectObjectSize(l),this.shouldWaitForTick(1)?[4,$A()]:[3,3]):[3,4]):[3,6];case 2:y.sent(),y.label=3;case 3:return[3,5];case 4:h=VA(i),u=VA(a),h&&h.length%this.objectsPerStream!==0||(h=[],i.push(h),u=Yj.of(e++),a.push(u)),n.addCompressedEntry(p,u,h.length),h.push(l),y.label=5;case 5:return d++,[3,1];case 6:d=0,f=i.length,y.label=7;case 7:return d<f?(h=i[d],p=a[d],m=gP.withContextAndObjects(this.context,h,this.encodeStreams),n.addUncompressedEntry(p,r),r+=this.computeIndirectObjectSize([p,m]),o.push([p,m]),this.shouldWaitForTick(h.length)?[4,$A()]:[3,9]):[3,10];case 8:y.sent(),y.label=9;case 9:return d++,[3,7];case 10:return g=Yj.of(e++),n.dict.set(Dj.of("Size"),kj.of(e)),n.addUncompressedEntry(g,r),v=r,r+=this.computeIndirectObjectSize([g,n]),o.push([g,n]),b=hP.forLastCrossRefSectionOffset(v),[2,{size:r+=b.sizeInBytes(),header:t,indirectObjects:o,trailer:b}]}}))}))},t.forContext=function(e,r,n,o){return void 0===n&&(n=!0),void 0===o&&(o=50),new t(e,r,n,o)},t}(bP);const EP=kP;var OP=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return gA(t,e),t.prototype.asBytes=function(){for(var e=this.value+(this.value.length%2==1?"0":""),t=e.length,r=new Uint8Array(e.length/2),n=0,o=0;n<t;){var i=parseInt(e.substring(n,n+2),16);r[o]=i,n+=2,o+=1}return r},t.prototype.decodeText=function(){var e=this.asBytes();return sT(e)?eT(e):UT(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),t=HA(e);if(!t)throw new rj(e);return t},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"<"+this.value+">"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=wj.LessThan,t+=_A(this.value,e,t),e[t++]=wj.GreaterThan,this.value.length+2},t.of=function(e){return new t(e)},t.fromText=function(e){for(var r=function(e,t){void 0===t&&(t=!0);var r=[];t&&r.push(65279);for(var n=0,o=e.length;n<o;){var i=e.codePointAt(n);if(i<65536)r.push(i),n+=1;else{if(!(i<1114112))throw new Error("Invalid code point: 0x"+PA(i));r.push(ZA(i),QA(i)),n+=2}}return new Uint16Array(r)}(e),n="",o=0,i=r.length;o<i;o++)n+=jA(r[o],4);return new t(n)},t}(Sj);const AP=OP;var TP=function(){function e(e,t){this.encoding=e===mT.ZapfDingbats?CT.ZapfDingbats:e===mT.Symbol?CT.Symbol:CT.WinAnsi,this.font=yT.load(e),this.fontName=this.font.FontName,this.customName=t}return e.prototype.encodeText=function(e){for(var t=this.encodeTextAsGlyphs(e),r=new Array(t.length),n=0,o=t.length;n<o;n++)r[n]=PA(t[n].code);return AP.of(r.join(""))},e.prototype.widthOfTextAtSize=function(e,t){for(var r=this.encodeTextAsGlyphs(e),n=0,o=0,i=r.length;o<i;o++){var a=r[o].name,s=(r[o+1]||{}).name,l=this.font.getXAxisKerningForPair(a,s)||0;n+=this.widthOfGlyph(a)+l}return n*(t/1e3)},e.prototype.heightOfFontAtSize=function(e,t){void 0===t&&(t={});var r=t.descender,n=void 0===r||r,o=this.font,i=o.Ascender,a=o.Descender,s=o.FontBBox,l=(i||s[3])-(a||s[1]);return n||(l+=a||0),l/1e3*e},e.prototype.sizeOfFontAtHeight=function(e){var t=this.font,r=t.Ascender,n=t.Descender,o=t.FontBBox;return 1e3*e/((r||o[3])-(n||o[1]))},e.prototype.embedIntoContext=function(e,t){var r=e.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===CT.WinAnsi?"WinAnsiEncoding":void 0});return t?(e.assign(t,r),t):e.register(r)},e.prototype.widthOfGlyph=function(e){return this.font.getWidthOfGlyph(e)||250},e.prototype.encodeTextAsGlyphs=function(e){for(var t=Array.from(e),r=new Array(t.length),n=0,o=t.length;n<o;n++){var i=TA(t[n]);r[n]=this.encoding.encodeUnicodeCodePoint(i)}return r},e.for=function(t,r){return new e(t,r)},e}();const jP=TP;var PP=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"<"+e.join("")+">"},MP=function(e){return jA(e,4)},RP=function(e){if(function(e){return e>=0&&e<=65535}(e))return MP(e);if(function(e){return e>=65536&&e<=1114111}(e)){var t=ZA(e),r=QA(e);return""+MP(t)+MP(r)}var n=PA(e);throw new Error("0x"+n+" is not a valid UTF-8 or UTF-16 codepoint.")},_P=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return gA(t,e),t.prototype.asBytes=function(){for(var e=[],t="",r=!1,n=function(t){void 0!==t&&e.push(t),r=!1},o=0,i=this.value.length;o<i;o++){var a=this.value[o],s=AA(a),l=this.value[o+1];r?s===wj.Newline||s===wj.CarriageReturn?n():s===wj.n?n(wj.Newline):s===wj.r?n(wj.CarriageReturn):s===wj.t?n(wj.Tab):s===wj.b?n(wj.Backspace):s===wj.f?n(wj.FormFeed):s===wj.LeftParen?n(wj.LeftParen):s===wj.RightParen?n(wj.RightParen):s===wj.Backspace?n(wj.BackSlash):s>=wj.Zero&&s<=wj.Seven?3!==(t+=a).length&&l>="0"&&l<="7"||(n(parseInt(t,8)),t=""):n(s):s===wj.BackSlash?r=!0:n(s)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return sT(e)?eT(e):UT(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),t=HA(e);if(!t)throw new rj(e);return t},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=wj.LeftParen,t+=_A(this.value,e,t),e[t++]=wj.RightParen,this.value.length+2},t.of=function(e){return new t(e)},t.fromDate=function(e){return new t("D:"+RA(String(e.getUTCFullYear()),4,"0")+RA(String(e.getUTCMonth()+1),2,"0")+RA(String(e.getUTCDate()),2,"0")+RA(String(e.getUTCHours()),2,"0")+RA(String(e.getUTCMinutes()),2,"0")+RA(String(e.getUTCSeconds()),2,"0")+"Z")},t}(Sj);const IP=_P;var NP=function(){function e(e,t,r,n){var o=this;this.allGlyphsInFontSortedById=function(){for(var e=new Array(o.font.characterSet.length),t=0,r=e.length;t<r;t++){var n=o.font.characterSet[t];e[t]=o.font.glyphForCodePoint(n)}return function(e,t){for(var r=[],n=0,o=e.length;n<o;n++){var i=e[n],a=e[n-1];0!==n&&t(i)===t(a)||r.push(i)}return r}(e.sort(KA),(function(e){return e.id}))},this.font=e,this.scale=1e3/this.font.unitsPerEm,this.fontData=t,this.fontName=this.font.postscriptName||"Font",this.customName=r,this.fontFeatures=n,this.baseFontName="",this.glyphCache=WT.populatedBy(this.allGlyphsInFontSortedById)}return e.for=function(t,r,n,o){return bA(this,void 0,void 0,(function(){return yA(this,(function(i){switch(i.label){case 0:return[4,t.create(r)];case 1:return[2,new e(i.sent(),r,n,o)]}}))}))},e.prototype.encodeText=function(e){for(var t=this.font.layout(e,this.fontFeatures).glyphs,r=new Array(t.length),n=0,o=t.length;n<o;n++)r[n]=jA(t[n].id,4);return AP.of(r.join(""))},e.prototype.widthOfTextAtSize=function(e,t){for(var r=this.font.layout(e,this.fontFeatures).glyphs,n=0,o=0,i=r.length;o<i;o++)n+=r[o].advanceWidth*this.scale;return n*(t/1e3)},e.prototype.heightOfFontAtSize=function(e,t){void 0===t&&(t={});var r=t.descender,n=void 0===r||r,o=this.font,i=o.ascent,a=o.descent,s=o.bbox,l=(i||s.maxY)*this.scale-(a||s.minY)*this.scale;return n||(l-=Math.abs(a)||0),l/1e3*e},e.prototype.sizeOfFontAtHeight=function(e){var t=this.font,r=t.ascent,n=t.descent,o=t.bbox;return 1e3*e/((r||o.maxY)*this.scale-(n||o.minY)*this.scale)},e.prototype.embedIntoContext=function(e,t){return this.baseFontName=this.customName||e.addRandomSuffix(this.fontName),this.embedFontDict(e,t)},e.prototype.embedFontDict=function(e,t){return bA(this,void 0,void 0,(function(){var r,n,o;return yA(this,(function(i){switch(i.label){case 0:return[4,this.embedCIDFontDict(e)];case 1:return r=i.sent(),n=this.embedUnicodeCmap(e),o=e.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[r],ToUnicode:n}),t?(e.assign(t,o),[2,t]):[2,e.register(o)]}}))}))},e.prototype.isCFF=function(){return this.font.cff},e.prototype.embedCIDFontDict=function(e){return bA(this,void 0,void 0,(function(){var t,r;return yA(this,(function(n){switch(n.label){case 0:return[4,this.embedFontDescriptor(e)];case 1:return t=n.sent(),r=e.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:IP.of("Adobe"),Ordering:IP.of("Identity"),Supplement:0},FontDescriptor:t,W:this.computeWidths()}),[2,e.register(r)]}}))}))},e.prototype.embedFontDescriptor=function(e){return bA(this,void 0,void 0,(function(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m;return yA(this,(function(g){switch(g.label){case 0:return[4,this.embedFontStream(e)];case 1:return t=g.sent(),r=this.scale,n=this.font,o=n.italicAngle,i=n.ascent,a=n.descent,s=n.capHeight,l=n.xHeight,c=this.font.bbox,u=c.minX,d=c.minY,f=c.maxX,h=c.maxY,p=e.obj((m={Type:"FontDescriptor",FontName:this.baseFontName,Flags:(v=this.font,b=v["OS/2"]?v["OS/2"].sFamilyClass:0,y=function(e){var t=0,r=function(e){t|=1<<e-1};return e.fixedPitch&&r(1),e.serif&&r(2),e.symbolic&&r(3),e.script&&r(4),e.nonsymbolic&&r(6),e.italic&&r(7),e.allCap&&r(17),e.smallCap&&r(18),e.forceBold&&r(19),t}({fixedPitch:v.post.isFixedPitch,serif:1<=b&&b<=7,symbolic:!0,script:10===b,italic:v.head.macStyle.italic}),y),FontBBox:[u*r,d*r,f*r,h*r],ItalicAngle:o,Ascent:i*r,Descent:a*r,CapHeight:(s||i)*r,XHeight:(l||0)*r,StemV:0},m[this.isCFF()?"FontFile3":"FontFile2"]=t,m)),[2,e.register(p)]}var v,b,y}))}))},e.prototype.serializeFont=function(){return bA(this,void 0,void 0,(function(){return yA(this,(function(e){return[2,this.fontData]}))}))},e.prototype.embedFontStream=function(e){return bA(this,void 0,void 0,(function(){var t,r,n;return yA(this,(function(o){switch(o.label){case 0:return n=(r=e).flateStream,[4,this.serializeFont()];case 1:return t=n.apply(r,[o.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,e.register(t)]}}))}))},e.prototype.embedUnicodeCmap=function(e){var t=function(e,t){for(var r=new Array(e.length),n=0,o=e.length;n<o;n++){var i=e[n],a=PP(MP(t(i))),s=PP.apply(void 0,i.codePoints.map(RP));r[n]=[a,s]}return function(e){return"/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n"+e.length+" beginbfchar\n"+e.map((function(e){return e[0]+" "+e[1]})).join("\n")+"\nendbfchar\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"}(r)}(this.glyphCache.access(),this.glyphId.bind(this)),r=e.flateStream(t);return e.register(r)},e.prototype.glyphId=function(e){return e?e.id:-1},e.prototype.computeWidths=function(){for(var e=this.glyphCache.access(),t=[],r=[],n=0,o=e.length;n<o;n++){var i=e[n],a=e[n-1],s=this.glyphId(i),l=this.glyphId(a);0===n?t.push(s):s-l!==1&&(t.push(r),t.push(s),r=[]),r.push(i.advanceWidth*this.scale)}return t.push(r),t},e}();const FP=NP;var DP=function(e){function t(t,r,n,o){var i=e.call(this,t,r,n,o)||this;return i.subset=i.font.createSubset(),i.glyphs=[],i.glyphCache=WT.populatedBy((function(){return i.glyphs})),i.glyphIdMap=new Map,i}return gA(t,e),t.for=function(e,r,n,o){return bA(this,void 0,void 0,(function(){return yA(this,(function(i){switch(i.label){case 0:return[4,e.create(r)];case 1:return[2,new t(i.sent(),r,n,o)]}}))}))},t.prototype.encodeText=function(e){for(var t=this.font.layout(e,this.fontFeatures).glyphs,r=new Array(t.length),n=0,o=t.length;n<o;n++){var i=t[n],a=this.subset.includeGlyph(i);this.glyphs[a-1]=i,this.glyphIdMap.set(i.id,a),r[n]=jA(a,4)}return this.glyphCache.invalidate(),AP.of(r.join(""))},t.prototype.isCFF=function(){return this.subset.cff},t.prototype.glyphId=function(e){return e?this.glyphIdMap.get(e.id):-1},t.prototype.serializeFont=function(){var e=this;return new Promise((function(t,r){var n=[];e.subset.encodeStream().on("data",(function(e){return n.push(e)})).on("end",(function(){return t(function(e){for(var t=0,r=0,n=e.length;r<n;r++)t+=e[r].length;var o=new Uint8Array(t),i=0;for(r=0,n=e.length;r<n;r++){var a=e[r];o.set(a,i),i+=a.length}return o}(n))})).on("error",(function(e){return r(e)}))}))},t}(FP);const BP=DP;var LP;!function(e){e.Source="Source",e.Data="Data",e.Alternative="Alternative",e.Supplement="Supplement",e.EncryptedPayload="EncryptedPayload",e.FormData="EncryptedPayload",e.Schema="Schema",e.Unspecified="Unspecified"}(LP||(LP={}));var zP=function(){function e(e,t,r){void 0===r&&(r={}),this.fileData=e,this.fileName=t,this.options=r}return e.for=function(t,r,n){return void 0===n&&(n={}),new e(t,r,n)},e.prototype.embedIntoContext=function(e,t){return bA(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,u;return yA(this,(function(d){return r=this.options,n=r.mimeType,o=r.description,i=r.creationDate,a=r.modificationDate,s=r.afRelationship,l=e.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!=n?n:void 0,Params:{Size:this.fileData.length,CreationDate:i?IP.fromDate(i):void 0,ModDate:a?IP.fromDate(a):void 0}}),c=e.register(l),u=e.obj({Type:"Filespec",F:IP.of(this.fileName),UF:AP.fromText(this.fileName),EF:{F:c},Desc:o?AP.fromText(o):void 0,AFRelationship:null!=s?s:void 0}),t?(e.assign(t,u),[2,t]):[2,e.register(u)]}))}))},e}();const HP=zP;var UP,VP=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];!function(e){e.DeviceGray="DeviceGray",e.DeviceRGB="DeviceRGB",e.DeviceCMYK="DeviceCMYK"}(UP||(UP={}));var WP={1:UP.DeviceGray,3:UP.DeviceRGB,4:UP.DeviceCMYK};const GP=function(){function e(e,t,r,n,o){this.imageData=e,this.bitsPerComponent=t,this.width=r,this.height=n,this.colorSpace=o}return e.for=function(t){return bA(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c;return yA(this,(function(u){if(65496!==(r=new DataView(t.buffer)).getUint16(0))throw new Error("SOI not found in JPEG");for(n=2;n<r.byteLength&&(o=r.getUint16(n),n+=2,!VP.includes(o));)n+=r.getUint16(n);if(!VP.includes(o))throw new Error("Invalid JPEG");if(n+=2,i=r.getUint8(n++),a=r.getUint16(n),n+=2,s=r.getUint16(n),n+=2,l=r.getUint8(n++),!(c=WP[l]))throw new Error("Unknown JPEG channel.");return[2,new e(t,i,s,a,c)]}))}))},e.prototype.embedIntoContext=function(e,t){return bA(this,void 0,void 0,(function(){var r;return yA(this,(function(n){return r=e.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===UP.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),t?(e.assign(t,r),[2,t]):[2,e.register(r)]}))}))},e}();var qP,KP,XP,YP={toRGBA8:function(e){var t=e.width,r=e.height;if(null==e.tabs.acTL)return[YP.toRGBA8.decodeImage(e.data,t,r,e).buffer];var n=[];null==e.frames[0].data&&(e.frames[0].data=e.data);for(var o=t*r*4,i=new Uint8Array(o),a=new Uint8Array(o),s=new Uint8Array(o),l=0;l<e.frames.length;l++){var c=e.frames[l],u=c.rect.x,d=c.rect.y,f=c.rect.width,h=c.rect.height,p=YP.toRGBA8.decodeImage(c.data,f,h,e);if(0!=l)for(var m=0;m<o;m++)s[m]=i[m];if(0==c.blend?YP._copyTile(p,f,h,i,t,r,u,d,0):1==c.blend&&YP._copyTile(p,f,h,i,t,r,u,d,1),n.push(i.buffer.slice(0)),0==c.dispose);else if(1==c.dispose)YP._copyTile(a,f,h,i,t,r,u,d,0);else if(2==c.dispose)for(m=0;m<o;m++)i[m]=s[m]}return n}};YP.toRGBA8.decodeImage=function(e,t,r,n){var o=t*r,i=YP.decode._getBPP(n),a=Math.ceil(t*i/8),s=new Uint8Array(4*o),l=new Uint32Array(s.buffer),c=n.ctype,u=n.depth,d=YP._bin.readUshort;if(Date.now(),6==c){var f=o<<2;if(8==u)for(var h=0;h<f;h+=4)s[h]=e[h],s[h+1]=e[h+1],s[h+2]=e[h+2],s[h+3]=e[h+3];if(16==u)for(h=0;h<f;h++)s[h]=e[h<<1]}else if(2==c){var p=n.tabs.tRNS;if(null==p){if(8==u)for(h=0;h<o;h++){var m=3*h;l[h]=255<<24|e[m+2]<<16|e[m+1]<<8|e[m]}if(16==u)for(h=0;h<o;h++)m=6*h,l[h]=255<<24|e[m+4]<<16|e[m+2]<<8|e[m]}else{var g=p[0],v=p[1],b=p[2];if(8==u)for(h=0;h<o;h++){var y=h<<2;m=3*h,l[h]=255<<24|e[m+2]<<16|e[m+1]<<8|e[m],e[m]==g&&e[m+1]==v&&e[m+2]==b&&(s[y+3]=0)}if(16==u)for(h=0;h<o;h++)y=h<<2,m=6*h,l[h]=255<<24|e[m+4]<<16|e[m+2]<<8|e[m],d(e,m)==g&&d(e,m+2)==v&&d(e,m+4)==b&&(s[y+3]=0)}}else if(3==c){var w=n.tabs.PLTE,x=n.tabs.tRNS,S=x?x.length:0;if(1==u)for(var C=0;C<r;C++){var k=C*a,E=C*t;for(h=0;h<t;h++){y=E+h<<2;var O=3*(A=e[k+(h>>3)]>>7-(7&h)&1);s[y]=w[O],s[y+1]=w[O+1],s[y+2]=w[O+2],s[y+3]=A<S?x[A]:255}}if(2==u)for(C=0;C<r;C++)for(k=C*a,E=C*t,h=0;h<t;h++)y=E+h<<2,O=3*(A=e[k+(h>>2)]>>6-((3&h)<<1)&3),s[y]=w[O],s[y+1]=w[O+1],s[y+2]=w[O+2],s[y+3]=A<S?x[A]:255;if(4==u)for(C=0;C<r;C++)for(k=C*a,E=C*t,h=0;h<t;h++)y=E+h<<2,O=3*(A=e[k+(h>>1)]>>4-((1&h)<<2)&15),s[y]=w[O],s[y+1]=w[O+1],s[y+2]=w[O+2],s[y+3]=A<S?x[A]:255;if(8==u)for(h=0;h<o;h++){var A;y=h<<2,O=3*(A=e[h]),s[y]=w[O],s[y+1]=w[O+1],s[y+2]=w[O+2],s[y+3]=A<S?x[A]:255}}else if(4==c){if(8==u)for(h=0;h<o;h++){y=h<<2;var T=e[j=h<<1];s[y]=T,s[y+1]=T,s[y+2]=T,s[y+3]=e[j+1]}if(16==u)for(h=0;h<o;h++){var j;y=h<<2,T=e[j=h<<2],s[y]=T,s[y+1]=T,s[y+2]=T,s[y+3]=e[j+2]}}else if(0==c)for(g=n.tabs.tRNS?n.tabs.tRNS:-1,C=0;C<r;C++){var P=C*a,M=C*t;if(1==u)for(var R=0;R<t;R++){var _=(T=255*(e[P+(R>>>3)]>>>7-(7&R)&1))==255*g?0:255;l[M+R]=_<<24|T<<16|T<<8|T}else if(2==u)for(R=0;R<t;R++)_=(T=85*(e[P+(R>>>2)]>>>6-((3&R)<<1)&3))==85*g?0:255,l[M+R]=_<<24|T<<16|T<<8|T;else if(4==u)for(R=0;R<t;R++)_=(T=17*(e[P+(R>>>1)]>>>4-((1&R)<<2)&15))==17*g?0:255,l[M+R]=_<<24|T<<16|T<<8|T;else if(8==u)for(R=0;R<t;R++)_=(T=e[P+R])==g?0:255,l[M+R]=_<<24|T<<16|T<<8|T;else if(16==u)for(R=0;R<t;R++)T=e[P+(R<<1)],_=d(e,P+(R<<h))==g?0:255,l[M+R]=_<<24|T<<16|T<<8|T}return s},YP.decode=function(e){for(var t,r=new Uint8Array(e),n=8,o=YP._bin,i=o.readUshort,a=o.readUint,s={tabs:{},frames:[]},l=new Uint8Array(r.length),c=0,u=0,d=[137,80,78,71,13,10,26,10],f=0;f<8;f++)if(r[f]!=d[f])throw"The input is not a PNG file!";for(;n<r.length;){var h=o.readUint(r,n);n+=4;var p=o.readASCII(r,n,4);if(n+=4,"IHDR"==p)YP.decode._IHDR(r,n,s);else if("IDAT"==p){for(f=0;f<h;f++)l[c+f]=r[n+f];c+=h}else if("acTL"==p)s.tabs[p]={num_frames:a(r,n),num_plays:a(r,n+4)},t=new Uint8Array(r.length);else if("fcTL"==p){var m;0!=u&&((m=s.frames[s.frames.length-1]).data=YP.decode._decompress(s,t.slice(0,u),m.rect.width,m.rect.height),u=0);var g={x:a(r,n+12),y:a(r,n+16),width:a(r,n+4),height:a(r,n+8)},v=i(r,n+22);v=i(r,n+20)/(0==v?100:v);var b={rect:g,delay:Math.round(1e3*v),dispose:r[n+24],blend:r[n+25]};s.frames.push(b)}else if("fdAT"==p){for(f=0;f<h-4;f++)t[u+f]=r[n+f+4];u+=h-4}else if("pHYs"==p)s.tabs[p]=[o.readUint(r,n),o.readUint(r,n+4),r[n+8]];else if("cHRM"==p)for(s.tabs[p]=[],f=0;f<8;f++)s.tabs[p].push(o.readUint(r,n+4*f));else if("tEXt"==p){null==s.tabs[p]&&(s.tabs[p]={});var y=o.nextZero(r,n),w=o.readASCII(r,n,y-n),x=o.readASCII(r,y+1,n+h-y-1);s.tabs[p][w]=x}else if("iTXt"==p){null==s.tabs[p]&&(s.tabs[p]={}),y=0;var S=n;y=o.nextZero(r,S),w=o.readASCII(r,S,y-S),r[S=y+1],r[S+1],S+=2,y=o.nextZero(r,S),o.readASCII(r,S,y-S),S=y+1,y=o.nextZero(r,S),o.readUTF8(r,S,y-S),S=y+1,x=o.readUTF8(r,S,h-(S-n)),s.tabs[p][w]=x}else if("PLTE"==p)s.tabs[p]=o.readBytes(r,n,h);else if("hIST"==p){var C=s.tabs.PLTE.length/3;for(s.tabs[p]=[],f=0;f<C;f++)s.tabs[p].push(i(r,n+2*f))}else if("tRNS"==p)3==s.ctype?s.tabs[p]=o.readBytes(r,n,h):0==s.ctype?s.tabs[p]=i(r,n):2==s.ctype&&(s.tabs[p]=[i(r,n),i(r,n+2),i(r,n+4)]);else if("gAMA"==p)s.tabs[p]=o.readUint(r,n)/1e5;else if("sRGB"==p)s.tabs[p]=r[n];else if("bKGD"==p)0==s.ctype||4==s.ctype?s.tabs[p]=[i(r,n)]:2==s.ctype||6==s.ctype?s.tabs[p]=[i(r,n),i(r,n+2),i(r,n+4)]:3==s.ctype&&(s.tabs[p]=r[n]);else if("IEND"==p)break;n+=h,o.readUint(r,n),n+=4}return 0!=u&&((m=s.frames[s.frames.length-1]).data=YP.decode._decompress(s,t.slice(0,u),m.rect.width,m.rect.height),u=0),s.data=YP.decode._decompress(s,l,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},YP.decode._decompress=function(e,t,r,n){Date.now();var o=YP.decode._getBPP(e),i=Math.ceil(r*o/8),a=new Uint8Array((i+1+e.interlace)*n);return t=YP.decode._inflate(t,a),Date.now(),0==e.interlace?t=YP.decode._filterZero(t,e,0,r,n):1==e.interlace&&(t=YP.decode._readInterlace(t,e)),t},YP.decode._inflate=function(e,t){return YP.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},YP.inflateRaw=((XP={}).H={},XP.H.N=function(e,t){var r,n,o=Uint8Array,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,h=0;if(3==e[0]&&0==e[1])return t||new o(0);var p=XP.H,m=p.b,g=p.e,v=p.R,b=p.n,y=p.A,w=p.Z,x=p.m,S=null==t;for(S&&(t=new o(e.length>>>2<<3));0==i;)if(i=m(e,h,1),a=m(e,h+1,2),h+=3,0!=a){if(S&&(t=XP.H.W(t,f+(1<<17))),1==a&&(r=x.J,n=x.h,u=511,d=31),2==a){s=g(e,h,5)+257,l=g(e,h+5,5)+1,c=g(e,h+10,4)+4,h+=14;for(var C=1,k=0;k<38;k+=2)x.Q[k]=0,x.Q[k+1]=0;for(k=0;k<c;k++){var E=g(e,h+3*k,3);x.Q[1+(x.X[k]<<1)]=E,E>C&&(C=E)}h+=3*c,b(x.Q,C),y(x.Q,C,x.u),r=x.w,n=x.d,h=v(x.u,(1<<C)-1,s+l,e,h,x.v);var O=p.V(x.v,0,s,x.C);u=(1<<O)-1;var A=p.V(x.v,s,l,x.D);d=(1<<A)-1,b(x.C,O),y(x.C,O,r),b(x.D,A),y(x.D,A,n)}for(;;){var T=r[w(e,h)&u];h+=15&T;var j=T>>>4;if(j>>>8==0)t[f++]=j;else{if(256==j)break;var P=f+j-254;if(j>264){var M=x.q[j-257];P=f+(M>>>3)+g(e,h,7&M),h+=7&M}var R=n[w(e,h)&d];h+=15&R;var _=R>>>4,I=x.c[_],N=(I>>>4)+m(e,h,15&I);for(h+=15&I;f<P;)t[f]=t[f++-N],t[f]=t[f++-N],t[f]=t[f++-N],t[f]=t[f++-N];f=P}}}else{7&h&&(h+=8-(7&h));var F=(h>>>3)+4,D=e[F-4]|e[F-3]<<8;S&&(t=XP.H.W(t,f+D)),t.set(new o(e.buffer,e.byteOffset+F,D),f),h=F+D<<3,f+=D}return t.length==f?t:t.slice(0,f)},XP.H.W=function(e,t){var r=e.length;if(t<=r)return e;var n=new Uint8Array(r<<1);return n.set(e,0),n},XP.H.R=function(e,t,r,n,o,i){for(var a=XP.H.e,s=XP.H.Z,l=0;l<r;){var c=e[s(n,o)&t];o+=15&c;var u=c>>>4;if(u<=15)i[l]=u,l++;else{var d=0,f=0;16==u?(f=3+a(n,o,2),o+=2,d=i[l-1]):17==u?(f=3+a(n,o,3),o+=3):18==u&&(f=11+a(n,o,7),o+=7);for(var h=l+f;l<h;)i[l]=d,l++}}return o},XP.H.V=function(e,t,r,n){for(var o=0,i=0,a=n.length>>>1;i<r;){var s=e[i+t];n[i<<1]=0,n[1+(i<<1)]=s,s>o&&(o=s),i++}for(;i<a;)n[i<<1]=0,n[1+(i<<1)]=0,i++;return o},XP.H.n=function(e,t){for(var r,n,o,i,a=XP.H.m,s=e.length,l=a.j,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var u=a.K;for(r=0,l[0]=0,n=1;n<=t;n++)r=r+l[n-1]<<1,u[n]=r;for(o=0;o<s;o+=2)0!=(i=e[o+1])&&(e[o]=u[i],u[i]++)},XP.H.A=function(e,t,r){for(var n=e.length,o=XP.H.m.r,i=0;i<n;i+=2)if(0!=e[i+1])for(var a=i>>1,s=e[i+1],l=a<<4|s,c=t-s,u=e[i]<<c,d=u+(1<<c);u!=d;)r[o[u]>>>15-t]=l,u++},XP.H.l=function(e,t){for(var r=XP.H.m.r,n=15-t,o=0;o<e.length;o+=2){var i=e[o]<<t-e[o+1];e[o]=r[i]>>>n}},XP.H.M=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8},XP.H.I=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},XP.H.e=function(e,t,r){return(e[t>>>3]|e[(t>>>3)+1]<<8)>>>(7&t)&(1<<r)-1},XP.H.b=function(e,t,r){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(7&t)&(1<<r)-1},XP.H.Z=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(7&t)},XP.H.i=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16|e[(t>>>3)+3]<<24)>>>(7&t)},XP.H.m=(qP=Uint16Array,KP=Uint32Array,{K:new qP(16),j:new qP(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new qP(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new KP(32),J:new qP(512),_:[],h:new qP(32),$:[],w:new qP(32768),C:[],v:[],d:new qP(32768),D:[],u:new qP(512),Q:[],r:new qP(32768),s:new KP(286),Y:new KP(30),a:new KP(19),t:new KP(15e3),k:new qP(65536),g:new qP(32768)}),function(){for(var e=XP.H.m,t=0;t<32768;t++){var r=t;r=(4278255360&(r=(4042322160&(r=(3435973836&(r=(2863311530&r)>>>1|(1431655765&r)<<1))>>>2|(858993459&r)<<2))>>>4|(252645135&r)<<4))>>>8|(16711935&r)<<8,e.r[t]=(r>>>16|r<<16)>>>17}function n(e,t,r){for(;0!=t--;)e.push(0,r)}for(t=0;t<32;t++)e.q[t]=e.S[t]<<3|e.T[t],e.c[t]=e.p[t]<<4|e.z[t];n(e._,144,8),n(e._,112,9),n(e._,24,7),n(e._,8,8),XP.H.n(e._,9),XP.H.A(e._,9,e.J),XP.H.l(e._,9),n(e.$,32,5),XP.H.n(e.$,5),XP.H.A(e.$,5,e.h),XP.H.l(e.$,5),n(e.Q,19,0),n(e.C,286,0),n(e.D,30,0),n(e.v,320,0)}(),XP.H.N),YP.decode._readInterlace=function(e,t){for(var r=t.width,n=t.height,o=YP.decode._getBPP(t),i=o>>3,a=Math.ceil(r*o/8),s=new Uint8Array(n*a),l=0,c=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1],h=0;h<7;){for(var p=d[h],m=f[h],g=0,v=0,b=c[h];b<n;)b+=p,v++;for(var y=u[h];y<r;)y+=m,g++;var w=Math.ceil(g*o/8);YP.decode._filterZero(e,t,l,g,v);for(var x=0,S=c[h];S<n;){for(var C=u[h],k=l+x*w<<3;C<r;){var E;if(1==o&&(E=(E=e[k>>3])>>7-(7&k)&1,s[S*a+(C>>3)]|=E<<7-(7&C)),2==o&&(E=(E=e[k>>3])>>6-(7&k)&3,s[S*a+(C>>2)]|=E<<6-((3&C)<<1)),4==o&&(E=(E=e[k>>3])>>4-(7&k)&15,s[S*a+(C>>1)]|=E<<4-((1&C)<<2)),o>=8)for(var O=S*a+C*i,A=0;A<i;A++)s[O+A]=e[(k>>3)+A];k+=o,C+=m}x++,S+=p}g*v!=0&&(l+=v*(1+w)),h+=1}return s},YP.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},YP.decode._filterZero=function(e,t,r,n,o){var i=YP.decode._getBPP(t),a=Math.ceil(n*i/8),s=YP.decode._paeth;i=Math.ceil(i/8);var l=0,c=1,u=e[r],d=0;if(u>1&&(e[r]=[0,0,1][u-2]),3==u)for(d=i;d<a;d++)e[d+1]=e[d+1]+(e[d+1-i]>>>1)&255;for(var f=0;f<o;f++)if(d=0,0==(u=e[(c=(l=r+f*a)+f+1)-1]))for(;d<a;d++)e[l+d]=e[c+d];else if(1==u){for(;d<i;d++)e[l+d]=e[c+d];for(;d<a;d++)e[l+d]=e[c+d]+e[l+d-i]}else if(2==u)for(;d<a;d++)e[l+d]=e[c+d]+e[l+d-a];else if(3==u){for(;d<i;d++)e[l+d]=e[c+d]+(e[l+d-a]>>>1);for(;d<a;d++)e[l+d]=e[c+d]+(e[l+d-a]+e[l+d-i]>>>1)}else{for(;d<i;d++)e[l+d]=e[c+d]+s(0,e[l+d-a],0);for(;d<a;d++)e[l+d]=e[c+d]+s(e[l+d-i],e[l+d-a],e[l+d-i-a])}return e},YP.decode._paeth=function(e,t,r){var n=e+t-r,o=n-e,i=n-t,a=n-r;return o*o<=i*i&&o*o<=a*a?e:i*i<=a*a?t:r},YP.decode._IHDR=function(e,t,r){var n=YP._bin;r.width=n.readUint(e,t),t+=4,r.height=n.readUint(e,t),t+=4,r.depth=e[t],t++,r.ctype=e[t],t++,r.compress=e[t],t++,r.filter=e[t],t++,r.interlace=e[t],t++},YP._bin={nextZero:function(e,t){for(;0!=e[t];)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,r){e[t]=r>>8&255,e[t+1]=255&r},readUint:function(e,t){return 16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r},readASCII:function(e,t,r){for(var n="",o=0;o<r;o++)n+=String.fromCharCode(e[t+o]);return n},writeASCII:function(e,t,r){for(var n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},readBytes:function(e,t,r){for(var n=[],o=0;o<r;o++)n.push(e[t+o]);return n},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,r){for(var n,o="",i=0;i<r;i++)o+="%"+YP._bin.pad(e[t+i].toString(16));try{n=decodeURIComponent(o)}catch(n){return YP._bin.readASCII(e,t,r)}return n}},YP._copyTile=function(e,t,r,n,o,i,a,s,l){for(var c=Math.min(t,o),u=Math.min(r,i),d=0,f=0,h=0;h<u;h++)for(var p=0;p<c;p++)if(a>=0&&s>=0?(d=h*t+p<<2,f=(s+h)*o+a+p<<2):(d=(-s+h)*t-a+p<<2,f=h*o+p<<2),0==l)n[f]=e[d],n[f+1]=e[d+1],n[f+2]=e[d+2],n[f+3]=e[d+3];else if(1==l){var m=e[d+3]*(1/255),g=e[d]*m,v=e[d+1]*m,b=e[d+2]*m,y=n[f+3]*(1/255),w=n[f]*y,x=n[f+1]*y,S=n[f+2]*y,C=1-m,k=m+y*C,E=0==k?0:1/k;n[f+3]=255*k,n[f+0]=(g+w*C)*E,n[f+1]=(v+x*C)*E,n[f+2]=(b+S*C)*E}else if(2==l)m=e[d+3],g=e[d],v=e[d+1],b=e[d+2],y=n[f+3],w=n[f],x=n[f+1],S=n[f+2],m==y&&g==w&&v==x&&b==S?(n[f]=0,n[f+1]=0,n[f+2]=0,n[f+3]=0):(n[f]=g,n[f+1]=v,n[f+2]=b,n[f+3]=m);else if(3==l){if(m=e[d+3],g=e[d],v=e[d+1],b=e[d+2],y=n[f+3],w=n[f],x=n[f+1],S=n[f+2],m==y&&g==w&&v==x&&b==S)continue;if(m<220&&y>20)return!1}return!0},YP.encode=function(e,t,r,n,o,i,a){null==n&&(n=0),null==a&&(a=!1);var s=YP.encode.compress(e,t,r,n,[!1,!1,!1,0,a]);return YP.encode.compressPNG(s,-1),YP.encode._main(s,t,r,o,i)},YP.encodeLL=function(e,t,r,n,o,i,a,s){for(var l={ctype:0+(1==n?0:2)+(0==o?0:4),depth:i,frames:[]},c=(Date.now(),(n+o)*i),u=c*t,d=0;d<e.length;d++)l.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(c/8),bpl:Math.ceil(u/8)});return YP.encode.compressPNG(l,0,!0),YP.encode._main(l,t,r,a,s)},YP.encode._main=function(e,t,r,n,o){null==o&&(o={});var i=YP.crc.crc,a=YP._bin.writeUint,s=YP._bin.writeUshort,l=YP._bin.writeASCII,c=8,u=e.frames.length>1,d=!1,f=33+(u?20:0);if(null!=o.sRGB&&(f+=13),null!=o.pHYs&&(f+=21),3==e.ctype){for(var h=e.plte.length,p=0;p<h;p++)e.plte[p]>>>24!=255&&(d=!0);f+=8+3*h+4+(d?8+1*h+4:0)}for(var m=0;m<e.frames.length;m++)u&&(f+=38),f+=(k=e.frames[m]).cimg.length+12,0!=m&&(f+=4);f+=12;var g=new Uint8Array(f),v=[137,80,78,71,13,10,26,10];for(p=0;p<8;p++)g[p]=v[p];if(a(g,c,13),l(g,c+=4,"IHDR"),a(g,c+=4,t),a(g,c+=4,r),g[c+=4]=e.depth,g[++c]=e.ctype,g[++c]=0,g[++c]=0,g[++c]=0,a(g,++c,i(g,c-17,17)),c+=4,null!=o.sRGB&&(a(g,c,1),l(g,c+=4,"sRGB"),g[c+=4]=o.sRGB,a(g,++c,i(g,c-5,5)),c+=4),null!=o.pHYs&&(a(g,c,9),l(g,c+=4,"pHYs"),a(g,c+=4,o.pHYs[0]),a(g,c+=4,o.pHYs[1]),g[c+=4]=o.pHYs[2],a(g,++c,i(g,c-13,13)),c+=4),u&&(a(g,c,8),l(g,c+=4,"acTL"),a(g,c+=4,e.frames.length),a(g,c+=4,null!=o.loop?o.loop:0),a(g,c+=4,i(g,c-12,12)),c+=4),3==e.ctype){for(a(g,c,3*(h=e.plte.length)),l(g,c+=4,"PLTE"),c+=4,p=0;p<h;p++){var b=3*p,y=e.plte[p],w=255&y,x=y>>>8&255,S=y>>>16&255;g[c+b+0]=w,g[c+b+1]=x,g[c+b+2]=S}if(a(g,c+=3*h,i(g,c-3*h-4,3*h+4)),c+=4,d){for(a(g,c,h),l(g,c+=4,"tRNS"),c+=4,p=0;p<h;p++)g[c+p]=e.plte[p]>>>24&255;a(g,c+=h,i(g,c-h-4,h+4)),c+=4}}var C=0;for(m=0;m<e.frames.length;m++){var k=e.frames[m];u&&(a(g,c,26),l(g,c+=4,"fcTL"),a(g,c+=4,C++),a(g,c+=4,k.rect.width),a(g,c+=4,k.rect.height),a(g,c+=4,k.rect.x),a(g,c+=4,k.rect.y),s(g,c+=4,n[m]),s(g,c+=2,1e3),g[c+=2]=k.dispose,g[++c]=k.blend,a(g,++c,i(g,c-30,30)),c+=4);var E=k.cimg;a(g,c,(h=E.length)+(0==m?0:4));var O=c+=4;l(g,c,0==m?"IDAT":"fdAT"),c+=4,0!=m&&(a(g,c,C++),c+=4),g.set(E,c),a(g,c+=h,i(g,O,c-O)),c+=4}return a(g,c,0),l(g,c+=4,"IEND"),a(g,c+=4,i(g,c-4,4)),c+=4,g.buffer},YP.encode.compressPNG=function(e,t,r){for(var n=0;n<e.frames.length;n++){var o=e.frames[n],i=(o.rect.width,o.rect.height),a=new Uint8Array(i*o.bpl+i);o.cimg=YP.encode._filterZero(o.img,i,o.bpp,o.bpl,a,t,r)}},YP.encode.compress=function(e,t,r,n,o){for(var i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=6,d=8,f=255,h=0;h<e.length;h++)for(var p=new Uint8Array(e[h]),m=p.length,g=0;g<m;g+=4)f&=p[g+3];var v=255!=f,b=YP.encode.framize(e,t,r,i,a,s),y={},w=[],x=[];if(0!=n){var S=[];for(g=0;g<b.length;g++)S.push(b[g].img.buffer);var C=YP.encode.concatRGBA(S),k=YP.quantize(C,n),E=0,O=new Uint8Array(k.abuf);for(g=0;g<b.length;g++){var A=(G=b[g].img).length;for(x.push(new Uint8Array(k.inds.buffer,E>>2,A>>2)),h=0;h<A;h+=4)G[h]=O[E+h],G[h+1]=O[E+h+1],G[h+2]=O[E+h+2],G[h+3]=O[E+h+3];E+=A}for(g=0;g<k.plte.length;g++)w.push(k.plte[g].est.rgba)}else for(h=0;h<b.length;h++){var T=b[h],j=new Uint32Array(T.img.buffer),P=T.rect.width,M=(m=j.length,new Uint8Array(m));for(x.push(M),g=0;g<m;g++){var R=j[g];if(0!=g&&R==j[g-1])M[g]=M[g-1];else if(g>P&&R==j[g-P])M[g]=M[g-P];else{var _=y[R];if(null==_&&(y[R]=_=w.length,w.push(R),w.length>=300))break;M[g]=_}}}var I=w.length;for(I<=256&&0==c&&(d=I<=2?1:I<=4?2:I<=16?4:8,d=Math.max(d,l)),h=0;h<b.length;h++){(T=b[h]).rect.x,T.rect.y,P=T.rect.width;var N=T.rect.height,F=T.img,D=(new Uint32Array(F.buffer),4*P),B=4;if(I<=256&&0==c){D=Math.ceil(d*P/8);for(var L=new Uint8Array(D*N),z=x[h],H=0;H<N;H++){g=H*D;var U=H*P;if(8==d)for(var V=0;V<P;V++)L[g+V]=z[U+V];else if(4==d)for(V=0;V<P;V++)L[g+(V>>1)]|=z[U+V]<<4-4*(1&V);else if(2==d)for(V=0;V<P;V++)L[g+(V>>2)]|=z[U+V]<<6-2*(3&V);else if(1==d)for(V=0;V<P;V++)L[g+(V>>3)]|=z[U+V]<<7-1*(7&V)}F=L,u=3,B=1}else if(0==v&&1==b.length){L=new Uint8Array(P*N*3);var W=P*N;for(g=0;g<W;g++){var G,q=4*g;L[G=3*g]=F[q],L[G+1]=F[q+1],L[G+2]=F[q+2]}F=L,u=2,B=3,D=3*P}T.img=F,T.bpl=D,T.bpp=B}return{ctype:u,depth:d,plte:w,frames:b}},YP.encode.framize=function(e,t,r,n,o,i){for(var a=[],s=0;s<e.length;s++){var l,c=new Uint8Array(e[s]),u=new Uint32Array(c.buffer),d=0,f=0,h=t,p=r,m=n?1:0;if(0!=s){for(var g=i||n||1==s||0!=a[s-2].dispose?1:2,v=0,b=1e9,y=0;y<g;y++){for(var w=new Uint8Array(e[s-1-y]),x=new Uint32Array(e[s-1-y]),S=t,C=r,k=-1,E=-1,O=0;O<r;O++)for(var A=0;A<t;A++)u[I=O*t+A]!=x[I]&&(A<S&&(S=A),A>k&&(k=A),O<C&&(C=O),O>E&&(E=O));-1==k&&(S=C=k=E=0),o&&(1&~S||S--,1&~C||C--);var T=(k-S+1)*(E-C+1);T<b&&(b=T,v=y,d=S,f=C,h=k-S+1,p=E-C+1)}w=new Uint8Array(e[s-1-v]),1==v&&(a[s-1].dispose=2),l=new Uint8Array(h*p*4),YP._copyTile(w,t,r,l,h,p,-d,-f,0),1==(m=YP._copyTile(c,t,r,l,h,p,-d,-f,3)?1:0)?YP.encode._prepareDiff(c,t,r,l,{x:d,y:f,width:h,height:p}):YP._copyTile(c,t,r,l,h,p,-d,-f,0)}else l=c.slice(0);a.push({rect:{x:d,y:f,width:h,height:p},img:l,blend:m,dispose:0})}if(n)for(s=0;s<a.length;s++)if(1!=(N=a[s]).blend){var j=N.rect,P=a[s-1].rect,M=Math.min(j.x,P.x),R=Math.min(j.y,P.y),_={x:M,y:R,width:Math.max(j.x+j.width,P.x+P.width)-M,height:Math.max(j.y+j.height,P.y+P.height)-R};a[s-1].dispose=1,s-1!=0&&YP.encode._updateFrame(e,t,r,a,s-1,_,o),YP.encode._updateFrame(e,t,r,a,s,_,o)}if(1!=e.length)for(var I=0;I<a.length;I++){var N;(N=a[I]).rect.width,N.rect.height}return a},YP.encode._updateFrame=function(e,t,r,n,o,i,a){for(var s=Uint8Array,l=Uint32Array,c=new s(e[o-1]),u=new l(e[o-1]),d=o+1<e.length?new s(e[o+1]):null,f=new s(e[o]),h=new l(f.buffer),p=t,m=r,g=-1,v=-1,b=0;b<i.height;b++)for(var y=0;y<i.width;y++){var w=i.x+y,x=i.y+b,S=x*t+w,C=h[S];0==C||0==n[o-1].dispose&&u[S]==C&&(null==d||0!=d[4*S+3])||(w<p&&(p=w),w>g&&(g=w),x<m&&(m=x),x>v&&(v=x))}-1==g&&(p=m=g=v=0),a&&(1&~p||p--,1&~m||m--),i={x:p,y:m,width:g-p+1,height:v-m+1};var k=n[o];k.rect=i,k.blend=1,k.img=new Uint8Array(i.width*i.height*4),0==n[o-1].dispose?(YP._copyTile(c,t,r,k.img,i.width,i.height,-i.x,-i.y,0),YP.encode._prepareDiff(f,t,r,k.img,i)):YP._copyTile(f,t,r,k.img,i.width,i.height,-i.x,-i.y,0)},YP.encode._prepareDiff=function(e,t,r,n,o){YP._copyTile(e,t,r,n,o.width,o.height,-o.x,-o.y,2)},YP.encode._filterZero=function(e,t,r,n,o,i,a){var s,l=[],c=[0,1,2,3,4];-1!=i?c=[i]:(t*n>5e5||1==r)&&(c=[0]),a&&(s={level:0});for(var u=a&&null!=UZIP?UZIP:fT(),d=0;d<c.length;d++){for(var f=0;f<t;f++)YP.encode._filterLine(o,e,f,n,r,c[d]);l.push(u.deflate(o,s))}var h,p=1e9;for(d=0;d<l.length;d++)l[d].length<p&&(h=d,p=l[d].length);return l[h]},YP.encode._filterLine=function(e,t,r,n,o,i){var a=r*n,s=a+r,l=YP.decode._paeth;if(e[s]=i,s++,0==i)if(n<500)for(var c=0;c<n;c++)e[s+c]=t[a+c];else e.set(new Uint8Array(t.buffer,a,n),s);else if(1==i){for(c=0;c<o;c++)e[s+c]=t[a+c];for(c=o;c<n;c++)e[s+c]=t[a+c]-t[a+c-o]+256&255}else if(0==r){for(c=0;c<o;c++)e[s+c]=t[a+c];if(2==i)for(c=o;c<n;c++)e[s+c]=t[a+c];if(3==i)for(c=o;c<n;c++)e[s+c]=t[a+c]-(t[a+c-o]>>1)+256&255;if(4==i)for(c=o;c<n;c++)e[s+c]=t[a+c]-l(t[a+c-o],0,0)+256&255}else{if(2==i)for(c=0;c<n;c++)e[s+c]=t[a+c]+256-t[a+c-n]&255;if(3==i){for(c=0;c<o;c++)e[s+c]=t[a+c]+256-(t[a+c-n]>>1)&255;for(c=o;c<n;c++)e[s+c]=t[a+c]+256-(t[a+c-n]+t[a+c-o]>>1)&255}if(4==i){for(c=0;c<o;c++)e[s+c]=t[a+c]+256-l(0,t[a+c-n],0)&255;for(c=o;c<n;c++)e[s+c]=t[a+c]+256-l(t[a+c-o],t[a+c-n],t[a+c-o-n])&255}}},YP.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var r=t,n=0;n<8;n++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r}return e}(),update:function(e,t,r,n){for(var o=0;o<n;o++)e=YP.crc.table[255&(e^t[r+o])]^e>>>8;return e},crc:function(e,t,r){return 4294967295^YP.crc.update(4294967295,e,t,r)}},YP.quantize=function(e,t){for(var r=new Uint8Array(e),n=r.slice(0),o=new Uint32Array(n.buffer),i=YP.quantize.getKDtree(n,t),a=i[0],s=i[1],l=(YP.quantize.planeDst,r),c=o,u=l.length,d=new Uint8Array(r.length>>2),f=0;f<u;f+=4){var h=l[f]*(1/255),p=l[f+1]*(1/255),m=l[f+2]*(1/255),g=l[f+3]*(1/255),v=YP.quantize.getNearest(a,h,p,m,g);d[f>>2]=v.ind,c[f>>2]=v.est.rgba}return{abuf:n.buffer,inds:d,plte:s}},YP.quantize.getKDtree=function(e,t,r){null==r&&(r=1e-4);var n=new Uint32Array(e.buffer),o={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};o.bst=YP.quantize.stats(e,o.i0,o.i1),o.est=YP.quantize.estats(o.bst);for(var i=[o];i.length<t;){for(var a=0,s=0,l=0;l<i.length;l++)i[l].est.L>a&&(a=i[l].est.L,s=l);if(a<r)break;var c=i[s],u=YP.quantize.splitPixels(e,n,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=u||c.i1<=u)c.est.L=0;else{var d={i0:c.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};d.bst=YP.quantize.stats(e,d.i0,d.i1),d.est=YP.quantize.estats(d.bst);var f={i0:u,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};for(f.bst={R:[],m:[],N:c.bst.N-d.bst.N},l=0;l<16;l++)f.bst.R[l]=c.bst.R[l]-d.bst.R[l];for(l=0;l<4;l++)f.bst.m[l]=c.bst.m[l]-d.bst.m[l];f.est=YP.quantize.estats(f.bst),c.left=d,c.right=f,i[s]=d,i.push(f)}}for(i.sort((function(e,t){return t.bst.N-e.bst.N})),l=0;l<i.length;l++)i[l].ind=l;return[o,i]},YP.quantize.getNearest=function(e,t,r,n,o){if(null==e.left)return e.tdst=YP.quantize.dist(e.est.q,t,r,n,o),e;var i=YP.quantize.planeDst(e.est,t,r,n,o),a=e.left,s=e.right;i>0&&(a=e.right,s=e.left);var l=YP.quantize.getNearest(a,t,r,n,o);if(l.tdst<=i*i)return l;var c=YP.quantize.getNearest(s,t,r,n,o);return c.tdst<l.tdst?c:l},YP.quantize.planeDst=function(e,t,r,n,o){var i=e.e;return i[0]*t+i[1]*r+i[2]*n+i[3]*o-e.eMq},YP.quantize.dist=function(e,t,r,n,o){var i=t-e[0],a=r-e[1],s=n-e[2],l=o-e[3];return i*i+a*a+s*s+l*l},YP.quantize.splitPixels=function(e,t,r,n,o,i){var a=YP.quantize.vecDot;for(n-=4;r<n;){for(;a(e,r,o)<=i;)r+=4;for(;a(e,n,o)>i;)n-=4;if(r>=n)break;var s=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=s,r+=4,n-=4}for(;a(e,r,o)>i;)r-=4;return r+4},YP.quantize.vecDot=function(e,t,r){return e[t]*r[0]+e[t+1]*r[1]+e[t+2]*r[2]+e[t+3]*r[3]},YP.quantize.stats=function(e,t,r){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=[0,0,0,0],i=r-t>>2,a=t;a<r;a+=4){var s=e[a]*(1/255),l=e[a+1]*(1/255),c=e[a+2]*(1/255),u=e[a+3]*(1/255);o[0]+=s,o[1]+=l,o[2]+=c,o[3]+=u,n[0]+=s*s,n[1]+=s*l,n[2]+=s*c,n[3]+=s*u,n[5]+=l*l,n[6]+=l*c,n[7]+=l*u,n[10]+=c*c,n[11]+=c*u,n[15]+=u*u}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:o,N:i}},YP.quantize.estats=function(e){var t=e.R,r=e.m,n=e.N,o=r[0],i=r[1],a=r[2],s=r[3],l=0==n?0:1/n,c=[t[0]-o*o*l,t[1]-o*i*l,t[2]-o*a*l,t[3]-o*s*l,t[4]-i*o*l,t[5]-i*i*l,t[6]-i*a*l,t[7]-i*s*l,t[8]-a*o*l,t[9]-a*i*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*o*l,t[13]-s*i*l,t[14]-s*a*l,t[15]-s*s*l],u=c,d=YP.M4,f=[.5,.5,.5,.5],h=0,p=0;if(0!=n)for(var m=0;m<10&&(f=d.multVec(u,f),p=Math.sqrt(d.dot(f,f)),f=d.sml(1/p,f),!(Math.abs(p-h)<1e-9));m++)h=p;var g=[o*l,i*l,a*l,s*l];return{Cov:c,q:g,e:f,L:h,eMq255:d.dot(d.sml(255,g),f),eMq:d.dot(f,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}},YP.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}},YP.encode.concatRGBA=function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].byteLength;var n=new Uint8Array(t),o=0;for(r=0;r<e.length;r++){for(var i=new Uint8Array(e[r]),a=i.length,s=0;s<a;s+=4){var l=i[s],c=i[s+1],u=i[s+2],d=i[s+3];0==d&&(l=c=u=0),n[o+s]=l,n[o+s+1]=c,n[o+s+2]=u,n[o+s+3]=d}o+=a}return n.buffer};const $P=YP;var ZP;!function(e){e.Greyscale="Greyscale",e.Truecolour="Truecolour",e.IndexedColour="IndexedColour",e.GreyscaleWithAlpha="GreyscaleWithAlpha",e.TruecolourWithAlpha="TruecolourWithAlpha"}(ZP||(ZP={}));var QP=function(){function e(e){var t=$P.decode(e),r=$P.toRGBA8(t);if(r.length>1)throw new Error("Animated PNGs are not supported");var n=function(e){for(var t=Math.floor(e.length/4),r=new Uint8Array(3*t),n=new Uint8Array(1*t),o=0,i=0,a=0;o<e.length;)r[i++]=e[o++],r[i++]=e[o++],r[i++]=e[o++],n[a++]=e[o++];return{rgbChannel:r,alphaChannel:n}}(new Uint8Array(r[0])),o=n.rgbChannel,i=n.alphaChannel;this.rgbChannel=o,i.some((function(e){return e<255}))&&(this.alphaChannel=i),this.type=function(e){if(0===e)return ZP.Greyscale;if(2===e)return ZP.Truecolour;if(3===e)return ZP.IndexedColour;if(4===e)return ZP.GreyscaleWithAlpha;if(6===e)return ZP.TruecolourWithAlpha;throw new Error("Unknown color type: "+e)}(t.ctype),this.width=t.width,this.height=t.height,this.bitsPerComponent=8}return e.load=function(t){return new e(t)},e}();const JP=function(){function e(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace="DeviceRGB"}return e.for=function(t){return bA(this,void 0,void 0,(function(){return yA(this,(function(r){return[2,new e(QP.load(t))]}))}))},e.prototype.embedIntoContext=function(e,t){return bA(this,void 0,void 0,(function(){var r,n;return yA(this,(function(o){return r=this.embedAlphaChannel(e),n=e.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:r}),t?(e.assign(t,n),[2,t]):[2,e.register(n)]}))}))},e.prototype.embedAlphaChannel=function(e){if(this.image.alphaChannel){var t=e.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return e.register(t)}},e}();const eM=function(){function e(e,t,r){this.bytes=e,this.start=t||0,this.pos=this.start,this.end=t&&r?t+r:this.bytes.length}return Object.defineProperty(e.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),e.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},e.prototype.getUint16=function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},e.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},e.prototype.getBytes=function(e,t){void 0===t&&(t=!1);var r=this.bytes,n=this.pos,o=this.end;if(e){var i=n+e;return i>o&&(i=o),this.pos=i,a=r.subarray(n,i),t?new Uint8ClampedArray(a):a}var a=r.subarray(n,o);return t?new Uint8ClampedArray(a):a},e.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},e.prototype.peekBytes=function(e,t){void 0===t&&(t=!1);var r=this.getBytes(e,t);return this.pos-=r.length,r},e.prototype.skip=function(e){e||(e=1),this.pos+=e},e.prototype.reset=function(){this.pos=this.start},e.prototype.moveStart=function(){this.start=this.pos},e.prototype.makeSubStream=function(t,r){return new e(this.bytes,t,r)},e.prototype.decode=function(){return this.bytes},e}();var tM=new Uint8Array(0);const rM=function(){function e(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=tM,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},enumerable:!1,configurable:!0}),e.prototype.getByte=function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},e.prototype.getUint16=function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},e.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},e.prototype.getBytes=function(e,t){var r;void 0===t&&(t=!1);var n=this.pos;if(e){for(this.ensureBuffer(n+e),r=n+e;!this.eof&&this.bufferLength<r;)this.readBlock();var o=this.bufferLength;r>o&&(r=o)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var i=this.buffer.subarray(n,r);return!t||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)},e.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},e.prototype.peekBytes=function(e,t){void 0===t&&(t=!1);var r=this.getBytes(e,t);return this.pos-=r.length,r},e.prototype.skip=function(e){e||(e=1),this.pos+=e},e.prototype.reset=function(){this.pos=0},e.prototype.makeSubStream=function(e,t){for(var r=e+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new eM(this.buffer,e,t)},e.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},e.prototype.readBlock=function(){throw new KT(this.constructor.name,"readBlock")},e.prototype.ensureBuffer=function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r<e;)r*=2;var n=new Uint8Array(r);return n.set(t),this.buffer=n},e}();var nM=function(e){return 32===e||9===e||13===e||10===e},oM=function(e){function t(t,r){var n=e.call(this,r)||this;return n.stream=t,n.input=new Uint8Array(5),r&&(r*=.8),n}return gA(t,e),t.prototype.readBlock=function(){for(var e=this.stream,t=e.getByte();nM(t);)t=e.getByte();if(-1!==t&&126!==t){var r,n,o=this.bufferLength;if(122===t){for(r=this.ensureBuffer(o+4),n=0;n<4;++n)r[o+n]=0;this.bufferLength+=4}else{var i=this.input;for(i[0]=t,n=1;n<5;++n){for(t=e.getByte();nM(t);)t=e.getByte();if(i[n]=t,-1===t||126===t)break}if(r=this.ensureBuffer(o+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)i[n]=117;this.eof=!0}var a=0;for(n=0;n<5;++n)a=85*a+(i[n]-33);for(n=3;n>=0;--n)r[o+n]=255&a,a>>=8}}else this.eof=!0},t}(rM);const iM=oM;var aM=function(e){function t(t,r){var n=e.call(this,r)||this;return n.stream=t,n.firstDigit=-1,r&&(r*=.5),n}return gA(t,e),t.prototype.readBlock=function(){var e=this.stream.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t),n=this.bufferLength,o=this.firstDigit,i=0,a=e.length;i<a;i++){var s=e[i],l=void 0;if(s>=48&&s<=57)l=15&s;else{if(!(s>=65&&s<=70||s>=97&&s<=102)){if(62===s){this.eof=!0;break}continue}l=9+(15&s)}o<0?o=l:(r[n++]=o<<4|l,o=-1)}o>=0&&this.eof&&(r[n++]=o<<4,o=-1),this.firstDigit=o,this.bufferLength=n}else this.eof=!0},t}(rM);const sM=aM;var lM=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cM=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),uM=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),dM=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],fM=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],hM=function(e){function t(t,r){var n=e.call(this,r)||this;n.stream=t;var o=t.getByte(),i=t.getByte();if(-1===o||-1===i)throw new Error("Invalid header in flate stream: "+o+", "+i);if(8!=(15&o))throw new Error("Unknown compression method in flate stream: "+o+", "+i);if(((o<<8)+i)%31!=0)throw new Error("Bad FCHECK in flate stream: "+o+", "+i);if(32&i)throw new Error("FDICT bit set in flate stream: "+o+", "+i);return n.codeSize=0,n.codeBuf=0,n}return gA(t,e),t.prototype.readBlock=function(){var e,t,r=this.stream,n=this.getBits(3);if(1&n&&(this.eof=!0),0!=(n>>=1)){var o,i;if(1===n)o=dM,i=fM;else{if(2!==n)throw new Error("Unknown block type in flate stream");var a=this.getBits(5)+257,s=this.getBits(5)+1,l=this.getBits(4)+4,c=new Uint8Array(lM.length),u=void 0;for(u=0;u<l;++u)c[lM[u]]=this.getBits(3);var d=this.generateHuffmanTable(c);t=0,u=0;for(var f=a+s,h=new Uint8Array(f),p=void 0,m=void 0,g=void 0;u<f;){var v=this.getCode(d);if(16===v)p=2,m=3,g=t;else if(17===v)p=3,m=3,g=t=0;else{if(18!==v){h[u++]=t=v;continue}p=7,m=11,g=t=0}for(var b=this.getBits(p)+m;b-- >0;)h[u++]=g}o=this.generateHuffmanTable(h.subarray(0,a)),i=this.generateHuffmanTable(h.subarray(a,f))}for(var y=(e=this.buffer)?e.length:0,w=this.bufferLength;;){var x=this.getCode(o);if(x<256)w+1>=y&&(y=(e=this.ensureBuffer(w+1)).length),e[w++]=x;else{if(256===x)return void(this.bufferLength=w);var S=(x=cM[x-=257])>>16;S>0&&(S=this.getBits(S)),t=(65535&x)+S,x=this.getCode(i),(S=(x=uM[x])>>16)>0&&(S=this.getBits(S));var C=(65535&x)+S;w+t>=y&&(y=(e=this.ensureBuffer(w+t)).length);for(var k=0;k<t;++k,++w)e[w]=e[w-C]}}}else{var E=void 0;if(-1===(E=r.getByte()))throw new Error("Bad block header in flate stream");var O=E;if(-1===(E=r.getByte()))throw new Error("Bad block header in flate stream");if(O|=E<<8,-1===(E=r.getByte()))throw new Error("Bad block header in flate stream");var A=E;if(-1===(E=r.getByte()))throw new Error("Bad block header in flate stream");if((A|=E<<8)!=(65535&~O)&&(0!==O||0!==A))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var T=this.bufferLength;e=this.ensureBuffer(T+O);var j=T+O;if(this.bufferLength=j,0===O)-1===r.peekByte()&&(this.eof=!0);else for(var P=T;P<j;++P){if(-1===(E=r.getByte())){this.eof=!0;break}e[P]=E}}},t.prototype.getBits=function(e){for(var t,r=this.stream,n=this.codeSize,o=this.codeBuf;n<e;){if(-1===(t=r.getByte()))throw new Error("Bad encoding in flate stream");o|=t<<n,n+=8}return t=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=n-=e,t},t.prototype.getCode=function(e){for(var t,r=this.stream,n=e[0],o=e[1],i=this.codeSize,a=this.codeBuf;i<o&&-1!==(t=r.getByte());)a|=t<<i,i+=8;var s=n[a&(1<<o)-1];"number"==typeof n&&console.log("FLATE:",s);var l=s>>16,c=65535&s;if(l<1||i<l)throw new Error("Bad encoding in flate stream");return this.codeBuf=a>>l,this.codeSize=i-l,c},t.prototype.generateHuffmanTable=function(e){var t,r=e.length,n=0;for(t=0;t<r;++t)e[t]>n&&(n=e[t]);for(var o=1<<n,i=new Int32Array(o),a=1,s=0,l=2;a<=n;++a,s<<=1,l<<=1)for(var c=0;c<r;++c)if(e[c]===a){var u=0,d=s;for(t=0;t<a;++t)u=u<<1|1&d,d>>=1;for(t=u;t<o;t+=l)i[t]=a<<16|c;++s}return[i,n]},t}(rM);const pM=hM;var mM=function(e){function t(t,r,n){var o=e.call(this,r)||this;o.stream=t,o.cachedData=0,o.bitsCached=0;for(var i=4096,a={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0},s=0;s<256;++s)a.dictionaryValues[s]=s,a.dictionaryLengths[s]=1;return o.lzwState=a,o}return gA(t,e),t.prototype.readBlock=function(){var e,t,r,n=1024,o=this.lzwState;if(o){var i=o.earlyChange,a=o.nextCode,s=o.dictionaryValues,l=o.dictionaryLengths,c=o.dictionaryPrevCodes,u=o.codeLength,d=o.prevCode,f=o.currentSequence,h=o.currentSequenceLength,p=0,m=this.bufferLength,g=this.ensureBuffer(this.bufferLength+n);for(e=0;e<512;e++){var v=this.readBits(u),b=h>0;if(!v||v<256)f[0]=v,h=1;else{if(!(v>=258)){if(256===v){u=9,a=258,h=0;continue}this.eof=!0,delete this.lzwState;break}if(v<a)for(t=(h=l[v])-1,r=v;t>=0;t--)f[t]=s[r],r=c[r];else f[h++]=f[0]}if(b&&(c[a]=d,l[a]=l[d]+1,s[a]=f[0],u=++a+i&a+i-1?u:0|Math.min(Math.log(a+i)/.6931471805599453+1,12)),d=v,n<(p+=h)){do{n+=512}while(n<p);g=this.ensureBuffer(this.bufferLength+n)}for(t=0;t<h;t++)g[m++]=f[t]}o.nextCode=a,o.codeLength=u,o.prevCode=d,o.currentSequenceLength=h,this.bufferLength=m}},t.prototype.readBits=function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var n=this.stream.getByte();if(-1===n)return this.eof=!0,null;r=r<<8|n,t+=8}return this.bitsCached=t-=e,this.cachedData=r,r>>>t&(1<<e)-1},t}(rM);const gM=mM;var vM=function(e){function t(t,r){var n=e.call(this,r)||this;return n.stream=t,n}return gA(t,e),t.prototype.readBlock=function(){var e=this.stream.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,n=e[0];if(n<128){if((t=this.ensureBuffer(r+n+1))[r++]=e[1],n>0){var o=this.stream.getBytes(n);t.set(o,r),r+=n}}else{n=257-n;var i=e[1];t=this.ensureBuffer(r+n+1);for(var a=0;a<n;a++)t[r++]=i}this.bufferLength=r}},t}(rM);const bM=vM;var yM=function(e,t,r){if(t===Dj.of("FlateDecode"))return new pM(e);if(t===Dj.of("LZWDecode")){var n=1;if(r instanceof Hj){var o=r.lookup(Dj.of("EarlyChange"));o instanceof kj&&(n=o.asNumber())}return new gM(e,void 0,n)}if(t===Dj.of("ASCII85Decode"))return new iM(e);if(t===Dj.of("ASCIIHexDecode"))return new sM(e);if(t===Dj.of("RunLengthDecode"))return new bM(e);throw new $T(t.asString())},wM=function(e){var t=e.dict,r=e.contents,n=new eM(r),o=t.lookup(Dj.of("Filter")),i=t.lookup(Dj.of("DecodeParms"));if(o instanceof Dj)n=yM(n,o,i);else if(o instanceof Oj)for(var a=0,s=o.size();a<s;a++)n=yM(n,o.lookup(a,Dj),i&&i.lookupMaybe(a,Hj));else if(o)throw new YT([Dj,Oj],o);return n},xM=function(){function e(e,t,r){this.page=e;var n=null!=t?t:function(e){var t=e.MediaBox();return{left:0,bottom:0,right:t.lookup(2,kj).asNumber()-t.lookup(0,kj).asNumber(),top:t.lookup(3,kj).asNumber()-t.lookup(1,kj).asNumber()}}(e);this.width=n.right-n.left,this.height=n.top-n.bottom,this.boundingBox=n,this.transformationMatrix=null!=r?r:function(e){return[1,0,0,1,-e.left,-e.bottom]}(n)}return e.for=function(t,r,n){return bA(this,void 0,void 0,(function(){return yA(this,(function(o){return[2,new e(t,r,n)]}))}))},e.prototype.embedIntoContext=function(e,t){return bA(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,u,d;return yA(this,(function(f){if(r=this.page.normalizedEntries(),n=r.Contents,o=r.Resources,!n)throw new QT;return i=this.decodeContents(n),a=this.boundingBox,s=a.left,l=a.bottom,c=a.right,u=a.top,d=e.flateStream(i,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[s,l,c,u],Matrix:this.transformationMatrix,Resources:o}),t?(e.assign(t,d),[2,t]):[2,e.register(d)]}))}))},e.prototype.decodeContents=function(e){for(var t=Uint8Array.of(wj.Newline),r=[],n=0,o=e.size();n<o;n++){var i=e.lookup(n,Vj),a=void 0;if(i instanceof Gj)a=wM(i).decode();else{if(!(i instanceof rP))throw new JT(i);a=i.getUnencodedContents()}r.push(a,t)}return GA.apply(void 0,r)},e}();const SM=xM;var CM,kM,EM,OM,AM=function(e,t){if(void 0!==e)return t[e]};!function(e){e.UseNone="UseNone",e.UseOutlines="UseOutlines",e.UseThumbs="UseThumbs",e.UseOC="UseOC"}(CM||(CM={})),function(e){e.L2R="L2R",e.R2L="R2L"}(kM||(kM={})),function(e){e.None="None",e.AppDefault="AppDefault"}(EM||(EM={})),function(e){e.Simplex="Simplex",e.DuplexFlipShortEdge="DuplexFlipShortEdge",e.DuplexFlipLongEdge="DuplexFlipLongEdge"}(OM||(OM={}));var TM=function(){function e(e){this.dict=e}return e.prototype.lookupBool=function(e){var t=this.dict.lookup(Dj.of(e));if(t instanceof jj)return t},e.prototype.lookupName=function(e){var t=this.dict.lookup(Dj.of(e));if(t instanceof Dj)return t},e.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},e.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},e.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},e.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},e.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},e.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},e.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},e.prototype.Direction=function(){return this.lookupName("Direction")},e.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},e.prototype.Duplex=function(){return this.lookupName("Duplex")},e.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},e.prototype.PrintPageRange=function(){var e=this.dict.lookup(Dj.of("PrintPageRange"));if(e instanceof Oj)return e},e.prototype.NumCopies=function(){var e=this.dict.lookup(Dj.of("NumCopies"));if(e instanceof kj)return e},e.prototype.getHideToolbar=function(){var e,t;return null!==(t=null===(e=this.HideToolbar())||void 0===e?void 0:e.asBoolean())&&void 0!==t&&t},e.prototype.getHideMenubar=function(){var e,t;return null!==(t=null===(e=this.HideMenubar())||void 0===e?void 0:e.asBoolean())&&void 0!==t&&t},e.prototype.getHideWindowUI=function(){var e,t;return null!==(t=null===(e=this.HideWindowUI())||void 0===e?void 0:e.asBoolean())&&void 0!==t&&t},e.prototype.getFitWindow=function(){var e,t;return null!==(t=null===(e=this.FitWindow())||void 0===e?void 0:e.asBoolean())&&void 0!==t&&t},e.prototype.getCenterWindow=function(){var e,t;return null!==(t=null===(e=this.CenterWindow())||void 0===e?void 0:e.asBoolean())&&void 0!==t&&t},e.prototype.getDisplayDocTitle=function(){var e,t;return null!==(t=null===(e=this.DisplayDocTitle())||void 0===e?void 0:e.asBoolean())&&void 0!==t&&t},e.prototype.getNonFullScreenPageMode=function(){var e,t,r=null===(e=this.NonFullScreenPageMode())||void 0===e?void 0:e.decodeText();return null!==(t=AM(r,CM))&&void 0!==t?t:CM.UseNone},e.prototype.getReadingDirection=function(){var e,t,r=null===(e=this.Direction())||void 0===e?void 0:e.decodeText();return null!==(t=AM(r,kM))&&void 0!==t?t:kM.L2R},e.prototype.getPrintScaling=function(){var e,t,r=null===(e=this.PrintScaling())||void 0===e?void 0:e.decodeText();return null!==(t=AM(r,EM))&&void 0!==t?t:EM.AppDefault},e.prototype.getDuplex=function(){var e,t=null===(e=this.Duplex())||void 0===e?void 0:e.decodeText();return AM(t,OM)},e.prototype.getPickTrayByPDFSize=function(){var e;return null===(e=this.PickTrayByPDFSize())||void 0===e?void 0:e.asBoolean()},e.prototype.getPrintPageRange=function(){var e=this.PrintPageRange();if(!e)return[];for(var t=[],r=0;r<e.size();r+=2){var n=e.lookup(r,kj).asNumber(),o=e.lookup(r+1,kj).asNumber();t.push({start:n,end:o})}return t},e.prototype.getNumCopies=function(){var e,t;return null!==(t=null===(e=this.NumCopies())||void 0===e?void 0:e.asNumber())&&void 0!==t?t:1},e.prototype.setHideToolbar=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("HideToolbar"),t)},e.prototype.setHideMenubar=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("HideMenubar"),t)},e.prototype.setHideWindowUI=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("HideWindowUI"),t)},e.prototype.setFitWindow=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("FitWindow"),t)},e.prototype.setCenterWindow=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("CenterWindow"),t)},e.prototype.setDisplayDocTitle=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("DisplayDocTitle"),t)},e.prototype.setNonFullScreenPageMode=function(e){PT(e,"nonFullScreenPageMode",CM);var t=Dj.of(e);this.dict.set(Dj.of("NonFullScreenPageMode"),t)},e.prototype.setReadingDirection=function(e){PT(e,"readingDirection",kM);var t=Dj.of(e);this.dict.set(Dj.of("Direction"),t)},e.prototype.setPrintScaling=function(e){PT(e,"printScaling",EM);var t=Dj.of(e);this.dict.set(Dj.of("PrintScaling"),t)},e.prototype.setDuplex=function(e){PT(e,"duplex",OM);var t=Dj.of(e);this.dict.set(Dj.of("Duplex"),t)},e.prototype.setPickTrayByPDFSize=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("PickTrayByPDFSize"),t)},e.prototype.setPrintPageRange=function(e){Array.isArray(e)||(e=[e]);for(var t=[],r=0,n=e.length;r<n;r++)t.push(e[r].start),t.push(e[r].end);NT(t,"printPageRange",["number"]);var o=this.dict.context.obj(t);this.dict.set(Dj.of("PrintPageRange"),o)},e.prototype.setNumCopies=function(e){FT(e,"numCopies",1,Number.MAX_VALUE),function(e){if(!Number.isInteger(e))throw new Error(TT("numCopies")+" must be an integer, but was actually "+e)}(e);var t=this.dict.context.obj(e);this.dict.set(Dj.of("NumCopies"),t)},e.fromDict=function(t){return new e(t)},e.create=function(t){return new e(t.obj({}))},e}();const jM=TM;var PM=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,MM=function(){function e(e,t){this.dict=e,this.ref=t}return e.prototype.T=function(){return this.dict.lookupMaybe(Dj.of("T"),IP,AP)},e.prototype.Ff=function(){var e=this.getInheritableAttribute(Dj.of("Ff"));return this.dict.context.lookupMaybe(e,kj)},e.prototype.V=function(){var e=this.getInheritableAttribute(Dj.of("V"));return this.dict.context.lookup(e)},e.prototype.Kids=function(){return this.dict.lookupMaybe(Dj.of("Kids"),Oj)},e.prototype.DA=function(){var e=this.dict.lookup(Dj.of("DA"));if(e instanceof IP||e instanceof AP)return e},e.prototype.setKids=function(e){this.dict.set(Dj.of("Kids"),this.dict.context.obj(e))},e.prototype.getParent=function(){var t=this.dict.get(Dj.of("Parent"));if(t instanceof Yj)return new e(this.dict.lookup(Dj.of("Parent"),Hj),t)},e.prototype.setParent=function(e){e?this.dict.set(Dj.of("Parent"),e):this.dict.delete(Dj.of("Parent"))},e.prototype.getFullyQualifiedName=function(){var e=this.getParent();return e?e.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},e.prototype.getPartialName=function(){var e;return null===(e=this.T())||void 0===e?void 0:e.decodeText()},e.prototype.setPartialName=function(e){e?this.dict.set(Dj.of("T"),AP.fromText(e)):this.dict.delete(Dj.of("T"))},e.prototype.setDefaultAppearance=function(e){this.dict.set(Dj.of("DA"),IP.of(e))},e.prototype.getDefaultAppearance=function(){var e=this.DA();return e instanceof AP?e.decodeText():null==e?void 0:e.asString()},e.prototype.setFontSize=function(e){var t,r=null!==(t=this.getFullyQualifiedName())&&void 0!==t?t:"",n=this.getDefaultAppearance();if(!n)throw new lj(r);var o=UA(n,PM);if(!o.match)throw new cj(r);var i=n.slice(0,o.pos-o.match[0].length),a=o.pos<=n.length?n.slice(o.pos):"",s=i+" /"+o.match[1]+" "+e+" Tf "+a;this.setDefaultAppearance(s)},e.prototype.getFlags=function(){var e,t;return null!==(t=null===(e=this.Ff())||void 0===e?void 0:e.asNumber())&&void 0!==t?t:0},e.prototype.setFlags=function(e){this.dict.set(Dj.of("Ff"),kj.of(e))},e.prototype.hasFlag=function(e){return 0!==(this.getFlags()&e)},e.prototype.setFlag=function(e){var t=this.getFlags();this.setFlags(t|e)},e.prototype.clearFlag=function(e){var t=this.getFlags();this.setFlags(t&~e)},e.prototype.setFlagTo=function(e,t){t?this.setFlag(e):this.clearFlag(e)},e.prototype.getInheritableAttribute=function(e){var t;return this.ascend((function(r){t||(t=r.dict.get(e))})),t},e.prototype.ascend=function(e){e(this);var t=this.getParent();t&&t.ascend(e)},e}();const RM=MM;var _M=function(){function e(e){this.dict=e}return e.prototype.W=function(){var e=this.dict.lookup(Dj.of("W"));if(e instanceof kj)return e},e.prototype.getWidth=function(){var e,t;return null!==(t=null===(e=this.W())||void 0===e?void 0:e.asNumber())&&void 0!==t?t:1},e.prototype.setWidth=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("W"),t)},e.fromDict=function(t){return new e(t)},e}();const IM=_M;var NM=function(){function e(e){this.dict=e}return e.prototype.Rect=function(){return this.dict.lookup(Dj.of("Rect"),Oj)},e.prototype.AP=function(){return this.dict.lookupMaybe(Dj.of("AP"),Hj)},e.prototype.F=function(){var e=this.dict.lookup(Dj.of("F"));return this.dict.context.lookupMaybe(e,kj)},e.prototype.getRectangle=function(){var e,t=this.Rect();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:{x:0,y:0,width:0,height:0}},e.prototype.setRectangle=function(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=this.dict.context.obj([t,r,t+n,r+o]);this.dict.set(Dj.of("Rect"),i)},e.prototype.getAppearanceState=function(){var e=this.dict.lookup(Dj.of("AS"));if(e instanceof Dj)return e},e.prototype.setAppearanceState=function(e){this.dict.set(Dj.of("AS"),e)},e.prototype.setAppearances=function(e){this.dict.set(Dj.of("AP"),e)},e.prototype.ensureAP=function(){var e=this.AP();return e||(e=this.dict.context.obj({}),this.dict.set(Dj.of("AP"),e)),e},e.prototype.getNormalAppearance=function(){var e=this.ensureAP().get(Dj.of("N"));if(e instanceof Yj||e instanceof Hj)return e;throw new Error("Unexpected N type: "+(null==e?void 0:e.constructor.name))},e.prototype.setNormalAppearance=function(e){this.ensureAP().set(Dj.of("N"),e)},e.prototype.setRolloverAppearance=function(e){this.ensureAP().set(Dj.of("R"),e)},e.prototype.setDownAppearance=function(e){this.ensureAP().set(Dj.of("D"),e)},e.prototype.removeRolloverAppearance=function(){var e=this.AP();null==e||e.delete(Dj.of("R"))},e.prototype.removeDownAppearance=function(){var e=this.AP();null==e||e.delete(Dj.of("D"))},e.prototype.getAppearances=function(){var e=this.AP();if(e)return{normal:e.lookup(Dj.of("N"),Hj,Vj),rollover:e.lookupMaybe(Dj.of("R"),Hj,Vj),down:e.lookupMaybe(Dj.of("D"),Hj,Vj)}},e.prototype.getFlags=function(){var e,t;return null!==(t=null===(e=this.F())||void 0===e?void 0:e.asNumber())&&void 0!==t?t:0},e.prototype.setFlags=function(e){this.dict.set(Dj.of("F"),kj.of(e))},e.prototype.hasFlag=function(e){return 0!==(this.getFlags()&e)},e.prototype.setFlag=function(e){var t=this.getFlags();this.setFlags(t|e)},e.prototype.clearFlag=function(e){var t=this.getFlags();this.setFlags(t&~e)},e.prototype.setFlagTo=function(e,t){t?this.setFlag(e):this.clearFlag(e)},e.fromDict=function(t){return new e(t)},e}();const FM=NM;var DM=function(){function e(e){this.dict=e}return e.prototype.R=function(){var e=this.dict.lookup(Dj.of("R"));if(e instanceof kj)return e},e.prototype.BC=function(){var e=this.dict.lookup(Dj.of("BC"));if(e instanceof Oj)return e},e.prototype.BG=function(){var e=this.dict.lookup(Dj.of("BG"));if(e instanceof Oj)return e},e.prototype.CA=function(){var e=this.dict.lookup(Dj.of("CA"));if(e instanceof AP||e instanceof IP)return e},e.prototype.RC=function(){var e=this.dict.lookup(Dj.of("RC"));if(e instanceof AP||e instanceof IP)return e},e.prototype.AC=function(){var e=this.dict.lookup(Dj.of("AC"));if(e instanceof AP||e instanceof IP)return e},e.prototype.getRotation=function(){var e;return null===(e=this.R())||void 0===e?void 0:e.asNumber()},e.prototype.getBorderColor=function(){var e=this.BC();if(e){for(var t=[],r=0,n=null==e?void 0:e.size();r<n;r++){var o=e.get(r);o instanceof kj&&t.push(o.asNumber())}return t}},e.prototype.getBackgroundColor=function(){var e=this.BG();if(e){for(var t=[],r=0,n=null==e?void 0:e.size();r<n;r++){var o=e.get(r);o instanceof kj&&t.push(o.asNumber())}return t}},e.prototype.getCaptions=function(){var e=this.CA(),t=this.RC(),r=this.AC();return{normal:null==e?void 0:e.decodeText(),rollover:null==t?void 0:t.decodeText(),down:null==r?void 0:r.decodeText()}},e.prototype.setRotation=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("R"),t)},e.prototype.setBorderColor=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("BC"),t)},e.prototype.setBackgroundColor=function(e){var t=this.dict.context.obj(e);this.dict.set(Dj.of("BG"),t)},e.prototype.setCaptions=function(e){var t=AP.fromText(e.normal);if(this.dict.set(Dj.of("CA"),t),e.rollover){var r=AP.fromText(e.rollover);this.dict.set(Dj.of("RC"),r)}else this.dict.delete(Dj.of("RC"));if(e.down){var n=AP.fromText(e.down);this.dict.set(Dj.of("AC"),n)}else this.dict.delete(Dj.of("AC"))},e.fromDict=function(t){return new e(t)},e}();const BM=DM;var LM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.MK=function(){var e=this.dict.lookup(Dj.of("MK"));if(e instanceof Hj)return e},t.prototype.BS=function(){var e=this.dict.lookup(Dj.of("BS"));if(e instanceof Hj)return e},t.prototype.DA=function(){var e=this.dict.lookup(Dj.of("DA"));if(e instanceof IP||e instanceof AP)return e},t.prototype.P=function(){var e=this.dict.get(Dj.of("P"));if(e instanceof Yj)return e},t.prototype.setP=function(e){this.dict.set(Dj.of("P"),e)},t.prototype.setDefaultAppearance=function(e){this.dict.set(Dj.of("DA"),IP.of(e))},t.prototype.getDefaultAppearance=function(){var e=this.DA();return e instanceof AP?e.decodeText():null==e?void 0:e.asString()},t.prototype.getAppearanceCharacteristics=function(){var e=this.MK();if(e)return BM.fromDict(e)},t.prototype.getOrCreateAppearanceCharacteristics=function(){var e=this.MK();if(e)return BM.fromDict(e);var t=BM.fromDict(this.dict.context.obj({}));return this.dict.set(Dj.of("MK"),t.dict),t},t.prototype.getBorderStyle=function(){var e=this.BS();if(e)return IM.fromDict(e)},t.prototype.getOrCreateBorderStyle=function(){var e=this.BS();if(e)return IM.fromDict(e);var t=IM.fromDict(this.dict.context.obj({}));return this.dict.set(Dj.of("BS"),t.dict),t},t.prototype.getOnValue=function(){var e,t=null===(e=this.getAppearances())||void 0===e?void 0:e.normal;if(t instanceof Hj)for(var r=t.keys(),n=0,o=r.length;n<o;n++){var i=r[n];if(i!==Dj.of("Off"))return i}},t.fromDict=function(e){return new t(e)},t.create=function(e,r){return new t(e.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:r}))},t}(FM);const zM=LM;var HM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.FT=function(){var e=this.getInheritableAttribute(Dj.of("FT"));return this.dict.context.lookup(e,Dj)},t.prototype.getWidgets=function(){var e=this.Kids();if(!e)return[zM.fromDict(this.dict)];for(var t=new Array(e.size()),r=0,n=e.size();r<n;r++){var o=e.lookup(r,Hj);t[r]=zM.fromDict(o)}return t},t.prototype.addWidget=function(e){this.normalizedEntries().Kids.push(e)},t.prototype.removeWidget=function(e){var t=this.Kids();if(t){if(e<0||e>t.size())throw new ij(e,0,t.size());t.remove(e)}else{if(0!==e)throw new ij(e,0,0);this.setKids([])}},t.prototype.normalizedEntries=function(){var e=this.Kids();return e||(e=this.dict.context.obj([this.ref]),this.dict.set(Dj.of("Kids"),e)),{Kids:e}},t.fromDict=function(e,r){return new t(e,r)},t}(RM);const UM=HM;var VM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.Opt=function(){return this.dict.lookupMaybe(Dj.of("Opt"),IP,AP,Oj)},t.prototype.setOpt=function(e){this.dict.set(Dj.of("Opt"),this.dict.context.obj(e))},t.prototype.getExportValues=function(){var e=this.Opt();if(e){if(e instanceof IP||e instanceof AP)return[e];for(var t=[],r=0,n=e.size();r<n;r++){var o=e.lookup(r);(o instanceof IP||o instanceof AP)&&t.push(o)}return t}},t.prototype.removeExportValue=function(e){var t=this.Opt();if(t)if(t instanceof IP||t instanceof AP){if(0!==e)throw new ij(e,0,0);this.setOpt([])}else{if(e<0||e>t.size())throw new ij(e,0,t.size());t.remove(e)}},t.prototype.normalizeExportValues=function(){for(var e,t,r,n,o=null!==(e=this.getExportValues())&&void 0!==e?e:[],i=[],a=this.getWidgets(),s=0,l=a.length;s<l;s++){var c=a[s],u=null!==(t=o[s])&&void 0!==t?t:AP.fromText(null!==(n=null===(r=c.getOnValue())||void 0===r?void 0:r.decodeText())&&void 0!==n?n:"");i.push(u)}this.setOpt(i)},t.prototype.addOpt=function(e,t){var r;this.normalizeExportValues();var n,o=e.decodeText();if(t)for(var i=null!==(r=this.getExportValues())&&void 0!==r?r:[],a=0,s=i.length;a<s;a++)i[a].decodeText()===o&&(n=a);var l=this.Opt();return l.push(e),null!=n?n:l.size()-1},t.prototype.addWidgetWithOpt=function(e,t,r){var n=this.addOpt(t,r),o=Dj.of(String(n));return this.addWidget(e),o},t}(UM);const WM=VM;var GM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.setValue=function(e){var t;if(e!==(null!==(t=this.getOnValue())&&void 0!==t?t:Dj.of("Yes"))&&e!==Dj.of("Off"))throw new aj;this.dict.set(Dj.of("V"),e);for(var r=this.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n],a=i.getOnValue()===e?e:Dj.of("Off");i.setAppearanceState(a)}},t.prototype.getValue=function(){var e=this.V();return e instanceof Dj?e:Dj.of("Off")},t.prototype.getOnValue=function(){var e=this.getWidgets()[0];return null==e?void 0:e.getOnValue()},t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Btn",Kids:[]});return new t(r,e.register(r))},t}(WM);const qM=GM;var KM,XM,YM,$M,ZM=function(e){return 1<<e};!function(e){e[e.ReadOnly=ZM(0)]="ReadOnly",e[e.Required=ZM(1)]="Required",e[e.NoExport=ZM(2)]="NoExport"}(KM||(KM={})),function(e){e[e.NoToggleToOff=ZM(14)]="NoToggleToOff",e[e.Radio=ZM(15)]="Radio",e[e.PushButton=ZM(16)]="PushButton",e[e.RadiosInUnison=ZM(25)]="RadiosInUnison"}(XM||(XM={})),function(e){e[e.Multiline=ZM(12)]="Multiline",e[e.Password=ZM(13)]="Password",e[e.FileSelect=ZM(20)]="FileSelect",e[e.DoNotSpellCheck=ZM(22)]="DoNotSpellCheck",e[e.DoNotScroll=ZM(23)]="DoNotScroll",e[e.Comb=ZM(24)]="Comb",e[e.RichText=ZM(25)]="RichText"}(YM||(YM={})),function(e){e[e.Combo=ZM(17)]="Combo",e[e.Edit=ZM(18)]="Edit",e[e.Sort=ZM(19)]="Sort",e[e.MultiSelect=ZM(21)]="MultiSelect",e[e.DoNotSpellCheck=ZM(22)]="DoNotSpellCheck",e[e.CommitOnSelChange=ZM(26)]="CommitOnSelChange"}($M||($M={}));var QM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.setValues=function(e){if(this.hasFlag($M.Combo)&&!this.hasFlag($M.Edit)&&!this.valuesAreValid(e))throw new aj;if(0===e.length&&this.dict.delete(Dj.of("V")),1===e.length&&this.dict.set(Dj.of("V"),e[0]),e.length>1){if(!this.hasFlag($M.MultiSelect))throw new sj;this.dict.set(Dj.of("V"),this.dict.context.obj(e))}this.updateSelectedIndices(e)},t.prototype.valuesAreValid=function(e){for(var t=this.getOptions(),r=function(r,n){var o=e[r].decodeText();if(!t.find((function(e){return o===(e.display||e.value).decodeText()})))return{value:!1}},n=0,o=e.length;n<o;n++){var i=r(n);if("object"==typeof i)return i.value}return!0},t.prototype.updateSelectedIndices=function(e){if(e.length>1){for(var t=new Array(e.length),r=this.getOptions(),n=function(n,o){var i=e[n].decodeText();t[n]=r.findIndex((function(e){return i===(e.display||e.value).decodeText()}))},o=0,i=e.length;o<i;o++)n(o);this.dict.set(Dj.of("I"),this.dict.context.obj(t.sort()))}else this.dict.delete(Dj.of("I"))},t.prototype.getValues=function(){var e=this.V();if(e instanceof IP||e instanceof AP)return[e];if(e instanceof Oj){for(var t=[],r=0,n=e.size();r<n;r++){var o=e.lookup(r);(o instanceof IP||o instanceof AP)&&t.push(o)}return t}return[]},t.prototype.Opt=function(){return this.dict.lookupMaybe(Dj.of("Opt"),IP,AP,Oj)},t.prototype.setOptions=function(e){for(var t=new Array(e.length),r=0,n=e.length;r<n;r++){var o=e[r],i=o.value,a=o.display;t[r]=this.dict.context.obj([i,a||i])}this.dict.set(Dj.of("Opt"),this.dict.context.obj(t))},t.prototype.getOptions=function(){var e=this.Opt();if(e instanceof IP||e instanceof AP)return[{value:e,display:e}];if(e instanceof Oj){for(var t=[],r=0,n=e.size();r<n;r++){var o=e.lookup(r);if((o instanceof IP||o instanceof AP)&&t.push({value:o,display:o}),o instanceof Oj&&o.size()>0){var i=o.lookup(0,IP,AP),a=o.lookupMaybe(1,IP,AP);t.push({value:i,display:a||i})}}return t}return[]},t}(UM);const JM=QM;var eR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Ch",Ff:$M.Combo,Kids:[]});return new t(r,e.register(r))},t}(JM);const tR=eR;var rR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.addField=function(e){var t=this.normalizedEntries().Kids;null==t||t.push(e)},t.prototype.normalizedEntries=function(){var e=this.Kids();return e||(e=this.dict.context.obj([]),this.dict.set(Dj.of("Kids"),e)),{Kids:e}},t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({});return new t(r,e.register(r))},t}(RM);const nR=rR,oR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.fromDict=function(e,r){return new t(e,r)},t}(UM);var iR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.MaxLen=function(){var e=this.dict.lookup(Dj.of("MaxLen"));if(e instanceof kj)return e},t.prototype.Q=function(){var e=this.dict.lookup(Dj.of("Q"));if(e instanceof kj)return e},t.prototype.setMaxLength=function(e){this.dict.set(Dj.of("MaxLen"),kj.of(e))},t.prototype.removeMaxLength=function(){this.dict.delete(Dj.of("MaxLen"))},t.prototype.getMaxLength=function(){var e;return null===(e=this.MaxLen())||void 0===e?void 0:e.asNumber()},t.prototype.setQuadding=function(e){this.dict.set(Dj.of("Q"),kj.of(e))},t.prototype.getQuadding=function(){var e;return null===(e=this.Q())||void 0===e?void 0:e.asNumber()},t.prototype.setValue=function(e){this.dict.set(Dj.of("V"),e)},t.prototype.removeValue=function(){this.dict.delete(Dj.of("V"))},t.prototype.getValue=function(){var e=this.V();if(e instanceof IP||e instanceof AP)return e},t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Tx",Kids:[]});return new t(r,e.register(r))},t}(UM);const aR=iR;var sR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Btn",Ff:XM.PushButton,Kids:[]});return new t(r,e.register(r))},t}(WM);const lR=sR;var cR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.setValue=function(e){if(!this.getOnValues().includes(e)&&e!==Dj.of("Off"))throw new aj;this.dict.set(Dj.of("V"),e);for(var t=this.getWidgets(),r=0,n=t.length;r<n;r++){var o=t[r],i=o.getOnValue()===e?e:Dj.of("Off");o.setAppearanceState(i)}},t.prototype.getValue=function(){var e=this.V();return e instanceof Dj?e:Dj.of("Off")},t.prototype.getOnValues=function(){for(var e=this.getWidgets(),t=[],r=0,n=e.length;r<n;r++){var o=e[r].getOnValue();o&&t.push(o)}return t},t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Btn",Ff:XM.Radio,Kids:[]});return new t(r,e.register(r))},t}(WM);const uR=cR;var dR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Ch",Kids:[]});return new t(r,e.register(r))},t}(JM);const fR=dR;var hR=function(e){if(!e)return[];for(var t=[],r=0,n=e.size();r<n;r++){var o=e.get(r),i=e.lookup(r);o instanceof Yj&&i instanceof Hj&&t.push([pR(i,o),o])}return t},pR=function(e,t){return mR(e)?nR.fromDict(e,t):gR(e,t)},mR=function(e){var t=e.lookup(Dj.of("Kids"));if(t instanceof Oj)for(var r=0,n=t.size();r<n;r++){var o=t.lookup(r);if(o instanceof Hj&&o.has(Dj.of("T")))return!0}return!1},gR=function(e,t){var r=wR(e,Dj.of("FT")),n=e.context.lookup(r,Dj);return n===Dj.of("Btn")?vR(e,t):n===Dj.of("Ch")?bR(e,t):n===Dj.of("Tx")?aR.fromDict(e,t):n===Dj.of("Sig")?oR.fromDict(e,t):UM.fromDict(e,t)},vR=function(e,t){var r,n=wR(e,Dj.of("Ff")),o=e.context.lookupMaybe(n,kj),i=null!==(r=null==o?void 0:o.asNumber())&&void 0!==r?r:0;return yR(i,XM.PushButton)?lR.fromDict(e,t):yR(i,XM.Radio)?uR.fromDict(e,t):qM.fromDict(e,t)},bR=function(e,t){var r,n=wR(e,Dj.of("Ff")),o=e.context.lookupMaybe(n,kj),i=null!==(r=null==o?void 0:o.asNumber())&&void 0!==r?r:0;return yR(i,$M.Combo)?tR.fromDict(e,t):fR.fromDict(e,t)},yR=function(e,t){return 0!==(e&t)},wR=function(e,t){var r;return xR(e,(function(e){r||(r=e.get(t))})),r},xR=function(e,t){t(e);var r=e.lookupMaybe(Dj.of("Parent"),Hj);r&&xR(r,t)},SR=function(){function e(e){this.dict=e}return e.prototype.Fields=function(){var e=this.dict.lookup(Dj.of("Fields"));if(e instanceof Oj)return e},e.prototype.getFields=function(){for(var e=this.normalizedEntries().Fields,t=new Array(e.size()),r=0,n=e.size();r<n;r++){var o=e.get(r),i=e.lookup(r,Hj);t[r]=[pR(i,o),o]}return t},e.prototype.getAllFields=function(){var e=[],t=function(r){if(r)for(var n=0,o=r.length;n<o;n++){var i=r[n];e.push(i);var a=i[0];a instanceof nR&&t(hR(a.Kids()))}};return t(this.getFields()),e},e.prototype.addField=function(e){var t=this.normalizedEntries().Fields;null==t||t.push(e)},e.prototype.removeField=function(e){var t=e.getParent(),r=void 0===t?this.normalizedEntries().Fields:t.Kids(),n=null==r?void 0:r.indexOf(e.ref);if(void 0===r||void 0===n)throw new Error("Tried to remove inexistent field "+e.getFullyQualifiedName());r.remove(n),void 0!==t&&0===r.size()&&this.removeField(t)},e.prototype.normalizedEntries=function(){var e=this.Fields();return e||(e=this.dict.context.obj([]),this.dict.set(Dj.of("Fields"),e)),{Fields:e}},e.fromDict=function(t){return new e(t)},e.create=function(t){return new e(t.obj({Fields:[]}))},e}();const CR=SR;var kR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.Pages=function(){return this.lookup(Dj.of("Pages"),Hj)},t.prototype.AcroForm=function(){return this.lookupMaybe(Dj.of("AcroForm"),Hj)},t.prototype.getAcroForm=function(){var e=this.AcroForm();if(e)return CR.fromDict(e)},t.prototype.getOrCreateAcroForm=function(){var e=this.getAcroForm();if(!e){e=CR.create(this.context);var t=this.context.register(e.dict);this.set(Dj.of("AcroForm"),t)}return e},t.prototype.ViewerPreferences=function(){return this.lookupMaybe(Dj.of("ViewerPreferences"),Hj)},t.prototype.getViewerPreferences=function(){var e=this.ViewerPreferences();if(e)return jM.fromDict(e)},t.prototype.getOrCreateViewerPreferences=function(){var e=this.getViewerPreferences();if(!e){e=jM.create(this.context);var t=this.context.register(e.dict);this.set(Dj.of("ViewerPreferences"),t)}return e},t.prototype.insertLeafNode=function(e,t){var r=this.get(Dj.of("Pages"));return this.Pages().insertLeafNode(e,t)||r},t.prototype.removeLeafNode=function(e){this.Pages().removeLeafNode(e)},t.withContextAndPages=function(e,r){var n=new Map;return n.set(Dj.of("Type"),Dj.of("Catalog")),n.set(Dj.of("Pages"),r),new t(n,e)},t.fromMapWithContext=function(e,r){return new t(e,r)},t}(Hj);const ER=kR;var OR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gA(t,e),t.prototype.Parent=function(){return this.lookup(Dj.of("Parent"))},t.prototype.Kids=function(){return this.lookup(Dj.of("Kids"),Oj)},t.prototype.Count=function(){return this.lookup(Dj.of("Count"),kj)},t.prototype.pushTreeNode=function(e){this.Kids().push(e)},t.prototype.pushLeafNode=function(e){var t=this.Kids();this.insertLeafKid(t.size(),e)},t.prototype.insertLeafNode=function(e,r){var n=this.Kids(),o=this.Count().asNumber();if(r>o)throw new nj(r,o);for(var i=r,a=0,s=n.size();a<s;a++){if(0===i)return void this.insertLeafKid(a,e);var l=n.get(a),c=this.context.lookup(l);if(c instanceof t){if(c.Count().asNumber()>i)return c.insertLeafNode(e,i)||l;i-=c.Count().asNumber()}c instanceof lP&&(i-=1)}if(0!==i)throw new oj(r,"insertLeafNode");this.insertLeafKid(n.size(),e)},t.prototype.removeLeafNode=function(e,r){void 0===r&&(r=!0);var n=this.Kids(),o=this.Count().asNumber();if(e>=o)throw new nj(e,o);for(var i=e,a=0,s=n.size();a<s;a++){var l=n.get(a),c=this.context.lookup(l);if(c instanceof t){if(c.Count().asNumber()>i)return c.removeLeafNode(i,r),void(r&&0===c.Kids().size()&&n.remove(a));i-=c.Count().asNumber()}if(c instanceof lP){if(0===i)return void this.removeKid(a);i-=1}}throw new oj(e,"removeLeafNode")},t.prototype.ascend=function(e){e(this);var t=this.Parent();t&&t.ascend(e)},t.prototype.traverse=function(e){for(var r=this.Kids(),n=0,o=r.size();n<o;n++){var i=r.get(n),a=this.context.lookup(i);a instanceof t&&a.traverse(e),e(a,i)}},t.prototype.insertLeafKid=function(e,t){var r=this.Kids();this.ascend((function(e){var t=e.Count().asNumber()+1;e.set(Dj.of("Count"),kj.of(t))})),r.insert(e,t)},t.prototype.removeKid=function(e){var t=this.Kids();t.lookup(e)instanceof lP&&this.ascend((function(e){var t=e.Count().asNumber()-1;e.set(Dj.of("Count"),kj.of(t))})),t.remove(e)},t.withContext=function(e,r){var n=new Map;return n.set(Dj.of("Type"),Dj.of("Pages")),n.set(Dj.of("Kids"),e.obj([])),n.set(Dj.of("Count"),e.obj(0)),r&&n.set(Dj.of("Parent"),r),new t(n,e)},t.fromMapWithContext=function(e,r){return new t(e,r)},t}(Hj);const AR=OR;var TR=new Uint8Array(256);TR[wj.Zero]=1,TR[wj.One]=1,TR[wj.Two]=1,TR[wj.Three]=1,TR[wj.Four]=1,TR[wj.Five]=1,TR[wj.Six]=1,TR[wj.Seven]=1,TR[wj.Eight]=1,TR[wj.Nine]=1;var jR=new Uint8Array(256);jR[wj.Period]=1,jR[wj.Plus]=1,jR[wj.Minus]=1;for(var PR=new Uint8Array(256),MR=0;MR<256;MR++)PR[MR]=TR[MR]||jR[MR]?1:0;var RR=wj.Newline,_R=wj.CarriageReturn,IR=function(){function e(e,t){void 0===t&&(t=!1),this.bytes=e,this.capNumbers=t}return e.prototype.parseRawInt=function(){for(var e="";!this.bytes.done();){var t=this.bytes.peek();if(!TR[t])break;e+=MA(this.bytes.next())}var r=Number(e);if(!e||!isFinite(r))throw new uj(this.bytes.position(),e);return r},e.prototype.parseRawNumber=function(){for(var e="";!this.bytes.done();){var t=this.bytes.peek();if(!PR[t])break;if(e+=MA(this.bytes.next()),t===wj.Period)break}for(;!this.bytes.done()&&(t=this.bytes.peek(),TR[t]);)e+=MA(this.bytes.next());var r=Number(e);if(!e||!isFinite(r))throw new uj(this.bytes.position(),e);if(r>Number.MAX_SAFE_INTEGER){if(this.capNumbers){var n="Parsed number that is too large for some PDF readers: "+e+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(n),Number.MAX_SAFE_INTEGER}n="Parsed number that is too large for some PDF readers: "+e+", not capping.",console.warn(n)}return r},e.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&Mj[this.bytes.peek()];)this.bytes.next()},e.prototype.skipLine=function(){for(;!this.bytes.done();){var e=this.bytes.peek();if(e===RR||e===_R)return;this.bytes.next()}},e.prototype.skipComment=function(){if(this.bytes.peek()!==wj.Percent)return!1;for(;!this.bytes.done();){var e=this.bytes.peek();if(e===RR||e===_R)return!0;this.bytes.next()}return!0},e.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},e.prototype.matchKeyword=function(e){for(var t=this.bytes.offset(),r=0,n=e.length;r<n;r++)if(this.bytes.done()||this.bytes.next()!==e[r])return this.bytes.moveTo(t),!1;return!0},e}();const NR=IR;const FR=function(){function e(e){this.idx=0,this.line=0,this.column=0,this.bytes=e,this.length=this.bytes.length}return e.prototype.moveTo=function(e){this.idx=e},e.prototype.next=function(){var e=this.bytes[this.idx++];return e===wj.Newline?(this.line+=1,this.column=0):this.column+=1,e},e.prototype.assertNext=function(e){if(this.peek()!==e)throw new fj(this.position(),e,this.peek());return this.next()},e.prototype.peek=function(){return this.bytes[this.idx]},e.prototype.peekAhead=function(e){return this.bytes[this.idx+e]},e.prototype.peekAt=function(e){return this.bytes[e]},e.prototype.done=function(){return this.idx>=this.length},e.prototype.offset=function(){return this.idx},e.prototype.slice=function(e,t){return this.bytes.slice(e,t)},e.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},e.of=function(t){return new e(t)},e.fromPDFRawStream=function(t){return e.of(wM(t).decode())},e}();var DR=wj.Space,BR=wj.CarriageReturn,LR=wj.Newline,zR=[wj.s,wj.t,wj.r,wj.e,wj.a,wj.m],HR=[wj.e,wj.n,wj.d,wj.s,wj.t,wj.r,wj.e,wj.a,wj.m],UR={header:[wj.Percent,wj.P,wj.D,wj.F,wj.Dash],eof:[wj.Percent,wj.Percent,wj.E,wj.O,wj.F],obj:[wj.o,wj.b,wj.j],endobj:[wj.e,wj.n,wj.d,wj.o,wj.b,wj.j],xref:[wj.x,wj.r,wj.e,wj.f],trailer:[wj.t,wj.r,wj.a,wj.i,wj.l,wj.e,wj.r],startxref:[wj.s,wj.t,wj.a,wj.r,wj.t,wj.x,wj.r,wj.e,wj.f],true:[wj.t,wj.r,wj.u,wj.e],false:[wj.f,wj.a,wj.l,wj.s,wj.e],null:[wj.n,wj.u,wj.l,wj.l],stream:zR,streamEOF1:wA(zR,[DR,BR,LR]),streamEOF2:wA(zR,[BR,LR]),streamEOF3:wA(zR,[BR]),streamEOF4:wA(zR,[LR]),endstream:HR,EOF1endstream:wA([BR,LR],HR),EOF2endstream:wA([BR],HR),EOF3endstream:wA([LR],HR)},VR=function(e){function t(t,r,n){void 0===n&&(n=!1);var o=e.call(this,t,n)||this;return o.context=r,o}return gA(t,e),t.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(UR.true))return jj.True;if(this.matchKeyword(UR.false))return jj.False;if(this.matchKeyword(UR.null))return Lj;var e=this.bytes.peek();if(e===wj.LessThan&&this.bytes.peekAhead(1)===wj.LessThan)return this.parseDictOrStream();if(e===wj.LessThan)return this.parseHexString();if(e===wj.LeftParen)return this.parseString();if(e===wj.ForwardSlash)return this.parseName();if(e===wj.LeftSquareBracket)return this.parseArray();if(PR[e])return this.parseNumberOrRef();throw new hj(this.bytes.position(),e)},t.prototype.parseNumberOrRef=function(){var e=this.parseRawNumber();this.skipWhitespaceAndComments();var t=this.bytes.offset();if(TR[this.bytes.peek()]){var r=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===wj.R)return this.bytes.assertNext(wj.R),Yj.of(e,r)}return this.bytes.moveTo(t),kj.of(e)},t.prototype.parseHexString=function(){var e="";for(this.bytes.assertNext(wj.LessThan);!this.bytes.done()&&this.bytes.peek()!==wj.GreaterThan;)e+=MA(this.bytes.next());return this.bytes.assertNext(wj.GreaterThan),AP.of(e)},t.prototype.parseString=function(){for(var e=0,t=!1,r="";!this.bytes.done();){var n=this.bytes.next();if(r+=MA(n),t||(n===wj.LeftParen&&(e+=1),n===wj.RightParen&&(e-=1)),n===wj.BackSlash?t=!t:t&&(t=!1),0===e)return IP.of(r.substring(1,r.length-1))}throw new gj(this.bytes.position())},t.prototype.parseName=function(){this.bytes.assertNext(wj.ForwardSlash);for(var e="";!this.bytes.done();){var t=this.bytes.peek();if(Mj[t]||Pj[t])break;e+=MA(t),this.bytes.next()}return Dj.of(e)},t.prototype.parseArray=function(){this.bytes.assertNext(wj.LeftSquareBracket),this.skipWhitespaceAndComments();for(var e=Oj.withContext(this.context);this.bytes.peek()!==wj.RightSquareBracket;){var t=this.parseObject();e.push(t),this.skipWhitespaceAndComments()}return this.bytes.assertNext(wj.RightSquareBracket),e},t.prototype.parseDict=function(){this.bytes.assertNext(wj.LessThan),this.bytes.assertNext(wj.LessThan),this.skipWhitespaceAndComments();for(var e=new Map;!this.bytes.done()&&this.bytes.peek()!==wj.GreaterThan&&this.bytes.peekAhead(1)!==wj.GreaterThan;){var t=this.parseName(),r=this.parseObject();e.set(t,r),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(wj.GreaterThan),this.bytes.assertNext(wj.GreaterThan);var n=e.get(Dj.of("Type"));return n===Dj.of("Catalog")?ER.fromMapWithContext(e,this.context):n===Dj.of("Pages")?AR.fromMapWithContext(e,this.context):n===Dj.of("Page")?lP.fromMapWithContext(e,this.context):Hj.fromMapWithContext(e,this.context)},t.prototype.parseDictOrStream=function(){var e=this.bytes.position(),t=this.parseDict();if(this.skipWhitespaceAndComments(),!(this.matchKeyword(UR.streamEOF1)||this.matchKeyword(UR.streamEOF2)||this.matchKeyword(UR.streamEOF3)||this.matchKeyword(UR.streamEOF4)||this.matchKeyword(UR.stream)))return t;var r,n=this.bytes.offset(),o=t.get(Dj.of("Length"));o instanceof kj?(r=n+o.asNumber(),this.bytes.moveTo(r),this.skipWhitespaceAndComments(),this.matchKeyword(UR.endstream)||(this.bytes.moveTo(n),r=this.findEndOfStreamFallback(e))):r=this.findEndOfStreamFallback(e);var i=this.bytes.slice(n,r);return Gj.of(t,i)},t.prototype.findEndOfStreamFallback=function(e){for(var t=1,r=this.bytes.offset();!this.bytes.done()&&(r=this.bytes.offset(),this.matchKeyword(UR.stream)?t+=1:this.matchKeyword(UR.EOF1endstream)||this.matchKeyword(UR.EOF2endstream)||this.matchKeyword(UR.EOF3endstream)||this.matchKeyword(UR.endstream)?t-=1:this.bytes.next(),0!==t););if(0!==t)throw new mj(e);return r},t.forBytes=function(e,r,n){return new t(FR.of(e),r,n)},t.forByteStream=function(e,r,n){return void 0===n&&(n=!1),new t(e,r,n)},t}(NR);const WR=VR;var GR=function(e){function t(t,r){var n=e.call(this,FR.fromPDFRawStream(t),t.dict.context)||this,o=t.dict;return n.alreadyParsed=!1,n.shouldWaitForTick=r||function(){return!1},n.firstOffset=o.lookup(Dj.of("First"),kj).asNumber(),n.objectCount=o.lookup(Dj.of("N"),kj).asNumber(),n}return gA(t,e),t.prototype.parseIntoContext=function(){return bA(this,void 0,void 0,(function(){var e,t,r,n,o,i,a,s;return yA(this,(function(l){switch(l.label){case 0:if(this.alreadyParsed)throw new ZT("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,e=this.parseOffsetsAndObjectNumbers(),t=0,r=e.length,l.label=1;case 1:return t<r?(n=e[t],o=n.objectNumber,i=n.offset,this.bytes.moveTo(this.firstOffset+i),a=this.parseObject(),s=Yj.of(o,0),this.context.assign(s,a),this.shouldWaitForTick()?[4,$A()]:[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},t.prototype.parseOffsetsAndObjectNumbers=function(){for(var e=[],t=0,r=this.objectCount;t<r;t++){this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.parseRawInt();e.push({objectNumber:n,offset:o})}return e},t.forStream=function(e,r){return new t(e,r)},t}(WR);const qR=GR;var KR=function(){function e(e){this.alreadyParsed=!1,this.dict=e.dict,this.bytes=FR.fromPDFRawStream(e),this.context=this.dict.context;var t=this.dict.lookup(Dj.of("Size"),kj),r=this.dict.lookup(Dj.of("Index"));if(r instanceof Oj){this.subsections=[];for(var n=0,o=r.size();n<o;n+=2){var i=r.lookup(n+0,kj).asNumber(),a=r.lookup(n+1,kj).asNumber();this.subsections.push({firstObjectNumber:i,length:a})}}else this.subsections=[{firstObjectNumber:0,length:t.asNumber()}];var s=this.dict.lookup(Dj.of("W"),Oj);for(this.byteWidths=[-1,-1,-1],n=0,o=s.size();n<o;n++)this.byteWidths[n]=s.lookup(n,kj).asNumber()}return e.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new ZT("PDFXRefStreamParser","parseIntoContext");return this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(Dj.of("Root")),Encrypt:this.dict.get(Dj.of("Encrypt")),Info:this.dict.get(Dj.of("Info")),ID:this.dict.get(Dj.of("ID"))},this.parseEntries()},e.prototype.parseEntries=function(){for(var e=[],t=this.byteWidths,r=t[0],n=t[1],o=t[2],i=0,a=this.subsections.length;i<a;i++)for(var s=this.subsections[i],l=s.firstObjectNumber,c=s.length,u=0;u<c;u++){for(var d=0,f=0,h=r;f<h;f++)d=d<<8|this.bytes.next();var p=0;for(f=0,h=n;f<h;f++)p=p<<8|this.bytes.next();var m=0;for(f=0,h=o;f<h;f++)m=m<<8|this.bytes.next();0===r&&(d=1);var g=l+u,v={ref:Yj.of(g,m),offset:p,deleted:0===d,inObjectStream:2===d};e.push(v)}return e},e.forStream=function(t){return new e(t)},e}();const XR=KR;var YR=function(e){function t(t,r,n,o){void 0===r&&(r=1/0),void 0===n&&(n=!1),void 0===o&&(o=!1);var i=e.call(this,FR.of(t),aP.create(),o)||this;return i.alreadyParsed=!1,i.parsedObjects=0,i.shouldWaitForTick=function(){return i.parsedObjects+=1,i.parsedObjects%i.objectsPerTick===0},i.objectsPerTick=r,i.throwOnInvalidObject=n,i}return gA(t,e),t.prototype.parseDocument=function(){return bA(this,void 0,void 0,(function(){var e,t;return yA(this,(function(r){switch(r.label){case 0:if(this.alreadyParsed)throw new ZT("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),r.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(r.sent(),(t=this.bytes.offset())===e)throw new vj(this.bytes.position());return e=t,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(Yj.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(Yj.of(0))),[2,this.context]}}))}))},t.prototype.maybeRecoverRoot=function(){var e=function(e){return e instanceof Hj&&e.lookup(Dj.of("Type"))===Dj.of("Catalog")};if(!e(this.context.lookup(this.context.trailerInfo.Root)))for(var t=this.context.enumerateIndirectObjects(),r=0,n=t.length;r<n;r++){var o=t[r],i=o[0];e(o[1])&&(this.context.trailerInfo.Root=i)}},t.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(UR.header)){var e=this.parseRawInt();this.bytes.assertNext(wj.Period);var t=this.parseRawInt(),r=xj.forVersion(e,t);return this.skipBinaryHeaderComment(),r}this.bytes.next()}throw new bj(this.bytes.position())},t.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var e=this.parseRawInt();this.skipWhitespaceAndComments();var t=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(UR.obj))throw new yj(this.bytes.position(),UR.obj);return Yj.of(e,t)},t.prototype.matchIndirectObjectHeader=function(){var e=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch(t){return this.bytes.moveTo(e),!1}},t.prototype.parseIndirectObject=function(){return bA(this,void 0,void 0,(function(){var e,t;return yA(this,(function(r){switch(r.label){case 0:return e=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),t=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(UR.endobj),t instanceof Gj&&t.dict.lookup(Dj.of("Type"))===Dj.of("ObjStm")?[4,qR.forStream(t,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return r.sent(),[3,3];case 2:t instanceof Gj&&t.dict.lookup(Dj.of("Type"))===Dj.of("XRef")?XR.forStream(t).parseIntoContext():this.context.assign(e,t),r.label=3;case 3:return[2,e]}}))}))},t.prototype.tryToParseInvalidIndirectObject=function(){var e=this.bytes.position(),t="Trying to parse invalid object: "+JSON.stringify(e)+")";if(this.throwOnInvalidObject)throw new Error(t);console.warn(t);var r=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+r),this.skipWhitespaceAndComments();for(var n=this.bytes.offset(),o=!0;!this.bytes.done()&&(this.matchKeyword(UR.endobj)&&(o=!1),o);)this.bytes.next();if(o)throw new pj(e);var i=this.bytes.offset()-UR.endobj.length,a=wP.of(this.bytes.slice(n,i));return this.context.assign(r,a),r},t.prototype.parseIndirectObjects=function(){return bA(this,void 0,void 0,(function(){var e;return yA(this,(function(t){switch(t.label){case 0:this.skipWhitespaceAndComments(),t.label=1;case 1:if(this.bytes.done()||!TR[this.bytes.peek()])return[3,8];e=this.bytes.offset(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return t.sent(),[3,5];case 4:return t.sent(),this.bytes.moveTo(e),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,$A()]:[3,7];case 6:t.sent(),t.label=7;case 7:return[3,1];case 8:return[2]}}))}))},t.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(UR.xref)){this.skipWhitespaceAndComments();for(var e=-1,t=fP.createEmpty();!this.bytes.done()&&TR[this.bytes.peek()];){var r=this.parseRawInt();this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.bytes.peek();if(o===wj.n||o===wj.f){var i=Yj.of(e,n);this.bytes.next()===wj.n?t.addEntry(i,r):t.addDeletedEntry(i,r),e+=1}else e=r;this.skipWhitespaceAndComments()}return t}},t.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(UR.trailer)){this.skipWhitespaceAndComments();var e=this.parseDict(),t=this.context;t.trailerInfo={Root:e.get(Dj.of("Root"))||t.trailerInfo.Root,Encrypt:e.get(Dj.of("Encrypt"))||t.trailerInfo.Encrypt,Info:e.get(Dj.of("Info"))||t.trailerInfo.Info,ID:e.get(Dj.of("ID"))||t.trailerInfo.ID}}},t.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(UR.startxref)){this.skipWhitespaceAndComments();var e=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(UR.eof),this.skipWhitespaceAndComments(),this.matchKeyword(UR.eof),this.skipWhitespaceAndComments(),hP.forLastCrossRefSectionOffset(e)}},t.prototype.parseDocumentSection=function(){return bA(this,void 0,void 0,(function(){return yA(this,(function(e){switch(e.label){case 0:return[4,this.parseIndirectObjects()];case 1:return e.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}}))}))},t.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var e=this.bytes.offset(),t=this.bytes.peek();if(t>=wj.Space&&t<=wj.Tilde&&(this.matchKeyword(UR.xref)||this.matchKeyword(UR.trailer)||this.matchKeyword(UR.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(e);break}this.bytes.next()}},t.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var e=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(e)}catch(e){this.bytes.next(),this.skipWhitespaceAndComments()}},t.forBytesWithOptions=function(e,r,n,o){return new t(e,r,n,o)},t}(WR);const $R=YR;var ZR,QR=function(e){return 1<<e};!function(e){e[e.Invisible=QR(0)]="Invisible",e[e.Hidden=QR(1)]="Hidden",e[e.Print=QR(2)]="Print",e[e.NoZoom=QR(3)]="NoZoom",e[e.NoRotate=QR(4)]="NoRotate",e[e.NoView=QR(5)]="NoView",e[e.ReadOnly=QR(6)]="ReadOnly",e[e.Locked=QR(7)]="Locked",e[e.ToggleNoView=QR(8)]="ToggleNoView",e[e.LockedContents=QR(9)]="LockedContents"}(ZR||(ZR={}));var JR,e_=function(e){return e instanceof Dj?e:Dj.of(e)},t_=function(e){return e instanceof kj?e:kj.of(e)},r_=function(e){return e instanceof kj?e.asNumber():e};!function(e){e.Degrees="degrees",e.Radians="radians"}(JR||(JR={}));var n_,o_=function(e){return _T(e,"degreeAngle",["number"]),{type:JR.Degrees,angle:e}},i_=JR.Radians,a_=JR.Degrees,s_=function(e){return e*Math.PI/180},l_=function(e){return e.type===i_?e.angle:e.type===a_?s_(e.angle):uT("Invalid rotation: "+JSON.stringify(e))},c_=function(e){return e.type===i_?180*e.angle/Math.PI:e.type===a_?e.angle:uT("Invalid rotation: "+JSON.stringify(e))},u_=function(e){void 0===e&&(e=0);var t=e/90%4;return 0===t?0:1===t?90:2===t?180:3===t?270:0},d_=function(e,t){void 0===t&&(t=0);var r=u_(t);return 90===r||270===r?{width:e.height,height:e.width}:{width:e.width,height:e.height}},f_=function(){return Zj.of(Jj.ClipNonZero)},h_=Math.cos,p_=Math.sin,m_=Math.tan,g_=function(e,t,r,n,o,i){return Zj.of(Jj.ConcatTransformationMatrix,[t_(e),t_(t),t_(r),t_(n),t_(o),t_(i)])},v_=function(e,t){return g_(1,0,0,1,e,t)},b_=function(e,t){return g_(e,0,0,t,0,0)},y_=function(e){return g_(h_(r_(e)),p_(r_(e)),-p_(r_(e)),h_(r_(e)),0,0)},w_=function(e){return y_(s_(r_(e)))},x_=function(e,t){return g_(1,m_(r_(e)),m_(r_(t)),1,0,0)},S_=function(e,t){return Zj.of(Jj.SetLineDashPattern,["["+e.map(t_).join(" ")+"]",t_(t)])};!function(e){e[e.Butt=0]="Butt",e[e.Round=1]="Round",e[e.Projecting=2]="Projecting"}(n_||(n_={}));var C_,k_=function(e){return Zj.of(Jj.SetLineCapStyle,[t_(e)])};!function(e){e[e.Miter=0]="Miter",e[e.Round=1]="Round",e[e.Bevel=2]="Bevel"}(C_||(C_={}));var E_,O_=function(e){return Zj.of(Jj.SetGraphicsStateParams,[e_(e)])},A_=function(){return Zj.of(Jj.PushGraphicsState)},T_=function(){return Zj.of(Jj.PopGraphicsState)},j_=function(e){return Zj.of(Jj.SetLineWidth,[t_(e)])},P_=function(e,t,r,n,o,i){return Zj.of(Jj.AppendBezierCurve,[t_(e),t_(t),t_(r),t_(n),t_(o),t_(i)])},M_=function(e,t,r,n){return Zj.of(Jj.CurveToReplicateInitialPoint,[t_(e),t_(t),t_(r),t_(n)])},R_=function(){return Zj.of(Jj.ClosePath)},__=function(e,t){return Zj.of(Jj.MoveTo,[t_(e),t_(t)])},I_=function(e,t){return Zj.of(Jj.LineTo,[t_(e),t_(t)])},N_=function(){return Zj.of(Jj.StrokePath)},F_=function(){return Zj.of(Jj.FillNonZero)},D_=function(){return Zj.of(Jj.FillNonZeroAndStroke)},B_=function(){return Zj.of(Jj.EndPath)},L_=function(e){return Zj.of(Jj.ShowText,[e])},z_=function(){return Zj.of(Jj.BeginText)},H_=function(){return Zj.of(Jj.EndText)},U_=function(e,t){return Zj.of(Jj.SetFontAndSize,[e_(e),t_(t)])};!function(e){e[e.Fill=0]="Fill",e[e.Outline=1]="Outline",e[e.FillAndOutline=2]="FillAndOutline",e[e.Invisible=3]="Invisible",e[e.FillAndClip=4]="FillAndClip",e[e.OutlineAndClip=5]="OutlineAndClip",e[e.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",e[e.Clip=7]="Clip"}(E_||(E_={}));var V_,W_=function(e,t,r,n,o){return function(e,t,r,n,o,i){return Zj.of(Jj.SetTextMatrix,[t_(e),t_(t),t_(r),t_(n),t_(o),t_(i)])}(h_(r_(e)),p_(r_(e))+m_(r_(t)),-p_(r_(e))+m_(r_(r)),h_(r_(e)),n,o)},G_=function(e){return Zj.of(Jj.DrawObject,[e_(e)])},q_=function(e){return Zj.of(Jj.BeginMarkedContent,[e_(e)])},K_=function(){return Zj.of(Jj.EndMarkedContent)};!function(e){e.Grayscale="Grayscale",e.RGB="RGB",e.CMYK="CMYK"}(V_||(V_={}));var X_,Y_=function(e){return FT(e,"gray",0,1),{type:V_.Grayscale,gray:e}},$_=function(e,t,r){return FT(e,"red",0,1),FT(t,"green",0,1),FT(r,"blue",0,1),{type:V_.RGB,red:e,green:t,blue:r}},Z_=function(e,t,r,n){return FT(e,"cyan",0,1),FT(t,"magenta",0,1),FT(r,"yellow",0,1),FT(n,"key",0,1),{type:V_.CMYK,cyan:e,magenta:t,yellow:r,key:n}},Q_=V_.Grayscale,J_=V_.RGB,eI=V_.CMYK,tI=function(e){return e.type===Q_?(t=e.gray,Zj.of(Jj.NonStrokingColorGray,[t_(t)])):e.type===J_?function(e,t,r){return Zj.of(Jj.NonStrokingColorRgb,[t_(e),t_(t),t_(r)])}(e.red,e.green,e.blue):e.type===eI?function(e,t,r,n){return Zj.of(Jj.NonStrokingColorCmyk,[t_(e),t_(t),t_(r),t_(n)])}(e.cyan,e.magenta,e.yellow,e.key):uT("Invalid color: "+JSON.stringify(e));var t},rI=function(e){return e.type===Q_?(t=e.gray,Zj.of(Jj.StrokingColorGray,[t_(t)])):e.type===J_?function(e,t,r){return Zj.of(Jj.StrokingColorRgb,[t_(e),t_(t),t_(r)])}(e.red,e.green,e.blue):e.type===eI?function(e,t,r,n){return Zj.of(Jj.StrokingColorCmyk,[t_(e),t_(t),t_(r),t_(n)])}(e.cyan,e.magenta,e.yellow,e.key):uT("Invalid color: "+JSON.stringify(e));var t},nI=function(e,t){return void 0===t&&(t=1),1===(null==e?void 0:e.length)?Y_(e[0]*t):3===(null==e?void 0:e.length)?$_(e[0]*t,e[1]*t,e[2]*t):4===(null==e?void 0:e.length)?Z_(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0},oI=function(e){return e.type===Q_?[e.gray]:e.type===J_?[e.red,e.green,e.blue]:e.type===eI?[e.cyan,e.magenta,e.yellow,e.key]:uT("Invalid color: "+JSON.stringify(e))},iI=0,aI=0,sI=0,lI=0,cI=0,uI=0,dI=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),fI={M:function(e){return iI=e[0],aI=e[1],sI=lI=null,cI=iI,uI=aI,__(iI,aI)},m:function(e){return iI+=e[0],aI+=e[1],sI=lI=null,cI=iI,uI=aI,__(iI,aI)},C:function(e){return iI=e[4],aI=e[5],sI=e[2],lI=e[3],P_(e[0],e[1],e[2],e[3],e[4],e[5])},c:function(e){var t=P_(e[0]+iI,e[1]+aI,e[2]+iI,e[3]+aI,e[4]+iI,e[5]+aI);return sI=iI+e[2],lI=aI+e[3],iI+=e[4],aI+=e[5],t},S:function(e){null!==sI&&null!==lI||(sI=iI,lI=aI);var t=P_(iI-(sI-iI),aI-(lI-aI),e[0],e[1],e[2],e[3]);return sI=e[0],lI=e[1],iI=e[2],aI=e[3],t},s:function(e){null!==sI&&null!==lI||(sI=iI,lI=aI);var t=P_(iI-(sI-iI),aI-(lI-aI),iI+e[0],aI+e[1],iI+e[2],aI+e[3]);return sI=iI+e[0],lI=aI+e[1],iI+=e[2],aI+=e[3],t},Q:function(e){return sI=e[0],lI=e[1],iI=e[2],aI=e[3],M_(e[0],e[1],iI,aI)},q:function(e){var t=M_(e[0]+iI,e[1]+aI,e[2]+iI,e[3]+aI);return sI=iI+e[0],lI=aI+e[1],iI+=e[2],aI+=e[3],t},T:function(e){null===sI||null===lI?(sI=iI,lI=aI):(sI=iI-(sI-iI),lI=aI-(lI-aI));var t=M_(sI,lI,e[0],e[1]);return sI=iI-(sI-iI),lI=aI-(lI-aI),iI=e[0],aI=e[1],t},t:function(e){null===sI||null===lI?(sI=iI,lI=aI):(sI=iI-(sI-iI),lI=aI-(lI-aI));var t=M_(sI,lI,iI+e[0],aI+e[1]);return iI+=e[0],aI+=e[1],t},A:function(e){var t=hI(iI,aI,e);return iI=e[5],aI=e[6],t},a:function(e){e[5]+=iI,e[6]+=aI;var t=hI(iI,aI,e);return iI=e[5],aI=e[6],t},L:function(e){return iI=e[0],aI=e[1],sI=lI=null,I_(iI,aI)},l:function(e){return iI+=e[0],aI+=e[1],sI=lI=null,I_(iI,aI)},H:function(e){return iI=e[0],sI=lI=null,I_(iI,aI)},h:function(e){return iI+=e[0],sI=lI=null,I_(iI,aI)},V:function(e){return aI=e[0],sI=lI=null,I_(iI,aI)},v:function(e){return aI+=e[0],sI=lI=null,I_(iI,aI)},Z:function(){var e=R_();return iI=cI,aI=uI,e},z:function(){var e=R_();return iI=cI,aI=uI,e}},hI=function(e,t,r){for(var n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],l=r[5],c=r[6],u=[],d=0,f=pI(l,c,n,o,a,s,i,e,t);d<f.length;d++){var h=f[d],p=mI.apply(void 0,h);u.push(P_.apply(void 0,p))}return u},pI=function(e,t,r,n,o,i,a,s,l){var c=a*(Math.PI/180),u=Math.sin(c),d=Math.cos(c);r=Math.abs(r),n=Math.abs(n);var f=(sI=d*(s-e)*.5+u*(l-t)*.5)*sI/(r*r)+(lI=d*(l-t)*.5-u*(s-e)*.5)*lI/(n*n);f>1&&(r*=f=Math.sqrt(f),n*=f);var h=d/r,p=u/r,m=-u/n,g=d/n,v=h*s+p*l,b=m*s+g*l,y=h*e+p*t,w=m*e+g*t,x=1/((y-v)*(y-v)+(w-b)*(w-b))-.25;x<0&&(x=0);var S=Math.sqrt(x);i===o&&(S=-S);var C=.5*(v+y)-S*(w-b),k=.5*(b+w)+S*(y-v),E=Math.atan2(b-k,v-C),O=Math.atan2(w-k,y-C)-E;O<0&&1===i?O+=2*Math.PI:O>0&&0===i&&(O-=2*Math.PI);for(var A=Math.ceil(Math.abs(O/(.5*Math.PI+.001))),T=[],j=0;j<A;j++){var P=E+j*O/A,M=E+(j+1)*O/A;T[j]=[C,k,P,M,r,n,u,d]}return T},mI=function(e,t,r,n,o,i,a,s){var l=s*o,c=-a*i,u=a*o,d=s*i,f=.5*(n-r),h=8/3*Math.sin(.5*f)*Math.sin(.5*f)/Math.sin(f),p=e+Math.cos(r)-h*Math.sin(r),m=t+Math.sin(r)+h*Math.cos(r),g=e+Math.cos(n),v=t+Math.sin(n),b=g+h*Math.sin(n),y=v-h*Math.cos(n);return[l*p+c*m,u*p+d*m,l*b+c*y,u*b+d*y,l*g+c*v,u*g+d*v]},gI=function(e,t){return[A_(),t.graphicsState&&O_(t.graphicsState),v_(t.x,t.y),y_(l_(t.rotate)),b_(t.width,t.height),x_(l_(t.xSkew),l_(t.ySkew)),G_(e),T_()].filter(Boolean)},vI=function(e){var t,r;return[A_(),e.graphicsState&&O_(e.graphicsState),e.color&&tI(e.color),e.borderColor&&rI(e.borderColor),j_(e.borderWidth),e.borderLineCap&&k_(e.borderLineCap),S_(null!==(t=e.borderDashArray)&&void 0!==t?t:[],null!==(r=e.borderDashPhase)&&void 0!==r?r:0),v_(e.x,e.y),y_(l_(e.rotate)),x_(l_(e.xSkew),l_(e.ySkew)),__(0,0),I_(0,e.height),I_(e.width,e.height),I_(e.width,0),R_(),e.color&&e.borderWidth?D_():e.color?F_():e.borderColor?N_():R_(),T_()].filter(Boolean)},bI=(Math.sqrt(2)-1)/3*4,yI=function(e){var t,r,n,o,i,a,s,l,c,u,d,f,h,p;return wA([A_(),e.graphicsState&&O_(e.graphicsState),e.color&&tI(e.color),e.borderColor&&rI(e.borderColor),j_(e.borderWidth),e.borderLineCap&&k_(e.borderLineCap),S_(null!==(t=e.borderDashArray)&&void 0!==t?t:[],null!==(r=e.borderDashPhase)&&void 0!==r?r:0)],void 0===e.rotate?(o={x:e.x,y:e.y,xScale:e.xScale,yScale:e.yScale},i=r_(o.x),a=r_(o.y),s=r_(o.xScale),l=r_(o.yScale),c=s*bI,u=l*bI,d=(i-=s)+2*s,f=(a-=l)+2*l,h=i+s,p=a+l,[A_(),__(i,p),P_(i,p-u,h-c,a,h,a),P_(h+c,a,d,p-u,d,p),P_(d,p+u,h+c,f,h,f),P_(h-c,f,i,p+u,i,p),T_()]):function(e){var t=r_(e.x),r=r_(e.y),n=r_(e.xScale),o=r_(e.yScale),i=-n,a=-o,s=n*bI,l=o*bI,c=i+2*n,u=a+2*o,d=i+n,f=a+o;return[v_(t,r),y_(l_(e.rotate)),__(i,f),P_(i,f-l,d-s,a,d,a),P_(d+s,a,c,f-l,c,f),P_(c,f+l,d+s,u,d,u),P_(d-s,u,i,f+l,i,f)]}({x:e.x,y:e.y,xScale:e.xScale,yScale:e.yScale,rotate:null!==(n=e.rotate)&&void 0!==n?n:o_(0)}),[e.color&&e.borderWidth?D_():e.color?F_():e.borderColor?N_():R_(),T_()]).filter(Boolean)},wI=function(e){return 0===e.rotation?[v_(0,0),w_(0)]:90===e.rotation?[v_(e.width,0),w_(90)]:180===e.rotation?[v_(e.width,e.height),w_(180)]:270===e.rotation?[v_(0,e.height),w_(270)]:[]},xI=function(e){var t=vI({x:e.x,y:e.y,width:e.width,height:e.height,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)});if(!e.filled)return t;var r=r_(e.width),n=r_(e.height),o=function(e){var t=r_(e.size);return[A_(),e.color&&rI(e.color),j_(e.thickness),v_(e.x,e.y),__(-.675*t,-.07601036269430045*t),I_(-.25*t,-.49*t),I_(.69*t,.475*t),N_(),T_()].filter(Boolean)}({x:r/2,y:n/2,size:Math.min(r,n)/2,thickness:e.thickness,color:e.markColor});return wA([A_()],t,o,[T_()])},SI=function(e){var t=r_(e.width),r=r_(e.height),n=Math.min(t,r)/2,o=yI({x:e.x,y:e.y,xScale:n,yScale:n,color:e.color,borderColor:e.borderColor,borderWidth:e.borderWidth});if(!e.filled)return o;var i=yI({x:e.x,y:e.y,xScale:.45*n,yScale:.45*n,color:e.dotColor,borderColor:void 0,borderWidth:0});return wA([A_()],o,i,[T_()])},CI=function(e){var t=r_(e.x),r=r_(e.y),n=r_(e.width),o=r_(e.height),i=vI({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)}),a=kI(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)});return wA([A_()],i,a,[T_()])},kI=function(e,t){for(var r=[z_(),tI(t.color),U_(t.font,t.size)],n=0,o=e.length;n<o;n++){var i=e[n],a=i.encoded,s=i.x,l=i.y;r.push(W_(l_(t.rotate),l_(t.xSkew),l_(t.ySkew),s,l),L_(a))}return r.push(H_()),r},EI=function(e){var t=r_(e.x),r=r_(e.y),n=r_(e.width),o=r_(e.height),i=r_(e.borderWidth),a=r_(e.padding),s=t+i/2+a,l=r+i/2+a,c=n-2*(i/2+a),u=o-2*(i/2+a),d=[__(s,l),I_(s,l+u),I_(s+c,l+u),I_(s+c,l),R_(),f_(),B_()],f=vI({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)}),h=kI(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)}),p=wA([q_("Tx"),A_()],h,[T_(),K_()]);return wA([A_()],f,d,p,[T_()])},OI=function(e){function t(){return e.call(this,"Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.")||this}return gA(t,e),t}(Error),AI=function(e){function t(){return e.call(this,"Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.")||this}return gA(t,e),t}(Error),TI=function(e){function t(){return e.call(this,"A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.")||this}return gA(t,e),t}(Error),jI=function(e){function t(){return e.call(this,"PDFDocument has no pages so `PDFDocument.removePage` cannot be called")||this}return gA(t,e),t}(Error),PI=function(e){function t(t){var r='PDFDocument has no form field with the name "'+t+'"';return e.call(this,r)||this}return gA(t,e),t}(Error),MI=function(e){function t(t,r,n){var o,i,a='Expected field "'+t+'" to be of type '+(null==r?void 0:r.name)+", but it is actually of type "+(null!==(i=null===(o=null==n?void 0:n.constructor)||void 0===o?void 0:o.name)&&void 0!==i?i:n);return e.call(this,a)||this}return gA(t,e),t}(Error),RI=(function(e){gA((function(t){var r='Failed to select check box due to missing onValue: "'+t+'"';return e.call(this,r)||this}),e)}(Error),function(e){function t(t){var r='A field already exists with the specified name: "'+t+'"';return e.call(this,r)||this}return gA(t,e),t}(Error)),_I=function(e){function t(t){var r='Field name contains invalid component: "'+t+'"';return e.call(this,r)||this}return gA(t,e),t}(Error),II=(function(e){gA((function(t){var r='A non-terminal field already exists with the specified name: "'+t+'"';return e.call(this,r)||this}),e)}(Error),function(e){function t(t){var r="Reading rich text fields is not supported: Attempted to read rich text field: "+t;return e.call(this,r)||this}return gA(t,e),t}(Error)),NI=function(e){function t(t,r){var n="Failed to layout combed text as lineLength="+t+" is greater than cellCount="+r;return e.call(this,n)||this}return gA(t,e),t}(Error),FI=function(e){function t(t,r,n){var o="Attempted to set text with length="+t+" for TextField with maxLength="+r+" and name="+n;return e.call(this,o)||this}return gA(t,e),t}(Error),DI=function(e){function t(t,r,n){var o="Attempted to set maxLength="+r+", which is less than "+t+", the length of this field's current value (name="+n+")";return e.call(this,o)||this}return gA(t,e),t}(Error);!function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(X_||(X_={}));var BI=function(e,t,r,n){void 0===n&&(n=!1);for(var o=4;o<500;){for(var i=0,a=0,s=e.length;a<s;a++){i+=1;for(var l=e[a].split(" "),c=r.width,u=0,d=l.length;u<d;u++){var f=u===d-1?l[u]:l[u]+" ",h=t.widthOfTextAtSize(f,o);(c-=h)<=0&&(i+=1,c=r.width-h)}}if(!n&&i>e.length)return o-1;var p=t.heightAtSize(o);if((p+.2*p)*i>Math.abs(r.height))return o-1;o+=1}return o},LI=function(e){for(var t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},zI=function(e,t,r,n){for(var o,i=e.length;i>0;){var a=e.substring(0,i),s=r.encodeText(a),l=r.widthOfTextAtSize(a,n);if(l<t)return{line:a,encoded:s,width:l,remainder:e.substring(i)||void 0};i=null!==(o=LI(a))&&void 0!==o?o:0}return{line:e,encoded:r.encodeText(e),width:r.widthOfTextAtSize(e,n),remainder:void 0}},HI=function(e,t){var r=t.alignment,n=t.fontSize,o=t.font,i=t.bounds,a=DA(IA(e));void 0!==n&&0!==n||(n=BI(a,o,i,!0));for(var s=o.heightAtSize(n),l=s+.2*s,c=[],u=i.x,d=i.y,f=i.x+i.width,h=i.y+i.height,p=i.y+i.height,m=0,g=a.length;m<g;m++)for(var v=a[m];void 0!==v;){var b=zI(v,i.width,o,n),y=b.line,w=b.encoded,x=b.width,S=b.remainder,C=r===X_.Left?i.x:r===X_.Center?i.x+i.width/2-x/2:r===X_.Right?i.x+i.width-x:i.x;C<u&&(u=C),(p-=l)<d&&(d=p),C+x>f&&(f=C+x),p+s>h&&(h=p+s),c.push({text:y,encoded:w,width:x,height:s,x:C,y:p}),v=null==S?void 0:S.trim()}return{fontSize:n,lineHeight:l,lines:c,bounds:{x:u,y:d,width:f-u,height:h-d}}},UI=function(e,t){var r=t.alignment,n=t.fontSize,o=t.font,i=t.bounds,a=BA(IA(e));void 0!==n&&0!==n||(n=BI([a],o,i));var s=o.encodeText(a),l=o.widthOfTextAtSize(a,n),c=o.heightAtSize(n,{descender:!1}),u=r===X_.Left?i.x:r===X_.Center?i.x+i.width/2-l/2:r===X_.Right?i.x+i.width-l:i.x,d=i.y+(i.height/2-c/2);return{fontSize:n,line:{text:a,encoded:s,width:l,height:c,x:u,y:d},bounds:{x:u,y:d,width:l,height:c}}},VI=function(e){return"normal"in e?e:{normal:e}},WI=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,GI=function(e){var t,r,n=null!==(t=e.getDefaultAppearance())&&void 0!==t?t:"",o=null!==(r=UA(n,WI).match)&&void 0!==r?r:[],i=Number(o[2]);return isFinite(i)?i:void 0},qI=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,KI=function(e){var t,r=null!==(t=e.getDefaultAppearance())&&void 0!==t?t:"",n=UA(r,qI).match,o=null!=n?n:[],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5];return"g"===c&&i?Y_(Number(i)):"rg"===c&&i&&a&&s?$_(Number(i),Number(a),Number(s)):"k"===c&&i&&a&&s&&l?Z_(Number(i),Number(a),Number(s),Number(l)):void 0},XI=function(e,t,r,n){var o;void 0===n&&(n=0);var i=[tI(t).toString(),U_(null!==(o=null==r?void 0:r.name)&&void 0!==o?o:"dummy__noop",n).toString()].join("\n");e.setDefaultAppearance(i)},YI=function(e,t){var r,n,o,i=KI(t),a=KI(e.acroField),s=t.getRectangle(),l=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),u=null!==(r=null==c?void 0:c.getWidth())&&void 0!==r?r:0,d=u_(null==l?void 0:l.getRotation()),f=d_(s,d),h=f.width,p=f.height,m=wI(vA(vA({},s),{rotation:d})),g=$_(0,0,0),v=null!==(n=nI(null==l?void 0:l.getBorderColor()))&&void 0!==n?n:g,b=nI(null==l?void 0:l.getBackgroundColor()),y=nI(null==l?void 0:l.getBackgroundColor(),.8),w=null!==(o=null!=i?i:a)&&void 0!==o?o:g;XI(i?t:e.acroField,w);var x={x:0+u/2,y:0+u/2,width:h-u,height:p-u,thickness:1.5,borderWidth:u,borderColor:v,markColor:w};return{normal:{on:wA(m,xI(vA(vA({},x),{color:b,filled:!0}))),off:wA(m,xI(vA(vA({},x),{color:b,filled:!1})))},down:{on:wA(m,xI(vA(vA({},x),{color:y,filled:!0}))),off:wA(m,xI(vA(vA({},x),{color:y,filled:!1})))}}},$I=function(e,t){var r,n,o,i=KI(t),a=KI(e.acroField),s=t.getRectangle(),l=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),u=null!==(r=null==c?void 0:c.getWidth())&&void 0!==r?r:0,d=u_(null==l?void 0:l.getRotation()),f=d_(s,d),h=f.width,p=f.height,m=wI(vA(vA({},s),{rotation:d})),g=$_(0,0,0),v=null!==(n=nI(null==l?void 0:l.getBorderColor()))&&void 0!==n?n:g,b=nI(null==l?void 0:l.getBackgroundColor()),y=nI(null==l?void 0:l.getBackgroundColor(),.8),w=null!==(o=null!=i?i:a)&&void 0!==o?o:g;XI(i?t:e.acroField,w);var x={x:h/2,y:p/2,width:h-u,height:p-u,borderWidth:u,borderColor:v,dotColor:w};return{normal:{on:wA(m,SI(vA(vA({},x),{color:b,filled:!0}))),off:wA(m,SI(vA(vA({},x),{color:b,filled:!1})))},down:{on:wA(m,SI(vA(vA({},x),{color:y,filled:!0}))),off:wA(m,SI(vA(vA({},x),{color:y,filled:!1})))}}},ZI=function(e,t,r){var n,o,i,a,s,l=KI(t),c=KI(e.acroField),u=GI(t),d=GI(e.acroField),f=t.getRectangle(),h=t.getAppearanceCharacteristics(),p=t.getBorderStyle(),m=null==h?void 0:h.getCaptions(),g=null!==(n=null==m?void 0:m.normal)&&void 0!==n?n:"",v=null!==(i=null!==(o=null==m?void 0:m.down)&&void 0!==o?o:g)&&void 0!==i?i:"",b=null!==(a=null==p?void 0:p.getWidth())&&void 0!==a?a:0,y=u_(null==h?void 0:h.getRotation()),w=d_(f,y),x=w.width,S=w.height,C=wI(vA(vA({},f),{rotation:y})),k=$_(0,0,0),E=nI(null==h?void 0:h.getBorderColor()),O=nI(null==h?void 0:h.getBackgroundColor()),A=nI(null==h?void 0:h.getBackgroundColor(),.8),T={x:b,y:b,width:x-2*b,height:S-2*b},j=UI(g,{alignment:X_.Center,fontSize:null!=u?u:d,font:r,bounds:T}),P=UI(v,{alignment:X_.Center,fontSize:null!=u?u:d,font:r,bounds:T}),M=Math.min(j.fontSize,P.fontSize),R=null!==(s=null!=l?l:c)&&void 0!==s?s:k;XI(l||void 0!==u?t:e.acroField,R,r,M);var _={x:0+b/2,y:0+b/2,width:x-b,height:S-b,borderWidth:b,borderColor:E,textColor:R,font:r.name,fontSize:M};return{normal:wA(C,CI(vA(vA({},_),{color:O,textLines:[j.line]}))),down:wA(C,CI(vA(vA({},_),{color:A,textLines:[P.line]})))}},QI=function(e,t,r){var n,o,i,a,s,l,c=KI(t),u=KI(e.acroField),d=GI(t),f=GI(e.acroField),h=t.getRectangle(),p=t.getAppearanceCharacteristics(),m=t.getBorderStyle(),g=null!==(n=e.getText())&&void 0!==n?n:"",v=null!==(o=null==m?void 0:m.getWidth())&&void 0!==o?o:0,b=u_(null==p?void 0:p.getRotation()),y=d_(h,b),w=y.width,x=y.height,S=wI(vA(vA({},h),{rotation:b})),C=$_(0,0,0),k=nI(null==p?void 0:p.getBorderColor()),E=nI(null==p?void 0:p.getBackgroundColor()),O=e.isCombed()?0:1,A={x:v+O,y:v+O,width:w-2*(v+O),height:x-2*(v+O)};if(e.isMultiline())s=(T=HI(g,{alignment:e.getAlignment(),fontSize:null!=d?d:f,font:r,bounds:A})).lines,l=T.fontSize;else if(e.isCombed()){var T=function(e,t){var r=t.fontSize,n=t.font,o=t.bounds,i=t.cellCount,a=BA(IA(e));if(a.length>i)throw new NI(a.length,i);void 0!==r&&0!==r||(r=function(e,t,r,n){for(var o=r.width/n,i=r.height,a=4,s=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=LA(e,r),i=o[0],a=o[1];t.push(i),r+=a}return t}(e);a<500;){for(var l=0,c=s.length;l<c;l++){var u=s[l];if(t.widthOfTextAtSize(u,a)>.75*o)return a-1}if(t.heightAtSize(a,{descender:!1})>i)return a-1;a+=1}return a}(a,n,o,i));for(var s=o.width/i,l=n.heightAtSize(r,{descender:!1}),c=o.y+(o.height/2-l/2),u=[],d=o.x,f=o.y,h=o.x+o.width,p=o.y+o.height,m=0,g=0;m<i;){var v=LA(a,g),b=v[0],y=v[1],w=n.encodeText(b),x=n.widthOfTextAtSize(b,r),S=o.x+(s*m+s/2)-x/2;S<d&&(d=S),c<f&&(f=c),S+x>h&&(h=S+x),c+l>p&&(p=c+l),u.push({text:a,encoded:w,width:x,height:l,x:S,y:c}),m+=1,g+=y}return{fontSize:r,cells:u,bounds:{x:d,y:f,width:h-d,height:p-f}}}(g,{fontSize:null!=d?d:f,font:r,bounds:A,cellCount:null!==(i=e.getMaxLength())&&void 0!==i?i:0});s=T.cells,l=T.fontSize}else s=[(T=UI(g,{alignment:e.getAlignment(),fontSize:null!=d?d:f,font:r,bounds:A})).line],l=T.fontSize;var j=null!==(a=null!=c?c:u)&&void 0!==a?a:C;XI(c||void 0!==d?t:e.acroField,j,r,l);var P={x:0+v/2,y:0+v/2,width:w-v,height:x-v,borderWidth:null!=v?v:0,borderColor:k,textColor:j,font:r.name,fontSize:l,color:E,textLines:s,padding:O};return wA(S,EI(P))},JI=function(e,t,r){var n,o,i,a=KI(t),s=KI(e.acroField),l=GI(t),c=GI(e.acroField),u=t.getRectangle(),d=t.getAppearanceCharacteristics(),f=t.getBorderStyle(),h=null!==(n=e.getSelected()[0])&&void 0!==n?n:"",p=null!==(o=null==f?void 0:f.getWidth())&&void 0!==o?o:0,m=u_(null==d?void 0:d.getRotation()),g=d_(u,m),v=g.width,b=g.height,y=wI(vA(vA({},u),{rotation:m})),w=$_(0,0,0),x=nI(null==d?void 0:d.getBorderColor()),S=nI(null==d?void 0:d.getBackgroundColor()),C={x:p+1,y:p+1,width:v-2*(p+1),height:b-2*(p+1)},k=UI(h,{alignment:X_.Left,fontSize:null!=l?l:c,font:r,bounds:C}),E=k.line,O=k.fontSize,A=null!==(i=null!=a?a:s)&&void 0!==i?i:w;XI(a||void 0!==l?t:e.acroField,A,r,O);var T={x:0+p/2,y:0+p/2,width:v-p,height:b-p,borderWidth:null!=p?p:0,borderColor:x,textColor:A,font:r.name,fontSize:O,color:S,textLines:[E],padding:1};return wA(y,EI(T))},eN=function(e,t,r){var n,o,i=KI(t),a=KI(e.acroField),s=GI(t),l=GI(e.acroField),c=t.getRectangle(),u=t.getAppearanceCharacteristics(),d=t.getBorderStyle(),f=null!==(n=null==d?void 0:d.getWidth())&&void 0!==n?n:0,h=u_(null==u?void 0:u.getRotation()),p=d_(c,h),m=p.width,g=p.height,v=wI(vA(vA({},c),{rotation:h})),b=$_(0,0,0),y=nI(null==u?void 0:u.getBorderColor()),w=nI(null==u?void 0:u.getBackgroundColor()),x=e.getOptions(),S=e.getSelected();e.isSorted()&&x.sort();for(var C="",k=0,E=x.length;k<E;k++)C+=x[k],k<E-1&&(C+="\n");var O={x:f+1,y:f+1,width:m-2*(f+1),height:g-2*(f+1)},A=HI(C,{alignment:X_.Left,fontSize:null!=s?s:l,font:r,bounds:O}),T=A.lines,j=A.fontSize,P=A.lineHeight,M=[];for(k=0,E=T.length;k<E;k++){var R=T[k];S.includes(R.text)&&M.push(k)}var _=$_(.6,193/255,218/255),I=null!==(o=null!=i?i:a)&&void 0!==o?o:b;return XI(i||void 0!==s?t:e.acroField,I,r,j),wA(v,function(e){for(var t=r_(e.x),r=r_(e.y),n=r_(e.width),o=r_(e.height),i=r_(e.lineHeight),a=r_(e.borderWidth),s=r_(e.padding),l=t+a/2+s,c=r+a/2+s,u=n-2*(a/2+s),d=o-2*(a/2+s),f=[__(l,c),I_(l,c+d),I_(l+u,c+d),I_(l+u,c),R_(),f_(),B_()],h=vI({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)}),p=[],m=0,g=e.selectedLines.length;m<g;m++){var v=e.textLines[e.selectedLines[m]];p.push.apply(p,vI({x:v.x-s,y:v.y-(i-v.height)/2,width:n-a,height:v.height+(i-v.height)/2,borderWidth:0,color:e.selectedColor,borderColor:void 0,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)}))}var b=kI(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)}),y=wA([q_("Tx"),A_()],b,[T_(),K_()]);return wA([A_()],h,p,f,y,[T_()])}({x:0+f/2,y:0+f/2,width:m-f,height:g-f,borderWidth:null!=f?f:0,borderColor:y,textColor:I,font:r.name,fontSize:j,color:w,textLines:T,lineHeight:P,selectedColor:_,selectedLines:M,padding:1}))};const tN=function(){function e(e,t,r){this.alreadyEmbedded=!1,_T(e,"ref",[[Yj,"PDFRef"]]),_T(t,"doc",[[_N,"PDFDocument"]]),_T(r,"embedder",[[SM,"PDFPageEmbedder"]]),this.ref=e,this.doc=t,this.width=r.width,this.height=r.height,this.embedder=r}return e.prototype.scale=function(e){return _T(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},e.prototype.size=function(){return this.scale(1)},e.prototype.embed=function(){return bA(this,void 0,void 0,(function(){return yA(this,(function(e){switch(e.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e.sent(),this.alreadyEmbedded=!0,e.label=2;case 2:return[2]}}))}))},e.of=function(t,r,n){return new e(t,r,n)},e}();var rN=function(){function e(e,t,r){this.modified=!0,_T(e,"ref",[[Yj,"PDFRef"]]),_T(t,"doc",[[_N,"PDFDocument"]]),_T(r,"embedder",[[FP,"CustomFontEmbedder"],[jP,"StandardFontEmbedder"]]),this.ref=e,this.doc=t,this.name=r.fontName,this.embedder=r}return e.prototype.encodeText=function(e){return _T(e,"text",["string"]),this.modified=!0,this.embedder.encodeText(e)},e.prototype.widthOfTextAtSize=function(e,t){return _T(e,"text",["string"]),_T(t,"size",["number"]),this.embedder.widthOfTextAtSize(e,t)},e.prototype.heightAtSize=function(e,t){var r;return _T(e,"size",["number"]),IT(null==t?void 0:t.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(e,{descender:null===(r=null==t?void 0:t.descender)||void 0===r||r})},e.prototype.sizeAtHeight=function(e){return _T(e,"height",["number"]),this.embedder.sizeOfFontAtHeight(e)},e.prototype.getCharacterSet=function(){return this.embedder instanceof jP?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},e.prototype.embed=function(){return bA(this,void 0,void 0,(function(){return yA(this,(function(e){switch(e.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:e.sent(),this.modified=!1,e.label=2;case 2:return[2]}}))}))},e.of=function(t,r,n){return new e(t,r,n)},e}();const nN=rN;var oN=function(){function e(e,t,r){_T(e,"ref",[[Yj,"PDFRef"]]),_T(t,"doc",[[_N,"PDFDocument"]]),_T(r,"embedder",[[GP,"JpegEmbedder"],[JP,"PngEmbedder"]]),this.ref=e,this.doc=t,this.width=r.width,this.height=r.height,this.embedder=r}return e.prototype.scale=function(e){return _T(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},e.prototype.scaleToFit=function(e,t){_T(e,"width",["number"]),_T(t,"height",["number"]);var r=e/this.width,n=t/this.height,o=Math.min(r,n);return this.scale(o)},e.prototype.size=function(){return this.scale(1)},e.prototype.embed=function(){return bA(this,void 0,void 0,(function(){var e,t,r;return yA(this,(function(n){switch(n.label){case 0:return this.embedder?(this.embedTask||(t=(e=this).doc,r=e.ref,this.embedTask=this.embedder.embedIntoContext(t.context,r)),[4,this.embedTask]):[2];case 1:return n.sent(),this.embedder=void 0,[2]}}))}))},e.of=function(t,r,n){return new e(t,r,n)},e}();const iN=oN;var aN;!function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(aN||(aN={}));var sN=function(e){IT(null==e?void 0:e.x,"options.x",["number"]),IT(null==e?void 0:e.y,"options.y",["number"]),IT(null==e?void 0:e.width,"options.width",["number"]),IT(null==e?void 0:e.height,"options.height",["number"]),IT(null==e?void 0:e.textColor,"options.textColor",[[Object,"Color"]]),IT(null==e?void 0:e.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),IT(null==e?void 0:e.borderColor,"options.borderColor",[[Object,"Color"]]),IT(null==e?void 0:e.borderWidth,"options.borderWidth",["number"]),IT(null==e?void 0:e.rotate,"options.rotate",[[Object,"Rotation"]])},lN=function(){function e(e,t,r){_T(e,"acroField",[[UM,"PDFAcroTerminal"]]),_T(t,"ref",[[Yj,"PDFRef"]]),_T(r,"doc",[[_N,"PDFDocument"]]),this.acroField=e,this.ref=t,this.doc=r}return e.prototype.getName=function(){var e;return null!==(e=this.acroField.getFullyQualifiedName())&&void 0!==e?e:""},e.prototype.isReadOnly=function(){return this.acroField.hasFlag(KM.ReadOnly)},e.prototype.enableReadOnly=function(){this.acroField.setFlagTo(KM.ReadOnly,!0)},e.prototype.disableReadOnly=function(){this.acroField.setFlagTo(KM.ReadOnly,!1)},e.prototype.isRequired=function(){return this.acroField.hasFlag(KM.Required)},e.prototype.enableRequired=function(){this.acroField.setFlagTo(KM.Required,!0)},e.prototype.disableRequired=function(){this.acroField.setFlagTo(KM.Required,!1)},e.prototype.isExported=function(){return!this.acroField.hasFlag(KM.NoExport)},e.prototype.enableExporting=function(){this.acroField.setFlagTo(KM.NoExport,!1)},e.prototype.disableExporting=function(){this.acroField.setFlagTo(KM.NoExport,!0)},e.prototype.needsAppearancesUpdate=function(){throw new KT(this.constructor.name,"needsAppearancesUpdate")},e.prototype.defaultUpdateAppearances=function(e){throw new KT(this.constructor.name,"defaultUpdateAppearances")},e.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},e.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},e.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},e.prototype.createWidget=function(e){var t,r=e.textColor,n=e.backgroundColor,o=e.borderColor,i=e.borderWidth,a=c_(e.rotate),s=e.caption,l=e.x,c=e.y,u=e.width+i,d=e.height+i,f=Boolean(e.hidden),h=e.page;BT(a,"degreesAngle",90);var p=zM.create(this.doc.context,this.ref),m=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0);var n=e.x,o=e.y,i=e.width,a=e.height,s=u_(r),l=t/2;return 0===s?{x:n-l,y:o-l,width:i,height:a}:90===s?{x:n-a+l,y:o-l,width:a,height:i}:180===s?{x:n-i+l,y:o-a+l,width:i,height:a}:270===s?{x:n-l,y:o-i+l,width:a,height:i}:{x:n-l,y:o-l,width:i,height:a}}({x:l,y:c,width:u,height:d},i,a);p.setRectangle(m),h&&p.setP(h);var g=p.getOrCreateAppearanceCharacteristics();n&&g.setBackgroundColor(oI(n)),g.setRotation(a),s&&g.setCaptions({normal:s}),o&&g.setBorderColor(oI(o));var v=p.getOrCreateBorderStyle();if(void 0!==i&&v.setWidth(i),p.setFlagTo(ZR.Print,!0),p.setFlagTo(ZR.Hidden,f),p.setFlagTo(ZR.Invisible,!1),r){var b=(null!==(t=this.acroField.getDefaultAppearance())&&void 0!==t?t:"")+"\n"+tI(r).toString();this.acroField.setDefaultAppearance(b)}return p},e.prototype.updateWidgetAppearanceWithFont=function(e,t,r){var n=r.normal,o=r.rollover,i=r.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceStream(e,n,t),rollover:o&&this.createAppearanceStream(e,o,t),down:i&&this.createAppearanceStream(e,i,t)})},e.prototype.updateOnOffWidgetAppearance=function(e,t,r){var n=r.normal,o=r.rollover,i=r.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceDict(e,n,t),rollover:o&&this.createAppearanceDict(e,o,t),down:i&&this.createAppearanceDict(e,i,t)})},e.prototype.updateWidgetAppearances=function(e,t){var r=t.normal,n=t.rollover,o=t.down;e.setNormalAppearance(r),n?e.setRolloverAppearance(n):e.removeRolloverAppearance(),o?e.setDownAppearance(o):e.removeDownAppearance()},e.prototype.createAppearanceStream=function(e,t,r){var n,o=this.acroField.dict.context,i=e.getRectangle(),a=i.width,s=i.height,l=r&&{Font:(n={},n[r.name]=r.ref,n)},c=o.formXObject(t,{Resources:l,BBox:o.obj([0,0,a,s]),Matrix:o.obj([1,0,0,1,0,0])});return o.register(c)},e.prototype.createImageAppearanceStream=function(e,t,r){var n,o,i=this.acroField.dict.context,a=e.getRectangle(),s=e.getAppearanceCharacteristics(),l=e.getBorderStyle(),c=null!==(o=null==l?void 0:l.getWidth())&&void 0!==o?o:0,u=u_(null==s?void 0:s.getRotation()),d=wI(vA(vA({},a),{rotation:u})),f=d_(a,u),h=t.scaleToFit(f.width-2*c,f.height-2*c),p={x:c,y:c,width:h.width,height:h.height,rotate:o_(0),xSkew:o_(0),ySkew:o_(0)};r===aN.Center?(p.x+=(f.width-2*c)/2-h.width/2,p.y+=(f.height-2*c)/2-h.height/2):r===aN.Right&&(p.x=f.width-c-h.width,p.y=f.height-c-h.height);var m=this.doc.context.addRandomSuffix("Image",10),g=wA(d,gI(m,p)),v={XObject:(n={},n[m]=t.ref,n)},b=i.formXObject(g,{Resources:v,BBox:i.obj([0,0,a.width,a.height]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(b)},e.prototype.createAppearanceDict=function(e,t,r){var n=this.acroField.dict.context,o=this.createAppearanceStream(e,t.on),i=this.createAppearanceStream(e,t.off),a=n.obj({});return a.set(r,o),a.set(Dj.of("Off"),i),a},e}();const cN=lN;var uN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroCheckBox",[[qM,"PDFAcroCheckBox"]]),o.acroField=t,o}return gA(t,e),t.prototype.check=function(){var e,t=null!==(e=this.acroField.getOnValue())&&void 0!==e?e:Dj.of("Yes");this.markAsDirty(),this.acroField.setValue(t)},t.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(Dj.of("Off"))},t.prototype.isChecked=function(){var e=this.acroField.getOnValue();return!!e&&e===this.acroField.getValue()},t.prototype.addToPage=function(e,t){var r,n,o,i,a,s;_T(e,"page",[[DN,"PDFPage"]]),sN(t),t||(t={}),"textColor"in t||(t.textColor=$_(0,0,0)),"backgroundColor"in t||(t.backgroundColor=$_(1,1,1)),"borderColor"in t||(t.borderColor=$_(0,0,0)),"borderWidth"in t||(t.borderWidth=1);var l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:50,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(a=t.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=t.rotate)&&void 0!==s?s:o_(0),hidden:t.hidden,page:e.ref}),c=this.doc.context.register(l.dict);this.acroField.addWidget(c),l.setAppearanceState(Dj.of("Off")),this.updateWidgetAppearance(l,Dj.of("Yes")),e.node.addAnnot(c)},t.prototype.needsAppearancesUpdate=function(){for(var e,t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++){var o=t[r],i=o.getAppearanceState(),a=null===(e=o.getAppearances())||void 0===e?void 0:e.normal;if(!(a instanceof Hj))return!0;if(i&&!a.has(i))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(e){var t;IT(e,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n],a=null!==(t=i.getOnValue())&&void 0!==t?t:Dj.of("Yes");a&&this.updateWidgetAppearance(i,a,e)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,t,r){var n=VI((null!=r?r:YI)(this,e));this.updateOnOffWidgetAppearance(e,t,n)},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);const dN=uN;var fN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroComboBox",[[tR,"PDFAcroComboBox"]]),o.acroField=t,o}return gA(t,e),t.prototype.getOptions=function(){for(var e=this.acroField.getOptions(),t=new Array(e.length),r=0,n=t.length;r<n;r++){var o=e[r],i=o.display,a=o.value;t[r]=(null!=i?i:a).decodeText()}return t},t.prototype.getSelected=function(){for(var e=this.acroField.getValues(),t=new Array(e.length),r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t},t.prototype.setOptions=function(e){_T(e,"options",[Array]);for(var t=new Array(e.length),r=0,n=e.length;r<n;r++)t[r]={value:AP.fromText(e[r])};this.acroField.setOptions(t)},t.prototype.addOptions=function(e){_T(e,"options",["string",Array]);for(var t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),n=new Array(t.length),o=0,i=t.length;o<i;o++)n[o]={value:AP.fromText(t[o])};this.acroField.setOptions(r.concat(n))},t.prototype.select=function(e,t){void 0===t&&(t=!1),_T(e,"options",["string",Array]),_T(t,"merge",["boolean"]);var r=Array.isArray(e)?e:[e],n=this.getOptions();r.find((function(e){return!n.includes(e)}))&&this.enableEditing(),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();for(var o=new Array(r.length),i=0,a=r.length;i<a;i++)o[i]=AP.fromText(r[i]);if(t){var s=this.acroField.getValues();this.acroField.setValues(s.concat(o))}else this.acroField.setValues(o)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(e){LT(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.isEditable=function(){return this.acroField.hasFlag($M.Edit)},t.prototype.enableEditing=function(){this.acroField.setFlagTo($M.Edit,!0)},t.prototype.disableEditing=function(){this.acroField.setFlagTo($M.Edit,!1)},t.prototype.isSorted=function(){return this.acroField.hasFlag($M.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo($M.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo($M.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag($M.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo($M.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo($M.MultiSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag($M.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo($M.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo($M.DoNotSpellCheck,!0)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag($M.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo($M.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo($M.CommitOnSelChange,!1)},t.prototype.addToPage=function(e,t){var r,n,o,i,a,s,l;_T(e,"page",[[DN,"PDFPage"]]),sN(t),t||(t={}),"textColor"in t||(t.textColor=$_(0,0,0)),"backgroundColor"in t||(t.backgroundColor=$_(1,1,1)),"borderColor"in t||(t.borderColor=$_(0,0,0)),"borderWidth"in t||(t.borderWidth=1);var c=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(a=t.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=t.rotate)&&void 0!==s?s:o_(0),hidden:t.hidden,page:e.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u);var d=null!==(l=t.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(c,d),e.node.addAnnot(u)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++)if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Vj))return!0;return!1},t.prototype.defaultUpdateAppearances=function(e){_T(e,"font",[[nN,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,t){_T(e,"font",[[nN,"PDFFont"]]),IT(t,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,e,t)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,t,r){var n=VI((null!=r?r:JI)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);const hN=fN;var pN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroListBox",[[fR,"PDFAcroListBox"]]),o.acroField=t,o}return gA(t,e),t.prototype.getOptions=function(){for(var e=this.acroField.getOptions(),t=new Array(e.length),r=0,n=t.length;r<n;r++){var o=e[r],i=o.display,a=o.value;t[r]=(null!=i?i:a).decodeText()}return t},t.prototype.getSelected=function(){for(var e=this.acroField.getValues(),t=new Array(e.length),r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t},t.prototype.setOptions=function(e){_T(e,"options",[Array]),this.markAsDirty();for(var t=new Array(e.length),r=0,n=e.length;r<n;r++)t[r]={value:AP.fromText(e[r])};this.acroField.setOptions(t)},t.prototype.addOptions=function(e){_T(e,"options",["string",Array]),this.markAsDirty();for(var t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),n=new Array(t.length),o=0,i=t.length;o<i;o++)n[o]={value:AP.fromText(t[o])};this.acroField.setOptions(r.concat(n))},t.prototype.select=function(e,t){void 0===t&&(t=!1),_T(e,"options",["string",Array]),_T(t,"merge",["boolean"]);var r=Array.isArray(e)?e:[e];!function(e,t,r){Array.isArray(r)||(r=kT(r));for(var n=0,o=e.length;n<o;n++)PT(e[n],"option",r)}(r,0,this.getOptions()),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();for(var n=new Array(r.length),o=0,i=r.length;o<i;o++)n[o]=AP.fromText(r[o]);if(t){var a=this.acroField.getValues();this.acroField.setValues(a.concat(n))}else this.acroField.setValues(n)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(e){LT(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.isSorted=function(){return this.acroField.hasFlag($M.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo($M.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo($M.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag($M.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo($M.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo($M.MultiSelect,!1)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag($M.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo($M.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo($M.CommitOnSelChange,!1)},t.prototype.addToPage=function(e,t){var r,n,o,i,a,s,l;_T(e,"page",[[DN,"PDFPage"]]),sN(t),t||(t={}),"textColor"in t||(t.textColor=$_(0,0,0)),"backgroundColor"in t||(t.backgroundColor=$_(1,1,1)),"borderColor"in t||(t.borderColor=$_(0,0,0)),"borderWidth"in t||(t.borderWidth=1);var c=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:100,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(a=t.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=t.rotate)&&void 0!==s?s:o_(0),hidden:t.hidden,page:e.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u);var d=null!==(l=t.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(c,d),e.node.addAnnot(u)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++)if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Vj))return!0;return!1},t.prototype.defaultUpdateAppearances=function(e){_T(e,"font",[[nN,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,t){_T(e,"font",[[nN,"PDFFont"]]),IT(t,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,e,t)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,t,r){var n=VI((null!=r?r:eN)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);const mN=pN;var gN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroRadioButton",[[uR,"PDFAcroRadioButton"]]),o.acroField=t,o}return gA(t,e),t.prototype.getOptions=function(){var e=this.acroField.getExportValues();if(e){for(var t=new Array(e.length),r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}var o=this.acroField.getOnValues(),i=new Array(o.length);for(r=0,n=i.length;r<n;r++)i[r]=o[r].decodeText();return i},t.prototype.getSelected=function(){var e=this.acroField.getValue();if(e!==Dj.of("Off")){var t=this.acroField.getExportValues();if(t)for(var r=this.acroField.getOnValues(),n=0,o=r.length;n<o;n++)if(r[n]===e)return t[n].decodeText();return e.decodeText()}},t.prototype.select=function(e){_T(e,"option",["string"]);var t=this.getOptions();PT(e,"option",t),this.markAsDirty();var r=this.acroField.getOnValues(),n=this.acroField.getExportValues();if(n)for(var o=0,i=n.length;o<i;o++)n[o].decodeText()===e&&this.acroField.setValue(r[o]);else for(o=0,i=r.length;o<i;o++){var a=r[o];a.decodeText()===e&&this.acroField.setValue(a)}},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(Dj.of("Off"))},t.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(XM.NoToggleToOff)},t.prototype.enableOffToggling=function(){this.acroField.setFlagTo(XM.NoToggleToOff,!1)},t.prototype.disableOffToggling=function(){this.acroField.setFlagTo(XM.NoToggleToOff,!0)},t.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(XM.RadiosInUnison)},t.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(XM.RadiosInUnison,!1)},t.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(XM.RadiosInUnison,!0)},t.prototype.addOptionToPage=function(e,t,r){var n,o,i,a,s,l,c,u,d;_T(e,"option",["string"]),_T(t,"page",[[DN,"PDFPage"]]),sN(r);var f=this.createWidget({x:null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null==r?void 0:r.y)&&void 0!==o?o:0,width:null!==(i=null==r?void 0:r.width)&&void 0!==i?i:50,height:null!==(a=null==r?void 0:r.height)&&void 0!==a?a:50,textColor:null!==(s=null==r?void 0:r.textColor)&&void 0!==s?s:$_(0,0,0),backgroundColor:null!==(l=null==r?void 0:r.backgroundColor)&&void 0!==l?l:$_(1,1,1),borderColor:null!==(c=null==r?void 0:r.borderColor)&&void 0!==c?c:$_(0,0,0),borderWidth:null!==(u=null==r?void 0:r.borderWidth)&&void 0!==u?u:1,rotate:null!==(d=null==r?void 0:r.rotate)&&void 0!==d?d:o_(0),hidden:null==r?void 0:r.hidden,page:t.ref}),h=this.doc.context.register(f.dict),p=this.acroField.addWidgetWithOpt(h,AP.fromText(e),!this.isMutuallyExclusive());f.setAppearanceState(Dj.of("Off")),this.updateWidgetAppearance(f,p),t.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){for(var e,t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++){var o=t[r],i=o.getAppearanceState(),a=null===(e=o.getAppearances())||void 0===e?void 0:e.normal;if(!(a instanceof Hj))return!0;if(i&&!a.has(i))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(e){IT(e,"provider",[Function]);for(var t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++){var o=t[r],i=o.getOnValue();i&&this.updateWidgetAppearance(o,i,e)}},t.prototype.updateWidgetAppearance=function(e,t,r){var n=VI((null!=r?r:$I)(this,e));this.updateOnOffWidgetAppearance(e,t,n)},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);const vN=gN,bN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroSignature",[[oR,"PDFAcroSignature"]]),o.acroField=t,o}return gA(t,e),t.prototype.needsAppearancesUpdate=function(){return!1},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);var yN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroText",[[aR,"PDFAcroText"]]),o.acroField=t,o}return gA(t,e),t.prototype.getText=function(){var e=this.acroField.getValue();if(!e&&this.isRichFormatted())throw new II(this.getName());return null==e?void 0:e.decodeText()},t.prototype.setText=function(e){IT(e,"text",["string"]);var t=this.getMaxLength();if(void 0!==t&&e&&e.length>t)throw new FI(e.length,t,this.getName());this.markAsDirty(),this.disableRichFormatting(),e?this.acroField.setValue(AP.fromText(e)):this.acroField.removeValue()},t.prototype.getAlignment=function(){var e=this.acroField.getQuadding();return 0===e?X_.Left:1===e?X_.Center:2===e?X_.Right:X_.Left},t.prototype.setAlignment=function(e){PT(e,"alignment",X_),this.markAsDirty(),this.acroField.setQuadding(e)},t.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},t.prototype.setMaxLength=function(e){if(DT(e,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===e)this.acroField.removeMaxLength();else{var t=this.getText();if(t&&t.length>e)throw new DI(t.length,e,this.getName());this.acroField.setMaxLength(e)}},t.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},t.prototype.setImage=function(e){for(var t=this.getAlignment(),r=t===X_.Center?aN.Center:t===X_.Right?aN.Right:aN.Left,n=this.acroField.getWidgets(),o=0,i=n.length;o<i;o++){var a=n[o],s=this.createImageAppearanceStream(a,e,r);this.updateWidgetAppearances(a,{normal:s})}this.markAsClean()},t.prototype.setFontSize=function(e){LT(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.isMultiline=function(){return this.acroField.hasFlag(YM.Multiline)},t.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(YM.Multiline,!0)},t.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(YM.Multiline,!1)},t.prototype.isPassword=function(){return this.acroField.hasFlag(YM.Password)},t.prototype.enablePassword=function(){this.acroField.setFlagTo(YM.Password,!0)},t.prototype.disablePassword=function(){this.acroField.setFlagTo(YM.Password,!1)},t.prototype.isFileSelector=function(){return this.acroField.hasFlag(YM.FileSelect)},t.prototype.enableFileSelection=function(){this.acroField.setFlagTo(YM.FileSelect,!0)},t.prototype.disableFileSelection=function(){this.acroField.setFlagTo(YM.FileSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(YM.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(YM.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(YM.DoNotSpellCheck,!0)},t.prototype.isScrollable=function(){return!this.acroField.hasFlag(YM.DoNotScroll)},t.prototype.enableScrolling=function(){this.acroField.setFlagTo(YM.DoNotScroll,!1)},t.prototype.disableScrolling=function(){this.acroField.setFlagTo(YM.DoNotScroll,!0)},t.prototype.isCombed=function(){return this.acroField.hasFlag(YM.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()},t.prototype.enableCombing=function(){void 0===this.getMaxLength()&&console.warn("PDFTextFields must have a max length in order to be combed"),this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(YM.Comb,!0)},t.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(YM.Comb,!1)},t.prototype.isRichFormatted=function(){return this.acroField.hasFlag(YM.RichText)},t.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(YM.RichText,!0)},t.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(YM.RichText,!1)},t.prototype.addToPage=function(e,t){var r,n,o,i,a,s,l;_T(e,"page",[[DN,"PDFPage"]]),sN(t),t||(t={}),"textColor"in t||(t.textColor=$_(0,0,0)),"backgroundColor"in t||(t.backgroundColor=$_(1,1,1)),"borderColor"in t||(t.borderColor=$_(0,0,0)),"borderWidth"in t||(t.borderWidth=1);var c=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(a=t.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=t.rotate)&&void 0!==s?s:o_(0),hidden:t.hidden,page:e.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u);var d=null!==(l=t.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(c,d),e.node.addAnnot(u)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++)if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Vj))return!0;return!1},t.prototype.defaultUpdateAppearances=function(e){_T(e,"font",[[nN,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,t){_T(e,"font",[[nN,"PDFFont"]]),IT(t,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,e,t)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,t,r){var n=VI((null!=r?r:QI)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);const wN=yN;var xN;!function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"}(xN||(xN={}));var SN=function(){function e(e,t){var r=this;this.embedDefaultFont=function(){return r.doc.embedStandardFont(xN.Helvetica)},_T(e,"acroForm",[[CR,"PDFAcroForm"]]),_T(t,"doc",[[_N,"PDFDocument"]]),this.acroForm=e,this.doc=t,this.dirtyFields=new Set,this.defaultFontCache=WT.populatedBy(this.embedDefaultFont)}return e.prototype.hasXFA=function(){return this.acroForm.dict.has(Dj.of("XFA"))},e.prototype.deleteXFA=function(){this.acroForm.dict.delete(Dj.of("XFA"))},e.prototype.getFields=function(){for(var e=this.acroForm.getAllFields(),t=[],r=0,n=e.length;r<n;r++){var o=e[r],i=o[0],a=o[1],s=EN(i,a,this.doc);s&&t.push(s)}return t},e.prototype.getFieldMaybe=function(e){_T(e,"name",["string"]);for(var t=this.getFields(),r=0,n=t.length;r<n;r++){var o=t[r];if(o.getName()===e)return o}},e.prototype.getField=function(e){_T(e,"name",["string"]);var t=this.getFieldMaybe(e);if(t)return t;throw new PI(e)},e.prototype.getButton=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof LN)return t;throw new MI(e,LN,t)},e.prototype.getCheckBox=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof dN)return t;throw new MI(e,dN,t)},e.prototype.getDropdown=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof hN)return t;throw new MI(e,hN,t)},e.prototype.getOptionList=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof mN)return t;throw new MI(e,mN,t)},e.prototype.getRadioGroup=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof vN)return t;throw new MI(e,vN,t)},e.prototype.getSignature=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof bN)return t;throw new MI(e,bN,t)},e.prototype.getTextField=function(e){_T(e,"name",["string"]);var t=this.getField(e);if(t instanceof wN)return t;throw new MI(e,wN,t)},e.prototype.createButton=function(e){_T(e,"name",["string"]);var t=ON(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=lR.create(this.doc.context);return n.setPartialName(t.terminal),AN(r,[n,n.ref],t.terminal),LN.of(n,n.ref,this.doc)},e.prototype.createCheckBox=function(e){_T(e,"name",["string"]);var t=ON(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=qM.create(this.doc.context);return n.setPartialName(t.terminal),AN(r,[n,n.ref],t.terminal),dN.of(n,n.ref,this.doc)},e.prototype.createDropdown=function(e){_T(e,"name",["string"]);var t=ON(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=tR.create(this.doc.context);return n.setPartialName(t.terminal),AN(r,[n,n.ref],t.terminal),hN.of(n,n.ref,this.doc)},e.prototype.createOptionList=function(e){_T(e,"name",["string"]);var t=ON(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=fR.create(this.doc.context);return n.setPartialName(t.terminal),AN(r,[n,n.ref],t.terminal),mN.of(n,n.ref,this.doc)},e.prototype.createRadioGroup=function(e){_T(e,"name",["string"]);var t=ON(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=uR.create(this.doc.context);return n.setPartialName(t.terminal),AN(r,[n,n.ref],t.terminal),vN.of(n,n.ref,this.doc)},e.prototype.createTextField=function(e){_T(e,"name",["string"]);var t=ON(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=aR.create(this.doc.context);return n.setPartialName(t.terminal),AN(r,[n,n.ref],t.terminal),wN.of(n,n.ref,this.doc)},e.prototype.flatten=function(e){void 0===e&&(e={updateFieldAppearances:!0}),e.updateFieldAppearances&&this.updateFieldAppearances();for(var t=this.getFields(),r=0,n=t.length;r<n;r++){for(var o=t[r],i=o.acroField.getWidgets(),a=0,s=i.length;a<s;a++){var l=i[a],c=this.findWidgetPage(l),u=this.findWidgetAppearanceRef(o,l),d=c.node.newXObject("FlatWidget",u),f=l.getRectangle(),h=wA([A_(),v_(f.x,f.y)],wI(vA(vA({},f),{rotation:0})),[G_(d),T_()]).filter(Boolean);c.pushOperators.apply(c,h)}this.removeField(o)}},e.prototype.removeField=function(e){for(var t=e.acroField.getWidgets(),r=new Set,n=0,o=t.length;n<o;n++){var i=t[n],a=this.findWidgetAppearanceRef(e,i),s=this.findWidgetPage(i);r.add(s),s.node.removeAnnot(a)}r.forEach((function(t){return t.node.removeAnnot(e.ref)})),this.acroForm.removeField(e.acroField);for(var l=e.acroField.normalizedEntries().Kids,c=l.size(),u=0;u<c;u++){var d=l.get(u);d instanceof Yj&&this.doc.context.delete(d)}this.doc.context.delete(e.ref)},e.prototype.updateFieldAppearances=function(e){IT(e,"font",[[nN,"PDFFont"]]),e=null!=e?e:this.getDefaultFont();for(var t=this.getFields(),r=0,n=t.length;r<n;r++){var o=t[r];o.needsAppearancesUpdate()&&o.defaultUpdateAppearances(e)}},e.prototype.markFieldAsDirty=function(e){IT(e,"fieldRef",[[Yj,"PDFRef"]]),this.dirtyFields.add(e)},e.prototype.markFieldAsClean=function(e){IT(e,"fieldRef",[[Yj,"PDFRef"]]),this.dirtyFields.delete(e)},e.prototype.fieldIsDirty=function(e){return IT(e,"fieldRef",[[Yj,"PDFRef"]]),this.dirtyFields.has(e)},e.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},e.prototype.findWidgetPage=function(e){var t=e.P(),r=this.doc.getPages().find((function(e){return e.ref===t}));if(void 0===r){var n=this.doc.context.getObjectRef(e.dict);if(void 0===n)throw new Error("Could not find PDFRef for PDFObject");if(void 0===(r=this.doc.findPageForAnnotationRef(n)))throw new Error("Could not find page for PDFRef "+n)}return r},e.prototype.findWidgetAppearanceRef=function(e,t){var r,n=t.getNormalAppearance();if(n instanceof Hj&&(e instanceof dN||e instanceof vN)){var o=e.acroField.getValue(),i=null!==(r=n.get(o))&&void 0!==r?r:n.get(Dj.of("Off"));i instanceof Yj&&(n=i)}if(!(n instanceof Yj)){var a=e.getName();throw new Error("Failed to extract appearance ref for: "+a)}return n},e.prototype.findOrCreateNonTerminals=function(e){for(var t=[this.acroForm],r=0,n=e.length;r<n;r++){var o=e[r];if(!o)throw new _I(o);var i=t[0],a=t[1],s=this.findNonTerminal(o,i);if(s)t=s;else{var l=nR.create(this.doc.context);l.setPartialName(o),l.setParent(a);var c=this.doc.context.register(l.dict);i.addField(c),t=[l,c]}}return t},e.prototype.findNonTerminal=function(e,t){for(var r=t instanceof CR?this.acroForm.getFields():hR(t.Kids()),n=0,o=r.length;n<o;n++){var i=r[n],a=i[0],s=i[1];if(a.getPartialName()===e){if(a instanceof nR)return[a,s];throw new RI(e)}}},e.of=function(t,r){return new e(t,r)},e}();const CN=SN;var kN,EN=function(e,t,r){return e instanceof lR?LN.of(e,t,r):e instanceof qM?dN.of(e,t,r):e instanceof tR?hN.of(e,t,r):e instanceof fR?mN.of(e,t,r):e instanceof aR?wN.of(e,t,r):e instanceof uR?vN.of(e,t,r):e instanceof oR?bN.of(e,t,r):void 0},ON=function(e){if(0===e.length)throw new Error("PDF field names must not be empty strings");for(var t=e.split("."),r=0,n=t.length;r<n;r++)if(""===t[r])throw new Error('Periods in PDF field names must be separated by at least one character: "'+e+'"');return 1===t.length?{nonTerminal:[],terminal:t[0]}:{nonTerminal:t.slice(0,t.length-1),terminal:t[t.length-1]}},AN=function(e,t,r){for(var n=e[0],o=e[1],i=t[0],a=t[1],s=n.normalizedEntries(),l=(hR("Kids"in s?s.Kids:s.Fields)),c=0,u=l.length;c<u;c++)if(l[c][0].getPartialName()===r)throw new RI(r);n.addField(a),i.setParent(o)},TN={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],Executive:[521.86,756],Folio:[612,936],Legal:[612,1008],Letter:[612,792],Tabloid:[792,1224]};!function(e){e[e.Fastest=1/0]="Fastest",e[e.Fast=1500]="Fast",e[e.Medium=500]="Medium",e[e.Slow=100]="Slow"}(kN||(kN={}));const jN=function(){function e(e,t,r){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=r}return e.prototype.embed=function(){return bA(this,void 0,void 0,(function(){var e,t,r,n;return yA(this,(function(o){switch(o.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e=o.sent(),this.doc.catalog.has(Dj.of("Names"))||this.doc.catalog.set(Dj.of("Names"),this.doc.context.obj({})),(t=this.doc.catalog.lookup(Dj.of("Names"),Hj)).has(Dj.of("EmbeddedFiles"))||t.set(Dj.of("EmbeddedFiles"),this.doc.context.obj({})),(r=t.lookup(Dj.of("EmbeddedFiles"),Hj)).has(Dj.of("Names"))||r.set(Dj.of("Names"),this.doc.context.obj([])),(n=r.lookup(Dj.of("Names"),Oj)).push(AP.fromText(this.embedder.fileName)),n.push(e),this.doc.catalog.has(Dj.of("AF"))||this.doc.catalog.set(Dj.of("AF"),this.doc.context.obj([])),this.doc.catalog.lookup(Dj.of("AF"),Oj).push(e),this.alreadyEmbedded=!0,o.label=2;case 2:return[2]}}))}))},e.of=function(t,r,n){return new e(t,r,n)},e}();const PN=function(){function e(e,t,r){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=r}return e.prototype.embed=function(){return bA(this,void 0,void 0,(function(){var e,t,r,n,o,i,a;return yA(this,(function(s){switch(s.label){case 0:return this.alreadyEmbedded?[3,2]:(e=this.doc,t=e.catalog,r=e.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:n=s.sent(),t.has(Dj.of("Names"))||t.set(Dj.of("Names"),r.obj({})),(o=t.lookup(Dj.of("Names"),Hj)).has(Dj.of("JavaScript"))||o.set(Dj.of("JavaScript"),r.obj({})),(i=o.lookup(Dj.of("JavaScript"),Hj)).has(Dj.of("Names"))||i.set(Dj.of("Names"),r.obj([])),(a=i.lookup(Dj.of("Names"),Oj)).push(AP.fromText(this.embedder.scriptName)),a.push(n),this.alreadyEmbedded=!0,s.label=2;case 2:return[2]}}))}))},e.of=function(t,r,n){return new e(t,r,n)},e}();const MN=function(){function e(e,t){this.script=e,this.scriptName=t}return e.for=function(t,r){return new e(t,r)},e.prototype.embedIntoContext=function(e,t){return bA(this,void 0,void 0,(function(){var r;return yA(this,(function(n){return r=e.obj({Type:"Action",S:"JavaScript",JS:AP.fromText(this.script)}),t?(e.assign(t,r),[2,t]):[2,e.register(r)]}))}))},e}();var RN=function(){function e(e,t,r){var n=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var e=[];return n.catalog.Pages().traverse((function(t,r){if(t instanceof lP){var o=n.pageMap.get(t);o||(o=DN.of(t,r,n),n.pageMap.set(t,o)),e.push(o)}})),e},this.getOrCreateForm=function(){var e=n.catalog.getOrCreateAcroForm();return CN.of(e,n)},_T(e,"context",[[aP,"PDFContext"]]),_T(t,"ignoreEncryption",["boolean"]),this.context=e,this.catalog=e.lookup(e.trailerInfo.Root),this.isEncrypted=!!e.lookup(e.trailerInfo.Encrypt),this.pageCache=WT.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=WT.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!t&&this.isEncrypted)throw new OI;r&&this.updateInfoDict()}return e.load=function(t,r){return void 0===r&&(r={}),bA(this,void 0,void 0,(function(){var n,o,i,a,s,l,c,u,d,f,h;return yA(this,(function(p){switch(p.label){case 0:return n=r.ignoreEncryption,o=void 0!==n&&n,i=r.parseSpeed,a=void 0===i?kN.Slow:i,s=r.throwOnInvalidObject,l=void 0!==s&&s,c=r.updateMetadata,u=void 0===c||c,d=r.capNumbers,f=void 0!==d&&d,_T(t,"pdf",["string",Uint8Array,ArrayBuffer]),_T(o,"ignoreEncryption",["boolean"]),_T(a,"parseSpeed",["number"]),_T(l,"throwOnInvalidObject",["boolean"]),h=YA(t),[4,$R.forBytesWithOptions(h,a,l,f).parseDocument()];case 1:return[2,new e(p.sent(),o,u)]}}))}))},e.create=function(t){return void 0===t&&(t={}),bA(this,void 0,void 0,(function(){var r,n,o,i,a,s;return yA(this,(function(l){return r=t.updateMetadata,n=void 0===r||r,o=aP.create(),i=AR.withContext(o),a=o.register(i),s=ER.withContextAndPages(o,a),o.trailerInfo.Root=o.register(s),[2,new e(o,!1,n)]}))}))},e.prototype.registerFontkit=function(e){this.fontkit=e},e.prototype.getForm=function(){var e=this.formCache.access();return e.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),e.deleteXFA()),e},e.prototype.getTitle=function(){var e=this.getInfoDict().lookup(Dj.Title);if(e)return IN(e),e.decodeText()},e.prototype.getAuthor=function(){var e=this.getInfoDict().lookup(Dj.Author);if(e)return IN(e),e.decodeText()},e.prototype.getSubject=function(){var e=this.getInfoDict().lookup(Dj.Subject);if(e)return IN(e),e.decodeText()},e.prototype.getKeywords=function(){var e=this.getInfoDict().lookup(Dj.Keywords);if(e)return IN(e),e.decodeText()},e.prototype.getCreator=function(){var e=this.getInfoDict().lookup(Dj.Creator);if(e)return IN(e),e.decodeText()},e.prototype.getProducer=function(){var e=this.getInfoDict().lookup(Dj.Producer);if(e)return IN(e),e.decodeText()},e.prototype.getCreationDate=function(){var e=this.getInfoDict().lookup(Dj.CreationDate);if(e)return IN(e),e.decodeDate()},e.prototype.getModificationDate=function(){var e=this.getInfoDict().lookup(Dj.ModDate);if(e)return IN(e),e.decodeDate()},e.prototype.setTitle=function(e,t){_T(e,"title",["string"]);var r=Dj.of("Title");this.getInfoDict().set(r,AP.fromText(e)),(null==t?void 0:t.showInWindowTitleBar)&&this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)},e.prototype.setAuthor=function(e){_T(e,"author",["string"]);var t=Dj.of("Author");this.getInfoDict().set(t,AP.fromText(e))},e.prototype.setSubject=function(e){_T(e,"author",["string"]);var t=Dj.of("Subject");this.getInfoDict().set(t,AP.fromText(e))},e.prototype.setKeywords=function(e){_T(e,"keywords",[Array]);var t=Dj.of("Keywords");this.getInfoDict().set(t,AP.fromText(e.join(" ")))},e.prototype.setCreator=function(e){_T(e,"creator",["string"]);var t=Dj.of("Creator");this.getInfoDict().set(t,AP.fromText(e))},e.prototype.setProducer=function(e){_T(e,"creator",["string"]);var t=Dj.of("Producer");this.getInfoDict().set(t,AP.fromText(e))},e.prototype.setLanguage=function(e){_T(e,"language",["string"]);var t=Dj.of("Lang");this.catalog.set(t,IP.of(e))},e.prototype.setCreationDate=function(e){_T(e,"creationDate",[[Date,"Date"]]);var t=Dj.of("CreationDate");this.getInfoDict().set(t,IP.fromDate(e))},e.prototype.setModificationDate=function(e){_T(e,"modificationDate",[[Date,"Date"]]);var t=Dj.of("ModDate");this.getInfoDict().set(t,IP.fromDate(e))},e.prototype.getPageCount=function(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount},e.prototype.getPages=function(){return this.pageCache.access()},e.prototype.getPage=function(e){var t=this.getPages();return FT(e,"index",0,t.length-1),t[e]},e.prototype.getPageIndices=function(){return function(e,t){for(var r=new Array(t-0),n=0,o=r.length;n<o;n++)r[n]=0+n;return r}(0,this.getPageCount())},e.prototype.removePage=function(e){var t=this.getPageCount();if(0===this.pageCount)throw new jI;FT(e,"index",0,t-1),this.catalog.removeLeafNode(e),this.pageCount=t-1},e.prototype.addPage=function(e){return _T(e,"page",["undefined",[DN,"PDFPage"],Array]),this.insertPage(this.getPageCount(),e)},e.prototype.insertPage=function(e,t){var r=this.getPageCount();if(FT(e,"index",0,r),_T(t,"page",["undefined",[DN,"PDFPage"],Array]),!t||Array.isArray(t)){var n=Array.isArray(t)?t:TN.A4;(t=DN.create(this)).setSize.apply(t,n)}else if(t.doc!==this)throw new TI;var o=this.catalog.insertLeafNode(t.ref,e);return t.node.setParent(o),this.pageMap.set(t.node,t),this.pageCache.invalidate(),this.pageCount=r+1,t},e.prototype.copyPages=function(t,r){return bA(this,void 0,void 0,(function(){var n,o,i,a,s,l,c,u;return yA(this,(function(d){switch(d.label){case 0:return _T(t,"srcDoc",[[e,"PDFDocument"]]),_T(r,"indices",[Array]),[4,t.flush()];case 1:for(d.sent(),n=uP.for(t.context,this.context),o=t.getPages(),i=new Array(r.length),a=0,s=r.length;a<s;a++)l=o[r[a]],c=n.copy(l.node),u=this.context.register(c),i[a]=DN.of(c,u,this);return[2,i]}}))}))},e.prototype.copy=function(){return bA(this,void 0,void 0,(function(){var t,r,n,o;return yA(this,(function(i){switch(i.label){case 0:return[4,e.create()];case 1:return[4,(t=i.sent()).copyPages(this,this.getPageIndices())];case 2:for(r=i.sent(),n=0,o=r.length;n<o;n++)t.addPage(r[n]);return void 0!==this.getAuthor()&&t.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&t.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&t.setCreator(this.getCreator()),void 0!==this.getModificationDate()&&t.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&t.setProducer(this.getProducer()),void 0!==this.getSubject()&&t.setSubject(this.getSubject()),void 0!==this.getTitle()&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,[2,t]}}))}))},e.prototype.addJavaScript=function(e,t){_T(e,"name",["string"]),_T(t,"script",["string"]);var r=MN.for(t,e),n=this.context.nextRef(),o=PN.of(n,this,r);this.javaScripts.push(o)},e.prototype.attach=function(e,t,r){return void 0===r&&(r={}),bA(this,void 0,void 0,(function(){var n,o,i,a;return yA(this,(function(s){return _T(e,"attachment",["string",Uint8Array,ArrayBuffer]),_T(t,"name",["string"]),IT(r.mimeType,"mimeType",["string"]),IT(r.description,"description",["string"]),IT(r.creationDate,"options.creationDate",[Date]),IT(r.modificationDate,"options.modificationDate",[Date]),MT(r.afRelationship,"options.afRelationship",LP),n=YA(e),o=HP.for(n,t,r),i=this.context.nextRef(),a=jN.of(i,this,o),this.embeddedFiles.push(a),[2]}))}))},e.prototype.embedFont=function(e,t){return void 0===t&&(t={}),bA(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,u,d;return yA(this,(function(f){switch(f.label){case 0:return r=t.subset,n=void 0!==r&&r,o=t.customName,i=t.features,_T(e,"font",["string",Uint8Array,ArrayBuffer]),_T(n,"subset",["boolean"]),OT(e)?(a=jP.for(e,o),[3,7]):[3,1];case 1:return function(e){return e instanceof Uint8Array||e instanceof ArrayBuffer||"string"==typeof e}(e)?(s=YA(e),l=this.assertFontkit(),n?[4,BP.for(l,s,o,i)]:[3,3]):[3,6];case 2:return c=f.sent(),[3,5];case 3:return[4,FP.for(l,s,o,i)];case 4:c=f.sent(),f.label=5;case 5:return a=c,[3,7];case 6:throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return u=this.context.nextRef(),d=nN.of(u,this,a),this.fonts.push(d),[2,d]}}))}))},e.prototype.embedStandardFont=function(e,t){if(_T(e,"font",["string"]),!OT(e))throw new TypeError("`font` must be one of type `StandardFonts`");var r=jP.for(e,t),n=this.context.nextRef(),o=nN.of(n,this,r);return this.fonts.push(o),o},e.prototype.embedJpg=function(e){return bA(this,void 0,void 0,(function(){var t,r,n,o;return yA(this,(function(i){switch(i.label){case 0:return _T(e,"jpg",["string",Uint8Array,ArrayBuffer]),t=YA(e),[4,GP.for(t)];case 1:return r=i.sent(),n=this.context.nextRef(),o=iN.of(n,this,r),this.images.push(o),[2,o]}}))}))},e.prototype.embedPng=function(e){return bA(this,void 0,void 0,(function(){var t,r,n,o;return yA(this,(function(i){switch(i.label){case 0:return _T(e,"png",["string",Uint8Array,ArrayBuffer]),t=YA(e),[4,JP.for(t)];case 1:return r=i.sent(),n=this.context.nextRef(),o=iN.of(n,this,r),this.images.push(o),[2,o]}}))}))},e.prototype.embedPdf=function(t,r){return void 0===r&&(r=[0]),bA(this,void 0,void 0,(function(){var n,o;return yA(this,(function(i){switch(i.label){case 0:return _T(t,"pdf",["string",Uint8Array,ArrayBuffer,[e,"PDFDocument"]]),_T(r,"indices",[Array]),t instanceof e?(n=t,[3,3]):[3,1];case 1:return[4,e.load(t)];case 2:n=i.sent(),i.label=3;case 3:return o=function(e,t){for(var r=new Array(t.length),n=0,o=t.length;n<o;n++)r[n]=e[t[n]];return r}(n.getPages(),r),[2,this.embedPages(o)]}}))}))},e.prototype.embedPage=function(e,t,r){return bA(this,void 0,void 0,(function(){return yA(this,(function(n){switch(n.label){case 0:return _T(e,"page",[[DN,"PDFPage"]]),[4,this.embedPages([e],[t],[r])];case 1:return[2,n.sent()[0]]}}))}))},e.prototype.embedPages=function(e,t,r){return void 0===t&&(t=[]),void 0===r&&(r=[]),bA(this,void 0,void 0,(function(){var n,o,i,a,s,l,c,u,d,f,h,p,m;return yA(this,(function(g){switch(g.label){case 0:if(0===e.length)return[2,[]];for(l=0,c=e.length-1;l<c;l++)if(n=e[l],o=e[l+1],n.node.context!==o.node.context)throw new ej;i=e[0].node.context,a=i===this.context?function(e){return e}:uP.for(i,this.context).copy,s=new Array(e.length),l=0,c=e.length,g.label=1;case 1:return l<c?(u=a(e[l].node),d=t[l],f=r[l],[4,SM.for(u,d,f)]):[3,4];case 2:h=g.sent(),p=this.context.nextRef(),s[l]=tN.of(p,this,h),g.label=3;case 3:return l++,[3,1];case 4:return(m=this.embeddedPages).push.apply(m,s),[2,s]}}))}))},e.prototype.flush=function(){return bA(this,void 0,void 0,(function(){return yA(this,(function(e){switch(e.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return e.sent(),[4,this.embedAll(this.images)];case 2:return e.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return e.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return e.sent(),[4,this.embedAll(this.javaScripts)];case 5:return e.sent(),[2]}}))}))},e.prototype.save=function(e){return void 0===e&&(e={}),bA(this,void 0,void 0,(function(){var t,r,n,o,i,a,s,l,c;return yA(this,(function(u){switch(u.label){case 0:return t=e.useObjectStreams,r=void 0===t||t,n=e.addDefaultPage,o=void 0===n||n,i=e.objectsPerTick,a=void 0===i?50:i,s=e.updateFieldAppearances,l=void 0===s||s,_T(r,"useObjectStreams",["boolean"]),_T(o,"addDefaultPage",["boolean"]),_T(a,"objectsPerTick",["number"]),_T(l,"updateFieldAppearances",["boolean"]),o&&0===this.getPageCount()&&this.addPage(),l&&(c=this.formCache.getValue())&&c.updateFieldAppearances(),[4,this.flush()];case 1:return u.sent(),[2,(r?EP:bP).forContext(this.context,a).serializeToBuffer()]}}))}))},e.prototype.saveAsBase64=function(e){return void 0===e&&(e={}),bA(this,void 0,void 0,(function(){var t,r,n,o,i;return yA(this,(function(a){switch(a.label){case 0:return t=e.dataUri,r=void 0!==t&&t,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["dataUri"]),_T(r,"dataUri",["boolean"]),[4,this.save(n)];case 1:return o=a.sent(),i=function(e){for(var t="",r=e.length,n=0;n<r;n+=3)t+=xA[e[n]>>2],t+=xA[(3&e[n])<<4|e[n+1]>>4],t+=xA[(15&e[n+1])<<2|e[n+2]>>6],t+=xA[63&e[n+2]];return r%3==2?t=t.substring(0,t.length-1)+"=":r%3==1&&(t=t.substring(0,t.length-2)+"=="),t}(o),[2,r?"data:application/pdf;base64,"+i:i]}}))}))},e.prototype.findPageForAnnotationRef=function(e){for(var t=this.getPages(),r=0,n=t.length;r<n;r++){var o=t[r],i=o.node.Annots();if(void 0!==(null==i?void 0:i.indexOf(e)))return o}},e.prototype.embedAll=function(e){return bA(this,void 0,void 0,(function(){var t,r;return yA(this,(function(n){switch(n.label){case 0:t=0,r=e.length,n.label=1;case 1:return t<r?[4,e[t].embed()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.updateInfoDict=function(){var e="pdf-lib (https://github.com/Hopding/pdf-lib)",t=new Date,r=this.getInfoDict();this.setProducer(e),this.setModificationDate(t),r.get(Dj.of("Creator"))||this.setCreator(e),r.get(Dj.of("CreationDate"))||this.setCreationDate(t)},e.prototype.getInfoDict=function(){var e=this.context.lookup(this.context.trailerInfo.Info);if(e instanceof Hj)return e;var t=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(t),t},e.prototype.assertFontkit=function(){if(!this.fontkit)throw new AI;return this.fontkit},e}();const _N=RN;function IN(e){if(!(e instanceof AP||e instanceof IP))throw new YT([AP,IP],e)}var NN;!function(e){e.Normal="Normal",e.Multiply="Multiply",e.Screen="Screen",e.Overlay="Overlay",e.Darken="Darken",e.Lighten="Lighten",e.ColorDodge="ColorDodge",e.ColorBurn="ColorBurn",e.HardLight="HardLight",e.SoftLight="SoftLight",e.Difference="Difference",e.Exclusion="Exclusion"}(NN||(NN={}));var FN=function(){function e(e,t,r){this.fontSize=24,this.fontColor=$_(0,0,0),this.lineHeight=24,this.x=0,this.y=0,_T(e,"leafNode",[[lP,"PDFPageLeaf"]]),_T(t,"ref",[[Yj,"PDFRef"]]),_T(r,"doc",[[_N,"PDFDocument"]]),this.node=e,this.ref=t,this.doc=r}return e.prototype.setRotation=function(e){var t=c_(e);BT(t,"degreesAngle",90),this.node.set(Dj.of("Rotate"),this.doc.context.obj(t))},e.prototype.getRotation=function(){var e=this.node.Rotate();return o_(e?e.asNumber():0)},e.prototype.setSize=function(e,t){_T(e,"width",["number"]),_T(t,"height",["number"]);var r=this.getMediaBox();this.setMediaBox(r.x,r.y,e,t);var n=this.getCropBox(),o=this.getBleedBox(),i=this.getTrimBox(),a=this.getArtBox(),s=this.node.CropBox(),l=this.node.BleedBox(),c=this.node.TrimBox(),u=this.node.ArtBox();s&&AT(n,r)&&this.setCropBox(r.x,r.y,e,t),l&&AT(o,r)&&this.setBleedBox(r.x,r.y,e,t),c&&AT(i,r)&&this.setTrimBox(r.x,r.y,e,t),u&&AT(a,r)&&this.setArtBox(r.x,r.y,e,t)},e.prototype.setWidth=function(e){_T(e,"width",["number"]),this.setSize(e,this.getSize().height)},e.prototype.setHeight=function(e){_T(e,"height",["number"]),this.setSize(this.getSize().width,e)},e.prototype.setMediaBox=function(e,t,r,n){_T(e,"x",["number"]),_T(t,"y",["number"]),_T(r,"width",["number"]),_T(n,"height",["number"]);var o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Dj.MediaBox,o)},e.prototype.setCropBox=function(e,t,r,n){_T(e,"x",["number"]),_T(t,"y",["number"]),_T(r,"width",["number"]),_T(n,"height",["number"]);var o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Dj.CropBox,o)},e.prototype.setBleedBox=function(e,t,r,n){_T(e,"x",["number"]),_T(t,"y",["number"]),_T(r,"width",["number"]),_T(n,"height",["number"]);var o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Dj.BleedBox,o)},e.prototype.setTrimBox=function(e,t,r,n){_T(e,"x",["number"]),_T(t,"y",["number"]),_T(r,"width",["number"]),_T(n,"height",["number"]);var o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Dj.TrimBox,o)},e.prototype.setArtBox=function(e,t,r,n){_T(e,"x",["number"]),_T(t,"y",["number"]),_T(r,"width",["number"]),_T(n,"height",["number"]);var o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Dj.ArtBox,o)},e.prototype.getSize=function(){var e=this.getMediaBox();return{width:e.width,height:e.height}},e.prototype.getWidth=function(){return this.getSize().width},e.prototype.getHeight=function(){return this.getSize().height},e.prototype.getMediaBox=function(){return this.node.MediaBox().asRectangle()},e.prototype.getCropBox=function(){var e,t=this.node.CropBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getMediaBox()},e.prototype.getBleedBox=function(){var e,t=this.node.BleedBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()},e.prototype.getTrimBox=function(){var e,t=this.node.TrimBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()},e.prototype.getArtBox=function(){var e,t=this.node.ArtBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()},e.prototype.translateContent=function(e,t){_T(e,"x",["number"]),_T(t,"y",["number"]),this.node.normalize(),this.getContentStream();var r=this.createContentStream(A_(),v_(e,t)),n=this.doc.context.register(r),o=this.createContentStream(T_()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)},e.prototype.scale=function(e,t){_T(e,"x",["number"]),_T(t,"y",["number"]),this.setSize(this.getWidth()*e,this.getHeight()*t),this.scaleContent(e,t),this.scaleAnnotations(e,t)},e.prototype.scaleContent=function(e,t){_T(e,"x",["number"]),_T(t,"y",["number"]),this.node.normalize(),this.getContentStream();var r=this.createContentStream(A_(),b_(e,t)),n=this.doc.context.register(r),o=this.createContentStream(T_()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)},e.prototype.scaleAnnotations=function(e,t){_T(e,"x",["number"]),_T(t,"y",["number"]);var r=this.node.Annots();if(r)for(var n=0;n<r.size();n++){var o=r.lookup(n);o instanceof Hj&&this.scaleAnnot(o,e,t)}},e.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},e.prototype.setFont=function(e){_T(e,"font",[[nN,"PDFFont"]]),this.font=e,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},e.prototype.setFontSize=function(e){_T(e,"fontSize",["number"]),this.fontSize=e},e.prototype.setFontColor=function(e){_T(e,"fontColor",[[Object,"Color"]]),this.fontColor=e},e.prototype.setLineHeight=function(e){_T(e,"lineHeight",["number"]),this.lineHeight=e},e.prototype.getPosition=function(){return{x:this.x,y:this.y}},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.moveTo=function(e,t){_T(e,"x",["number"]),_T(t,"y",["number"]),this.x=e,this.y=t},e.prototype.moveDown=function(e){_T(e,"yDecrease",["number"]),this.y-=e},e.prototype.moveUp=function(e){_T(e,"yIncrease",["number"]),this.y+=e},e.prototype.moveLeft=function(e){_T(e,"xDecrease",["number"]),this.x-=e},e.prototype.moveRight=function(e){_T(e,"xIncrease",["number"]),this.x+=e},e.prototype.pushOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];NT(e,"operator",[[Zj,"PDFOperator"]]);var r=this.getContentStream();r.push.apply(r,e)},e.prototype.drawText=function(e,t){var r,n,o,i,a,s,l;void 0===t&&(t={}),_T(e,"text",["string"]),IT(t.color,"options.color",[[Object,"Color"]]),DT(t.opacity,"opacity.opacity",0,1),IT(t.font,"options.font",[[nN,"PDFFont"]]),IT(t.size,"options.size",["number"]),IT(t.rotate,"options.rotate",[[Object,"Rotation"]]),IT(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),IT(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),IT(t.x,"options.x",["number"]),IT(t.y,"options.y",["number"]),IT(t.lineHeight,"options.lineHeight",["number"]),IT(t.maxWidth,"options.maxWidth",["number"]),IT(t.wordBreaks,"options.wordBreaks",[Array]),MT(t.blendMode,"options.blendMode",NN);for(var c=this.setOrEmbedFont(t.font),u=c.oldFont,d=c.newFont,f=c.newFontKey,h=t.size||this.fontSize,p=t.wordBreaks||this.doc.defaultWordBreaks,m=void 0===t.maxWidth?DA(IA(e)):function(e,t,r,n){for(var o=function(e){for(var t=NA.join("|"),r=["$"],n=0,o=e.length;n<o;n++){var i=e[n];if(FA(i))throw new TypeError("`wordBreak` must not include "+t);r.push(""===i?".":i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}var a=r.join("|");return new RegExp("("+t+")|((.*?)("+a+"))","gm")}(t),i=IA(e).match(o),a="",s=0,l=[],c=function(){""!==a&&l.push(a),a="",s=0},u=0,d=i.length;u<d;u++){var f=i[u];if(FA(f))c();else{var h=n(f);s+h>r&&c(),a+=f,s+=h}}return c(),l}(e,p,t.maxWidth,(function(e){return d.widthOfTextAtSize(e,h)})),g=new Array(m.length),v=0,b=m.length;v<b;v++)g[v]=d.encodeText(m[v]);var y=this.maybeEmbedGraphicsState({opacity:t.opacity,blendMode:t.blendMode}),w=this.getContentStream();w.push.apply(w,function(e,t){for(var r,n=[A_(),t.graphicsState&&O_(t.graphicsState),z_(),tI(t.color),U_(t.font,t.size),(r=t.lineHeight,Zj.of(Jj.SetTextLineHeight,[t_(r)])),W_(l_(t.rotate),l_(t.xSkew),l_(t.ySkew),t.x,t.y)].filter(Boolean),o=0,i=e.length;o<i;o++)n.push(L_(e[o]),Zj.of(Jj.NextLine));return n.push(H_(),T_()),n}(g,{color:null!==(r=t.color)&&void 0!==r?r:this.fontColor,font:f,size:h,rotate:null!==(n=t.rotate)&&void 0!==n?n:o_(0),xSkew:null!==(o=t.xSkew)&&void 0!==o?o:o_(0),ySkew:null!==(i=t.ySkew)&&void 0!==i?i:o_(0),x:null!==(a=t.x)&&void 0!==a?a:this.x,y:null!==(s=t.y)&&void 0!==s?s:this.y,lineHeight:null!==(l=t.lineHeight)&&void 0!==l?l:this.lineHeight,graphicsState:y})),t.font&&(u?this.setFont(u):this.resetFont())},e.prototype.drawImage=function(e,t){var r,n,o,i,a,s,l;void 0===t&&(t={}),_T(e,"image",[[iN,"PDFImage"]]),IT(t.x,"options.x",["number"]),IT(t.y,"options.y",["number"]),IT(t.width,"options.width",["number"]),IT(t.height,"options.height",["number"]),IT(t.rotate,"options.rotate",[[Object,"Rotation"]]),IT(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),IT(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),DT(t.opacity,"opacity.opacity",0,1),MT(t.blendMode,"options.blendMode",NN);var c=this.node.newXObject("Image",e.ref),u=this.maybeEmbedGraphicsState({opacity:t.opacity,blendMode:t.blendMode}),d=this.getContentStream();d.push.apply(d,gI(c,{x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,width:null!==(o=t.width)&&void 0!==o?o:e.size().width,height:null!==(i=t.height)&&void 0!==i?i:e.size().height,rotate:null!==(a=t.rotate)&&void 0!==a?a:o_(0),xSkew:null!==(s=t.xSkew)&&void 0!==s?s:o_(0),ySkew:null!==(l=t.ySkew)&&void 0!==l?l:o_(0),graphicsState:u}))},e.prototype.drawPage=function(e,t){var r,n,o,i,a;void 0===t&&(t={}),_T(e,"embeddedPage",[[tN,"PDFEmbeddedPage"]]),IT(t.x,"options.x",["number"]),IT(t.y,"options.y",["number"]),IT(t.xScale,"options.xScale",["number"]),IT(t.yScale,"options.yScale",["number"]),IT(t.width,"options.width",["number"]),IT(t.height,"options.height",["number"]),IT(t.rotate,"options.rotate",[[Object,"Rotation"]]),IT(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),IT(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),DT(t.opacity,"opacity.opacity",0,1),MT(t.blendMode,"options.blendMode",NN);var s=this.node.newXObject("EmbeddedPdfPage",e.ref),l=this.maybeEmbedGraphicsState({opacity:t.opacity,blendMode:t.blendMode}),c=void 0!==t.width?t.width/e.width:void 0!==t.xScale?t.xScale:1,u=void 0!==t.height?t.height/e.height:void 0!==t.yScale?t.yScale:1,d=this.getContentStream();d.push.apply(d,function(e,t){return[A_(),t.graphicsState&&O_(t.graphicsState),v_(t.x,t.y),y_(l_(t.rotate)),b_(t.xScale,t.yScale),x_(l_(t.xSkew),l_(t.ySkew)),G_(e),T_()].filter(Boolean)}(s,{x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,xScale:c,yScale:u,rotate:null!==(o=t.rotate)&&void 0!==o?o:o_(0),xSkew:null!==(i=t.xSkew)&&void 0!==i?i:o_(0),ySkew:null!==(a=t.ySkew)&&void 0!==a?a:o_(0),graphicsState:l}))},e.prototype.drawSvgPath=function(e,t){var r,n,o,i,a,s,l,c,u;void 0===t&&(t={}),_T(e,"path",["string"]),IT(t.x,"options.x",["number"]),IT(t.y,"options.y",["number"]),IT(t.scale,"options.scale",["number"]),IT(t.rotate,"options.rotate",[[Object,"Rotation"]]),IT(t.borderWidth,"options.borderWidth",["number"]),IT(t.color,"options.color",[[Object,"Color"]]),DT(t.opacity,"opacity.opacity",0,1),IT(t.borderColor,"options.borderColor",[[Object,"Color"]]),IT(t.borderDashArray,"options.borderDashArray",[Array]),IT(t.borderDashPhase,"options.borderDashPhase",["number"]),MT(t.borderLineCap,"options.borderLineCap",n_),DT(t.borderOpacity,"options.borderOpacity",0,1),MT(t.blendMode,"options.blendMode",NN);var d=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.borderColor=$_(0,0,0));var f=this.getContentStream();f.push.apply(f,function(e,t){var r,n,o;return wA([A_(),t.graphicsState&&O_(t.graphicsState),v_(t.x,t.y),y_(l_(null!==(r=t.rotate)&&void 0!==r?r:o_(0))),t.scale?b_(t.scale,-t.scale):b_(1,-1),t.color&&tI(t.color),t.borderColor&&rI(t.borderColor),t.borderWidth&&j_(t.borderWidth),t.borderLineCap&&k_(t.borderLineCap),S_(null!==(n=t.borderDashArray)&&void 0!==n?n:[],null!==(o=t.borderDashPhase)&&void 0!==o?o:0)],function(e){return function(e){iI=aI=sI=lI=cI=uI=0;for(var t=[],r=0;r<e.length;r++){var n=e[r];if(n.cmd&&"function"==typeof fI[n.cmd]){var o=fI[n.cmd](n.args);Array.isArray(o)?t=t.concat(o):t.push(o)}}return t}(function(e){for(var t,r=[],n=[],o="",i=!1,a=0,s=0,l=e;s<l.length;s++){var c=l[s];if(dI.has(c))a=dI.get(c),t&&(o.length>0&&(n[n.length]=+o),r[r.length]={cmd:t,args:n},n=[],o="",i=!1),t=c;else if([" ",","].includes(c)||"-"===c&&o.length>0&&"e"!==o[o.length-1]||"."===c&&i){if(0===o.length)continue;n.length===a?(r[r.length]={cmd:t,args:n},n=[+o],"M"===t&&(t="L"),"m"===t&&(t="l")):n[n.length]=+o,i="."===c,o=["-","."].includes(c)?c:""}else o+=c,"."===c&&(i=!0)}return o.length>0&&(n.length===a?(r[r.length]={cmd:t,args:n},n=[+o],"M"===t&&(t="L"),"m"===t&&(t="l")):n[n.length]=+o),r[r.length]={cmd:t,args:n},r}(e))}(e),[t.color&&t.borderWidth?D_():t.color?F_():t.borderColor?N_():R_(),T_()]).filter(Boolean)}(e,{x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,scale:t.scale,rotate:null!==(o=t.rotate)&&void 0!==o?o:o_(0),color:null!==(i=t.color)&&void 0!==i?i:void 0,borderColor:null!==(a=t.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,borderDashArray:null!==(l=t.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(c=t.borderDashPhase)&&void 0!==c?c:void 0,borderLineCap:null!==(u=t.borderLineCap)&&void 0!==u?u:void 0,graphicsState:d}))},e.prototype.drawLine=function(e){var t,r,n,o,i;_T(e.start,"options.start",[[Object,"{ x: number, y: number }"]]),_T(e.end,"options.end",[[Object,"{ x: number, y: number }"]]),_T(e.start.x,"options.start.x",["number"]),_T(e.start.y,"options.start.y",["number"]),_T(e.end.x,"options.end.x",["number"]),_T(e.end.y,"options.end.y",["number"]),IT(e.thickness,"options.thickness",["number"]),IT(e.color,"options.color",[[Object,"Color"]]),IT(e.dashArray,"options.dashArray",[Array]),IT(e.dashPhase,"options.dashPhase",["number"]),MT(e.lineCap,"options.lineCap",n_),DT(e.opacity,"opacity.opacity",0,1),MT(e.blendMode,"options.blendMode",NN);var a=this.maybeEmbedGraphicsState({borderOpacity:e.opacity,blendMode:e.blendMode});"color"in e||(e.color=$_(0,0,0));var s=this.getContentStream();s.push.apply(s,function(e){var t,r;return[A_(),e.graphicsState&&O_(e.graphicsState),e.color&&rI(e.color),j_(e.thickness),S_(null!==(t=e.dashArray)&&void 0!==t?t:[],null!==(r=e.dashPhase)&&void 0!==r?r:0),__(e.start.x,e.start.y),e.lineCap&&k_(e.lineCap),__(e.start.x,e.start.y),I_(e.end.x,e.end.y),N_(),T_()].filter(Boolean)}({start:e.start,end:e.end,thickness:null!==(t=e.thickness)&&void 0!==t?t:1,color:null!==(r=e.color)&&void 0!==r?r:void 0,dashArray:null!==(n=e.dashArray)&&void 0!==n?n:void 0,dashPhase:null!==(o=e.dashPhase)&&void 0!==o?o:void 0,lineCap:null!==(i=e.lineCap)&&void 0!==i?i:void 0,graphicsState:a}))},e.prototype.drawRectangle=function(e){var t,r,n,o,i,a,s,l,c,u,d,f,h;void 0===e&&(e={}),IT(e.x,"options.x",["number"]),IT(e.y,"options.y",["number"]),IT(e.width,"options.width",["number"]),IT(e.height,"options.height",["number"]),IT(e.rotate,"options.rotate",[[Object,"Rotation"]]),IT(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),IT(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),IT(e.borderWidth,"options.borderWidth",["number"]),IT(e.color,"options.color",[[Object,"Color"]]),DT(e.opacity,"opacity.opacity",0,1),IT(e.borderColor,"options.borderColor",[[Object,"Color"]]),IT(e.borderDashArray,"options.borderDashArray",[Array]),IT(e.borderDashPhase,"options.borderDashPhase",["number"]),MT(e.borderLineCap,"options.borderLineCap",n_),DT(e.borderOpacity,"options.borderOpacity",0,1),MT(e.blendMode,"options.blendMode",NN);var p=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.color=$_(0,0,0));var m=this.getContentStream();m.push.apply(m,vI({x:null!==(t=e.x)&&void 0!==t?t:this.x,y:null!==(r=e.y)&&void 0!==r?r:this.y,width:null!==(n=e.width)&&void 0!==n?n:150,height:null!==(o=e.height)&&void 0!==o?o:100,rotate:null!==(i=e.rotate)&&void 0!==i?i:o_(0),xSkew:null!==(a=e.xSkew)&&void 0!==a?a:o_(0),ySkew:null!==(s=e.ySkew)&&void 0!==s?s:o_(0),borderWidth:null!==(l=e.borderWidth)&&void 0!==l?l:0,color:null!==(c=e.color)&&void 0!==c?c:void 0,borderColor:null!==(u=e.borderColor)&&void 0!==u?u:void 0,borderDashArray:null!==(d=e.borderDashArray)&&void 0!==d?d:void 0,borderDashPhase:null!==(f=e.borderDashPhase)&&void 0!==f?f:void 0,graphicsState:p,borderLineCap:null!==(h=e.borderLineCap)&&void 0!==h?h:void 0}))},e.prototype.drawSquare=function(e){void 0===e&&(e={});var t=e.size;IT(t,"size",["number"]),this.drawRectangle(vA(vA({},e),{width:t,height:t}))},e.prototype.drawEllipse=function(e){var t,r,n,o,i,a,s,l,c,u,d;void 0===e&&(e={}),IT(e.x,"options.x",["number"]),IT(e.y,"options.y",["number"]),IT(e.xScale,"options.xScale",["number"]),IT(e.yScale,"options.yScale",["number"]),IT(e.rotate,"options.rotate",[[Object,"Rotation"]]),IT(e.color,"options.color",[[Object,"Color"]]),DT(e.opacity,"opacity.opacity",0,1),IT(e.borderColor,"options.borderColor",[[Object,"Color"]]),DT(e.borderOpacity,"options.borderOpacity",0,1),IT(e.borderWidth,"options.borderWidth",["number"]),IT(e.borderDashArray,"options.borderDashArray",[Array]),IT(e.borderDashPhase,"options.borderDashPhase",["number"]),MT(e.borderLineCap,"options.borderLineCap",n_),MT(e.blendMode,"options.blendMode",NN);var f=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.color=$_(0,0,0));var h=this.getContentStream();h.push.apply(h,yI({x:null!==(t=e.x)&&void 0!==t?t:this.x,y:null!==(r=e.y)&&void 0!==r?r:this.y,xScale:null!==(n=e.xScale)&&void 0!==n?n:100,yScale:null!==(o=e.yScale)&&void 0!==o?o:100,rotate:null!==(i=e.rotate)&&void 0!==i?i:void 0,color:null!==(a=e.color)&&void 0!==a?a:void 0,borderColor:null!==(s=e.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(l=e.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(c=e.borderDashArray)&&void 0!==c?c:void 0,borderDashPhase:null!==(u=e.borderDashPhase)&&void 0!==u?u:void 0,borderLineCap:null!==(d=e.borderLineCap)&&void 0!==d?d:void 0,graphicsState:f}))},e.prototype.drawCircle=function(e){void 0===e&&(e={});var t=e.size,r=void 0===t?100:t;IT(r,"size",["number"]),this.drawEllipse(vA(vA({},e),{xScale:r,yScale:r}))},e.prototype.setOrEmbedFont=function(e){var t=this.font,r=this.fontKey;return e?this.setFont(e):this.getFont(),{oldFont:t,oldFontKey:r,newFont:this.font,newFontKey:this.fontKey}},e.prototype.getFont=function(){if(!this.font||!this.fontKey){var e=this.doc.embedStandardFont(xN.Helvetica);this.setFont(e)}return[this.font,this.fontKey]},e.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},e.prototype.getContentStream=function(e){return void 0===e&&(e=!0),e&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream},e.prototype.createContentStream=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.doc.context.obj({});return rP.of(r,e)},e.prototype.maybeEmbedGraphicsState=function(e){var t=e.opacity,r=e.borderOpacity,n=e.blendMode;if(void 0!==t||void 0!==r||void 0!==n){var o=this.doc.context.obj({Type:"ExtGState",ca:t,CA:r,BM:n});return this.node.newExtGState("GS",o)}},e.prototype.scaleAnnot=function(e,t,r){for(var n=["RD","CL","Vertices","QuadPoints","L","Rect"],o=0,i=n.length;o<i;o++){var a=e.lookup(Dj.of(n[o]));a instanceof Oj&&a.scalePDFNumbers(t,r)}var s=e.lookup(Dj.of("InkList"));if(s instanceof Oj)for(o=0,i=s.size();o<i;o++){var l=s.lookup(o);l instanceof Oj&&l.scalePDFNumbers(t,r)}},e.of=function(t,r,n){return new e(t,r,n)},e.create=function(t){_T(t,"doc",[[_N,"PDFDocument"]]);var r=Yj.of(-1),n=lP.withContextAndParent(t.context,r);return new e(n,t.context.register(n),t)},e}();const DN=FN;var BN=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return _T(t,"acroButton",[[lR,"PDFAcroPushButton"]]),o.acroField=t,o}return gA(t,e),t.prototype.setImage=function(e,t){void 0===t&&(t=aN.Center);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n],a=this.createImageAppearanceStream(i,e,t);this.updateWidgetAppearances(i,{normal:a})}this.markAsClean()},t.prototype.setFontSize=function(e){LT(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.addToPage=function(e,t,r){var n,o,i,a,s,l,c,u,d,f,h;IT(e,"text",["string"]),IT(t,"page",[[DN,"PDFPage"]]),sN(r);var p=this.createWidget({x:(null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0)-(null!==(o=null==r?void 0:r.borderWidth)&&void 0!==o?o:0)/2,y:(null!==(i=null==r?void 0:r.y)&&void 0!==i?i:0)-(null!==(a=null==r?void 0:r.borderWidth)&&void 0!==a?a:0)/2,width:null!==(s=null==r?void 0:r.width)&&void 0!==s?s:100,height:null!==(l=null==r?void 0:r.height)&&void 0!==l?l:50,textColor:null!==(c=null==r?void 0:r.textColor)&&void 0!==c?c:$_(0,0,0),backgroundColor:null!==(u=null==r?void 0:r.backgroundColor)&&void 0!==u?u:$_(.75,.75,.75),borderColor:null==r?void 0:r.borderColor,borderWidth:null!==(d=null==r?void 0:r.borderWidth)&&void 0!==d?d:0,rotate:null!==(f=null==r?void 0:r.rotate)&&void 0!==f?f:o_(0),caption:e,hidden:null==r?void 0:r.hidden,page:t.ref}),m=this.doc.context.register(p.dict);this.acroField.addWidget(m);var g=null!==(h=null==r?void 0:r.font)&&void 0!==h?h:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,g),t.node.addAnnot(m)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var t=this.acroField.getWidgets(),r=0,n=t.length;r<n;r++)if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Vj))return!0;return!1},t.prototype.defaultUpdateAppearances=function(e){_T(e,"font",[[nN,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,t){_T(e,"font",[[nN,"PDFFont"]]),IT(t,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,e,t)}},t.prototype.updateWidgetAppearance=function(e,t,r){var n=VI((null!=r?r:ZI)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)},t.of=function(e,r,n){return new t(e,r,n)},t}(cN);const LN=BN;function zN(e){return zN="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},zN(e)}function HN(e){if(!e)return[1,1,0];if(e.startsWith("rgb")){var t=e.match(/\d+/g);return!t||t.length<3?[1,1,0]:t.slice(0,3).map((function(e){return parseInt(e)/255}))}if(e.startsWith("#")){var r=e.replace("#","");return 6!==r.length?[1,1,0]:[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255]}return[1,1,0]}function UN(){return((e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})()}function VN(e,t){document.documentElement.style.setProperty(e,t)}function WN(e){document.documentElement.style.removeProperty(e)}function GN(e){if(e<1024)return"".concat(e," B");var t=["KB","MB","GB","TB"],r=-1,n=e;do{n/=1024,r++}while(n>=1024&&r<t.length-1);return"".concat(n.toFixed(2)," ").concat(t[r])}function qN(e,t,r){if(e<=r&&t<=r)return{newWidth:e,newHeight:t};var n=r/e,o=r/t,i=Math.min(n,o);return{newWidth:e*i,newHeight:t*i}}function KN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t<0||3*t+2>=e.length)throw new Error("Index out of bounds");var r=e[3*t],n=e[3*t+1],o=e[3*t+2];return"rgb(".concat(r,", ").concat(n,", ").concat(o,")")}function XN(e){var t=new Date(e),r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0"),l=-t.getTimezoneOffset(),c=String(Math.floor(Math.abs(l)/60)).padStart(2,"0"),u=String(Math.abs(l)%60).padStart(2,"0"),d=l>=0?"+":"-";return"D:".concat(r).concat(n).concat(o).concat(i).concat(a).concat(s).concat(d).concat(c,"'").concat(u,"'")}function YN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.slice(2,16),n=r.slice(0,4),o=r.slice(4,6),i=r.slice(6,8),a=r.slice(8,10),s=r.slice(10,12);if(t)return se.t("dateFormat.full",{year:n,month:o,day:i,hour:a,minute:s});var l=new Date,c=l.getFullYear().toString(),u=(l.getMonth()+1).toString().padStart(2,"0"),d=l.getDate().toString().padStart(2,"0");return n===c&&o===u&&i===d?"".concat(a,":").concat(s):n===c?se.t("dateFormat.dayMonth",{day:i,month:o}):se.t("dateFormat.dayMonthYear",{day:i,month:o,year:n})}function $N(e){var t=e.slice(2,16),r=parseInt(t.slice(0,4),10),n=parseInt(t.slice(4,6),10)-1,o=parseInt(t.slice(6,8),10),i=parseInt(t.slice(8,10),10),a=parseInt(t.slice(10,12),10),s=parseInt(t.slice(12,14),10)||0,l=e.slice(16).match(/([+-])(\d{2})'?(\d{2})?'/),c=0;return l&&(c=("+"===l[1]?1:-1)*(60*(parseInt(l[2],10)||0)+(parseInt(l[3]||"0",10)||0))),new Date(Date.UTC(r,n,o,i,a,s)).getTime()-60*c*1e3}function ZN(e,t){var r=e.x,n=e.y,o=e.width,i=e.height,a=t-n-i;return[r,a,r+o,a+i]}function QN(e){for(var t=[].concat([254,255]),r=0;r<e.length;r++){var n=e.charCodeAt(r);t.push(n>>8&255,255&n)}var o=t.map((function(e){return e.toString(16).padStart(2,"0")})).join("").toUpperCase();return AP.of(o)}function JN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=function(e){return e.toString().padStart(2,"0")},r=e.getFullYear(),n=t(e.getMonth()+1),o=t(e.getDate()),i=t(e.getHours()),a=t(e.getMinutes()),s=t(e.getSeconds());return"".concat(r).concat(n).concat(o,"_").concat(i).concat(a).concat(s)}function eF(e){var t=JSON.stringify(e,(function(e,t){return t&&"object"===zN(t)&&!Array.isArray(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t})),r=0;if(0===t.length)return r;for(var n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return r}function tF(e){if(e=e.trim().toLowerCase(),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e))return 4===e.length?"#"+e.slice(1).split("").map((function(e){return e+e})).join(""):e;var t=e.match(/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/);if(t)return"#"+[Number(t[1]),Number(t[2]),Number(t[3])].map((function(e){return function(e){return Math.max(0,Math.min(255,e))}(e).toString(16).padStart(2,"0")})).join("");throw new Error("Unsupported color format: ".concat(e))}function rF(e,t){try{return tF(e)===tF(t)}catch(e){return!1}}function nF(e){return nF="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},nF(e)}function oF(){oF=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==nF(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(nF(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function iF(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}var aF=new Set;function sF(e){if(e.external&&e.url&&!aF.has(e.value)){var t=document.createElement("style");t.innerHTML="\n @font-face {\n font-family: '".concat(e.value,"';\n src: url('").concat(e.url,"') format('truetype');\n font-weight: normal;\n font-style: normal;\n }\n "),document.head.appendChild(t),aF.add(e.value)}}function lF(e){return cF.apply(this,arguments)}function cF(){return e=oF().mark((function e(t){var r;return oF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.external&&t.url&&!aF.has(t.value)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,r=new FontFace(t.value,"url(".concat(t.url,")")),e.next=6,r.load();case 6:document.fonts.add(r),aF.add(t.value),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),sF(t);case 13:case"end":return e.stop()}}),e,null,[[2,10]])})),cF=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){iF(i,n,o,a,s,"next",e)}function s(e){iF(i,n,o,a,s,"throw",e)}a(void 0)}))},cF.apply(this,arguments);var e}function uF(e){return uF="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},uF(e)}function dF(e){return function(e){if(Array.isArray(e))return vF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gF(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 fF(){fF=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==uF(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(uF(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function hF(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function pF(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){hF(i,n,o,a,s,"next",e)}function s(e){hF(i,n,o,a,s,"throw",e)}a(void 0)}))}}function mF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||gF(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 gF(e,t){if(e){if("string"==typeof e)return vF(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vF(e,t):void 0}}function vF(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var bF=function(e){var t=e.annotation,r=e.onAdd,n=ke().t,o=(0,m.useRef)(null),i=(0,m.useRef)(null),a=(0,m.useRef)(Eo.signature.COLORS[0]),s=mF((0,m.useState)(!1),2),l=s[0],c=s[1],u=mF((0,m.useState)(!1),2),d=u[0],f=u[1],h=mF((0,m.useState)(a.current),2),p=h[0],g=h[1],v=mF((0,m.useState)(!0),2),b=v[0],y=v[1],w=mF((0,m.useState)([]),2),x=w[0],S=w[1],C=mF((0,m.useState)(null),2),k=C[0],E=C[1],O=mF((0,m.useState)(""),2),A=O[0],T=O[1],j=mF((0,m.useState)(Eo.handwritingFontList[0].value||"Arial"),2),P=j[0],M=j[1],R=mF((0,m.useState)(null),2),_=R[0],I=R[1],N=Eo.signature.MAX_SIZE;(0,m.useEffect)((function(){a.current=p}),[p]);var F=function(e){r(e),c(!1)},D=function(){var e=pF(fF().mark((function e(t){return fF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lF(Eo.handwritingFontList.find((function(e){return e.value===t})));case 2:M(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){T(""),I(null),("Enter"===k||"Draw"===k||"Upload"===k)&&y(!0)}),[k]),(0,m.useEffect)((function(){y(0===A.trim().length)}),[A]),(0,m.useEffect)((function(){d&&(D(P),T(""),I(null),E(Eo.signature.TYPE))}),[d]),(0,m.useEffect)((function(){var e;d&&"Draw"===k?function(){if(console.log(o),o.current){var e=new(IE().Stage)({container:o.current,width:Eo.signature.WIDTH,height:Eo.signature.HEIGHT}),t=new(IE().Layer);e.add(t),i.current=e;var r=!1,n=null;e.on("mousedown touchstart",(function(){r=!0;var o=e.getPointerPosition();o&&(n=new(IE().Line)({stroke:a.current,strokeWidth:3,globalCompositeOperation:"source-over",lineCap:"round",lineJoin:"round",points:[o.x,o.y]}),t.add(n))})),e.on("mouseup touchend",(function(){r=!1,n=null})),e.on("mousemove touchmove",(function(t){if(r&&n){t.evt.preventDefault();var o=e.getPointerPosition();if(o){var i=n.points().concat([o.x,o.y]);n.points(i),y(!1)}}}))}}():(null===(e=i.current)||void 0===e||e.destroy(),i.current=null)}),[k,d]),(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsxs)(hm,{rootClassName:"SignaturePop",content:(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)("ul",{className:"SignaturePop-Container",children:x.map((function(e,t){return(0,Mn.jsx)("li",{children:(0,Mn.jsx)("img",{onClick:function(){return F(e)},src:e})},t)}))}),(0,Mn.jsx)("div",{className:"SignaturePop-Toolbar",children:(0,Mn.jsx)(AC,{block:!0,type:"link",onClick:function(){c(!1),f(!0)},icon:(0,Mn.jsx)(DE,{}),children:n("toolbar.buttons.createSignature")})})]}),trigger:"click",open:l,onOpenChange:c,placement:"bottom",arrow:!1,children:[(0,Mn.jsx)("div",{className:"icon",children:t.icon}),(0,Mn.jsx)("div",{className:"name",children:n("annotations.".concat(t.name))})]}),(0,Mn.jsx)(dE,{title:n("toolbar.buttons.createSignature"),open:d,onOk:function(){if("Upload"!==k)if("Enter"!==k)if("Draw"!==k);else{var e,t=null===(e=i.current)||void 0===e?void 0:e.toDataURL();t&&(S((function(e){return[].concat(dF(e),[t])})),F(t),f(!1))}else{var r=function(){if(!A.trim())return null;var e=document.createElement("canvas");e.width=Eo.signature.WIDTH/1.1,e.height=Eo.signature.HEIGHT;var t=e.getContext("2d");if(!t)return null;t.clearRect(0,0,e.width,e.height),t.font="".concat(80,'px "').concat(P,'", cursive, sans-serif');var r=t.measureText(A).width,n=r+40>e.width?(e.width-40)/r:1;return t.font="".concat(80*n,'px "').concat(P,'", cursive, sans-serif'),t.textAlign="center",t.textBaseline="middle",t.imageSmoothingEnabled=!0,t.shadowColor="rgba(0, 0, 0, 0.1)",t.shadowBlur=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillStyle=p,t.fillText(A,e.width/2,e.height/2),e.toDataURL("image/png")}();r&&(S((function(e){return[].concat(dF(e),[r])})),F(r),f(!1))}else _&&(S((function(e){return[].concat(dF(e),[_])})),F(_),f(!1))},onCancel:function(){return f(!1)},destroyOnHidden:!0,okButtonProps:{disabled:b},okText:n("normal.ok"),cancelText:n("normal.cancel"),className:"SignatureTool",children:(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)("div",{className:"SignatureTool-Header",children:(0,Mn.jsx)(RE.Group,{block:!0,options:[{label:n("normal.draw"),value:"Draw"},{label:n("normal.enter"),value:"Enter"},{label:n("normal.upload"),value:"Upload"}],optionType:"button",value:k,onChange:function(e){return E(e.target.value)}})}),(0,Mn.jsxs)("div",{className:"SignatureTool-Container",style:{width:Eo.signature.WIDTH},children:["Enter"===k&&(0,Mn.jsx)("input",{autoFocus:!0,type:"text",value:A,onChange:function(e){return T(e.target.value)},placeholder:n("toolbar.message.signatureArea"),style:{height:Eo.signature.HEIGHT,width:Eo.signature.WIDTH/1.1,color:p,fontFamily:"".concat(P),fontSize:80,lineHeight:"".concat(80,"px")}}),"Draw"===k&&(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("div",{className:"SignatureTool-Container-info",children:n("toolbar.message.signatureArea")}),(0,Mn.jsx)("div",{ref:o,style:{height:Eo.signature.HEIGHT,width:Eo.signature.WIDTH}})]}),"Upload"===k&&(0,Mn.jsx)("div",{style:{height:Eo.signature.HEIGHT,width:Eo.signature.WIDTH},children:_?(0,Mn.jsx)("div",{className:"SignatureTool-ImagePreview",style:{height:Eo.signature.HEIGHT,width:Eo.signature.WIDTH},children:(0,Mn.jsx)("img",{src:_,alt:"preview"})}):(0,Mn.jsxs)(pA,{accept:Eo.signature.ACCEPT,beforeUpload:function(){return!1},showUploadList:!1,onChange:function(e){var t=e.file;if(t&&t.type.startsWith("image/"))if(t.size>N)alert(n("normal.fileSizeLimit",{value:GN(N)}));else{var r=new FileReader;r.onload=function(){var e=pF(fF().mark((function e(t){var r,n,o;return fF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=null===(r=t.target)||void 0===r?void 0:r.result,(o=new Image).src=n,o.onload=function(){var e=Eo.setting.MAX_UPLOAD_IMAGE_SIZE,t=Eo.setting.MAX_UPLOAD_IMAGE_SIZE,r=o.width,n=o.height;r>n&&r>e?(n=Math.round(n*e/r),r=e):n>t&&(r=Math.round(r*t/n),n=t);var i=document.createElement("canvas"),a=i.getContext("2d");if(i.width=r,i.height=n,a){a.drawImage(o,0,0,r,n);var s=i.toDataURL("image/png");I(s),y(!1)}};case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.readAsDataURL(t)}},multiple:!1,style:{height:Eo.signature.HEIGHT,width:Eo.signature.WIDTH},children:[(0,Mn.jsx)("p",{className:"ant-upload-drag-icon"}),(0,Mn.jsx)("p",{className:"ant-upload-text",children:n("toolbar.message.uploadArea")}),(0,Mn.jsx)("p",{className:"ant-upload-hint",children:n("toolbar.message.uploadHint",{format:Eo.signature.ACCEPT,maxSize:GN(Eo.signature.MAX_SIZE)})})]})})]}),(0,Mn.jsxs)("div",{className:"SignatureTool-Toolbar",style:{width:Eo.signature.WIDTH},children:[(0,Mn.jsxs)("div",{className:"colorPalette",children:["Upload"!==k&&(0,Mn.jsx)(Mn.Fragment,{children:Eo.signature.COLORS.map((function(e){return(0,Mn.jsx)("div",{onClick:function(){return function(e){var t;g(e);var r=(null===(t=i.current)||void 0===t?void 0:t.getLayers()[0].getChildren((function(e){return"Line"===e.getClassName()})))||[];r.forEach((function(t){return t.stroke(e)}))}(e)},className:"cell ".concat(e===p?"active":""),children:(0,Mn.jsx)("span",{style:{backgroundColor:e}})},e)}))}),"Enter"===k&&(0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsx)(sy,{style:{width:160},size:"small",defaultValue:P,options:Eo.handwritingFontList,onChange:function(){var e=pF(fF().mark((function e(t){return fF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})})]}),(0,Mn.jsx)("div",{className:"clear",onClick:function(){var e=i.current;e&&(e.clear(),e.getLayers().forEach((function(e){return e.destroyChildren()})),y(!0)),T(""),I(null)},children:n("normal.clear")})]})]})})]})};const yF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.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-pdf",theme:"outlined"};var wF=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:yF}))};const xF=m.forwardRef(wF);function SF(e){const[t,r]=m.useState(e);return m.useEffect((()=>{const t=setTimeout((()=>{r(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const CF=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},kF=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Si(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),EF=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},OF=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},rc(e)),kF(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},EF(e,e.controlHeightSM)),"&-large":Object.assign({},EF(e,e.controlHeightLG))})}},AF=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},rc(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Fp,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},TF=(e,t)=>{const{formItemCls:r}=e;return{[`${t}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},jF=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,\n > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},PF=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),MF=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:PF(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},RF=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${t}-vertical`]:{[`${r}:not(${r}-horizontal)`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,\n ${n}-col-24${r}-label,\n ${n}-col-xl-24${r}-label`]:PF(e)}},[`@media (max-width: ${Si(e.screenXSMax)})`]:[MF(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:PF(e)}}}],[`@media (max-width: ${Si(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:PF(e)}}},[`@media (max-width: ${Si(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:PF(e)}}},[`@media (max-width: ${Si(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:PF(e)}}}}},_F=e=>{const{formItemCls:t,antCls:r}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${r}-col-24${t}-label,\n ${r}-col-xl-24${t}-label`]:PF(e),[`@media (max-width: ${Si(e.screenXSMax)})`]:[MF(e),{[t]:{[`${r}-col-xs-24${t}-label`]:PF(e)}}],[`@media (max-width: ${Si(e.screenSMMax)})`]:{[t]:{[`${r}-col-sm-24${t}-label`]:PF(e)}},[`@media (max-width: ${Si(e.screenMDMax)})`]:{[t]:{[`${r}-col-md-24${t}-label`]:PF(e)}},[`@media (max-width: ${Si(e.screenLGMax)})`]:{[t]:{[`${r}-col-lg-24${t}-label`]:PF(e)}}}},IF=(e,t)=>Au(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),NF=Iu("Form",((e,t)=>{let{rootPrefixCls:r}=t;const n=IF(e,r);return[OF(n),AF(n),CF(n),TF(n,n.componentCls),TF(n,n.formItemCls),jF(n),RF(n),_F(n),Dx(n),Fp]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),FF=[];function DF(e,t,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:r}}const BF=e=>{let{help:t,helpStatus:r,errors:n=FF,warnings:o=FF,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=m.useContext(Tf),c=`${l}-item-explain`,u=du(l),[d,f,h]=NF(l,u),p=m.useMemo((()=>Jf(l)),[l]),g=SF(n),v=SF(o),b=m.useMemo((()=>null!=t?[DF(t,"help",r)]:[].concat(Vo(g.map(((e,t)=>DF(e,"error","error",t)))),Vo(v.map(((e,t)=>DF(e,"warning","warning",t)))))),[t,r,g,v]),y=m.useMemo((()=>{const e={};return b.forEach((t=>{let{key:r}=t;e[r]=(e[r]||0)+1})),b.map(((t,r)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${r}`:t.key})))}),[b]),w={};return a&&(w.id=`${a}_help`),d(m.createElement(Vl,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},(e=>{const{className:t,style:r}=e;return m.createElement("div",Object.assign({},w,{className:ze()(c,t,h,u,i,f),style:r}),m.createElement(Ul,Object.assign({keys:y},Jf(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:r,errorStatus:n,className:o,style:i}=e;return m.createElement("div",{key:t,className:ze()(o,{[`${c}-${n}`]:n}),style:i},r)})))})))},LF=e=>"object"==typeof e&&null!=e&&1===e.nodeType,zF=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,HF=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return zF(r.overflowY,t)||zF(r.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},UF=(e,t,r,n,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0,VF=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},WF=(e,t)=>{var r,n,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!LF(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,h=[];let p=e;for(;LF(p)&&d(p);){if(p=VF(p),p===f){h.push(p);break}null!=p&&p===document.body&&HF(p)&&!HF(document.documentElement)||null!=p&&HF(p,u)&&h.push(p)}const m=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:w,top:x,right:S,bottom:C,left:k}=e.getBoundingClientRect(),{top:E,right:O,bottom:A,left:T}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===s||"nearest"===s?x-E:"end"===s?C+A:x+y/2-E+A,P="center"===l?k+w/2-T+O:"end"===l?S+O:k-T;const M=[];for(let e=0;e<h.length;e++){const t=h[e],{height:r,width:n,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&k>=0&&C<=g&&S<=m&&(t===f&&!HF(t)||x>=o&&C<=c&&k>=u&&S<=i))return M;const d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),O=parseInt(d.borderRightWidth,10),A=parseInt(d.borderBottomWidth,10);let T=0,R=0;const _="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-O:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-A:0,N="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(f===t)T="start"===s?j:"end"===s?j-g:"nearest"===s?UF(b,b+g,g,E,A,b+j,b+j+y,y):j-g/2,R="start"===l?P:"center"===l?P-m/2:"end"===l?P-m:UF(v,v+m,m,p,O,v+P,v+P+w,w),T=Math.max(0,T+b),R=Math.max(0,R+v);else{T="start"===s?j-o-E:"end"===s?j-c+A+I:"nearest"===s?UF(o,c,r,E,A+I,j,j+y,y):j-(o+r/2)+I/2,R="start"===l?P-u-p:"center"===l?P-(u+n/2)+_/2:"end"===l?P-i+O+_:UF(u,i,n,p,O+_,P,P+w,w);const{scrollLeft:e,scrollTop:a}=t;T=0===F?0:Math.max(0,Math.min(a+T/F,t.scrollHeight-r/F+I)),R=0===N?0:Math.max(0,Math.min(e+R/N,t.scrollWidth-n/N+_)),j+=a-T,P+=e-R}M.push({el:t,top:T,left:R})}return M};const GF=["parentNode"];function qF(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function KF(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:GF.includes(r)?`form_item_${r}`:r}function XF(e,t,r,n,o,i){let a=n;return void 0!==i?a=i:r.validating?a="validating":e.length?a="error":t.length?a="warning":(r.touched||o&&r.validated)&&(a="success"),a}function YF(e){return qF(e).join("_")}function $F(e,t){const r=Rs(t.getFieldInstance(e));if(r)return r;const n=KF(qF(e),t.__INTERNAL__.name);return n?document.getElementById(n):void 0}function ZF(e){const[t]=pf(),r=m.useRef({}),n=m.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const n=YF(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:r}=t,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["focus"]),i=$F(e,n);i&&(function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const r=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(WF(e,t));const n="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of WF(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-r.top+r.bottom,t=a-r.left+r.right;o.scroll({top:e,left:t,behavior:n})}}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o)),r&&n.focusField(e))},focusField:e=>{var t,r;const o=n.getFieldInstance(e);"function"==typeof(null==o?void 0:o.focus)?o.focus():null===(r=null===(t=$F(e,n))||void 0===t?void 0:t.focus)||void 0===r||r.call(t)},getFieldInstance:e=>{const t=YF(e);return r.current[t]}})),[e,t]);return[n]}const QF=(e,t)=>{const r=m.useContext(Ss),{getPrefixCls:n,direction:o,requiredMark:i,colon:a,scrollToFirstError:s,className:l,style:c}=Zo("form"),{prefixCls:u,className:d,rootClassName:f,size:h,disabled:p=r,form:g,colon:v,labelAlign:b,labelWrap:y,labelCol:w,wrapperCol:x,hideRequiredMark:S,layout:C="horizontal",scrollToFirstError:k,requiredMark:E,onFinishFailed:O,name:A,style:T,feedbackIcons:j,variant:P}=e,M=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=Rf(h),_=m.useContext($a),I=m.useMemo((()=>void 0!==E?E:!S&&(void 0===i||i)),[S,E,i]),N=null!=v?v:a,F=n("form",u),D=du(F),[B,L,z]=NF(F,D),H=ze()(F,`${F}-${C}`,{[`${F}-hide-required-mark`]:!1===I,[`${F}-rtl`]:"rtl"===o,[`${F}-${R}`]:R},z,D,L,l,d,f),[U]=ZF(g),{__INTERNAL__:V}=U;V.name=A;const W=m.useMemo((()=>({name:A,labelAlign:b,labelCol:w,labelWrap:y,wrapperCol:x,vertical:"vertical"===C,colon:N,requiredMark:I,itemRef:V.itemRef,form:U,feedbackIcons:j})),[A,b,w,x,C,N,I,U,j]),G=m.useRef(null);m.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},U),{nativeElement:null===(e=G.current)||void 0===e?void 0:e.nativeElement})}));const q=(e,t)=>{if(e){let r={block:"nearest"};"object"==typeof e&&(r=Object.assign(Object.assign({},r),e)),U.scrollToField(t,r)}};return B(m.createElement(Mf.Provider,{value:P},m.createElement(xs,{disabled:p},m.createElement(Es.Provider,{value:R},m.createElement(Af,{validateMessages:_},m.createElement(Ef.Provider,{value:W},m.createElement(Cf,Object.assign({id:A},M,{name:A,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==k)return void q(k,t);void 0!==s&&q(s,t)}},form:U,ref:G,style:Object.assign(Object.assign({},c),T),className:H}))))))))},JF=m.forwardRef(QF),eD=()=>{const{status:e,errors:t=[],warnings:r=[]}=m.useContext(jf);return{status:e,errors:t,warnings:r}};eD.Context=jf;const tD=eD,rD=["xxl","xl","lg","md","sm","xs"],nD=()=>{const[,e]=Ql(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,r=[].concat(rD).reverse();return r.forEach(((e,n)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(n<r.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${r[n+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return m.useMemo((()=>{const e=new Map;let r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach((e=>e(n))),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach((e=>{let[t,r]=e;const o=e=>{let{matches:r}=e;this.dispatch(Object.assign(Object.assign({},n),{[t]:r}))},i=window.matchMedia(r);((e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(i,o),this.matchHandlers[r]={mql:i,listener:o},o(i)}))},unregister(){Object.values(t).forEach((e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)})),e.clear()}}}),[e])},oD=(0,m.createContext)({});function iD(e,t){const[r,n]=m.useState("string"==typeof e?e:"");return m.useEffect((()=>{(()=>{if("string"==typeof e&&n(e),"object"==typeof e)for(let r=0;r<rD.length;r++){const o=rD[r];if(!t||!t[o])continue;const i=e[o];if(void 0!==i)return void n(i)}})()}),[JSON.stringify(e),t]),r}const aD=m.forwardRef(((e,t)=>{const{prefixCls:r,justify:n,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=m.useContext(Xo),h=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,m.useRef)(t),n=pO(),o=nD();return Pi((()=>{const t=o.subscribe((t=>{r.current=t,e&&n()}));return()=>o.unsubscribe(t)}),[]),r.current}(!0,null),p=iD(o,h),g=iD(n,h),v=d("row",r),[b,y,w]=Ak(v),x=function(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach(((e,t)=>{if("object"==typeof e&&null!==e)for(let n=0;n<rD.length;n++){const i=rD[n];if(o[i]&&void 0!==e[i]){r[t]=e[i];break}}else r[t]=e})),r}(l,h),S=ze()(v,{[`${v}-no-wrap`]:!1===c,[`${v}-${g}`]:g,[`${v}-${p}`]:p,[`${v}-rtl`]:"rtl"===f},i,y,w),C={},k=null!=x[0]&&x[0]>0?x[0]/-2:void 0;k&&(C.marginLeft=k,C.marginRight=k);const[E,O]=x;C.rowGap=O;const A=m.useMemo((()=>({gutter:[E,O],wrap:c})),[E,O,c]);return b(m.createElement(oD.Provider,{value:A},m.createElement("div",Object.assign({},u,{className:S,style:Object.assign(Object.assign({},C),a),ref:t}),s)))})),sD=aD;function lD(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const cD=["xs","sm","md","lg","xl","xxl"],uD=m.forwardRef(((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(Xo),{gutter:o,wrap:i}=m.useContext(oD),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:h,flex:p,style:g}=e,v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=r("col",a),[y,w,x]=jk(b),S={};let C={};cD.forEach((t=>{let r={};const o=e[t];"number"==typeof o?r.span=o:"object"==typeof o&&(r=o||{}),delete v[t],C=Object.assign(Object.assign({},C),{[`${b}-${t}-${r.span}`]:void 0!==r.span,[`${b}-${t}-order-${r.order}`]:r.order||0===r.order,[`${b}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${b}-${t}-push-${r.push}`]:r.push||0===r.push,[`${b}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${b}-rtl`]:"rtl"===n}),r.flex&&(C[`${b}-${t}-flex`]=!0,S[`--${b}-${t}-flex`]=lD(r.flex))}));const k=ze()(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,C,w,x),E={};if(o&&o[0]>0){const e=o[0]/2;E.paddingLeft=e,E.paddingRight=e}return p&&(E.flex=lD(p),!1!==i||E.minWidth||(E.minWidth=0)),y(m.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),S),className:k,ref:t}),h))})),dD=uD,fD=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},hD=Fu(["Form","item-item"],((e,t)=>{let{rootPrefixCls:r}=t;const n=IF(e,r);return[fD(n)]}));const pD=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:h,label:p}=e,g=`${t}-item`,v=m.useContext(Ef),b=m.useMemo((()=>{let e=Object.assign({},o||v.wrapperCol||{});return null!==p||n||o||!v.labelCol||[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const r=t?[t]:[],n=Ha(v.labelCol,r),o="object"==typeof n?n:{},i=Ha(e,r);"span"in o&&!("offset"in("object"==typeof i?i:{}))&&o.span<24&&(e=Va(e,[].concat(r,["offset"]),o.span))})),e}),[o,v]),y=ze()(`${g}-control`,b.className),w=m.useMemo((()=>{const{labelCol:e,wrapperCol:t}=v;return function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(v,["labelCol","wrapperCol"])}),[v]),x=m.useRef(null),[S,C]=m.useState(0);Pi((()=>{c&&x.current?C(x.current.clientHeight):C(0)}),[c]);const k=m.createElement("div",{className:`${g}-control-input`},m.createElement("div",{className:`${g}-control-input-content`},i)),E=m.useMemo((()=>({prefixCls:t,status:r})),[t,r]),O=null!==f||a.length||s.length?m.createElement(Tf.Provider,{value:E},m.createElement(BF,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:r,className:`${g}-explain-connected`,onVisibleChanged:h})):null,A={};d&&(A.id=`${d}_extra`);const T=c?m.createElement("div",Object.assign({},A,{className:`${g}-extra`,ref:x}),c):null,j=O||T?m.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+S}:{}},O,T):null,P=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:k,errorList:O,extra:T}):m.createElement(m.Fragment,null,k,j);return m.createElement(Ef.Provider,{value:w},m.createElement(dD,Object.assign({},b,{className:y}),P),m.createElement(hD,{prefixCls:t}))},mD={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var gD=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:mD}))};const vD=m.forwardRef(gD);const bD=e=>{let{prefixCls:t,label:r,htmlFor:n,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[f]=Gv("Form"),{labelAlign:h,labelCol:p,labelWrap:g,colon:v}=m.useContext(Ef);if(!r)return null;const b=o||p||{},y=i||h,w=`${t}-item-label`,x=ze()(w,"left"===y&&`${w}-left`,b.className,{[`${w}-wrap`]:!!g});let S=r;const C=!0===a||!1!==v&&!1!==a;C&&!u&&"string"==typeof r&&r.trim()&&(S=r.replace(/[:|:]\s*$/,""));const k=function(e){return null==e?null:"object"!=typeof e||(0,m.isValidElement)(e)?{title:e}:e}(c);if(k){const{icon:e=m.createElement(vD,null)}=k,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(k,["icon"]),n=m.createElement(im,Object.assign({},r),m.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));S=m.createElement(m.Fragment,null,S,n)}const E="optional"===l,O="function"==typeof l,A=!1===l;let T;O?S=l(S,{required:!!s}):E&&!s&&(S=m.createElement(m.Fragment,null,S,m.createElement("span",{className:`${t}-item-optional`,title:""},(null==f?void 0:f.optional)||(null===(d=ts.Form)||void 0===d?void 0:d.optional)))),A?T="hidden":(E||O)&&(T="optional");const j=ze()({[`${t}-item-required`]:s,[`${t}-item-required-mark-${T}`]:T,[`${t}-item-no-colon`]:!C});return m.createElement(dD,Object.assign({},b,{className:x}),m.createElement("label",{htmlFor:n,className:j,title:"string"==typeof r?r:""},S))},yD={success:Fc,warning:Uc,error:Lc,validating:Xc};function wD(e){let{children:t,errors:r,warnings:n,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=m.useContext(Ef),d=XF(r,n,s,null,!!o,i),{isFormItemInput:f,status:h,hasFeedback:p,feedbackIcon:g}=m.useContext(jf),v=m.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:r,warnings:n}))||void 0===e?void 0:e[d]),s=d&&yD[d];t=!1!==a&&s?m.createElement("span",{className:ze()(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||m.createElement(s,null)):null}const i={status:d||"",errors:r,warnings:n,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return l&&(i.status=(null!=d?d:h)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!=o?o:p),i.feedbackIcon=void 0!==o?i.feedbackIcon:g),i}),[d,o,l,f,h]);return m.createElement(jf.Provider,{value:v},t)}function xD(e){const{prefixCls:t,className:r,rootClassName:n,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:h,required:p,isRequired:g,onSubItemMetaChange:v,layout:b}=e,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),w=`${t}-item`,{requiredMark:x,vertical:S}=m.useContext(Ef),C=S||"vertical"===b,k=m.useRef(null),E=SF(a),O=SF(s),A=null!=i,T=!!(A||a.length||s.length),j=!!k.current&&rp(k.current),[P,M]=m.useState(null);Pi((()=>{if(T&&k.current){const e=getComputedStyle(k.current);M(parseInt(e.marginBottom,10))}}),[T,j]);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return XF(e?E:c.errors,e?O:c.warnings,c,"",!!u,l)}(),_=ze()(w,r,n,{[`${w}-with-help`]:A||E.length||O.length,[`${w}-has-feedback`]:R&&u,[`${w}-has-success`]:"success"===R,[`${w}-has-warning`]:"warning"===R,[`${w}-has-error`]:"error"===R,[`${w}-is-validating`]:"validating"===R,[`${w}-hidden`]:d,[`${w}-${b}`]:b});return m.createElement("div",{className:_,style:o,ref:k},m.createElement(sD,Object.assign({className:`${w}-row`},kf(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),m.createElement(bD,Object.assign({htmlFor:h},e,{requiredMark:x,required:null!=p?p:g,prefixCls:t,vertical:C})),m.createElement(pD,Object.assign({},e,c,{errors:E,warnings:O,prefixCls:t,status:R,help:i,marginBottom:P,onErrorVisibleChanged:e=>{e||M(null)}}),m.createElement(Of.Provider,{value:v},m.createElement(wD,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:R},f)))),!!P&&m.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-P}}))}const SD=m.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every((r=>{const n=e[r],o=t[r];return n===o||"function"==typeof n||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,r)=>e===t.childProps[r])))),CD=function(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:h,hidden:p,help:g,layout:v}=e,{getPrefixCls:b}=m.useContext(Xo),{name:y}=m.useContext(Ef),w=function(e){if("function"==typeof e)return e;const t=sd(e);return t.length<=1?t[0]:t}(l),x="function"==typeof w,S=m.useContext(Of),{validateTrigger:C}=m.useContext(ud),k=void 0!==h?h:C,E=!(null==t),O=b("form",i),A=du(O),[T,j,P]=NF(O,A);Ya();const M=m.useContext(dd),R=m.useRef(null),[_,I]=function(){const[e,t]=m.useState({}),r=m.useRef(null),n=m.useRef([]),o=m.useRef(!1);return m.useEffect((()=>(o.current=!1,()=>{o.current=!0,Ol.cancel(r.current),r.current=null})),[]),[e,function(e){o.current||(null===r.current&&(n.current=[],r.current=Ol((()=>{r.current=null,t((e=>{let t=e;return n.current.forEach((e=>{t=e(t)})),t}))}))),n.current.push(e))}]}(),[N,F]=Gs((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),D=(e,t)=>{I((r=>{const n=Object.assign({},r),o=[].concat(Vo(e.name.slice(0,-1)),Vo(t)).join("__SPLIT__");return e.destroy?delete n[o]:n[o]=e,n}))},[B,L]=m.useMemo((()=>{const e=Vo(N.errors),t=Vo(N.warnings);return Object.values(_).forEach((r=>{e.push.apply(e,Vo(r.errors||[])),t.push.apply(t,Vo(r.warnings||[]))})),[e,t]}),[_,N.errors,N.warnings]),z=function(){const{itemRef:e}=m.useContext(Ef),t=m.useRef({});return function(r,n){const o=n&&"object"==typeof n&&An(n),i=r.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Cn(e(r),o)),t.current.ref}}();function H(t,o,i){return r&&!p?m.createElement(wD,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:B,warnings:L,noStyle:!0},t):m.createElement(xD,Object.assign({key:"row"},e,{className:ze()(n,P,A,j),prefixCls:O,fieldId:o,isRequired:i,errors:B,warnings:L,meta:N,onSubItemMetaChange:D,layout:v}),t)}if(!E&&!x&&!o)return T(H(w));let U={};return"string"==typeof u?U.label=u:t&&(U.label=String(t)),d&&(U=Object.assign(Object.assign({},U),d)),T(m.createElement(af,Object.assign({},e,{messageVariables:U,trigger:f,validateTrigger:k,onMetaChange:e=>{const t=null==M?void 0:M.getKey(e.name);if(F(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==g&&S){let r=e.name;if(e.destroy)r=R.current||r;else if(void 0!==t){const[e,n]=t;r=[e].concat(Vo(n)),R.current=r}S(e,r)}}}),((r,n,i)=>{const l=qF(t).length&&n?n.name:[],u=KF(l,y),d=void 0!==c?c:!!(null==s?void 0:s.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),h=Object.assign({},r);let p=null;if(Array.isArray(w)&&E)p=w;else if(x&&(!a&&!o||E));else if(!o||x||E)if(m.isValidElement(w)){const t=Object.assign(Object.assign({},w.props),h);if(t.id||(t.id=u),g||B.length>0||L.length>0||e.extra){const r=[];(g||B.length>0)&&r.push(`${u}_help`),e.extra&&r.push(`${u}_extra`),t["aria-describedby"]=r.join(" ")}B.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),En(w)&&(t.ref=z(l,w)),new Set([].concat(Vo(qF(f)),Vo(qF(k)))).forEach((e=>{t[e]=function(){for(var t,r,n,o,i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];null===(n=h[e])||void 0===n||(t=n).call.apply(t,[h].concat(s)),null===(i=(o=w.props)[e])||void 0===i||(r=i).call.apply(r,[o].concat(s))}}));const r=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];p=m.createElement(SD,{control:h,update:w,childProps:r},th(w,t))}else p=x&&(a||o)&&!E?w(i):w;return H(p,u,d)})))};CD.useStatus=tD;const kD=CD;const ED=JF;ED.Item=kD,ED.List=e=>{var{prefixCls:t,children:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","children"]);const{getPrefixCls:o}=m.useContext(Xo),i=o("form",t),a=m.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return m.createElement(sf,Object.assign({},n),((e,t,n)=>m.createElement(Tf.Provider,{value:a},r(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:n.errors,warnings:n.warnings}))))},ED.ErrorList=BF,ED.useForm=ZF,ED.useFormInstance=function(){const{form:e}=m.useContext(Ef);return e},ED.useWatch=xf,ED.Provider=Af,ED.create=()=>{};const OD=ED,AD=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},TD=Iu(["Input","OTP"],(e=>{const t=Au(e,Gy(e));return[AD(t)]}),qy);const jD=m.forwardRef(((e,t)=>{const{className:r,value:n,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=m.useContext(Xo),u=c("otp"),d="string"==typeof s?s:n,f=m.useRef(null);m.useImperativeHandle(t,(()=>f.current));const h=()=>{Ol((()=>{var e;const t=null===(e=f.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return m.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&""!==n&&void 0!==n&&m.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),m.createElement(Iw,Object.assign({"aria-label":`OTP Input ${a+1}`,type:!0===s?"password":"text"},l,{ref:f,value:n,onInput:e=>{o(a,e.target.value)},onFocus:h,onKeyDown:e=>{const{key:t,ctrlKey:r,metaKey:n}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(r||n)&&e.preventDefault(),h()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),h()},onMouseDown:h,onMouseUp:h,className:ze()(r,{[`${u}-mask-input`]:s})})))})),PD=jD;function MD(e){return(e||"").split("")}const RD=e=>{const{index:t,prefixCls:r,separator:n}=e,o="function"==typeof n?n(t):n;return o?m.createElement("span",{className:`${r}-separator`},o):null},_D=m.forwardRef(((e,t)=>{const{prefixCls:r,length:n=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:d,status:f,autoFocus:h,mask:p,type:g,onInput:v,inputMode:b}=e,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:x}=m.useContext(Xo),S=w("otp",r),C=Jc(y,{aria:!0,data:!0,attr:!0}),[k,E,O]=TD(S),A=Rf((e=>null!=o?o:e)),T=m.useContext(jf),j=qf(T.status,f),P=m.useMemo((()=>Object.assign(Object.assign({},T),{status:j,hasFeedback:!1,feedbackIcon:null})),[T,j]),M=m.useRef(null),R=m.useRef({});m.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=R.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<n;t+=1)null===(e=R.current[t])||void 0===e||e.blur()},nativeElement:M.current})));const _=e=>l?l(e):e,[I,N]=m.useState((()=>MD(_(i||""))));m.useEffect((()=>{void 0!==a&&N(MD(a))}),[a]);const F=Ws((e=>{N(e),v&&v(e),s&&e.length===n&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&s(e.join(""))})),D=Ws(((e,t)=>{let r=Vo(I);for(let t=0;t<e;t+=1)r[t]||(r[t]="");t.length<=1?r[e]=t:r=r.slice(0,e).concat(MD(t)),r=r.slice(0,n);for(let e=r.length-1;e>=0&&!r[e];e-=1)r.pop();const o=_(r.map((e=>e||" ")).join(""));return r=MD(o).map(((e,t)=>" "!==e||r[t]?e:r[t])),r})),B=(e,t)=>{var r;const o=D(e,t),i=Math.min(e+t.length,n-1);i!==e&&void 0!==o[e]&&(null===(r=R.current[i])||void 0===r||r.focus()),F(o)},L=e=>{var t;null===(t=R.current[e])||void 0===t||t.focus()},z={variant:u,disabled:d,status:j,mask:p,type:g,inputMode:b};return k(m.createElement("div",Object.assign({},C,{ref:M,className:ze()(S,{[`${S}-sm`]:"small"===A,[`${S}-lg`]:"large"===A,[`${S}-rtl`]:"rtl"===x},O,E),role:"group"}),m.createElement(jf.Provider,{value:P},Array.from({length:n}).map(((e,t)=>{const r=`otp-${t}`,o=I[t]||"";return m.createElement(m.Fragment,{key:r},m.createElement(PD,Object.assign({ref:e=>{R.current[t]=e},index:t,size:A,htmlSize:1,className:`${S}-input`,onChange:B,value:o,onActiveChange:L,autoFocus:0===t&&h},z)),t<n-1&&m.createElement(RD,{separator:c,index:t,prefixCls:S}))})))))})),ID=_D,ND={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 FD=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:ND}))};const DD=m.forwardRef(FD);const BD=e=>e?m.createElement(PO,null):m.createElement(DD,null),LD={click:"onClick",hover:"onMouseOver"},zD=m.forwardRef(((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=BD}=e,a=m.useContext(Ss),s=null!=r?r:a,l="object"==typeof o&&void 0!==o.visible,[c,u]=(0,m.useState)((()=>!!l&&o.visible)),d=(0,m.useRef)(null);m.useEffect((()=>{l&&u(o.visible)}),[l,o]);const f=Rw(d),h=()=>{var e;if(s)return;c&&f();const t=!c;u(t),"object"==typeof o&&(null===(e=o.onVisibleChange)||void 0===e||e.call(o,t))},{className:p,prefixCls:g,inputPrefixCls:v,size:b}=e,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=m.useContext(Xo),x=w("input",v),S=w("input-password",g),C=o&&(e=>{const t=LD[n]||"",r=i(c),o={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return m.cloneElement(m.isValidElement(r)?r:m.createElement("span",null,r),o)})(S),k=ze()(S,p,{[`${S}-${b}`]:!!b}),E=Object.assign(Object.assign({},kf(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:x,suffix:C});return b&&(E.size=b),m.createElement(Iw,Object.assign({ref:Cn(t,d)},E))})),HD=zD;const UD=m.forwardRef(((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:h,onCompositionEnd:p}=e,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=m.useContext(Xo),y=m.useRef(!1),w=v("input-search",r),x=v("input",n),{compactSize:S}=Lf(w,b),C=Rf((e=>{var t;return null!==(t=null!=i?i:S)&&void 0!==t?t:e})),k=m.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,r;d&&d(null===(r=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===r?void 0:r.value,e,{source:"input"})},A="boolean"==typeof s?m.createElement(ry,null):null,T=`${w}-button`;let j;const P=s||{},M=P.type&&!0===P.type.__ANT_BUTTON;j=M||"button"===P.type?th(P,Object.assign({onMouseDown:E,onClick:e=>{var t,r;null===(r=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===r||r.call(t,e),O(e)},key:"enterButton"},M?{className:T,size:C}:{})):m.createElement(AC,{className:T,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:E,onClick:O,loading:c,icon:A},s),l&&(j=[j,th(l,{key:"addonAfter"})]);const R=ze()(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!s},o),_=Object.assign(Object.assign({},g),{className:R,prefixCls:x,type:"search"});return m.createElement(Iw,Object.assign({ref:Cn(k,t),onPressEnter:e=>{y.current||c||O(e)}},_,{size:C,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==p||p(e)},addonAfter:j,suffix:a,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),null==f||f(e)},disabled:u}))})),VD=UD;var WD,GD=["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"],qD={};var KD=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],XD=m.forwardRef((function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,d=r.onChange,f=(r.onInternalAutoSize,Be(r,KD)),h=Ie(Ks(o,{value:i,postState:function(e){return null!=e?e:""}}),2),p=h[0],g=h[1],v=m.useRef();m.useImperativeHandle(t,(function(){return{textArea:v.current}}));var b=Ie(m.useMemo((function(){return a&&"object"===Ne(a)?[a.minRows,a.maxRows]:[]}),[a]),2),y=b[0],w=b[1],x=!!a,S=Ie(m.useState(2),2),C=S[0],k=S[1],E=Ie(m.useState(),2),O=E[0],A=E[1],T=function(){k(0)};Pi((function(){x&&T()}),[i,y,w,x]),Pi((function(){if(0===C)k(1);else if(1===C){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;WD||((WD=document.createElement("textarea")).setAttribute("tab-index","-1"),WD.setAttribute("aria-hidden","true"),WD.setAttribute("name","hiddenTextarea"),document.body.appendChild(WD)),e.getAttribute("wrap")?WD.setAttribute("wrap",e.getAttribute("wrap")):WD.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&qD[r])return qD[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s={sizingStyle:GD.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(qD[r]=s),s}(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;WD.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")),WD.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=WD.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==r||null!==n){WD.value=" ";var h=WD.scrollHeight-i;null!==r&&(u=h*r,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==n&&(d=h*n,"border-box"===s&&(d=d+i+a),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}(v.current,!1,y,w);k(2),A(e)}else!function(){try{if(document.activeElement===v.current){var e=v.current,t=e.selectionStart,r=e.selectionEnd,n=e.scrollTop;v.current.setSelectionRange(t,r),v.current.scrollTop=n}}catch(e){}}()}),[C]);var j=m.useRef(),P=function(){Ol.cancel(j.current)};m.useEffect((function(){return P}),[]);var M=x?O:null,R=At(At({},c),M);return 0!==C&&1!==C||(R.overflowY="hidden",R.overflowX="hidden"),m.createElement(Hh,{onResize:function(e){2===C&&(null==s||s(e),a&&(P(),j.current=Ol((function(){T()}))))},disabled:!(a||s)},m.createElement("textarea",Te({},f,{ref:v,style:R,className:ze()(n,l,De({},"".concat(n,"-disabled"),u)),disabled:u,value:p,onChange:function(e){g(e.target.value),null==d||d(e)}})))}));const YD=XD;var $D=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ZD=m.forwardRef((function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,h=e.prefixCls,p=void 0===h?"rc-textarea":h,g=e.showCount,v=e.count,b=e.className,y=e.style,w=e.disabled,x=e.hidden,S=e.classNames,C=e.styles,k=e.onResize,E=e.onClear,O=e.onPressEnter,A=e.readOnly,T=e.autoSize,j=e.onKeyDown,P=Be(e,$D),M=Ie(Ks(n,{value:o,defaultValue:n}),2),R=M[0],_=M[1],I=null==R?"":String(R),N=Ie(m.useState(!1),2),F=N[0],D=N[1],B=m.useRef(!1),L=Ie(m.useState(null),2),z=L[0],H=L[1],U=(0,m.useRef)(null),V=(0,m.useRef)(null),W=function(){var e;return null===(e=V.current)||void 0===e?void 0:e.textArea},G=function(){W().focus()};(0,m.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:V.current,focus:G,blur:function(){W().blur()},nativeElement:(null===(e=U.current)||void 0===e?void 0:e.nativeElement)||W()}})),(0,m.useEffect)((function(){D((function(e){return!w&&e}))}),[w]);var q=Ie(m.useState(null),2),K=q[0],X=q[1];m.useEffect((function(){var e;K&&(e=W()).setSelectionRange.apply(e,Vo(K))}),[K]);var Y,$=Ry(v,g),Z=null!==(r=$.max)&&void 0!==r?r:c,Q=Number(Z)>0,J=$.strategy(I),ee=!!Z&&J>Z,te=function(e,t){var r=t;!B.current&&$.exceedFormatter&&$.max&&$.strategy(t)>$.max&&t!==(r=$.exceedFormatter(t,{max:$.max}))&&X([W().selectionStart||0,W().selectionEnd||0]),_(r),Ay(e.currentTarget,e,s,r)},re=f;$.show&&(Y=$.showFormatter?$.showFormatter({value:I,count:J,maxLength:Z}):"".concat(J).concat(Q?" / ".concat(Z):""),re=m.createElement(m.Fragment,null,re,m.createElement("span",{className:ze()("".concat(p,"-data-count"),null==S?void 0:S.count),style:null==C?void 0:C.count},Y)));var ne=!T&&!g&&!l;return m.createElement(Py,{ref:U,value:I,allowClear:l,handleReset:function(e){_(""),G(),Ay(W(),e,s)},suffix:re,prefixCls:p,classNames:At(At({},S),{},{affixWrapper:ze()(null==S?void 0:S.affixWrapper,De(De({},"".concat(p,"-show-count"),g),"".concat(p,"-textarea-allow-clear"),l))}),disabled:w,focused:F,className:ze()(b,ee&&"".concat(p,"-out-of-range")),style:At(At({},y),z&&!ne?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof Y?Y:void 0}},hidden:x,readOnly:A,onClear:E},m.createElement(YD,Te({},P,{autoSize:T,maxLength:c,onKeyDown:function(e){"Enter"===e.key&&O&&O(e),null==j||j(e)},onChange:function(e){te(e,e.target.value)},onFocus:function(e){D(!0),null==i||i(e)},onBlur:function(e){D(!1),null==a||a(e)},onCompositionStart:function(e){B.current=!0,null==u||u(e)},onCompositionEnd:function(e){B.current=!1,te(e,e.currentTarget.value),null==d||d(e)},className:ze()(null==S?void 0:S.textarea),style:At(At({},null==C?void 0:C.textarea),{},{resize:null==y?void 0:y.resize}),disabled:w,prefixCls:p,onResize:function(e){var t;null==k||k(e),null!==(t=W())&&void 0!==t&&t.style.height&&H(!0)},ref:V,readOnly:A})))}));const QD=ZD,JD=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${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 > ${t},\n &-affix-wrapper${n}-has-feedback ${t}\n `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},eB=Iu(["Input","TextArea"],(e=>{const t=Au(e,Gy(e));return[JD(t)]}),qy,{resetFont:!1});const tB=(0,m.forwardRef)(((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:h,variant:p,showCount:g,onMouseDown:v,onResize:b}=e,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:w,direction:x,allowClear:S,autoComplete:C,className:k,style:E,classNames:O,styles:A}=Zo("textArea"),T=m.useContext(Ss),j=null!=a?a:T,{status:P,hasFeedback:M,feedbackIcon:R}=m.useContext(jf),_=qf(P,s),I=m.useRef(null);m.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=I.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,r;Ty(null===(r=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===r?void 0:r.textArea,e)},blur:()=>{var e;return null===(e=I.current)||void 0===e?void 0:e.blur()}}}));const N=w("input",n),F=du(N),[D,B,L]=ww(N,u),[z]=eB(N,F),{compactSize:H,compactItemClassnames:U}=Lf(N,x),V=Rf((e=>{var t;return null!==(t=null!=i?i:H)&&void 0!==t?t:e})),[W,G]=tb("textArea",p,o),q=Mw(null!=l?l:S),[K,X]=m.useState(!1),[Y,$]=m.useState(!1);return D(z(m.createElement(QD,Object.assign({autoComplete:C},y,{style:Object.assign(Object.assign({},E),f),styles:Object.assign(Object.assign({},A),h),disabled:j,allowClear:q,className:ze()(L,F,d,u,U,k,Y&&`${N}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:ze()({[`${N}-sm`]:"small"===V,[`${N}-lg`]:"large"===V},B,null==c?void 0:c.textarea,O.textarea,K&&`${N}-mouse-active`),variant:ze()({[`${N}-${W}`]:G},Gf(N,_)),affixWrapper:ze()(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:"rtl"===x,[`${N}-affix-wrapper-sm`]:"small"===V,[`${N}-affix-wrapper-lg`]:"large"===V,[`${N}-textarea-show-count`]:g||(null===(r=e.count)||void 0===r?void 0:r.show)},B)}),prefixCls:N,suffix:M&&m.createElement("span",{className:`${N}-textarea-suffix`},R),showCount:g,ref:I,onResize:e=>{var t,r;if(null==b||b(e),K&&"function"==typeof getComputedStyle){const e=null===(r=null===(t=I.current)||void 0===t?void 0:t.nativeElement)||void 0===r?void 0:r.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&$(!0)}},onMouseDown:e=>{X(!0),null==v||v(e);const t=()=>{X(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))})),rB=tB,nB=Iw;nB.Group=e=>{const{getPrefixCls:t,direction:r}=(0,m.useContext)(Xo),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=xw(a),u=ze()(i,c,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===r},l,o),d=(0,m.useContext)(jf),f=(0,m.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return s(m.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(jf.Provider,{value:f},e.children)))},nB.Search=VD,nB.TextArea=rB,nB.Password=HD,nB.OTP=ID;const oB=nB,iB=sD,aB=dD,sB=m.createContext(null),lB=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},rc(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},rc(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},rc(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},nc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Si(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${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:`${Si(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${r}:not(${r}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${r}-checked:not(${r}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&: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:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function cB(e,t){const r=Au(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[lB(r)]}const uB=Iu("Checkbox",((e,t)=>{let{prefixCls:r}=t;return[cB(r,e)]}));const dB=(e,t)=>{var r;const{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:g,checkbox:v}=m.useContext(Xo),b=m.useContext(sB),{isFormItemInput:y}=m.useContext(jf),w=m.useContext(Ss),x=null!==(r=(null==b?void 0:b.disabled)||f)&&void 0!==r?r:w,S=m.useRef(h.value),C=m.useRef(null),k=Cn(t,C);m.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),m.useEffect((()=>{if(!d)return h.value!==S.current&&(null==b||b.cancelValue(S.current),null==b||b.registerValue(h.value),S.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]),m.useEffect((()=>{var e;(null===(e=C.current)||void 0===e?void 0:e.input)&&(C.current.input.indeterminate=s)}),[s]);const E=p("checkbox",n),O=du(E),[A,T,j]=uB(E,O),P=Object.assign({},h);b&&!d&&(P.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:a,value:h.value})},P.name=b.name,P.checked=b.value.includes(h.value));const M=ze()(`${E}-wrapper`,{[`${E}-rtl`]:"rtl"===g,[`${E}-wrapper-checked`]:P.checked,[`${E}-wrapper-disabled`]:x,[`${E}-wrapper-in-form-item`]:y},null==v?void 0:v.className,o,i,j,O,T),R=ze()({[`${E}-indeterminate`]:s},ES,T),[_,I]=wE(P.onClick);return A(m.createElement(MS,{component:"Checkbox",disabled:x},m.createElement("label",{className:M,style:Object.assign(Object.assign({},null==v?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:_},m.createElement(yE,Object.assign({},P,{onClick:I,prefixCls:E,className:R,disabled:x,ref:k})),null!=a&&m.createElement("span",{className:`${E}-label`},a))))},fB=m.forwardRef(dB);const hB=m.forwardRef(((e,t)=>{const{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m.useContext(Xo),[h,p]=m.useState(u.value||r||[]),[g,v]=m.useState([]);m.useEffect((()=>{"value"in u&&p(u.value||[])}),[u.value]);const b=m.useMemo((()=>o.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[o]),y=e=>{v((t=>t.filter((t=>t!==e))))},w=e=>{v((t=>[].concat(Vo(t),[e])))},x=e=>{const t=h.indexOf(e.value),r=Vo(h);-1===t?r.push(e.value):r.splice(t,1),"value"in u||p(r),null==c||c(r.filter((e=>g.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},S=d("checkbox",i),C=`${S}-group`,k=du(S),[E,O,A]=uB(S,k),T=kf(u,["value","disabled"]),j=o.length?b.map((e=>m.createElement(fB,{prefixCls:S,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:ze()(`${C}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label))):n,P=m.useMemo((()=>({toggleOption:x,value:h,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y})),[x,h,u.disabled,u.name,w,y]),M=ze()(C,{[`${C}-rtl`]:"rtl"===f},a,s,A,k,O);return E(m.createElement("div",Object.assign({className:M,style:l},T,{ref:t}),m.createElement(sB.Provider,{value:P},j)))})),pB=hB,mB=fB;mB.Group=pB,mB.__ANT_CHECKBOX=!0;const gB=mB,vB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"};var bB=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:vB}))};const yB=m.forwardRef(bB),wB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"};var xB=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:wB}))};const SB=m.forwardRef(xB),CB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"};var kB=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:CB}))};const EB=m.forwardRef(kB),OB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z"}}]},name:"underline",theme:"outlined"};var AB=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:OB}))};const TB=m.forwardRef(AB),jB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 474H569.9c-10-2-20.5-4-31.6-6-15.9-2.9-22.2-4.1-30.8-5.8-51.3-10-82.2-20-106.8-34.2-35.1-20.5-52.2-48.3-52.2-85.1 0-37 15.2-67.7 44-89 28.4-21 68.8-32.1 116.8-32.1 54.8 0 97.1 14.4 125.8 42.8 14.6 14.4 25.3 32.1 31.8 52.6 1.3 4.1 2.8 10 4.3 17.8.9 4.8 5.2 8.2 9.9 8.2h72.8c5.6 0 10.1-4.6 10.1-10.1v-1c-.7-6.8-1.3-12.1-2-16-7.3-43.5-28-81.7-59.7-110.3-44.4-40.5-109.7-61.8-188.7-61.8-72.3 0-137.4 18.1-183.3 50.9-25.6 18.4-45.4 41.2-58.6 67.7-13.5 27.1-20.3 58.4-20.3 92.9 0 29.5 5.7 54.5 17.3 76.5 8.3 15.7 19.6 29.5 34.1 42H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h433.2c2.1.4 3.9.8 5.9 1.2 30.9 6.2 49.5 10.4 66.6 15.2 23 6.5 40.6 13.3 55.2 21.5 35.8 20.2 53.3 49.2 53.3 89 0 35.3-15.5 66.8-43.6 88.8-30.5 23.9-75.6 36.4-130.5 36.4-43.7 0-80.7-8.5-110.2-25-29.1-16.3-49.1-39.8-59.7-69.5-.8-2.2-1.7-5.2-2.7-9-1.2-4.4-5.3-7.5-9.7-7.5h-79.7c-5.6 0-10.1 4.6-10.1 10.1v1c.2 2.3.4 4.2.6 5.7 6.5 48.8 30.3 88.8 70.7 118.8 47.1 34.8 113.4 53.2 191.8 53.2 84.2 0 154.8-19.8 204.2-57.3 25-18.9 44.2-42.2 57.1-69 13-27.1 19.7-57.9 19.7-91.5 0-31.8-5.8-58.4-17.8-81.4-5.8-11.2-13.1-21.5-21.8-30.8H952c4.4 0 8-3.6 8-8v-60a8 8 0 00-8-7.9z"}}]},name:"strikethrough",theme:"outlined"};var PB=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:jB}))};const MB=m.forwardRef(PB);var RB=o(4353),_B=o.n(RB),IB=o(445),NB=o.n(IB);function FB(e){return FB="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},FB(e)}function DB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function BB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DB(Object(r),!0).forEach((function(t){LB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DB(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LB(e,t,r){return(t=function(e){var t=function(e){if("object"!=FB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=FB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==FB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zB(){zB=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==FB(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(FB(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function HB(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function UB(e){return function(e){if(Array.isArray(e))return GB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||WB(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 VB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||WB(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 WB(e,t){if(e){if("string"==typeof e)return GB(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GB(e,t):void 0}}function GB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}_B().extend(NB());var qB="StampGroup",KB=470,XB=120,YB=[{label:"📅",options:[{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY年MM月DD日",value:"YYYY年MM月DD日"},{label:"DD-MM-YYYY",value:"DD-MM-YYYY"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"MM/DD/YYYY",value:"MM/DD/YYYY"},{label:"dddd, MMMM D, YYYY",value:"dddd, MMMM D, YYYY"},{label:"MMM D, YYYY",value:"MMM D, YYYY"},{label:"D MMMM YYYY",value:"D MMMM YYYY"}]},{label:"⏰",options:[{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"hh:mm A",value:"hh:mm A"},{label:"h:mm A",value:"h:mm A"},{label:"HH:mm:ss.SSS",value:"HH:mm:ss.SSS"}]},{label:"🗓️ ",options:[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"MM/DD/YYYY hh:mm A",value:"MM/DD/YYYY hh:mm A"},{label:"YYYY年MM月DD日 HH:mm",value:"YYYY年MM月DD日 HH:mm"},{label:"dddd, MMMM D, YYYY HH:mm",value:"dddd, MMMM D, YYYY HH:mm"},{label:"D MMMM YYYY HH:mm",value:"D MMMM YYYY HH:mm"}]}],$B=function(e){var t=e.annotation,r=e.onAdd,n=e.userName,o=ke().t,i=(0,m.useRef)(null),a=(0,m.useRef)(null),s=(0,m.useRef)(null),l=VB((0,m.useState)([]),2),c=l[0],u=l[1],d=Eo.stamp.MAX_SIZE,f=VB(OD.useForm(),1)[0],h=Eo.stamp.DEFAULT_STAMP||[],p=VB((0,m.useState)(!1),2),g=p[0],v=p[1],b=VB((0,m.useState)(!1),2),y=b[0],w=b[1],x=VB((0,m.useState)("default"),2),S=x[0],C=x[1],k={stampText:o("editor.stamp.defaultText"),fontStyle:[],fontFamily:Eo.defaultFontList[0].value,textColor:Eo.stamp.editor.DEFAULT_TEXT_COLOR,backgroundColor:Eo.stamp.editor.DEFAULT_BACKGROUND_COLOR,borderColor:Eo.stamp.editor.DEFAULT_BORDER_COLOR,borderStyle:"solid",timestamp:["username","date"],customTimestampText:"",dateFormat:"YYYY-MM-DD"},E=VB((0,m.useState)(k),2),O=E[0],A=E[1],T=function(e){r(e),v(!1)},j=function(e){var t,r;if(i.current){var o=e.stampText,s=e.fontStyle,l=e.textColor,c=e.backgroundColor,u=e.borderColor,d=e.borderStyle,f=e.timestamp,h=e.dateFormat,p=e.fontFamily;null===(t=a.current)||void 0===t||t.destroy();var m=new(IE().Stage)({container:i.current,width:KB,height:XB}),g=new(IE().Layer),v=[];s.includes("italic")&&v.push("italic"),s.includes("bold")&&v.push("bold");var b,y=v.join(" ")||"normal",w=s.includes("underline"),x=s.includes("strikeout"),S=_B()(),C=n,k=h?S.format(h):"",E=null===(r=e.customTimestampText)||void 0===r?void 0:r.trim(),O=[f.includes("username")?C:null,f.includes("date")?k:null,E||null].filter(Boolean).join(" · "),A=30,T=new(IE().Text)({text:o,fontSize:A,fontStyle:y,fontFamily:p}),j=new(IE().Text)({text:O,fontSize:16,fontFamily:p}),P=Math.max(T.width(),j.width())+60,M=A+10+16+25,R=Math.max(P,180),_=Math.max(M,60),I=new(IE().Rect)({name:qB,width:R,height:_,x:(KB-R)/2,y:(XB-_)/2,fill:c,strokeWidth:3,stroke:u,dash:"dashed"===d?[5,5]:void 0,cornerRadius:8});g.add(I),O||(A*=1.2),b=O?(XB-_)/2+15:(XB-_)/2+_/2-A/2;var N=new(IE().Text)({text:o,x:0,y:b,width:KB,align:"center",fontSize:A,fontStyle:y,fontFamily:p,fill:l});if(g.add(N),w){var F=N.y()+A+4,D=new(IE().Line)({points:[I.x(),F,I.x()+I.width(),F],stroke:l,strokeWidth:2});g.add(D)}if(x){var B=N.y()+A/2,L=new(IE().Line)({points:[I.x(),B,I.x()+I.width(),B],stroke:l,strokeWidth:2});g.add(L)}var z=new(IE().Text)({text:O,x:0,y:b+A+10,width:KB,align:"center",fontSize:16,fontFamily:p,fill:l});O&&g.add(z),m.add(g),a.current=m}};return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsxs)(hm,{rootClassName:"StampPop",content:(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)(RE.Group,{block:!0,options:[{label:o("normal.default"),value:"default"},{label:o("normal.custom"),value:"custom"}],size:"small",optionType:"button",value:S,onChange:function(e){return C(e.target.value)}}),"default"===S&&(0,Mn.jsx)("ul",{className:"StampPop-Container",children:h.map((function(e,t){return(0,Mn.jsx)("li",{children:(0,Mn.jsx)("img",{onClick:function(){return T(e)},src:e})},t)}))}),(0,Mn.jsx)("div",{children:"custom"===S&&(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("ul",{className:"StampPop-Container",children:c.map((function(e,t){return(0,Mn.jsx)("li",{children:(0,Mn.jsx)("img",{onClick:function(){return T(e)},src:e})},t)}))}),(0,Mn.jsx)(AC,{color:"default",variant:"filled",style:{marginTop:8},block:!0,size:"small",onClick:function(){v(!1),w(!0)},icon:(0,Mn.jsx)(DE,{}),children:o("toolbar.buttons.createStamp")})]})}),(0,Mn.jsx)(Lm,{size:"small"}),(0,Mn.jsx)("input",{style:{display:"none"},type:"file",ref:s,accept:Eo.stamp.ACCEPT,onChange:function(e){var t=e.target,n=t.files;if(null!=n&&n.length){var i=n[0];if(i.size>d)alert(o("normal.fileSizeLimit",{value:GN(d)}));else{var a=new FileReader;a.onload=function(){var e,n=(e=zB().mark((function e(n){var o,i,a;return zB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=null===(o=n.target)||void 0===o?void 0:o.result,(a=new Image).src=i,a.onload=function(){var e=Eo.setting.MAX_UPLOAD_IMAGE_SIZE,n=Eo.setting.MAX_UPLOAD_IMAGE_SIZE,o=a.width,i=a.height;o>i&&o>e?(i=Math.round(i*e/o),o=e):i>n&&(o=Math.round(o*n/i),i=n);var s=document.createElement("canvas"),l=s.getContext("2d");if(s.width=o,s.height=i,l){l.drawImage(a,0,0,o,i);var c=s.toDataURL("image/png");t.value="",r(c),u((function(e){return[].concat(UB(e),[c])})),v(!1)}};case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){HB(i,n,o,a,s,"next",e)}function s(e){HB(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),a.readAsDataURL(i)}}}}),(0,Mn.jsx)("div",{className:"StampPop-Toolbar",children:(0,Mn.jsx)(AC,{block:!0,type:"link",onClick:function(){var e;null===(e=s.current)||void 0===e||e.click()},icon:(0,Mn.jsx)(yB,{}),children:o("normal.upload")})})]}),trigger:"click",open:g,onOpenChange:v,placement:"bottom",arrow:!1,children:[(0,Mn.jsx)("div",{className:"icon",children:t.icon}),(0,Mn.jsx)("div",{className:"name",children:o("annotations.".concat(t.name))})]}),(0,Mn.jsx)(dE,{title:o("toolbar.buttons.createStamp"),open:y,onOk:function(){var e,t=null===(e=a.current)||void 0===e?void 0:e.getLayers()[0];if(t){var r=t.getChildren((function(e){return e.name()===qB}))[0];if(r){var n=a.current.toDataURL({x:r.x(),y:r.y(),width:r.width(),height:r.height()});n&&(u((function(e){return[].concat(UB(e),[n])})),T(n),w(!1))}}},onClose:function(){var e=a.current;e&&(e.destroy(),a.current=null)},afterOpenChange:function(e){if(e){var t=O||k;j(t),f.setFieldsValue(t)}},onCancel:function(){return w(!1)},okText:o("normal.ok"),cancelText:o("normal.cancel"),className:"StampTool",children:(0,Mn.jsxs)("div",{children:[(0,Mn.jsxs)("div",{className:"StampTool-Container",children:[(0,Mn.jsx)("div",{className:"StampTool-Container-ImagePreview",ref:i,style:{height:XB}}),(0,Mn.jsxs)(OD,{form:f,name:"basic",layout:"vertical",size:"middle",onValuesChange:function(e,t){var r=t.textColor,n=t.backgroundColor,o=t.borderColor;A(BB(BB({},t),{},{textColor:null!=r&&r.toHexString?r.toHexString():r,backgroundColor:null!=n&&n.toHexString?n.toHexString():n,borderColor:null!=o&&o.toHexString?o.toHexString():o})),j(BB(BB({},t),{},{textColor:null!=r&&r.toHexString?r.toHexString():r,backgroundColor:null!=n&&n.toHexString?n.toHexString():n,borderColor:null!=o&&o.toHexString?o.toHexString():o}))},initialValues:k,autoComplete:"off",children:[(0,Mn.jsx)(OD.Item,{label:o("editor.stamp.stampText"),name:"stampText",children:(0,Mn.jsx)(oB,{})}),(0,Mn.jsxs)(iB,{children:[(0,Mn.jsx)(aB,{span:5,children:(0,Mn.jsx)(OD.Item,{name:"textColor",label:o("editor.stamp.textColor"),children:(0,Mn.jsx)(pS,{format:"rgb",size:"small",arrow:!0,presets:[{label:"",colors:["#ffffff","#000000"].concat(UB(Eo.colors))}]})})}),(0,Mn.jsx)(aB,{span:12,children:(0,Mn.jsx)(OD.Item,{name:"fontStyle",label:o("editor.stamp.fontStyle"),children:(0,Mn.jsx)(gB.Group,{options:[{value:"bold",label:(0,Mn.jsx)(SB,{})},{value:"italic",label:(0,Mn.jsx)(EB,{})},{value:"underline",label:(0,Mn.jsx)(TB,{})},{value:"strikeout",label:(0,Mn.jsx)(MB,{})}]})})}),(0,Mn.jsx)(aB,{span:7,children:(0,Mn.jsx)(OD.Item,{name:"fontFamily",label:o("editor.stamp.fontFamily"),children:(0,Mn.jsx)(sy,{options:Eo.defaultFontList})})})]}),(0,Mn.jsxs)(iB,{children:[(0,Mn.jsx)(aB,{span:8,children:(0,Mn.jsx)(OD.Item,{name:"backgroundColor",label:o("editor.stamp.backgroundColor"),children:(0,Mn.jsx)(pS,{allowClear:!0,size:"small",arrow:!0,showText:!1,presets:[{label:"",colors:Eo.colors}]})})}),(0,Mn.jsx)(aB,{span:8,children:(0,Mn.jsx)(OD.Item,{name:"borderColor",label:o("editor.stamp.borderColor"),children:(0,Mn.jsx)(pS,{allowClear:!0,size:"small",arrow:!0,showText:!1,presets:[{label:"",colors:Eo.colors}]})})}),(0,Mn.jsx)(aB,{span:8,children:(0,Mn.jsx)(OD.Item,{name:"borderStyle",label:o("editor.stamp.borderStyle"),children:(0,Mn.jsx)(RE.Group,{block:!0,options:[{label:o("editor.stamp.solid"),value:"solid"},{label:o("editor.stamp.dashed"),value:"dashed"}]})})})]}),(0,Mn.jsx)(Lm,{}),(0,Mn.jsxs)(iB,{children:[(0,Mn.jsx)(aB,{span:10,children:(0,Mn.jsx)(OD.Item,{name:"timestamp",label:o("editor.stamp.timestampText"),children:(0,Mn.jsx)(gB.Group,{options:[{value:"username",label:o("editor.stamp.username")},{value:"date",label:o("editor.stamp.date")}]})})}),(0,Mn.jsx)(aB,{span:14,children:(0,Mn.jsx)(OD.Item,{name:"dateFormat",label:o("editor.stamp.dateFormat"),children:(0,Mn.jsx)(sy,{options:YB})})})]}),(0,Mn.jsx)(OD.Item,{name:"customTimestampText",label:o("editor.stamp.customTimestamp"),children:(0,Mn.jsx)(oB,{})})]})]}),(0,Mn.jsx)("div",{className:"StampTool-Toolbar"})]})})]})};function ZB(e){return ZB="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},ZB(e)}function QB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function JB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?QB(Object(r),!0).forEach((function(t){eL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QB(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function eL(e,t,r){return(t=function(e){var t=function(e){if("object"!=ZB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ZB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rL(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rL(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.")}()}function rL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var nL=(0,m.forwardRef)((function(e,t){var r,n,o,i=(0,m.useMemo)((function(){return e.defaultAnnotationName&&Po.find((function(t){return t.name===e.defaultAnnotationName}))||null}),[e.defaultAnnotationName,Po]),a=tL((0,m.useState)(i),2),s=a[0],l=a[1],c=tL((0,m.useState)(Po.filter((function(e){return e.pdfjsEditorType!==Ao.HIGHLIGHT}))),2),u=c[0],d=c[1],f=tL((0,m.useState)(null),2),h=f[0],p=f[1],g=tL((0,m.useState)(e.defaultSidebarOpen),2),v=g[0],b=g[1],y=ke().t;(0,m.useImperativeHandle)(t,(function(){return{activeAnnotation:w,toggleSidebarBtn:x,updateStyle:S}}));var w=function(e){k(e)},x=function(e){b(e)},S=function(e,t){d(u.map((function(r){return r.type===e&&(r.style=JB(JB({},r.style),t)),r})))},C=null==s?void 0:s.type,k=function(e){l(e),(null==e?void 0:e.type)!==To.SIGNATURE&&p(null)},E=function(e,t){ad.open({type:"info",content:y("toolbar.message.selectPosition")}),p(e),l(t)},O=u.map((function(t,r){var n=t.type===C,o={className:n?"selected":""};switch(t.type){case To.STAMP:return(0,Mn.jsx)("li",JB(JB({title:y("annotations.".concat(t.name))},o),{},{children:(0,Mn.jsx)($B,{userName:e.userName,annotation:t,onAdd:function(e){return E(e,t)}})}),r);case To.SIGNATURE:return(0,Mn.jsx)("li",JB(JB({title:y("annotations.".concat(t.name))},o),{},{children:(0,Mn.jsx)(bF,{annotation:t,onAdd:function(e){return E(e,t)}})}),r);default:return(0,Mn.jsxs)("li",JB(JB({title:y("annotations.".concat(t.name))},o),{},{onClick:function(){return k(n?null:t)},children:[(0,Mn.jsx)("div",{className:"icon",children:t.icon}),(0,Mn.jsx)("div",{className:"name",children:y("annotations.".concat(t.name))})]}),r)}})),A=!(null!=s&&null!==(r=s.styleEditable)&&void 0!==r&&r.color);return(0,m.useEffect)((function(){e.onChange(s,h)}),[s,h,e]),(0,Mn.jsxs)("div",{className:"CustomToolbar",children:[(0,Mn.jsxs)("ul",{className:"buttons",children:[O,(0,Mn.jsx)(pS,{arrow:!1,disabledAlpha:!0,value:(null==s||null===(n=s.style)||void 0===n?void 0:n.color)||Eo.setting.COLOR,disabled:A,showText:!1,onChangeComplete:function(e){return function(e){if(s){var t=JB(JB({},s),{},{style:JB(JB({},s.style),{},{color:e})}),r=u.map((function(e){return e.type===s.type?t:e}));d(r),l(t)}}(e.toHexString())},presets:[{label:"",colors:Eo.colors}],children:(0,Mn.jsxs)("li",{className:A?"disabled":"",title:y("normal.color"),children:[(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(po,{style:{color:null==s||null===(o=s.style)||void 0===o?void 0:o.color}})}),(0,Mn.jsx)("div",{className:"name",children:y("normal.color")})]})})]}),(0,Mn.jsx)("div",{className:"splitToolbarButtonSeparator"}),(0,Mn.jsxs)("ul",{className:"buttons",children:[Eo.setting.SAVE_BUTTON&&(0,Mn.jsxs)("li",{title:y("normal.save"),onClick:function(){e.onSave()},children:[(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(go,{})}),(0,Mn.jsx)("div",{className:"name",children:y("normal.save")})]}),(Eo.setting.EXPORT_PDF||Eo.setting.EXPORT_EXCEL)&&(0,Mn.jsx)("li",{title:y("normal.export"),children:(0,Mn.jsxs)(hm,{content:(0,Mn.jsxs)(SS,{direction:"vertical",children:[Eo.setting.EXPORT_PDF&&(0,Mn.jsx)(AC,{block:!0,color:"primary",variant:"outlined",onClick:function(){e.onExport("pdf")},icon:(0,Mn.jsx)(xF,{}),children:"PDF"}),Eo.setting.EXPORT_EXCEL&&(0,Mn.jsx)(AC,{block:!0,color:"primary",variant:"outlined",onClick:function(){e.onExport("excel")},icon:(0,Mn.jsx)(xF,{}),children:"Excel"})]}),trigger:"click",placement:"bottom",arrow:!1,children:[(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(vo,{})}),(0,Mn.jsx)("div",{className:"name",children:y("normal.export")})]})})]}),(0,Mn.jsx)("ul",{className:"buttons right",children:(0,Mn.jsxs)("li",{onClick:function(){return t=v,e.onSidebarOpen(!t),void b(!t);var t},className:"".concat(v?"selected":""),children:[(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(yo,{})}),(0,Mn.jsx)("div",{className:"name",children:y("anno")})]})})]})})),oL=o(1665),iL={};iL.styleTagTransform=f(),iL.setAttributes=l(),iL.insert=a().bind(null,"head"),iL.domAPI=n(),iL.insertStyleElement=u(),t()(oL.A,iL),oL.A&&oL.A.locals&&oL.A.locals;var aL="PdfjsAnnotationExtension",sL="".concat(aL,"_painter_wrapper"),lL="".concat(aL,"_is_painting"),cL="".concat(aL,"_painting_type"),uL="".concat(aL,"_shape_group"),dL="".concat(aL,"_selector_hover"),fL="--".concat(aL,"-image-cursor");function hL(e){return hL="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},hL(e)}function pL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gL(n.key),n)}}function mL(e,t,r){return(t=gL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gL(e){var t=function(e){if("object"!=hL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=hL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hL(t)?t:t+""}var vL=function(){function e(t){var r=t.userName,n=t.konvaStage,o=t.pageNumber,i=t.annotation,a=t.onAdd,s=t.editorType,l=t.pdfViewerApplication,c=t.onChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mL(this,"shapeGroupStore",new Map),this.userName=r,this.pdfViewerApplication=l,this.id="".concat(o,"_").concat(s),this.konvaStage=n,this.pageNumber=o,this.currentAnnotation=i,this.isPainting=!1,this.currentShapeGroup=null,this.onAdd=a,this.onChange=c||function(){},this.disableEditMode(),this.enableEditMode()}return function(e,t,r){return t&&pL(e.prototype,t),r&&pL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"dispatchAddEvent",value:function(e){var t=e.shapeGroup,r=e.contentsObj,n=e.color,o=e.fontSize,i=t.id,a=t.pageNumber,s=t.konvaGroup,l=t.annotation,c={id:i,pageNumber:a,konvaString:s.toJSON(),konvaClientRect:IE().Node.create(s.toJSON()).getClientRect(),title:this.userName,type:l.type,pdfjsType:l.pdfjsAnnotationType,pdfjsEditorType:l.pdfjsEditorType,subtype:l.subtype,color:n,fontSize:o,date:XN(Date.now()),contentsObj:r,comments:[],resizable:l.resizable,draggable:l.draggable};this.onAdd(c)}},{key:"dispatchChangedEvent",value:function(e,t){this.onChange(e,t)}},{key:"enableEditMode",value:function(){var e=this;this.konvaStage.on("mousedown",(function(t){0===t.evt.button&&e.mouseDownHandler(t)})),this.konvaStage.on("mousemove",(function(t){e.mouseMoveHandler(t)})),this.konvaStage.on("mouseup",(function(t){0===t.evt.button&&e.mouseUpHandler(t)})),this.konvaStage.on("touchstart",(function(t){1===t.evt.touches.length&&e.mouseDownHandler(t)})),this.konvaStage.on("touchmove",(function(t){1===t.evt.touches.length&&e.mouseMoveHandler(t)})),this.konvaStage.on("touchend",(function(t){e.mouseUpHandler(t)}))}},{key:"disableEditMode",value:function(){this.isPainting=!1,this.konvaStage.off("click"),this.konvaStage.off("mousedown"),this.konvaStage.off("mousemove"),this.konvaStage.off("mouseup"),this.konvaStage.off("touchstart"),this.konvaStage.off("touchmove"),this.konvaStage.off("touchend")}},{key:"getBgLayer",value:function(e){return e?e.getLayers()[0]:this.konvaStage.getLayers()[0]}},{key:"delShapeGroup",value:function(e){this.shapeGroupStore.delete(e);var t=this.konvaStage.findOne((function(t){return"Group"===t.getType()&&t.id()===e}));t&&t.destroy()}},{key:"getShapeGroupById",value:function(e){var t=this.konvaStage.findOne((function(t){return"Group"===t.getType()&&t.id()===e}));return t}},{key:"setShapeGroupDone",value:function(e){var t=e.id,r=e.contentsObj,n=e.color,o=e.fontSize,i=this.shapeGroupStore.get(t);i&&(i.isDone=!0,this.dispatchAddEvent({shapeGroup:i,contentsObj:r,color:n,fontSize:o}))}},{key:"setChanged",value:function(e,t){this.dispatchChangedEvent(e,t)}},{key:"getNodesByClassName",value:function(e){var t=this.currentShapeGroup.konvaGroup.getChildren((function(t){return t.getClassName()===e}));return t}},{key:"getGroupNodesByClassName",value:function(e,t){var r=e.getChildren((function(e){return e.getClassName()===t}));return r}},{key:"updateKonvaGroup",value:function(e,t){if(this.shapeGroupStore.has(e)){var r=this.shapeGroupStore.get(e);if(r)return r.konvaGroup=t,this.shapeGroupStore.set(e,r),r}else console.warn("ShapeGroup with id ".concat(e," not found."));return null}},{key:"createShapeGroup",value:function(){var e=UN(),t={id:e,konvaGroup:new(IE().Group)({draggable:!1,name:uL,id:e}),pageNumber:this.pageNumber,annotation:this.currentAnnotation,isDone:!1};return this.shapeGroupStore.set(e,t),t}},{key:"activate",value:function(e,t){this.konvaStage=e,this.currentAnnotation=t,this.isPainting=!1,this.disableEditMode(),this.enableEditMode()}},{key:"addSerializedGroupToLayer",value:function(e,t){this.konvaStage=e;var r=IE().Node.create(t),n=r.id();if(this.getBgLayer(e).add(r),!this.shapeGroupStore.has(n)){var o={id:n,konvaGroup:r,pageNumber:this.pageNumber,isDone:!0};this.shapeGroupStore.set(n,o)}}},{key:"deleteGroup",value:function(e,t){this.konvaStage=t,this.delShapeGroup(e)}},{key:"updateStyle",value:function(e,t){this.changeStyle(e,t)}}],[{key:"TimerClear",value:function(t){var r=e.Timer[t];r&&window.clearTimeout(r)}},{key:"TimerStart",value:function(t,r){e.Timer[t]=window.setTimeout((function(){"function"==typeof r&&r(t)}),1e3)}}])}();function bL(e){return bL="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},bL(e)}function yL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yL(Object(r),!0).forEach((function(t){EL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OL(n.key),n)}}function SL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SL=function(){return!!e})()}function CL(e){return CL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CL(e)}function kL(e,t){return kL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kL(e,t)}function EL(e,t,r){return(t=OL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OL(e){var t=function(e){if("object"!=bL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=bL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bL(t)?t:t+""}mL(vL,"MinSize",8),mL(vL,"Timer",{});var AL=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),EL(r=function(e,t,r){return t=CL(t),function(e,t){if(t&&("object"==bL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,SL()?Reflect.construct(t,r||[],CL(e).constructor):t.apply(e,r))}(this,t,[wL(wL({},e),{},{editorType:To.CIRCLE})]),"globalPointerUpHandler",(function(e){0===e.button&&(r.mouseUpHandler(),window.removeEventListener("mouseup",r.globalPointerUpHandler))})),r.ellipse=null,r.vertex={x:0,y:0},r}return 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&&kL(e,t)}(t,e),function(e,t){return t&&xL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(e){if(e.currentTarget===this.konvaStage){this.ellipse=null,this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var t=this.konvaStage.getRelativePointerPosition();this.vertex={x:t.x,y:t.y},this.ellipse=new(IE().Ellipse)({radiusX:0,radiusY:0,x:t.x,y:t.y,strokeScaleEnabled:!1,visible:!1,stroke:this.currentAnnotation.style.color,strokeWidth:this.currentAnnotation.style.strokeWidth,opacity:this.currentAnnotation.style.opacity}),this.currentShapeGroup.konvaGroup.add(this.ellipse),window.addEventListener("mouseup",this.globalPointerUpHandler)}}},{key:"mouseMoveHandler",value:function(e){if(this.isPainting){e.evt.preventDefault(),this.ellipse.show();var t=this.konvaStage.getRelativePointerPosition(),r=Math.abs(t.x-this.vertex.x)/2,n=Math.abs(t.y-this.vertex.y)/2,o={x:(t.x-this.vertex.x)/2+this.vertex.x,y:(t.y-this.vertex.y)/2+this.vertex.y,radiusX:r,radiusY:n};this.ellipse.setAttrs(o)}}},{key:"mouseUpHandler",value:function(){if(this.isPainting){this.isPainting=!1;var e=this.ellipse.getParent();if(this.ellipse.isVisible()||"Group"!==e.getType()){if(this.isTooSmall())return this.ellipse.destroy(),this.delShapeGroup(e.id()),void(this.ellipse=null);this.setShapeGroupDone({id:e.id(),color:this.currentAnnotation.style.color,contentsObj:{text:""}}),this.ellipse=null}else this.delShapeGroup(e.id())}}},{key:"isTooSmall",value:function(){var e=this.ellipse.size(),t=e.width,r=e.height;return Math.max(t,r)<vL.MinSize}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){e instanceof IE().Ellipse&&(void 0!==t.color&&e.stroke(t.color),void 0!==t.strokeWidth&&e.strokeWidth(t.strokeWidth),void 0!==t.opacity&&e.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);function TL(e){return TL="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},TL(e)}function jL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function PL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jL(Object(r),!0).forEach((function(t){NL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ML(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FL(n.key),n)}}function RL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(RL=function(){return!!e})()}function _L(e){return _L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_L(e)}function IL(e,t){return IL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IL(e,t)}function NL(e,t,r){return(t=FL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FL(e){var t=function(e){if("object"!=TL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=TL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==TL(t)?t:t+""}var DL=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),NL(r=function(e,t,r){return t=_L(t),function(e,t){if(t&&("object"==TL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,RL()?Reflect.construct(t,r||[],_L(e).constructor):t.apply(e,r))}(this,t,[PL(PL({},e),{},{editorType:To.FREEHAND})]),"globalPointerUpHandler",(function(e){0===e.button&&(r.mouseUpHandler(),window.removeEventListener("mouseup",r.globalPointerUpHandler))})),r.line=null,r}return 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&&IL(e,t)}(t,e),function(e,t){return t&&ML(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(e){if(e.currentTarget===this.konvaStage){vL.TimerClear(this.pageNumber),this.line=null,this.isPainting=!0,this.currentShapeGroup||(this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup));var t=this.konvaStage.getRelativePointerPosition();this.line=new(IE().Line)({strokeScaleEnabled:!1,stroke:this.currentAnnotation.style.color,strokeWidth:this.currentAnnotation.style.strokeWidth,opacity:this.currentAnnotation.style.opacity,lineCap:"round",lineJoin:"round",hitStrokeWidth:20,visible:!1,globalCompositeOperation:"source-over",points:[t.x,t.y,t.x,t.y]}),this.currentShapeGroup.konvaGroup.add(this.line),window.addEventListener("mouseup",this.globalPointerUpHandler)}}},{key:"mouseMoveHandler",value:function(e){if(this.isPainting){e.evt.preventDefault(),this.line.show();var t=this.konvaStage.getRelativePointerPosition(),r=this.line.points().concat([t.x,t.y]);this.line.points(r)}}},{key:"mouseUpHandler",value:function(){var e=this;if(this.isPainting){this.isPainting=!1;var t=this.line.getParent();if(this.isTooSmall())return this.line.destroy(),void vL.TimerStart(this.pageNumber,(function(){e.setShapeGroupDone({id:t.id(),color:e.currentAnnotation.style.color,contentsObj:{text:""}}),e.currentShapeGroup=null}));vL.TimerStart(this.pageNumber,(function(){e.setShapeGroupDone({id:t.id(),color:e.currentAnnotation.style.color,contentsObj:{text:""}}),e.currentShapeGroup=null})),this.line=null}}},{key:"isTooSmall",value:function(){return this.line.points().length<vL.MinSize}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){e instanceof IE().Line&&(void 0!==t.color&&e.stroke(t.color),void 0!==t.strokeWidth&&e.strokeWidth(t.strokeWidth),void 0!==t.opacity&&e.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);function BL(e){return BL="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},BL(e)}function LL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?LL(Object(r),!0).forEach((function(t){GL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function HL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qL(n.key),n)}}function UL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UL=function(){return!!e})()}function VL(e){return VL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VL(e)}function WL(e,t){return WL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WL(e,t)}function GL(e,t,r){return(t=qL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qL(e){var t=function(e){if("object"!=BL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=BL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==BL(t)?t:t+""}var KL=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GL(r=function(e,t,r){return t=VL(t),function(e,t){if(t&&("object"==BL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,UL()?Reflect.construct(t,r||[],VL(e).constructor):t.apply(e,r))}(this,t,[zL(zL({},e),{},{editorType:To.FREE_HIGHLIGHT})]),"globalPointerUpHandler",(function(e){0===e.button&&(r.mouseUpHandler(),window.removeEventListener("mouseup",r.globalPointerUpHandler))})),r.line=null,r}return 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&&WL(e,t)}(t,e),function(e,t){return t&&HL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(e){if(e.currentTarget===this.konvaStage){this.line=null,this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var t=this.konvaStage.getRelativePointerPosition();this.line=new(IE().Line)({strokeScaleEnabled:!1,stroke:this.currentAnnotation.style.color,strokeWidth:this.currentAnnotation.style.strokeWidth,opacity:this.currentAnnotation.style.opacity,hitStrokeWidth:this.currentAnnotation.style.strokeWidth,lineCap:"round",lineJoin:"round",visible:!1,globalCompositeOperation:"source-over",points:[t.x,t.y]}),this.currentShapeGroup.konvaGroup.add(this.line),window.addEventListener("mouseup",this.globalPointerUpHandler)}}},{key:"mouseMoveHandler",value:function(e){if(this.isPainting){e.evt.preventDefault(),this.line.show();var t=this.konvaStage.getRelativePointerPosition(),r=this.line.points().concat([t.x,t.y]);this.line.points(r)}}},{key:"mouseUpHandler",value:function(){var e;if(this.isPainting){this.isPainting=!1;var t=null===(e=this.line)||void 0===e?void 0:e.getParent();if(!t||this.line.isVisible()||"Group"!==t.getType()){var r;if(this.isTooSmall())return null===(r=this.line)||void 0===r||r.destroy(),t&&this.delShapeGroup(t.id()),void(this.line=null);if(this.line){var n=this.line.points(),o=this.correctLineIfStraight(n);this.line.points(o),this.setShapeGroupDone({id:t.id(),color:this.currentAnnotation.style.color,contentsObj:{text:""}}),this.line=null}}else this.delShapeGroup(t.id())}}},{key:"correctLineIfStraight",value:function(e){var t=e[0],r=e[1],n=e[e.length-2],o=e[e.length-1],i=n-t,a=o-r,s=Math.atan2(a,i),l=Math.abs(s*(180/Math.PI)),c=l<=2||l>=178,u=Math.abs(l-90)<=2;return c?e.map((function(e,t){return t%2==0?e:r})):u?e.map((function(e,r){return r%2==0?t:e})):e}},{key:"isTooSmall",value:function(){var e;return((null===(e=this.line)||void 0===e?void 0:e.points().length)||0)<5}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){e instanceof IE().Line&&(void 0!==t.color&&e.stroke(t.color),void 0!==t.strokeWidth&&e.strokeWidth(t.strokeWidth),void 0!==t.opacity&&e.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);const XL={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 YL=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:XL}))};const $L=m.forwardRef(YL);var ZL=$c.ESC,QL=$c.TAB;const JL=(0,m.forwardRef)((function(e,t){var r=e.overlay,n=e.arrow,o=e.prefixCls,i=(0,m.useMemo)((function(){return"function"==typeof r?r():r}),[r]),a=Cn(t,An(i));return m.createElement(m.Fragment,null,n&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(i,{ref:En(i)?a:void 0}))}));var ez={adjustX:1,adjustY:1},tz=[0,0];const rz={topLeft:{points:["bl","tl"],overflow:ez,offset:[0,-4],targetOffset:tz},top:{points:["bc","tc"],overflow:ez,offset:[0,-4],targetOffset:tz},topRight:{points:["br","tr"],overflow:ez,offset:[0,-4],targetOffset:tz},bottomLeft:{points:["tl","bl"],overflow:ez,offset:[0,4],targetOffset:tz},bottom:{points:["tc","bc"],overflow:ez,offset:[0,4],targetOffset:tz},bottomRight:{points:["tr","br"],overflow:ez,offset:[0,4],targetOffset:tz}};var nz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function oz(e,t){var r,n=e.arrow,o=void 0!==n&&n,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,h=void 0===f?rz:f,p=e.getPopupContainer,g=e.showAction,v=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,w=e.visible,x=e.trigger,S=void 0===x?["hover"]:x,C=e.autoFocus,k=e.overlay,E=e.children,O=e.onVisibleChange,A=Be(e,nz),T=Ie(m.useState(),2),j=T[0],P=T[1],M="visible"in e?w:j,R=m.useRef(null),_=m.useRef(null),I=m.useRef(null);m.useImperativeHandle(t,(function(){return R.current}));var N=function(e){P(e),null==O||O(e)};!function(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=m.useRef(!1),s=function(){var e,o;t&&(null===(e=r.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==n||n(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case ZL:s();break;case QL:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};m.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&Ol(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:M,triggerRef:I,onVisibleChange:N,autoFocus:C,overlayRef:_});var F,D,B,L=function(){return m.createElement(JL,{ref:_,overlay:k,prefixCls:a,arrow:o})},z=m.cloneElement(E,{className:ze()(null===(r=E.props)||void 0===r?void 0:r.className,M&&(F=e.openClassName,void 0!==F?F:"".concat(a,"-open"))),ref:En(E)?Cn(I,An(E)):void 0}),H=v;return H||-1===S.indexOf("contextMenu")||(H=["click"]),m.createElement(gp,Te({builtinPlacements:h},A,{prefixCls:a,ref:R,popupClassName:ze()(b,De({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:S,showAction:g,hideAction:H,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:(D=e.minOverlayWidthMatchTrigger,B=e.alignPoint,("minOverlayWidthMatchTrigger"in e?D:!B)?"minWidth":""),popup:"function"==typeof k?L:L(),onPopupVisibleChange:N,onPopupClick:function(t){var r=e.onOverlayClick;P(!1),r&&r(t)},getPopupContainer:p}),z)}const iz=m.forwardRef(oz);var az=m.createContext(null);function sz(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function lz(e){return sz(m.useContext(az),e)}var cz=["children","locked"],uz=m.createContext(null);function dz(e){var t=e.children,r=e.locked,n=Be(e,cz),o=m.useContext(uz),i=gn((function(){return e=n,t=At({},o),Object.keys(e).forEach((function(r){var n=e[r];void 0!==n&&(t[r]=n)})),t;var e,t}),[o,n],(function(e,t){return!(r||e[0]===t[0]&&Jo(e[1],t[1],!0))}));return m.createElement(uz.Provider,{value:i},t)}var fz=[],hz=m.createContext(null);function pz(){return m.useContext(hz)}var mz=m.createContext(fz);function gz(e){var t=m.useContext(mz);return m.useMemo((function(){return void 0!==e?[].concat(Vo(t),[e]):t}),[t,e])}var vz=m.createContext(null);const bz=m.createContext({});function yz(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(rp(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||"a"===r&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:n&&null===a&&(a=0),n&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var wz=$c.LEFT,xz=$c.RIGHT,Sz=$c.UP,Cz=$c.DOWN,kz=$c.ENTER,Ez=$c.ESC,Oz=$c.HOME,Az=$c.END,Tz=[Sz,Cz,wz,xz];function jz(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Vo(e.querySelectorAll("*")).filter((function(e){return yz(e,t)}));return yz(e,t)&&r.unshift(e),r}(e,!0).filter((function(e){return t.has(e)}))}function Pz(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=jz(e,t),i=o.length,a=o.findIndex((function(e){return r===e}));return n<0?-1===a?a=i-1:a-=1:n>0&&(a+=1),o[a=(a+i)%i]}var Mz=function(e,t){var r=new Set,n=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(sz(t,e),"']"));i&&(r.add(i),o.set(i,e),n.set(e,i))})),{elements:r,key2element:n,element2key:o}};var Rz="__RC_UTIL_PATH_SPLIT__",_z=function(e){return e.join(Rz)},Iz="rc-menu-more";function Nz(e){var t=m.useRef(e);t.current=e;var r=m.useCallback((function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(n))}),[]);return e?r:void 0}var Fz=Math.random().toFixed(5).toString().slice(2),Dz=0;function Bz(e,t,r,n){var o=m.useContext(uz),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==n||n({key:e,domEvent:t}),s(e)}),l}function Lz(e){var t=m.useContext(uz),r=t.mode,n=t.rtl,o=t.inlineIndent;return"inline"!==r?null:n?{paddingRight:e*o}:{paddingLeft:e*o}}function zz(e){var t,r=e.icon,n=e.props,o=e.children;return null===r||!1===r?null:("function"==typeof r?t=m.createElement(r,At({},n)):"boolean"!=typeof r&&(t=r),t||o||null)}var Hz=["item"];function Uz(e){var t=e.item,r=Be(e,Hz);return Object.defineProperty(r,"item",{get:function(){return Xt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var Vz=["title","attribute","elementRef"],Wz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Gz=["active"],qz=function(e){Bs(r,e);var t=Us(r);function r(){return ei(this,r),t.apply(this,arguments)}return ri(r,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.attribute,n=e.elementRef,o=kf(Be(e,Vz),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Xt(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(Mg.Item,Te({},r,{title:"string"==typeof t?t:void 0},o,{ref:n}))}}]),r}(m.Component),Kz=m.forwardRef((function(e,t){var r=e.style,n=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,h=e.onFocus,p=Be(e,Wz),g=lz(o),v=m.useContext(uz),b=v.prefixCls,y=v.onItemClick,w=v.disabled,x=v.overflowDisabled,S=v.itemIcon,C=v.selectedKeys,k=v.onActive,E=m.useContext(bz)._internalRenderMenuItem,O="".concat(b,"-item"),A=m.useRef(),T=m.useRef(),j=w||i,P=kn(t,T),M=gz(o),R=function(e){return{key:o,keyPath:Vo(M).reverse(),item:A.current,domEvent:e}},_=a||S,I=Bz(o,j,c,u),N=I.active,F=Be(I,Gz),D=C.includes(o),B=Lz(M.length),L={};"option"===e.role&&(L["aria-selected"]=D);var z=m.createElement(qz,Te({ref:A,elementRef:P,role:null===l?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&g?null:g},kf(p,["extra"]),F,L,{component:"li","aria-disabled":i,style:At(At({},B),r),className:ze()(O,De(De(De({},"".concat(O,"-active"),N),"".concat(O,"-selected"),D),"".concat(O,"-disabled"),j),n),onClick:function(e){if(!j){var t=R(e);null==d||d(Uz(t)),y(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===$c.ENTER){var t=R(e);null==d||d(Uz(t)),y(t)}},onFocus:function(e){k(o),null==h||h(e)}}),s,m.createElement(zz,{props:At(At({},e),{},{isSelected:D}),icon:_}));return E&&(z=E(z,e,{selected:D})),z}));function Xz(e,t){var r=e.eventKey,n=pz(),o=gz(r);return m.useEffect((function(){if(n)return n.registerPath(r,o),function(){n.unregisterPath(r,o)}}),[o]),n?null:m.createElement(Kz,Te({},e,{ref:t}))}const Yz=m.forwardRef(Xz);var $z=["className","children"],Zz=function(e,t){var r=e.className,n=e.children,o=Be(e,$z),i=m.useContext(uz),a=i.prefixCls,s=i.mode,l=i.rtl;return m.createElement("ul",Te({className:ze()(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:t}),n)},Qz=m.forwardRef(Zz);Qz.displayName="SubMenuList";const Jz=Qz;function eH(e,t){return sd(e).map((function(e,r){if(m.isValidElement(e)){var n,o,i=e.key,a=null!==(n=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==n?n:i;null==a&&(a="tmp_key-".concat([].concat(Vo(t),[r]).join("-")));var s={key:a,eventKey:a};return m.cloneElement(e,s)}return e}))}var tH={adjustX:1,adjustY:1},rH={topLeft:{points:["bl","tl"],overflow:tH},topRight:{points:["br","tr"],overflow:tH},bottomLeft:{points:["tl","bl"],overflow:tH},bottomRight:{points:["tr","br"],overflow:tH},leftTop:{points:["tr","tl"],overflow:tH},leftBottom:{points:["br","bl"],overflow:tH},rightTop:{points:["tl","tr"],overflow:tH},rightBottom:{points:["bl","br"],overflow:tH}},nH={topLeft:{points:["bl","tl"],overflow:tH},topRight:{points:["br","tr"],overflow:tH},bottomLeft:{points:["tl","bl"],overflow:tH},bottomRight:{points:["tr","br"],overflow:tH},rightTop:{points:["tr","tl"],overflow:tH},rightBottom:{points:["br","bl"],overflow:tH},leftTop:{points:["tl","tr"],overflow:tH},leftBottom:{points:["bl","br"],overflow:tH}};function oH(e,t,r){return t||(r?r[e]||r.other:void 0)}var iH={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aH(e){var t=e.prefixCls,r=e.visible,n=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=m.useContext(uz),f=d.getPopupContainer,h=d.rtl,p=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,w=d.rootClassName,x=d.motion,S=d.defaultMotions,C=Ie(m.useState(!1),2),k=C[0],E=C[1],O=At(At({},h?nH:rH),v),A=iH[c],T=oH(c,x,S),j=m.useRef(T);"inline"!==c&&(j.current=T);var P=At(At({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=m.useRef();return m.useEffect((function(){return M.current=Ol((function(){E(r)})),function(){Ol.cancel(M.current)}}),[r]),m.createElement(gp,{prefixCls:t,popupClassName:ze()("".concat(t,"-popup"),De({},"".concat(t,"-rtl"),h),a,w),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:A,popupVisible:k,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:p,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:y,popupMotion:P,fresh:!0},n)}function sH(e){var t=e.id,r=e.open,n=e.keyPath,o=e.children,i="inline",a=m.useContext(uz),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=m.useRef(!1);f.current=d===i;var h=Ie(m.useState(!f.current),2),p=h[0],g=h[1],v=!!f.current&&r;m.useEffect((function(){f.current&&g(!1)}),[d]);var b=At({},oH(i,c,u));n.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==y?void 0:y(e)},p?null:m.createElement(dz,{mode:i,locked:!f.current},m.createElement(Vl,Te({visible:v},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var r=e.className,n=e.style;return m.createElement(Jz,{id:t,className:r,style:n},o)})))}var lH=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cH=["active"],uH=m.forwardRef((function(e,t){var r=e.style,n=e.className,o=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,h=e.popupStyle,p=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,w=e.onTitleMouseLeave,x=Be(e,lH),S=lz(i),C=m.useContext(uz),k=C.prefixCls,E=C.mode,O=C.openKeys,A=C.disabled,T=C.overflowDisabled,j=C.activeKey,P=C.selectedKeys,M=C.itemIcon,R=C.expandIcon,_=C.onItemClick,I=C.onOpenChange,N=C.onActive,F=m.useContext(bz)._internalRenderSubMenuItem,D=m.useContext(vz).isSubPathKey,B=gz(),L="".concat(k,"-submenu"),z=A||a,H=m.useRef(),U=m.useRef(),V=null!=c?c:M,W=null!=u?u:R,G=O.includes(i),q=!T&&G,K=D(P,i),X=Bz(i,z,y,w),Y=X.active,$=Be(X,cH),Z=Ie(m.useState(!1),2),Q=Z[0],J=Z[1],ee=function(e){z||J(e)},te=m.useMemo((function(){return Y||"inline"!==E&&(Q||D([j],i))}),[E,Y,j,Q,i,D]),re=Lz(B.length),ne=Nz((function(e){null==p||p(Uz(e)),_(e)})),oe=S&&"".concat(S,"-popup"),ie=m.useMemo((function(){return m.createElement(zz,{icon:"horizontal"!==E?W:void 0,props:At(At({},e),{},{isOpen:q,isSubMenu:!0})},m.createElement("i",{className:"".concat(L,"-arrow")}))}),[E,W,e,q,L]),ae=m.createElement("div",Te({role:"menuitem",style:re,className:"".concat(L,"-title"),tabIndex:z?null:-1,ref:H,title:"string"==typeof o?o:null,"data-menu-id":T&&S?null:S,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":z,onClick:function(e){z||(null==b||b({key:i,domEvent:e}),"inline"===E&&I(i,!G))},onFocus:function(){N(i)}},$),o,ie),se=m.useRef(E);if("inline"!==E&&B.length>1?se.current="vertical":se.current=E,!T){var le=se.current;ae=m.createElement(aH,{mode:le,prefixCls:L,visible:!s&&q&&"inline"!==E,popupClassName:d,popupOffset:f,popupStyle:h,popup:m.createElement(dz,{mode:"horizontal"===le?"vertical":le},m.createElement(Jz,{id:oe,ref:U},l)),disabled:z,onVisibleChange:function(e){"inline"!==E&&I(i,e)}},ae)}var ce=m.createElement(Mg.Item,Te({ref:t,role:"none"},x,{component:"li",style:r,className:ze()(L,"".concat(L,"-").concat(E),n,De(De(De(De({},"".concat(L,"-open"),q),"".concat(L,"-active"),te),"".concat(L,"-selected"),K),"".concat(L,"-disabled"),z)),onMouseEnter:function(e){ee(!0),null==g||g({key:i,domEvent:e})},onMouseLeave:function(e){ee(!1),null==v||v({key:i,domEvent:e})}}),ae,!T&&m.createElement(sH,{id:oe,open:q,keyPath:B},l));return F&&(ce=F(ce,e,{selected:K,active:te,open:q,disabled:z})),m.createElement(dz,{onItemClick:ne,mode:"horizontal"===E?"vertical":E,itemIcon:V,expandIcon:W},ce)}));const dH=m.forwardRef((function(e,t){var r,n=e.eventKey,o=e.children,i=gz(n),a=eH(o,i),s=pz();return m.useEffect((function(){if(s)return s.registerPath(n,i),function(){s.unregisterPath(n,i)}}),[i]),r=s?a:m.createElement(uH,Te({ref:t},e),a),m.createElement(mz.Provider,{value:i},r)}));function fH(e){var t=e.className,r=e.style,n=m.useContext(uz).prefixCls;return pz()?null:m.createElement("li",{role:"separator",className:ze()("".concat(n,"-item-divider"),t),style:r})}var hH=["className","title","eventKey","children"],pH=m.forwardRef((function(e,t){var r=e.className,n=e.title,o=(e.eventKey,e.children),i=Be(e,hH),a=m.useContext(uz).prefixCls,s="".concat(a,"-item-group");return m.createElement("li",Te({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:ze()(s,r)}),m.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),m.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}));const mH=m.forwardRef((function(e,t){var r=e.eventKey,n=eH(e.children,gz(r));return pz()?n:m.createElement(pH,Te({ref:t},kf(e,["warnKey"])),n)}));var gH=["label","children","key","type","extra"];function vH(e,t,r){var n=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===Ne(e)){var l=e,c=l.label,u=l.children,d=l.key,f=l.type,h=l.extra,p=Be(l,gH),g=null!=d?d:"tmp-".concat(s);return u||"group"===f?"group"===f?m.createElement(o,Te({key:g},p,{title:c}),vH(u,t,r)):m.createElement(i,Te({key:g},p,{title:c}),vH(u,t,r)):"divider"===f?m.createElement(a,Te({key:g},p)):m.createElement(n,Te({key:g},p,{extra:h}),c,(!!h||0===h)&&m.createElement("span",{className:"".concat(r,"-item-extra")},h))}return null})).filter((function(e){return e}))}function bH(e,t,r,n,o){var i=e,a=At({divider:fH,item:Yz,group:mH,submenu:dH},n);return t&&(i=vH(t,a,o)),eH(i,r)}var yH=["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"],wH=[],xH=m.forwardRef((function(e,t){var r,n=e,o=n.prefixCls,i=void 0===o?"rc-menu":o,a=n.rootClassName,s=n.style,l=n.className,c=n.tabIndex,u=void 0===c?0:c,d=n.items,f=n.children,h=n.direction,p=n.id,g=n.mode,v=void 0===g?"vertical":g,b=n.inlineCollapsed,y=n.disabled,w=n.disabledOverflow,x=n.subMenuOpenDelay,S=void 0===x?.1:x,C=n.subMenuCloseDelay,k=void 0===C?.1:C,E=n.forceSubMenuRender,O=n.defaultOpenKeys,A=n.openKeys,T=n.activeKey,j=n.defaultActiveFirst,P=n.selectable,M=void 0===P||P,R=n.multiple,_=void 0!==R&&R,I=n.defaultSelectedKeys,N=n.selectedKeys,F=n.onSelect,D=n.onDeselect,B=n.inlineIndent,L=void 0===B?24:B,z=n.motion,H=n.defaultMotions,U=n.triggerSubMenuAction,V=void 0===U?"hover":U,W=n.builtinPlacements,G=n.itemIcon,q=n.expandIcon,K=n.overflowedIndicator,X=void 0===K?"...":K,Y=n.overflowedIndicatorPopupClassName,$=n.getPopupContainer,Z=n.onClick,Q=n.onOpenChange,J=n.onKeyDown,ee=(n.openAnimation,n.openTransitionName,n._internalRenderMenuItem),te=n._internalRenderSubMenuItem,re=n._internalComponents,ne=Be(n,yH),oe=Ie(m.useMemo((function(){return[bH(f,d,wH,re,i),bH(f,d,wH,{},i)]}),[f,d,re]),2),ie=oe[0],ae=oe[1],se=Ie(m.useState(!1),2),le=se[0],ce=se[1],ue=m.useRef(),de=function(e){var t=Ie(Ks(e,{value:e}),2),r=t[0],n=t[1];return m.useEffect((function(){Dz+=1;var e="".concat(Fz,"-").concat(Dz);n("rc-menu-uuid-".concat(e))}),[]),r}(p),fe="rtl"===h,he=Ks(O,{value:A,postState:function(e){return e||wH}}),pe=Ie(he,2),me=pe[0],ge=pe[1],ve=function(e){function t(){ge(e),null==Q||Q(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,js.flushSync)(t):t()},be=Ie(m.useState(me),2),ye=be[0],we=be[1],xe=m.useRef(!1),Se=Ie(m.useMemo((function(){return"inline"!==v&&"vertical"!==v||!b?[v,!1]:["vertical",b]}),[v,b]),2),Ce=Se[0],ke=Se[1],Ee="inline"===Ce,Oe=Ie(m.useState(Ce),2),Ae=Oe[0],je=Oe[1],Pe=Ie(m.useState(ke),2),Me=Pe[0],Re=Pe[1];m.useEffect((function(){je(Ce),Re(ke),xe.current&&(Ee?ge(ye):ve(wH))}),[Ce,ke]);var _e=Ie(m.useState(0),2),Ne=_e[0],Fe=_e[1],Le=Ne>=ie.length-1||"horizontal"!==Ae||w;m.useEffect((function(){Ee&&we(me)}),[me]),m.useEffect((function(){return xe.current=!0,function(){xe.current=!1}}),[]);var He=function(){var e=Ie(m.useState({}),2)[1],t=(0,m.useRef)(new Map),r=(0,m.useRef)(new Map),n=Ie(m.useState([]),2),o=n[0],i=n[1],a=(0,m.useRef)(0),s=(0,m.useRef)(!1),l=(0,m.useCallback)((function(n,o){var i=_z(o);r.current.set(i,n),t.current.set(n,i),a.current+=1;var l,c=a.current;l=function(){c===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=(0,m.useCallback)((function(e,n){var o=_z(n);r.current.delete(o),t.current.delete(e)}),[]),u=(0,m.useCallback)((function(e){i(e)}),[]),d=(0,m.useCallback)((function(e,r){var n=(t.current.get(e)||"").split(Rz);return r&&o.includes(n[0])&&n.unshift(Iz),n}),[o]),f=(0,m.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return d(e,!0).includes(t)}))}),[d]),h=(0,m.useCallback)((function(e){var n="".concat(t.current.get(e)).concat(Rz),o=new Set;return Vo(r.current.keys()).forEach((function(e){e.startsWith(n)&&o.add(r.current.get(e))})),o}),[]);return m.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Vo(t.current.keys());return o.length&&e.push(Iz),e},getSubPathKeys:h}}(),Ue=He.registerPath,Ve=He.unregisterPath,We=He.refreshOverflowKeys,Ge=He.isSubPathKey,qe=He.getKeyPath,Ke=He.getKeys,Xe=He.getSubPathKeys,Ye=m.useMemo((function(){return{registerPath:Ue,unregisterPath:Ve}}),[Ue,Ve]),$e=m.useMemo((function(){return{isSubPathKey:Ge}}),[Ge]);m.useEffect((function(){We(Le?wH:ie.slice(Ne+1).map((function(e){return e.key})))}),[Ne,Le]);var Ze=Ie(Ks(T||j&&(null===(r=ie[0])||void 0===r?void 0:r.key),{value:T}),2),Qe=Ze[0],Je=Ze[1],et=Nz((function(e){Je(e)})),tt=Nz((function(){Je(void 0)}));(0,m.useImperativeHandle)(t,(function(){return{list:ue.current,focus:function(e){var t,r,n=Ke(),o=Mz(n,de),i=o.elements,a=o.key2element,s=o.element2key,l=jz(ue.current,i),c=null!=Qe?Qe:l[0]?s.get(l[0]):null===(t=ie.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(r=u.focus)||void 0===r||r.call(u,e))}}}));var rt=Ks(I||[],{value:N,postState:function(e){return Array.isArray(e)?e:null==e?wH:[e]}}),nt=Ie(rt,2),ot=nt[0],it=nt[1],at=Nz((function(e){null==Z||Z(Uz(e)),function(e){if(M){var t,r=e.key,n=ot.includes(r);t=_?n?ot.filter((function(e){return e!==r})):[].concat(Vo(ot),[r]):[r],it(t);var o=At(At({},e),{},{selectedKeys:t});n?null==D||D(o):null==F||F(o)}!_&&me.length&&"inline"!==Ae&&ve(wH)}(e)})),st=Nz((function(e,t){var r=me.filter((function(t){return t!==e}));if(t)r.push(e);else if("inline"!==Ae){var n=Xe(e);r=r.filter((function(e){return!n.has(e)}))}Jo(me,r,!0)||ve(r,!0)})),lt=function(e,t,r,n,o,i,a,s,l,c){var u=m.useRef(),d=m.useRef();d.current=t;var f=function(){Ol.cancel(u.current)};return m.useEffect((function(){return function(){f()}}),[]),function(h){var p=h.which;if([].concat(Tz,[kz,Ez,Oz,Az]).includes(p)){var m=i(),g=Mz(m,n),v=g,b=v.elements,y=v.key2element,w=v.element2key,x=function(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}(y.get(t),b),S=w.get(x),C=function(e,t,r,n){var o,i="prev",a="next",s="children",l="parent";if("inline"===e&&n===kz)return{inlineTrigger:!0};var c=De(De({},Sz,i),Cz,a),u=De(De(De(De({},wz,r?a:i),xz,r?i:a),Cz,s),kz,s),d=De(De(De(De(De(De({},Sz,i),Cz,a),kz,s),Ez,l),wz,r?s:l),xz,r?l:s);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[n]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===a(S,!0).length,r,p);if(!C&&p!==Oz&&p!==Az)return;(Tz.includes(p)||[Oz,Az].includes(p))&&h.preventDefault();var k=function(e){if(e){var t=e,r=e.querySelector("a");null!=r&&r.getAttribute("href")&&(t=r);var n=w.get(e);s(n),f(),u.current=Ol((function(){d.current===n&&t.focus()}))}};if([Oz,Az].includes(p)||C.sibling||!x){var E,O,A=jz(E=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):o.current,b);O=p===Oz?A[0]:p===Az?A[A.length-1]:Pz(E,b,x,C.offset),k(O)}else if(C.inlineTrigger)l(S);else if(C.offset>0)l(S,!0),f(),u.current=Ol((function(){g=Mz(m,n);var e=x.getAttribute("aria-controls"),t=Pz(document.getElementById(e),g.elements);k(t)}),5);else if(C.offset<0){var T=a(S,!0),j=T[T.length-2],P=y.get(j);l(j,!1),k(P)}}null==c||c(h)}}(Ae,Qe,fe,de,ue,Ke,qe,Je,(function(e,t){var r=null!=t?t:!me.includes(e);st(e,r)}),J);m.useEffect((function(){ce(!0)}),[]);var ct=m.useMemo((function(){return{_internalRenderMenuItem:ee,_internalRenderSubMenuItem:te}}),[ee,te]),ut="horizontal"!==Ae||w?ie:ie.map((function(e,t){return m.createElement(dz,{key:e.key,overflowDisabled:t>Ne},e)})),dt=m.createElement(Mg,Te({id:p,ref:ue,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Yz,className:ze()(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ae),l,De(De({},"".concat(i,"-inline-collapsed"),Me),"".concat(i,"-rtl"),fe),a),dir:h,style:s,role:"menu",tabIndex:u,data:ut,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,r=t?ie.slice(-t):null;return m.createElement(dH,{eventKey:Iz,title:X,disabled:Le,internalPopupClose:0===t,popupClassName:Y},r)},maxCount:"horizontal"!==Ae||w?Mg.INVALIDATE:Mg.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Fe(e)},onKeyDown:lt},ne));return m.createElement(bz.Provider,{value:ct},m.createElement(az.Provider,{value:de},m.createElement(dz,{prefixCls:i,rootClassName:a,mode:Ae,openKeys:me,rtl:fe,disabled:y,motion:le?z:null,defaultMotions:le?H:null,activeKey:Qe,onActive:et,onInactive:tt,selectedKeys:ot,inlineIndent:L,subMenuOpenDelay:S,subMenuCloseDelay:k,forceSubMenuRender:E,builtinPlacements:W,triggerSubMenuAction:V,getPopupContainer:$,itemIcon:G,expandIcon:q,onItemClick:at,onOpenChange:st},m.createElement(vz.Provider,{value:$e},dt),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(hz.Provider,{value:Ye},ae)))))})),SH=xH;SH.Item=Yz,SH.SubMenu=dH,SH.ItemGroup=mH,SH.Divider=fH;const CH=SH,kH=m.createContext({}),EH={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 OH=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:EH}))};const AH=m.forwardRef(OH),TH=(0,m.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const jH=e=>{const{prefixCls:t,className:r,dashed:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=m.useContext(Xo),a=i("menu",t),s=ze()({[`${a}-item-divider-dashed`]:!!n},r);return m.createElement(fH,Object.assign({className:s},o))},PH=e=>{var t;const{className:r,children:n,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=m.useContext(TH),{siderCollapsed:h}=m.useContext(kH);let p=i;void 0===i?p=c?n:"":!1===i&&(p="");const g={title:p};h||f||(g.title=null,g.open=!1);const v=sd(n).length;let b=m.createElement(Yz,Object.assign({},kf(e,["title","icon","danger"]),{className:ze()({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?v+1:v)},r),title:"string"==typeof i?i:void 0}),th(o,{className:ze()(m.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=null==n?void 0:n[0],r=m.createElement("span",{className:ze()(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||0===s})},n);return(!o||m.isValidElement(n)&&"span"===n.type)&&n&&e&&c&&"string"==typeof t?m.createElement("div",{className:`${l}-inline-collapsed-noicon`},t.charAt(0)):r})(f));return d||(b=m.createElement(im,Object.assign({},g,{placement:"rtl"===u?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};const MH=m.createContext(null),RH=m.forwardRef(((e,t)=>{const{children:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children"]),o=m.useContext(MH),i=m.useMemo((()=>Object.assign(Object.assign({},o),n)),[o,n.prefixCls,n.mode,n.selectable,n.rootClassName]),a=function(e){return On(e)&&En(e)}(r),s=kn(t,a?An(r):null);return m.createElement(MH.Provider,{value:i},m.createElement(Uf,{space:!0},a?m.cloneElement(r,{ref:s}):r))})),_H=MH,IH=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${Si(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},NH=e=>{let{componentCls:t,menuArrowOffset:r,calc:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Si(n(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Si(r)})`}}}}},FH=e=>Object.assign({},nc(e)),DH=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:h,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:w,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:k,dangerItemActiveBg:E,dangerItemSelectedBg:O,popupBg:A,itemHoverBg:T,itemActiveBg:j,menuSubMenuBg:P,horizontalItemSelectedColor:M,horizontalItemSelectedBg:R,horizontalItemBorderRadius:_,horizontalItemHoverBg:I}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:s,[`&${r}-root:focus-visible`]:Object.assign({},FH(e)),[`${r}-item`]:{"&-group-title, &-extra":{color:a}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:i},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},FH(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${x} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:b}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:j}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:j}}},[`${r}-item-danger`]:{color:S,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:C}},[`&${r}-item:active`]:{background:E}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:O}},[`&${r}-submenu > ${r}`]:{backgroundColor:P},[`&${r}-popup > ${r}`]:{backgroundColor:A},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:A},[`&${r}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Si(u)} solid transparent`,transition:`border-color ${h} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Si(f)} ${y} ${w}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:l},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Si(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},BH=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:Si(r),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:Si(r)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},LH=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:g}=e,v={height:n,lineHeight:Si(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},BH(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},BH(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Si(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Si(e.calc(g).div(2).equal())} - ${Si(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:g,lineHeight:Si(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},tc),{paddingInline:h})}}]},zH=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${i}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},HH=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Si(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Si(a)})`}}}}},UH=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[r]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Si(s)} ${Si(l)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),zH(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Si(e.calc(n).mul(2).equal())} ${Si(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},zH(e)),HH(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),HH(e)),{[`&-inline-collapsed ${r}-submenu-arrow,\n &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Si(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Si(e.calc(m).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Si(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Si(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Si(m)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},VH=e=>{var t,r,n;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:p,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:S,controlHeightSM:C,fontSizeLG:k,colorTextLightSolid:E,colorErrorHover:O}=e,A=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,T=null!==(r=e.activeBarBorderWidth)&&void 0!==r?r:h,j=null!==(n=e.itemMarginInline)&&void 0!==n?n:e.marginXXS,P=new Ge(E).setA(.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,subMenuItemSelectedColor: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:A,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:T,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:k,groupTitleFontSize:S,darkItemDisabledColor:new Ge(E).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:A?`calc(100% + ${T}px)`:`calc(100% - ${2*j}px)`}},WH=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const r=Iu("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:r,fontSize:n,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,w=e.calc(n).div(7).mul(5).equal(),x=Au(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(r).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),S=Au(x,{itemColor:o,itemHoverColor:h,groupTitleColor:f,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:p,dangerItemColor:i,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[UH(x),IH(x),LH(x),DH(x,"light"),DH(S,"dark"),NH(x),Dx(x),mb(x,"slide-up"),mb(x,"slide-down"),Yp(x,"zoom-big")]}),VH,{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 r(e,t)},GH=e=>{var t;const{popupClassName:r,icon:n,title:o,theme:i}=e,a=m.useContext(TH),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=gz();let d;if(n){const e=m.isValidElement(o)&&"span"===o.type;d=m.createElement(m.Fragment,null,th(n,{className:ze()(m.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:m.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?m.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):m.createElement("span",{className:`${s}-title-content`},o);const f=m.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[h]=gu("Menu");return m.createElement(TH.Provider,{value:f},m.createElement(dH,Object.assign({},kf(e,["icon"]),{title:d,popupClassName:ze()(s,r,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};function qH(e){return null===e||!1===e}const KH={item:PH,submenu:GH,divider:jH},XH=(0,m.forwardRef)(((e,t)=>{var r;const n=m.useContext(_H),o=n||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=m.useContext(Xo),c=i(),{prefixCls:u,className:d,style:f,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:w,selectable:x,onClick:S,overflowedIndicatorPopupClassName:C}=e,k=kf(function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(r=o.validator)||void 0===r||r.call(o,{mode:w});const E=Ws((function(){var e;null==S||S.apply(void 0,arguments),null===(e=o.onClick)||void 0===e||e.call(o)})),O=o.mode||w,A=null!=x?x:o.selectable,T=null!=v?v:b,j={horizontal:{motionName:`${c}-slide-up`},inline:Jf(c),other:{motionName:`${c}-zoom-big`}},P=i("menu",u||o.prefixCls),M=du(P),[R,_,I]=WH(P,M,!n),N=ze()(`${P}-${h}`,null==l?void 0:l.className,d),F=m.useMemo((()=>{var e,t;if("function"==typeof p||qH(p))return p||null;if("function"==typeof o.expandIcon||qH(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==l?void 0:l.expandIcon)||qH(null==l?void 0:l.expandIcon))return(null==l?void 0:l.expandIcon)||null;const r=null!==(e=null!=p?p:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==l?void 0:l.expandIcon;return th(r,{className:ze()(`${P}-submenu-expand-icon`,m.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0)})}),[p,null==o?void 0:o.expandIcon,null==l?void 0:l.expandIcon,P]),D=m.useMemo((()=>({prefixCls:P,inlineCollapsed:T||!1,direction:s,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:g})),[P,T,s,g,h]);return R(m.createElement(_H.Provider,{value:null},m.createElement(TH.Provider,{value:D},m.createElement(CH,Object.assign({getPopupContainer:a,overflowedIndicator:m.createElement(AH,null),overflowedIndicatorPopupClassName:ze()(P,`${P}-${h}`,C),mode:O,selectable:A,onClick:E},k,{inlineCollapsed:T,style:Object.assign(Object.assign({},null==l?void 0:l.style),f),className:N,prefixCls:P,direction:s,defaultMotions:j,expandIcon:F,ref:t,rootClassName:ze()(y,_,o.rootClassName,I,M),_internalComponents:KH})))))})),YH=XH,$H=(0,m.forwardRef)(((e,t)=>{const r=(0,m.useRef)(null),n=m.useContext(kH);return(0,m.useImperativeHandle)(t,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),m.createElement(YH,Object.assign({ref:r},e,n))}));$H.Item=PH,$H.SubMenu=GH,$H.Divider=jH,$H.ItemGroup=mH;const ZH=$H,QH=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:o}=e,i=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:n,"&:hover":{color:o,backgroundColor:n}}}}}},JH=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,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:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ab},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:lb},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:sb},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:cb}}},Tp(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},rc(e)),{[r]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},oc(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Si(c)} ${Si(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Si(c)} ${Si(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},oc(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:`${Si(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:h,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${Si(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[mb(e,"slide-up"),mb(e,"slide-down"),Cb(e,"move-up"),Cb(e,"move-down"),Yp(e,"zoom-big")]]},eU=Iu("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:o}=e,i=Au(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[JH(i),QH(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Op({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),kp(e))),{resetStyle:!1}),tU=e=>{var t;const{menu:r,arrow:n,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:h,open:p,onOpenChange:g,visible:v,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:x=!0,placement:S="",overlay:C,transitionName:k,destroyOnHidden:E,destroyPopupOnHide:O}=e,{getPopupContainer:A,getPrefixCls:T,direction:j,dropdown:P}=m.useContext(Xo),M=c||l;Ya();const R=m.useMemo((()=>{const e=T();return void 0!==k?k:S.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[T,S,k]),_=m.useMemo((()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:"rtl"===j?"bottomRight":"bottomLeft"),[S,j]),I=T("dropdown",o),N=du(I),[F,D,B]=eU(I,N),[,L]=Ql(),z=m.Children.only("object"!=typeof(Q=i)&&"function"!=typeof Q||null===Q?m.createElement("span",null,i):i),H=th(z,{className:ze()(`${I}-trigger`,{[`${I}-rtl`]:"rtl"===j},z.props.className),disabled:null!==(t=z.props.disabled)&&void 0!==t?t:s}),U=s?[]:a,V=!!(null==U?void 0:U.includes("contextMenu")),[W,G]=Ks(!1,{value:null!=p?p:v}),q=Ws((e=>{null==g||g(e,{source:"trigger"}),null==b||b(e),G(e)})),K=ze()(d,f,D,B,N,null==P?void 0:P.className,{[`${I}-rtl`]:"rtl"===j}),X=Rp({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:x,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),Y=m.useCallback((()=>{(null==r?void 0:r.selectable)&&(null==r?void 0:r.multiple)||(null==g||g(!1,{source:"menu"}),G(!1))}),[null==r?void 0:r.selectable,null==r?void 0:r.multiple]),[$,Z]=gu("Dropdown",null==h?void 0:h.zIndex);var Q;let J=m.createElement(iz,Object.assign({alignPoint:V},kf(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:w,visible:W,builtinPlacements:X,arrow:!!n,overlayClassName:K,prefixCls:I,getPopupContainer:u||A,transitionName:R,trigger:U,overlay:()=>{let e;return e=(null==r?void 0:r.items)?m.createElement(ZH,Object.assign({},r)):"function"==typeof C?C():C,M&&(e=M(e)),e=m.Children.only("string"==typeof e?m.createElement("span",null,e):e),m.createElement(RH,{prefixCls:`${I}-menu`,rootClassName:ze()(B,N),expandIcon:m.createElement("span",{className:`${I}-menu-submenu-arrow`},"rtl"===j?m.createElement($L,{className:`${I}-menu-submenu-arrow-icon`}):m.createElement(Ex,{className:`${I}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:e=>{let{mode:t}=e}},e)},placement:_,onVisibleChange:q,overlayStyle:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),h),{zIndex:$}),autoDestroy:null!=E?E:O}),H);return $&&(J=m.createElement(fu.Provider,{value:Z},J)),F(J)},rU=Wf(tU,"align",void 0,"dropdown",(e=>e));tU._InternalPanelDoNotUseOrYouWillBeFired=e=>m.createElement(rU,Object.assign({},e),m.createElement("span",null));const nU=tU;const oU=e=>{const{getPopupContainer:t,getPrefixCls:r,direction:n}=m.useContext(Xo),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:p,autoFocus:g,overlay:v,trigger:b,align:y,open:w,onOpenChange:x,placement:S,getPopupContainer:C,href:k,icon:E=m.createElement(AH,null),title:O,buttonsRender:A=e=>e,mouseEnterDelay:T,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyOnHidden:R,destroyPopupOnHide:_,dropdownRender:I,popupRender:N}=e,F=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["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","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),D=r("dropdown",o),B=`${D}-button`,L={menu:h,arrow:p,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:T,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyOnHidden:R,popupRender:N||I},{compactSize:z,compactItemClassnames:H}=Lf(D,n),U=ze()(B,H,f);"destroyPopupOnHide"in e&&(L.destroyPopupOnHide=_),"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=w),L.placement="placement"in e?S:"rtl"===n?"bottomLeft":"bottomRight";const V=m.createElement(AC,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:k,title:O},d),W=m.createElement(AC,{type:i,danger:a,icon:E}),[G,q]=A([V,W]);return m.createElement(SS.Compact,Object.assign({className:U,size:z,block:!0},F),G,m.createElement(nU,Object.assign({},L),q))};oU.__ANT_BUTTON=!0;const iU=oU,aU=nU;aU.Button=iU;const sU=aU;var lU=o(289),cU={};function uU(e){return uU="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},uU(e)}function dU(){dU=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==uU(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(uU(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function fU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hU(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fU(Object(r),!0).forEach((function(t){pU(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fU(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pU(e,t,r){return(t=gU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gU(n.key),n)}}function gU(e){var t=function(e){if("object"!=uU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=uU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uU(t)?t:t+""}function vU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vU=function(){return!!e})()}function bU(e){return bU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bU(e)}function yU(e,t){return yU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yU(e,t)}function wU(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function xU(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){wU(i,n,o,a,s,"next",e)}function s(e){wU(i,n,o,a,s,"throw",e)}a(void 0)}))}}function SU(e,t){return CU.apply(this,arguments)}function CU(){return CU=xU(dU().mark((function e(t,r){var n,o;return dU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,o=r,e.abrupt("return",new Promise((function(e){var t,r=se.t("editor.text.startTyping"),i="",a="error",s=m.createRef(),l=function(e){i=e.target.value,a=""!==i.trim()?"":"error",c()},c=function(){t.update({title:"".concat(se.t("annotations.freeText"),"-").concat(o,"px"),content:(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)(rB,{ref:s,status:a,placeholder:r,onChange:l,autoSize:{minRows:3,maxRows:5}}),(0,Mn.jsxs)("div",{className:"EditorFreeText-Modal-Toolbar",children:[(0,Mn.jsx)("div",{className:"colorPalette",children:Eo.colors.map((function(e){return(0,Mn.jsx)("div",{onClick:function(){return u(e)},className:"cell ".concat(e===n?"active":""),children:(0,Mn.jsx)("span",{style:{backgroundColor:e}})},e)}))}),(0,Mn.jsx)(sU,{menu:{items:Eo.fontSize.map((function(e){return{key:e.toString(),label:e,onClick:function(){return d(e)}}}))},trigger:["click"],children:(0,Mn.jsx)(mo,{})})]})]}),okButtonProps:{disabled:"error"===a}})},u=function(e){n=e,c()},d=function(e){o=e,c()};t=dE.confirm({title:"".concat(se.t("annotations.freeText"),"-").concat(o,"px"),icon:null,content:(0,Mn.jsxs)("div",{className:"EditorFreeText-Modal",children:[(0,Mn.jsx)(rB,{ref:s,status:a,placeholder:r,onChange:l,autoSize:{minRows:3,maxRows:5}}),(0,Mn.jsxs)("div",{className:"EditorFreeText-Modal-Toolbar",children:[(0,Mn.jsx)("div",{className:"colorPalette",children:Eo.colors.map((function(e){return(0,Mn.jsx)("div",{onClick:function(){return u(e)},className:"cell ".concat(rF(e,n)?"active":""),children:(0,Mn.jsx)("span",{style:{backgroundColor:e}})},e)}))}),(0,Mn.jsx)(sU,{menu:{items:Eo.fontSize.map((function(e){return{key:e.toString(),label:e,onClick:function(){return d(e)}}}))},trigger:["click"],children:(0,Mn.jsx)(mo,{})})]})]}),destroyOnClose:!0,okText:se.t("normal.ok"),cancelText:se.t("normal.cancel"),okButtonProps:{disabled:"error"===a},onOk:function(){e({inputValue:i,color:n,fontSize:o})},onCancel:function(){e({inputValue:"",color:n,fontSize:o})}}),setTimeout((function(){s.current&&s.current.focus()}),100)})));case 3:case"end":return e.stop()}}),e)}))),CU.apply(this,arguments)}cU.styleTagTransform=f(),cU.setAttributes=l(),cU.insert=a().bind(null,"head"),cU.domAPI=n(),cU.insertStyleElement=u(),t()(lU.A,cU),lU.A&&lU.A.locals&&lU.A.locals;var kU=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=bU(t),function(e,t){if(t&&("object"==uU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vU()?Reflect.construct(t,r||[],bU(e).constructor):t.apply(e,r))}(this,t,[hU(hU({},e),{},{editorType:To.FREETEXT})])}return 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&&yU(e,t)}(t,e),function(e,t){return t&&mU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(){}},{key:"mouseMoveHandler",value:function(){}},{key:"mouseUpHandler",value:(n=xU(dU().mark((function e(t){var r,n,o,i,a,s,l,c;return dU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.konvaStage.getRelativePointerPosition(),n=this.konvaStage.scale(),o=n.x,i=n.y,t.currentTarget===this.konvaStage){e.next=4;break}return e.abrupt("return");case 4:return this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup),e.next=9,SU(this.currentAnnotation.style.color,this.currentAnnotation.style.fontSize);case 9:a=e.sent,s=a.inputValue,l=a.color,c=a.fontSize,this.inputDoneHandler(s,{x:o,y:i},r,l,c);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"inputDoneHandler",value:(r=xU(dU().mark((function e(t,r,n,o,i){var a,s,l,c,u,d;return dU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==(a=t.trim())){e.next=5;break}return this.delShapeGroup(this.currentShapeGroup.id),this.currentShapeGroup=null,e.abrupt("return");case 5:s=new(IE().Text)({text:a,fontSize:i,padding:2}),l=s.width(),c=l>300?300:l,u=new(IE().Text)({x:n.x,y:n.y+2,text:a,width:c,fontSize:i,fill:o,wrap:l>300?"word":"none"}),this.currentShapeGroup.konvaGroup.add(u),d=this.currentShapeGroup.konvaGroup.id(),this.setShapeGroupDone({id:d,contentsObj:{text:a},color:o,fontSize:i});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,n,o,i){return r.apply(this,arguments)})},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){e instanceof IE().Text&&(void 0!==t.color&&e.fill(t.color),void 0!==t.opacity&&e.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}]);var r,n}(vL);function EU(e){return EU="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},EU(e)}function OU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AU(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OU(Object(r),!0).forEach((function(t){TU(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OU(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function TU(e,t,r){return(t=PU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PU(n.key),n)}}function PU(e){var t=function(e){if("object"!=EU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=EU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==EU(t)?t:t+""}function MU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MU=function(){return!!e})()}function RU(e){return RU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RU(e)}function _U(e,t){return _U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_U(e,t)}var IU=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=RU(t),function(e,t){if(t&&("object"==EU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,MU()?Reflect.construct(t,r||[],RU(e).constructor):t.apply(e,r))}(this,t,[AU(AU({},e),{},{editorType:r})])}return 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&&_U(e,t)}(t,e),function(e,t){return t&&jU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"convertTextSelection",value:function(e,t){var r=this;this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var n=t.getBoundingClientRect();e.forEach((function(e){var t=e.getBoundingClientRect(),o=r.calculateRelativePosition(t,n),i=o.x,a=o.y,s=o.width,l=o.height,c=r.createShape(i,a,s,l);r.currentShapeGroup.konvaGroup.add(c)})),this.setShapeGroupDone({id:this.currentShapeGroup.id,contentsObj:{text:this.getElementOuterText(e)},color:this.currentAnnotation.style.color})}},{key:"getElementOuterText",value:function(e){return e.map((function(e){return e.outerText})).join("")}},{key:"calculateRelativePosition",value:function(e,t){var r=this.konvaStage.scale();return{x:(e.x-t.x)/r.x,y:(e.y-t.y)/r.y,width:e.width/r.x,height:e.height/r.y}}},{key:"createShape",value:function(e,t,r,n){switch(this.currentAnnotation.type){case To.HIGHLIGHT:return this.createHighlightShape(e,t,r,n);case To.UNDERLINE:return this.createUnderlineShape(e,t,r,n);case To.STRIKEOUT:return this.createStrikeoutShape(e,t,r,n);default:throw new Error("Unsupported annotation type: ".concat(this.currentAnnotation.type))}}},{key:"createHighlightShape",value:function(e,t,r,n){return new(IE().Rect)({x:e,y:t,width:r,height:n,opacity:.5,fill:this.currentAnnotation.style.color})}},{key:"createUnderlineShape",value:function(e,t,r,n){return new(IE().Rect)({x:e,y:n+t-2,width:r,stroke:this.currentAnnotation.style.color,opacity:1,strokeWidth:1,hitStrokeWidth:10,height:1})}},{key:"createStrikeoutShape",value:function(e,t,r,n){return new(IE().Rect)({x:e,y:t+n/2,width:r,stroke:this.currentAnnotation.style.color,opacity:1,strokeWidth:1,hitStrokeWidth:10,height:1})}},{key:"mouseDownHandler",value:function(){}},{key:"mouseMoveHandler",value:function(){}},{key:"mouseUpHandler",value:function(){}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(r){e.type===To.HIGHLIGHT&&r instanceof IE().Rect&&(void 0!==t.color&&r.fill(t.color),void 0!==t.strokeWidth&&r.strokeWidth(t.strokeWidth),void 0!==t.opacity&&r.opacity(t.opacity)),e.type===To.UNDERLINE&&r instanceof IE().Rect&&(void 0!==t.color&&r.stroke(t.color),void 0!==t.strokeWidth&&r.strokeWidth(t.strokeWidth),void 0!==t.opacity&&r.opacity(t.opacity)),e.type===To.STRIKEOUT&&r instanceof IE().Rect&&(void 0!==t.color&&r.stroke(t.color),void 0!==t.strokeWidth&&r.strokeWidth(t.strokeWidth),void 0!==t.opacity&&r.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);function NU(e){return NU="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},NU(e)}function FU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DU(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?FU(Object(r),!0).forEach((function(t){UU(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FU(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function BU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VU(n.key),n)}}function LU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LU=function(){return!!e})()}function zU(e){return zU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zU(e)}function HU(e,t){return HU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HU(e,t)}function UU(e,t,r){return(t=VU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VU(e){var t=function(e){if("object"!=NU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=NU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NU(t)?t:t+""}var WU=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),UU(r=function(e,t,r){return t=zU(t),function(e,t){if(t&&("object"==NU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,LU()?Reflect.construct(t,r||[],zU(e).constructor):t.apply(e,r))}(this,t,[DU(DU({},e),{},{editorType:To.RECTANGLE})]),"globalPointerUpHandler",(function(e){0===e.button&&(r.mouseUpHandler(),window.removeEventListener("mouseup",r.globalPointerUpHandler))})),r.rect=null,r.vertex={x:0,y:0},r}return 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&&HU(e,t)}(t,e),function(e,t){return t&&BU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(e){if(e.currentTarget===this.konvaStage){this.rect=null,this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var t=this.konvaStage.getRelativePointerPosition();this.vertex={x:t.x,y:t.y},this.rect=new(IE().Rect)({x:t.x,y:t.y,width:0,height:0,strokeScaleEnabled:!1,visible:!1,stroke:this.currentAnnotation.style.color,strokeWidth:this.currentAnnotation.style.strokeWidth||2,opacity:this.currentAnnotation.style.opacity}),this.currentShapeGroup.konvaGroup.add(this.rect),window.addEventListener("mouseup",this.globalPointerUpHandler)}}},{key:"mouseMoveHandler",value:function(e){if(this.isPainting){e.evt.preventDefault(),this.rect.show();var t=this.konvaStage.getRelativePointerPosition(),r={x:Math.min(this.vertex.x,t.x),y:Math.min(this.vertex.y,t.y),width:Math.abs(t.x-this.vertex.x),height:Math.abs(t.y-this.vertex.y)};this.rect.setAttrs(r)}}},{key:"mouseUpHandler",value:function(){if(this.isPainting){this.isPainting=!1;var e=this.rect.getParent();if(this.rect.isVisible()||"Group"!==e.getType()){if(this.isTooSmall())return this.rect.destroy(),this.delShapeGroup(e.id()),void(this.rect=null);this.setShapeGroupDone({id:e.id(),color:this.currentAnnotation.style.color,contentsObj:{text:""}}),this.rect=null}else this.delShapeGroup(e.id())}}},{key:"isTooSmall",value:function(){var e=this.rect.size(),t=e.width,r=e.height;return Math.max(t,r)<vL.MinSize}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){e instanceof IE().Rect&&(void 0!==t.color&&e.stroke(t.color),void 0!==t.strokeWidth&&e.strokeWidth(t.strokeWidth),void 0!==t.opacity&&e.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);function GU(e){return GU="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},GU(e)}function qU(){qU=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==GU(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(GU(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function KU(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function XU(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){KU(i,n,o,a,s,"next",e)}function s(e){KU(i,n,o,a,s,"throw",e)}a(void 0)}))}}function YU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?YU(Object(r),!0).forEach((function(t){ZU(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YU(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ZU(e,t,r){return(t=JU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JU(n.key),n)}}function JU(e){var t=function(e){if("object"!=GU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=GU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==GU(t)?t:t+""}function eV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eV=function(){return!!e})()}function tV(){return tV="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=rV(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},tV.apply(null,arguments)}function rV(e){return rV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rV(e)}function nV(e,t){return nV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nV(e,t)}var oV=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=rV(t),function(e,t){if(t&&("object"==GU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eV()?Reflect.construct(t,r||[],rV(e).constructor):t.apply(e,r))}(this,t,[$U($U({},e),{},{editorType:To.SIGNATURE})])).signatureUrl=r,r&&n.createCursorImg(),n}return 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&&nV(e,t)}(t,e),function(e,t){return t&&QU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createCursorImg",value:function(){var e=new(IE().Group)({draggable:!1});IE().Image.fromURL(this.signatureUrl,(function(t){var r=t.getClientRect(),n=qN(r.width,r.height,Eo.setting.MAX_CURSOR_SIZE),o=n.newWidth,i=n.newHeight,a={x:o/2,y:i/2},s=new(IE().Rect)({x:0,y:0,width:o,height:i,stroke:"red",strokeWidth:2}),l=new(IE().Line)({points:[0,a.y,o,a.y],stroke:"red",strokeWidth:1,dash:[5,5]}),c=new(IE().Line)({points:[a.x,0,a.x,i],stroke:"red",strokeWidth:1,dash:[5,5]}),u=new(IE().Circle)({x:a.x,y:a.y,radius:5,stroke:"red"});t.setAttrs({x:0,y:0,width:o,height:i,visible:!0}),e.add(t,l,c,u,s);var d=e.toDataURL();e.destroy(),VN(fL,"url(".concat(d,") ").concat(a.x," ").concat(a.y,", default"))}))}},{key:"mouseDownHandler",value:function(e){var t=this;if(e.currentTarget===this.konvaStage){this.signatureImage=null,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var r=this.konvaStage.getRelativePointerPosition();IE().Image.fromURL(this.signatureUrl,function(){var e=XU(qU().mark((function e(n){var o,i,a,s,l,c,u,d;return qU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=n.getClientRect(),i=o.width,a=o.height,s=qN(i,a,120),l=s.newWidth,c=s.newHeight,u={x:l/2,y:c/2},t.signatureImage=n,t.signatureImage.setAttrs({x:r.x-u.x,y:r.y-u.y,width:l,height:c,base64:t.signatureUrl}),t.currentShapeGroup.konvaGroup.add(t.signatureImage),d=t.currentShapeGroup.konvaGroup.id(),t.setShapeGroupDone({id:d,contentsObj:{text:"",image:t.signatureUrl}}),t.signatureImage=null;case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},{key:"activateWithSignature",value:function(e,r,n){!function(e,t,r){var n=tV(rV(e.prototype),"activate",r);return"function"==typeof n?function(e){return n.apply(r,e)}:n}(t,0,this)([e,r]),this.signatureUrl=n,n&&this.createCursorImg()}},{key:"addSerializedGroupToLayer",value:function(e,t){var r=IE().Node.create(t),n=this.getGroupNodesByClassName(r,"Image")[0],o=n.getAttr("base64");IE().Image.fromURL(o,function(){var e=XU(qU().mark((function e(t){return qU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setAttrs(n.getAttrs()),n.destroy(),r.add(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.getBgLayer(e).add(r)}},{key:"mouseMoveHandler",value:function(){}},{key:"mouseUpHandler",value:function(){}},{key:"changeStyle",value:function(){}}])}(vL);function iV(e){return iV="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},iV(e)}function aV(){aV=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==iV(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(iV(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function sV(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function lV(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){sV(i,n,o,a,s,"next",e)}function s(e){sV(i,n,o,a,s,"throw",e)}a(void 0)}))}}function cV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cV(Object(r),!0).forEach((function(t){dV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dV(e,t,r){return(t=hV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hV(n.key),n)}}function hV(e){var t=function(e){if("object"!=iV(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=iV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iV(t)?t:t+""}function pV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pV=function(){return!!e})()}function mV(){return mV="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=gV(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},mV.apply(null,arguments)}function gV(e){return gV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gV(e)}function vV(e,t){return vV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vV(e,t)}var bV=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=gV(t),function(e,t){if(t&&("object"==iV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pV()?Reflect.construct(t,r||[],gV(e).constructor):t.apply(e,r))}(this,t,[uV(uV({},e),{},{editorType:To.STAMP})])).stampUrl=r,r&&n.createCursorImg(),n}return 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&&vV(e,t)}(t,e),function(e,t){return t&&fV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createCursorImg",value:function(){var e=new(IE().Group)({draggable:!1});IE().Image.fromURL(this.stampUrl,(function(t){var r=t.getClientRect(),n=qN(r.width,r.height,Eo.setting.MAX_CURSOR_SIZE),o=n.newWidth,i=n.newHeight,a={x:o/2,y:i/2},s=new(IE().Rect)({x:0,y:0,width:o,height:i,stroke:"red",strokeWidth:2}),l=new(IE().Line)({points:[0,a.y,o,a.y],stroke:"red",strokeWidth:1,dash:[5,5]}),c=new(IE().Line)({points:[a.x,0,a.x,i],stroke:"red",strokeWidth:1,dash:[5,5]}),u=new(IE().Circle)({x:a.x,y:a.y,radius:5,stroke:"red"});t.setAttrs({x:0,y:0,width:o,height:i,visible:!0}),e.add(t,l,c,u,s);var d=e.toDataURL();e.destroy(),VN(fL,"url(".concat(d,") ").concat(a.x," ").concat(a.y,", default"))}))}},{key:"mouseDownHandler",value:function(e){var t=this;if(e.currentTarget===this.konvaStage){this.stampImage=null,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var r=this.konvaStage.getRelativePointerPosition();IE().Image.fromURL(this.stampUrl,function(){var e=lV(aV().mark((function e(n){var o,i,a,s,l,c,u,d;return aV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=n.getClientRect(),i=o.width,a=o.height,s=qN(i,a,120),l=s.newWidth,c=s.newHeight,u={x:l/2,y:c/2},t.stampImage=n,t.stampImage.setAttrs({x:r.x-u.x,y:r.y-u.y,width:l,height:c,base64:t.stampUrl}),t.currentShapeGroup.konvaGroup.add(t.stampImage),d=t.currentShapeGroup.konvaGroup.id(),t.setShapeGroupDone({id:d,contentsObj:{text:"",image:t.stampUrl}}),t.stampImage=null;case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},{key:"activateWithStamp",value:function(e,r,n){!function(e,t,r){var n=mV(gV(e.prototype),"activate",r);return"function"==typeof n?function(e){return n.apply(r,e)}:n}(t,0,this)([e,r]),this.stampUrl=n,n&&this.createCursorImg()}},{key:"addSerializedGroupToLayer",value:function(e,t){var r=IE().Node.create(t),n=this.getGroupNodesByClassName(r,"Image")[0],o=n.getAttr("base64"),i=this.getGroupNodesByClassName(r,"Text")[0];IE().Image.fromURL(o,function(){var e=lV(aV().mark((function e(t){return aV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setAttrs(n.getAttrs()),n.destroy(),r.add(t),i&&i.moveToTop();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.getBgLayer(e).add(r)}},{key:"mouseMoveHandler",value:function(){}},{key:"mouseUpHandler",value:function(){}},{key:"changeStyle",value:function(){}}])}(vL);function yV(e){for(var t=e.x,r=e.y,n=e.fill,o=void 0===n?"rgb(255, 222, 33)":n,i=e.stroke,a=void 0===i?"#000":i,s=e.strokeWidth,l=void 0===s?1:s,c=e.cornerSize,u=void 0===c?3:c,d=new(IE().Rect)({x:t,y:r,width:16,height:16,fillLinearGradientStartPoint:{x:0,y:0},fillLinearGradientEndPoint:{x:0,y:16},fillLinearGradientColorStops:[0,o,1,"#fff"],stroke:a,cornerRadius:[0,u,0,0],strokeWidth:l,shadowColor:"rgba(0,0,0,0.2)",shadowBlur:2,shadowOffset:{x:1,y:1},shadowOpacity:.3}),f=[],h=1;h<=4;h++){var p=r+4+1.6*h,m=1===h?t+16-6:t+16-3,g=new(IE().Line)({points:[t+3,p,m,p],stroke:"#555",strokeWidth:.6,lineCap:"round"});f.push(g)}return[d].concat(f)}function wV(e){return wV="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},wV(e)}function xV(){xV=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==wV(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(wV(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function SV(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CV(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function kV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function EV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kV(Object(r),!0).forEach((function(t){OV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function OV(e,t,r){return(t=TV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TV(n.key),n)}}function TV(e){var t=function(e){if("object"!=wV(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=wV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wV(t)?t:t+""}function jV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jV=function(){return!!e})()}function PV(e){return PV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PV(e)}function MV(e,t){return MV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MV(e,t)}var RV=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=PV(t),function(e,t){if(t&&("object"==wV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jV()?Reflect.construct(t,r||[],PV(e).constructor):t.apply(e,r))}(this,t,[EV(EV({},e),{},{editorType:To.NOTE})])}return 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&&MV(e,t)}(t,e),function(e,t){return t&&AV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(){}},{key:"mouseMoveHandler",value:function(){}},{key:"mouseUpHandler",value:(r=xV().mark((function e(t){var r,n,o,i,a,s,l;return xV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="rgb(255, 222, 33)",o=this.konvaStage.getRelativePointerPosition(),i=o.x,a=o.y,t.currentTarget===this.konvaStage){e.next=4;break}return e.abrupt("return");case 4:this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup),s=yV({x:i,y:a,fill:n}),(r=this.currentShapeGroup.konvaGroup).add.apply(r,function(e){if(Array.isArray(e))return SV(e)}(c=s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return SV(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?SV(e,t):void 0}}(c)||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.")}()),l=this.currentShapeGroup.konvaGroup.id(),this.setShapeGroupDone({id:l,contentsObj:{text:""},color:n});case 11:case"end":return e.stop()}var c}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){CV(i,n,o,a,s,"next",e)}function s(e){CV(i,n,o,a,s,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)})},{key:"changeStyle",value:function(){}}]);var r,n}(vL);function _V(e){return _V="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},_V(e)}function IV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function NV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?IV(Object(r),!0).forEach((function(t){DV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function FV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BV(n.key),n)}}function DV(e,t,r){return(t=BV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BV(e){var t=function(e){if("object"!=_V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=_V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_V(t)?t:t+""}var LV=function(){return function(e,t){return t&&FV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r=t.konvaCanvasStore,n=t.getAnnotationStore,o=t.onDelete,i=t.onSelected,a=t.onCancel,s=t.onChanged;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),DV(this,"transformerStore",new Map),DV(this,"_currentTransformerId",null),DV(this,"selectedId",null),this.konvaCanvasStore=r,this.getAnnotationStore=n,this.onDelete=o,this.onSelected=i,this.onCancel=a,this.onChanged=s}),[{key:"currentTransformerId",get:function(){return this._currentTransformerId},set:function(e){this._currentTransformerId!==e&&(this.selectedId=e,this.deactivateTransformer(this._currentTransformerId),this._currentTransformerId=e)}},{key:"disableStageEvents",value:function(e){e.off("click mousedown mousemove mouseup touchstart touchmove touchend")}},{key:"bindStageEvents",value:function(e){var t=this;e.on("click tap",(function(r){r.target===e&&t.clearTransformers()}))}},{key:"getBackgroundLayer",value:function(e){return e.getLayers()[0]}},{key:"getPageShapeGroups",value:function(e){return this.getBackgroundLayer(e).getChildren((function(e){return e.name()===uL}))}},{key:"getGroupById",value:function(e,t){return this.getPageShapeGroups(e).find((function(e){return e.id()===t}))||null}},{key:"getFirstShapeInGroup",value:function(e){return e.getChildren().find((function(e){return e instanceof IE().Shape}))||null}},{key:"enableShapeGroups",value:function(e,t){var r=this;e.forEach((function(e){e.getChildren().forEach((function(e){e instanceof IE().Shape&&(r.removeShapeEvents(e),r.bindShapeEvents(e,t))}))}))}},{key:"disableShapeGroups",value:function(e){var t=this;e.forEach((function(e){e.getChildren().forEach((function(e){e instanceof IE().Shape&&t.removeShapeEvents(e)}))}))}},{key:"bindShapeEvents",value:function(e,t){var r=this;Eo.setting.DB_CLICK_DELETE&&e.on("pointerdblclick",(function(){dE.confirm({title:se.t("normal.deleteConfirm"),type:"warn",destroyOnClose:!0,centered:!0,okText:se.t("normal.yes"),cancelText:se.t("normal.no"),onOk:function(){r.onDelete(r.currentTransformerId),r.clearTransformers()}})})),e.on("pointerclick",(function(n){0===n.evt.button&&r.handleShapeClick(e,t,!0)})),e.on("mouseover",(function(e){0===e.evt.button&&r.handleShapeMouseover()})),e.on("mouseout",(function(e){0===e.evt.button&&r.handleShapeMouseout()}))}},{key:"removeShapeEvents",value:function(e){e.off("pointerclick mouseover mouseout pointerdblclick")}},{key:"handleShapeClick",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.findAncestor(".".concat(uL));if(n){this.clearTransformers(),this.createTransformer(n,t,!r);var o=this.transformerStore.get(n.id()).getClientRect();this.onSelected(n.id(),r,o)}}},{key:"createTransformer",value:function(e,t,r){var n=this,o=e.children[0],i=e.id();this.currentTransformerId=i;var a=this.getAnnotationStore(i);e.off("dragend");var s=new(IE().Transformer)({resizeEnabled:a.resizable,rotateEnabled:!1,borderStrokeWidth:Eo.chooseSetting.STROKEWIDTH,borderStroke:Eo.chooseSetting.COLOR,anchorFill:Eo.chooseSetting.COLOR,anchorStroke:Eo.chooseSetting.COLOR,opacity:Eo.chooseSetting.OPACITY,anchorCornerRadius:5,anchorStrokeWidth:2,anchorSize:8,padding:1,boundBoxFunc:function(e,t){return t.width=Math.max(30,t.width),t}});o.attrs.id&&"note"===o.attrs.id&&s.resizeEnabled(!1),e.draggable(a.draggable),s.off("transformend"),s.off("transformstart"),s.on("transformend",(function(){n.onChanged(e.id(),e.toJSON(),NV({},a),IE().Node.create(e.toJSON()).getClientRect(),s.getClientRect())})),s.on("transformstart",(function(){n.onCancel()})),s.on("dragstart",(function(){n.onCancel()})),s.on("dragend",(function(){n.onChanged(e.id(),e.toJSON(),NV({},a),IE().Node.create(e.toJSON()).getClientRect(),s.getClientRect())})),s.on("dragmove",(function(){var e=s.nodes().map((function(e){return e.getClientRect()})),r=n.getTotalBox(e);s.nodes().forEach((function(e){var n=e.getAbsolutePosition(),o=r.x-n.x,i=r.y-n.y,a=r.width/2,s=r.height/2,l=NV({},n);r.x+a<0&&(l.x=-o-a),r.y+s<0&&(l.y=-i-s),r.x+a>t.width()&&(l.x=t.width()-a-o),r.y+s>t.height()&&(l.y=t.height()-s-i),e.setAbsolutePosition(l)}))})),s.nodes([e]),this.getBackgroundLayer(t).add(s),this.transformerStore.set(i,s),r&&this.flashNodeWithTransformer(e,s,(function(){n.onSelected(e.id(),!1,s.getClientRect())}))}},{key:"flashNodeWithTransformer",value:function(e,t,r){var n=0,o=t.borderStroke(),i=function(){new(IE().Tween)({node:e,duration:.1,opacity:0,onFinish:function(){try{var e;t.borderStroke("red"),null===(e=t.getLayer())||void 0===e||e.batchDraw(),a()}catch(e){}}}).play()},a=function(){new(IE().Tween)({node:e,duration:.1,opacity:1,onFinish:function(){try{var e;t.borderStroke(o),null===(e=t.getLayer())||void 0===e||e.batchDraw(),++n<1?setTimeout(i,100):r&&r()}catch(e){}}}).play()};i()}},{key:"getTotalBox",value:function(e){var t=1/0,r=1/0,n=-1/0,o=-1/0;return e.forEach((function(e){t=Math.min(t,e.x),r=Math.min(r,e.y),n=Math.max(n,e.x+e.width),o=Math.max(o,e.y+e.height)})),{x:t,y:r,width:n-t,height:o-r}}},{key:"toggleCursorStyle",value:function(e){document.body.classList.toggle(dL,e)}},{key:"handleShapeMouseover",value:function(){this.toggleCursorStyle(!0)}},{key:"handleShapeMouseout",value:function(){this.toggleCursorStyle(!1)}},{key:"clearTransformers",value:function(){this.toggleCursorStyle(!1),this.transformerStore.forEach((function(e){e&&(e.nodes().forEach((function(e){e instanceof IE().Group&&e.draggable(!1)})),e.nodes([]))})),this.transformerStore.clear(),this.currentTransformerId=null,this.onCancel()}},{key:"activateTransformer",value:function(e){if(e){var t=this.transformerStore.get(e);t&&t.nodes().forEach((function(e){e instanceof IE().Group&&e.draggable(!0)}))}}},{key:"deactivateTransformer",value:function(e){if(e){var t=this.transformerStore.get(e);t&&t.nodes().forEach((function(e){e instanceof IE().Group&&e.draggable(!1)}))}}},{key:"selectedShape",value:function(e,t){var r=this.getGroupById(t,e);if(r){var n=this.getFirstShapeInGroup(r);n&&this.handleShapeClick(n,t,!1)}}},{key:"clear",value:function(){var e=this;this.clearTransformers(),this.konvaCanvasStore.forEach((function(t){var r=t.konvaStage,n=e.getPageShapeGroups(r);e.disableStageEvents(r),e.disableShapeGroups(n)}))}},{key:"activate",value:function(e){var t=this.konvaCanvasStore.get(e);if(t){var r=t.konvaStage,n=this.getPageShapeGroups(r);this.disableStageEvents(r),this.bindStageEvents(r),this.enableShapeGroups(n,r),this.selectedId&&this.selectedShape(this.selectedId,r)}}},{key:"select",value:function(e){this.selectedId=e}},{key:"delete",value:function(){this.clearTransformers()}}])}();function zV(e){return zV="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},zV(e)}function HV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function UV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?HV(Object(r),!0).forEach((function(t){WV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function VV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GV(n.key),n)}}function WV(e,t,r){return(t=GV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GV(e){var t=function(e){if("object"!=zV(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=zV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zV(t)?t:t+""}var qV=function(){return function(e,t){return t&&VV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r=t.PDFViewerApplication;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),WV(this,"annotationStore",new Map),WV(this,"originalAnnotationStore",new Map),this.pdfViewerApplication=r}),[{key:"annotation",get:function(){var e=this;return function(t){return e.annotationStore.get(t)}}},{key:"annotations",get:function(){return Array.from(this.annotationStore.values())}},{key:"save",value:function(e,t){return this.annotationStore.set(e.id,e),t&&this.originalAnnotationStore.set(e.id,e),e}},{key:"update",value:function(e,t){if(!this.annotationStore.has(e))return console.warn("Annotation with id ".concat(e," not found.")),null;var r=this.annotationStore.get(e);if(r){var n=UV(UV(UV({},r),t),{},{date:XN(Date.now())});return this.annotationStore.set(e,n),n}}},{key:"getByPage",value:function(e){return Array.from(this.annotationStore.values()).filter((function(t){return t.pageNumber===e}))}},{key:"delete",value:function(e){this.annotationStore.has(e)?this.annotationStore.delete(e):console.warn("Annotation with id ".concat(e," not found."))}}])}(),KV=o(2910),XV=o.n(KV);function YV(e){return YV="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},YV(e)}function $V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ZV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QV(n.key),n)}}function QV(e){var t=function(e){if("object"!=YV(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=YV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==YV(t)?t:t+""}var JV=function(){return function(e,t){return t&&ZV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r=t.onSelect,n=t.onHighlight;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isEditing=!1,this.onSelect=r,this.onHighlight=n,this.highlighterObj=null}),[{key:"create",value:function(e){var t=this,r=!1;this.highlighterObj=new(XV())({$root:e,wrapTag:"mark"}),this.highlighterObj.stop(),document.addEventListener("selectionchange",(function(){var n=window.getSelection();if("Caret"!==n.type){if(n&&n.toString()){var o=n.getRangeAt(0).commonAncestorContainer;e.contains(o)&&(r=!0)}}else t.onSelect(null)})),document.addEventListener("mouseup",(function(){if(r){r=!1;var e=window.getSelection();t.onSelect(e.getRangeAt(0))}})),document.addEventListener("touchend",(function(){if(r){console.log("Selection completed"),r=!1;var e=window.getSelection();t.onSelect(e.getRangeAt(0))}})),this.highlighterObj.on("selection:create",(function(e){var r=e.sources.map((function(e){return e.id})),n=[];r.forEach((function(e){var r;n.push.apply(n,function(e){if(Array.isArray(e))return $V(e)}(r=t.highlighterObj.getDoms(e))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return $V(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$V(e,t):void 0}}(r)||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.")}())}));var o=Object.groupBy(n,(function(e){return e.closest(".page").getAttribute("data-page-number")}));t.onHighlight(o),t.highlighterObj.removeAll(),window.getSelection().removeAllRanges()}))}},{key:"highlight",value:function(e){e&&this.highlighterObj.fromRange(e)}}])}();function eW(e){return eW="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},eW(e)}function tW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nW(n.key),n)}}function nW(e){var t=function(e){if("object"!=eW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=eW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eW(t)?t:t+""}var oW=function(){return function(e,t){return t&&rW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r=t.pdfViewerApplication,n=t.id;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfViewerApplication=r,this.id=n}),[{key:"convertRect",value:function(e,t,r){var n=r/t,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tW(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tW(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.")}()}(e,4),i=o[0],a=o[1],s=o[2],l=o[3];return{x:i,y:n-l,width:s-i,height:l-a}}},{key:"convertQuadPoints",value:function(e,t,r){var n=r/t;return{x:e[0].x,y:n-e[0].y,width:e[1].x-e[0].x,height:e[1].y-e[3].y}}},{key:"convertPoint",value:function(e,t,r){var n=r/t;return{x:e.x,y:n-e.y}}},{key:"convertCoordinates",value:function(e,t,r){var n=r/t;return{x:e[0],y:n-e[1],x1:e[2],y1:n-e[3]}}},{key:"getComments",value:function(e,t){var r=[];return t.forEach((function(t){t.annotationType===Oo.TEXT&&t.inReplyTo===e.id&&r.push({id:t.id,title:t.titleObj.str,date:t.modificationDate,content:t.contentsObj.str})})),r}}])}();function iW(e){return iW="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},iW(e)}function aW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sW(n.key),n)}}function sW(e){var t=function(e){if("object"!=iW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=iW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iW(t)?t:t+""}function lW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lW=function(){return!!e})()}function cW(e){return cW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cW(e)}function uW(e,t){return uW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uW(e,t)}var dW=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=cW(t),function(e,t){if(t&&("object"==iW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lW()?Reflect.construct(t,r||[],cW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&uW(e,t)}(t,e),function(e,t){return t&&aW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r=KN(e.color),n=1===e.borderStyle.width?e.borderStyle.width+1:e.borderStyle.width,o=this.convertRect(e.rect,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),i=o.x,a=o.y,s=o.width,l=o.height,c=new(IE().Group)({draggable:!1,name:uL,id:e.id}),u=new(IE().Ellipse)({radiusX:s/2,radiusY:l/2,x:i+s/2,y:a+l/2,strokeScaleEnabled:!1,strokeWidth:n,stroke:r,dash:2===e.borderStyle.style?e.borderStyle.dashArray:[]});c.add(u);var d={id:e.id,pageNumber:e.pageNumber,konvaString:c.toJSON(),konvaClientRect:c.getClientRect(),title:e.titleObj.str,type:To.CIRCLE,color:r,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!0};return c.destroy(),d}}])}(oW);function fW(e){return fW="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},fW(e)}function hW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pW(n.key),n)}}function pW(e){var t=function(e){if("object"!=fW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=fW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fW(t)?t:t+""}function mW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mW=function(){return!!e})()}function gW(e){return gW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gW(e)}function vW(e,t){return vW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vW(e,t)}var bW=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=gW(t),function(e,t){if(t&&("object"==fW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mW()?Reflect.construct(t,r||[],gW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&vW(e,t)}(t,e),function(e,t){return t&&hW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r=KN(e.defaultAppearanceData.fontColor),n=e.defaultAppearanceData.fontSize,o=e.contentsObj.str,i=this.convertRect(e.rect,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),a=i.x,s=i.y,l=(i.width,i.height,new(IE().Group)({draggable:!1,name:uL,id:e.id})),c=new(IE().Text)({x:a,y:s+2,text:o,fontSize:n,fill:r});return l.add(c),{id:e.id,pageNumber:e.pageNumber,konvaString:l.toJSON(),konvaClientRect:l.getClientRect(),title:e.titleObj.str,type:To.FREETEXT,color:r,fontSize:n,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:o},comments:this.getComments(e,t),draggable:!0,resizable:!0}}}])}(oW);function yW(e){return yW="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},yW(e)}function wW(e,t,r){return(t=SW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SW(n.key),n)}}function SW(e){var t=function(e){if("object"!=yW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=yW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yW(t)?t:t+""}function CW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CW=function(){return!!e})()}function kW(e){return kW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kW(e)}function EW(e,t){return EW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EW(e,t)}var OW=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=kW(t),function(e,t){if(t&&("object"==yW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,CW()?Reflect.construct(t,r||[],kW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&EW(e,t)}(t,e),function(e,t){return t&&xW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createHighlightShape",value:function(e,t,r,n,o){return new(IE().Rect)({x:e,y:t,width:r,height:n,opacity:.5,fill:o})}},{key:"createUnderlineShape",value:function(e,t,r,n,o){return new(IE().Rect)({x:e,y:n+t-1.5,width:r,stroke:o,strokeWidth:.5,hitStrokeWidth:10,height:.5})}},{key:"createStrikeoutShape",value:function(e,t,r,n,o){return new(IE().Rect)({x:e,y:t+n/2,width:r,stroke:o,strokeWidth:.5,hitStrokeWidth:10,height:.5})}},{key:"decodePdfAnnotation",value:function(e,t){var r,n=this,o=KN(e.color),i=wW(wW(wW({},Oo.HIGHLIGHT,To.HIGHLIGHT),Oo.UNDERLINE,To.UNDERLINE),Oo.STRIKEOUT,To.STRIKEOUT)[e.annotationType]||To.HIGHLIGHT,a=new(IE().Group)({draggable:!1,name:uL,id:e.id});null===(r=e.quadPoints)||void 0===r||r.forEach((function(t){var r=function(t){var r=n.convertQuadPoints(t,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),i=r.x,a=r.y,s=r.width,l=r.height;switch(e.annotationType){case Oo.HIGHLIGHT:return n.createHighlightShape(i,a,s,l,o);case Oo.UNDERLINE:return n.createUnderlineShape(i,a,s,l,o);case Oo.STRIKEOUT:return n.createStrikeoutShape(i,a,s,l,o);default:return null}}(t);r&&a.add(r)}));var s={id:e.id,pageNumber:e.pageNumber,konvaString:a.toJSON(),konvaClientRect:a.getClientRect(),title:e.titleObj.str,type:i,color:o,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!1,resizable:!1};return a.destroy(),s}}])}(oW);function AW(e){return AW="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},AW(e)}function TW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jW(n.key),n)}}function jW(e){var t=function(e){if("object"!=AW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=AW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AW(t)?t:t+""}function PW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PW=function(){return!!e})()}function MW(e){return MW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MW(e)}function RW(e,t){return RW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RW(e,t)}var _W=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=MW(t),function(e,t){if(t&&("object"==AW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,PW()?Reflect.construct(t,r||[],MW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&RW(e,t)}(t,e),function(e,t){return t&&TW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r=KN(e.color),n=1===e.borderStyle.width?e.borderStyle.width+1:e.borderStyle.width,o=this.convertRect(e.rect,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),i=o.x,a=o.y,s=o.width,l=o.height,c=new(IE().Group)({draggable:!1,name:uL,id:e.id}),u=new(IE().Rect)({x:i,y:a,width:s,height:l,strokeScaleEnabled:!1,stroke:r,strokeWidth:n,fill:0===e.borderStyle.width?r:null,opacity:0===e.borderStyle.width?.5:1});c.add(u);var d={id:e.id,pageNumber:e.pageNumber,konvaString:c.toJSON(),konvaClientRect:c.getClientRect(),title:e.titleObj.str,type:To.RECTANGLE,color:r,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!0};return c.destroy(),d}}])}(oW);function IW(e){return IW="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},IW(e)}function NW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FW(n.key),n)}}function FW(e){var t=function(e){if("object"!=IW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=IW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==IW(t)?t:t+""}function DW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DW=function(){return!!e})()}function BW(e){return BW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BW(e)}function LW(e,t){return LW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LW(e,t)}var zW=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=BW(t),function(e,t){if(t&&("object"==IW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,DW()?Reflect.construct(t,r||[],BW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&LW(e,t)}(t,e),function(e,t){return t&&NW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r,n=this;if(0===e.inkLists.length)return null;var o=KN(e.color),i=new(IE().Group)({draggable:!1,name:uL,id:e.id});null===(r=e.inkLists)||void 0===r||r.forEach((function(t){var r,a=(r=t.map((function(t){var r=n.convertPoint(t,e.pageViewer.viewport.scale,e.pageViewer.viewport.height);return[r.x,r.y]})).flat(),new(IE().Line)({strokeScaleEnabled:!1,stroke:o,strokeWidth:e.borderStyle.width,opacity:.5,lineCap:"round",lineJoin:"round",hitStrokeWidth:20,globalCompositeOperation:"source-over",points:r}));i.add(a)}));var a={id:e.id,pageNumber:e.pageNumber,konvaString:i.toJSON(),konvaClientRect:i.getClientRect(),title:e.titleObj.str,type:To.FREEHAND,color:o,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!0};return i.destroy(),a}}])}(oW);function HW(e){return HW="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},HW(e)}function UW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VW(n.key),n)}}function VW(e){var t=function(e){if("object"!=HW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=HW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HW(t)?t:t+""}function WW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WW=function(){return!!e})()}function GW(e){return GW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GW(e)}function qW(e,t){return qW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qW(e,t)}var KW=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=GW(t),function(e,t){if(t&&("object"==HW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WW()?Reflect.construct(t,r||[],GW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&qW(e,t)}(t,e),function(e,t){return t&&UW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r,n=KN(e.color),o=1===e.borderStyle.width?e.borderStyle.width+1:e.borderStyle.width,i=new(IE().Group)({draggable:!1,name:uL,id:e.id}),a=this.convertCoordinates(e.lineCoordinates,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),s=(r=[a.x,a.y,a.x1,a.y1],e.lineEndings,new(IE().Line)({strokeScaleEnabled:!1,stroke:n,strokeWidth:o,hitStrokeWidth:20,dash:2===e.borderStyle.style?e.borderStyle.dashArray:[],globalCompositeOperation:"source-over",points:r}));i.add(s);var l={id:e.id,pageNumber:e.pageNumber,konvaString:i.toJSON(),konvaClientRect:i.getClientRect(),title:e.titleObj.str,type:To.FREEHAND,color:n,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!0};return i.destroy(),l}}])}(oW);function XW(e){return XW="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},XW(e)}function YW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$W(n.key),n)}}function $W(e){var t=function(e){if("object"!=XW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=XW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==XW(t)?t:t+""}function ZW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZW=function(){return!!e})()}function QW(e){return QW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QW(e)}function JW(e,t){return JW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JW(e,t)}var eG=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=QW(t),function(e,t){if(t&&("object"==XW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ZW()?Reflect.construct(t,r||[],QW(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&JW(e,t)}(t,e),function(e,t){return t&&YW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r,n,o=this,i=KN(e.color),a=1===e.borderStyle.width?e.borderStyle.width+1:e.borderStyle.width,s=new(IE().Group)({draggable:!1,name:uL,id:e.id}),l=(r=e.vertices,n=[],null==r||r.forEach((function(t){var r=o.convertPoint(t,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),i=r.x,a=r.y;n.push(i),n.push(a)})),new(IE().Line)({strokeScaleEnabled:!1,stroke:i,strokeWidth:a,lineCap:"round",lineJoin:"round",hitStrokeWidth:20,closed:!0,globalCompositeOperation:"source-over",points:n}));s.add(l);var c={id:e.id,pageNumber:e.pageNumber,konvaString:s.toJSON(),konvaClientRect:s.getClientRect(),title:e.titleObj.str,type:To.FREEHAND,color:i,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!0};return s.destroy(),c}}])}(oW);function tG(e){return tG="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},tG(e)}function rG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nG(n.key),n)}}function nG(e){var t=function(e){if("object"!=tG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=tG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tG(t)?t:t+""}function oG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oG=function(){return!!e})()}function iG(e){return iG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iG(e)}function aG(e,t){return aG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aG(e,t)}var sG=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=iG(t),function(e,t){if(t&&("object"==tG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oG()?Reflect.construct(t,r||[],iG(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&aG(e,t)}(t,e),function(e,t){return t&&rG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){var r,n,o=this,i=KN(e.color),a=1===e.borderStyle.width?e.borderStyle.width+1:e.borderStyle.width,s=new(IE().Group)({draggable:!1,name:uL,id:e.id}),l=(r=e.vertices,n=[],null==r||r.forEach((function(t){var r=o.convertPoint(t,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),i=r.x,a=r.y;n.push(i),n.push(a)})),new(IE().Line)({strokeScaleEnabled:!1,stroke:i,strokeWidth:a,lineCap:"round",lineJoin:"round",hitStrokeWidth:20,closed:!1,globalCompositeOperation:"source-over",points:n}));s.add(l);var c={id:e.id,pageNumber:e.pageNumber,konvaString:s.toJSON(),konvaClientRect:s.getClientRect(),title:e.titleObj.str,type:To.FREEHAND,color:i,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!0};return s.destroy(),c}}])}(oW);function lG(e){return lG="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},lG(e)}function cG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function uG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dG(n.key),n)}}function dG(e){var t=function(e){if("object"!=lG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=lG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lG(t)?t:t+""}function fG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fG=function(){return!!e})()}function hG(e){return hG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hG(e)}function pG(e,t){return pG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pG(e,t)}var mG=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=hG(t),function(e,t){if(t&&("object"==lG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fG()?Reflect.construct(t,r||[],hG(e).constructor):t.apply(e,r))}(this,t,[e])}return 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&&pG(e,t)}(t,e),function(e,t){return t&&uG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"decodePdfAnnotation",value:function(e,t){if(e.inReplyTo)return null;var r,n=KN(e.color),o=this.convertRect(e.rect,e.pageViewer.viewport.scale,e.pageViewer.viewport.height),i=o.x,a=o.y,s=new(IE().Group)({draggable:!1,name:uL,id:e.id}),l=yV({x:i,y:a,fill:n});s.add.apply(s,function(e){if(Array.isArray(e))return cG(e)}(r=l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return cG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cG(e,t):void 0}}(r)||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.")}());var c={id:e.id,pageNumber:e.pageNumber,konvaString:s.toJSON(),konvaClientRect:s.getClientRect(),title:e.titleObj.str,type:To.NOTE,color:n,pdfjsType:e.annotationType,pdfjsEditorType:Ao.INK,subtype:e.subtype,date:e.modificationDate,contentsObj:{text:e.contentsObj.str},comments:this.getComments(e,t),draggable:!0,resizable:!1};return s.destroy(),c}}])}(oW);function gG(e){return gG="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},gG(e)}function vG(){vG=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==gG(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(gG(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function bG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yG(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bG(Object(r),!0).forEach((function(t){wG(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bG(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wG(e,t,r){return(t=kG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xG(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function SG(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xG(i,n,o,a,s,"next",e)}function s(e){xG(i,n,o,a,s,"throw",e)}a(void 0)}))}}function CG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kG(n.key),n)}}function kG(e){var t=function(e){if("object"!=gG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=gG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gG(t)?t:t+""}var EG=function(){return function(e,t){return t&&CG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfViewerApplication=t}),[{key:"getAnnotations",value:(t=SG(vG().mark((function e(){var t,r,n,o,i;return vG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.pdfViewerApplication.pdfDocument,r=this.pdfViewerApplication.pdfViewer,n=t.numPages,o=Array.from({length:n},(function(e,n){return t.getPage(n+1).then((function(e){var t=r.getPageView(n);return e.getAnnotations().then((function(e){return e.map((function(e){return yG(yG({},e),{},{pageNumber:n+1,pageViewer:t})}))}))}))})),e.next=6,Promise.all(o);case 6:return i=e.sent,e.abrupt("return",i.flat());case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"decodeAnnotation",value:function(e,t){var r,n=(wG(wG(wG(wG(wG(wG(wG(wG(wG(wG(r={},Oo.CIRCLE,dW),Oo.FREETEXT,bW),Oo.HIGHLIGHT,OW),Oo.UNDERLINE,OW),Oo.STRIKEOUT,OW),Oo.SQUARE,_W),Oo.INK,zW),Oo.LINE,KW),Oo.POLYGON,eG),Oo.POLYLINE,sG),wG(r,Oo.TEXT,mG))[e.annotationType];return n?new n({pdfViewerApplication:this.pdfViewerApplication,id:e.id}).decodePdfAnnotation(e,t):null}},{key:"cleanAnnotationStore",value:function(e){var t;null===(t=this.pdfViewerApplication)||void 0===t||null===(t=t.pdfDocument)||void 0===t||t.annotationStorage.setValue("".concat("pdfjs_internal_editor_").concat(e.id),{deleted:!0,id:e.id,pageIndex:e.pageNumber-1})}},{key:"decodePdfAnnotation",value:(e=SG(vG().mark((function e(){var t,r,n=this;return vG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAnnotations();case 2:return t=e.sent,r=new Map,t.forEach((function(e){n.cleanAnnotationStore(e);var o=n.decodeAnnotation(e,t);o&&r.set(e.id,o)})),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t}();function OG(e){return OG="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},OG(e)}function AG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TG(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?AG(Object(r),!0).forEach((function(t){_G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AG(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IG(n.key),n)}}function PG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PG=function(){return!!e})()}function MG(e){return MG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MG(e)}function RG(e,t){return RG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RG(e,t)}function _G(e,t,r){return(t=IG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IG(e){var t=function(e){if("object"!=OG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=OG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==OG(t)?t:t+""}var NG=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_G(r=function(e,t,r){return t=MG(t),function(e,t){if(t&&("object"==OG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,PG()?Reflect.construct(t,r||[],MG(e).constructor):t.apply(e,r))}(this,t,[TG(TG({},e),{},{editorType:To.ARROW})]),"globalPointerUpHandler",(function(e){0===e.button&&(r.mouseUpHandler(),window.removeEventListener("mouseup",r.globalPointerUpHandler))})),r.arrow=null,r.startPoint={x:0,y:0},r}return 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&&RG(e,t)}(t,e),function(e,t){return t&&jG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"mouseDownHandler",value:function(e){if(e.currentTarget===this.konvaStage){this.arrow=null,this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup);var t=this.konvaStage.getRelativePointerPosition();this.startPoint={x:t.x,y:t.y},this.arrow=new(IE().Arrow)({points:[t.x,t.y,t.x,t.y],stroke:this.currentAnnotation.style.color,strokeWidth:this.currentAnnotation.style.strokeWidth,fill:this.currentAnnotation.style.color,pointerLength:10,pointerWidth:10,hitStrokeWidth:20,lineCap:"round",lineJoin:"round",strokeScaleEnabled:!1,visible:!1,opacity:this.currentAnnotation.style.opacity}),this.currentShapeGroup.konvaGroup.add(this.arrow),window.addEventListener("mouseup",this.globalPointerUpHandler)}}},{key:"mouseMoveHandler",value:function(e){var t,r;if(this.isPainting){e.evt.preventDefault();var n=this.konvaStage.getRelativePointerPosition(),o=[this.startPoint.x,this.startPoint.y,n.x,n.y];null===(t=this.arrow)||void 0===t||t.show(),null===(r=this.arrow)||void 0===r||r.setAttrs({points:o})}}},{key:"mouseUpHandler",value:function(){var e,t;if(this.isPainting){this.isPainting=!1;var r=null===(e=this.arrow)||void 0===e?void 0:e.getParent();if(null!==(t=this.arrow)&&void 0!==t&&t.isVisible()||"Group"!==(null==r?void 0:r.getType())){var n;if(this.isTooShort())return null===(n=this.arrow)||void 0===n||n.destroy(),this.delShapeGroup(r.id()),void(this.arrow=null);this.setShapeGroupDone({id:r.id(),color:this.currentAnnotation.style.color,contentsObj:{text:""}}),this.arrow=null}else this.delShapeGroup(r.id())}}},{key:"isTooShort",value:function(){if(!this.arrow)return!0;var e=this.arrow.points();if(4!==e.length)return!0;var t=e[2]-e[0],r=e[3]-e[1];return Math.hypot(t,r)<vL.MinSize}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){if(e instanceof IE().Arrow){if(void 0!==t.color&&(e.stroke(t.color),e.fill(t.color)),void 0!==t.strokeWidth){var r=t.strokeWidth;e.strokeWidth(r);var n=Math.max(6,Math.min(30,5*r));e.pointerLength(n),e.pointerWidth(n)}void 0!==t.opacity&&e.opacity(t.opacity)}}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);function FG(e){return FG="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},FG(e)}function DG(e){return function(e){if(Array.isArray(e))return BG(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 BG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?BG(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 BG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function LG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zG(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?LG(Object(r),!0).forEach((function(t){GG(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LG(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function HG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qG(n.key),n)}}function UG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UG=function(){return!!e})()}function VG(e){return VG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VG(e)}function WG(e,t){return WG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WG(e,t)}function GG(e,t,r){return(t=qG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qG(e){var t=function(e){if("object"!=FG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=FG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==FG(t)?t:t+""}var KG=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GG(r=function(e,t,r){return t=VG(t),function(e,t){if(t&&("object"==FG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,UG()?Reflect.construct(t,r||[],VG(e).constructor):t.apply(e,r))}(this,t,[zG(zG({},e),{},{editorType:To.CLOUD})]),"cloudPath",null),GG(r,"points",[]),GG(r,"startRect",null),GG(r,"startRectSize",12),GG(r,"handleKeyUp",(function(e){"Escape"===e.key&&r.isPainting&&r.cancelDrawing()})),GG(r,"handleDoubleClick",(function(){if(r.isPainting&&!(r.points.length<3)&&(r.isPainting=!1,r.cloudPath)){var e=[].concat(DG(r.points),[r.points[0]]),t=r.generateCloudPathData(e);r.cloudPath.data(t),r.setShapeGroupDone({id:r.currentShapeGroup.konvaGroup.id(),color:r.currentAnnotation.style.color,contentsObj:{text:""}}),r.cloudPath=null,r.points=[],r.startRect&&(r.startRect.destroy(),r.startRect=null)}})),r.konvaStage.on("dblclick",r.handleDoubleClick),window.addEventListener("keyup",r.handleKeyUp),r}return 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&&WG(e,t)}(t,e),function(e,t){return t&&HG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"cancelDrawing",value:function(){this.isPainting=!1,this.points=[],this.cloudPath&&(this.cloudPath.destroy(),this.cloudPath=null),this.startRect&&(this.startRect.destroy(),this.startRect=null),this.currentShapeGroup&&(this.delShapeGroup(this.currentShapeGroup.konvaGroup.id()),this.currentShapeGroup=null),this.getBgLayer().batchDraw()}},{key:"mouseDownHandler",value:function(e){var t=this.konvaStage.getRelativePointerPosition();this.points.push(t),this.isPainting||(this.isPainting=!0,this.currentShapeGroup=this.createShapeGroup(),this.getBgLayer().add(this.currentShapeGroup.konvaGroup),this.cloudPath=new(IE().Path)({data:"",stroke:this.currentAnnotation.style.color,strokeWidth:this.currentAnnotation.style.strokeWidth,fillEnabled:!1,lineJoin:"round",lineCap:"round",hitStrokeWidth:20,opacity:this.currentAnnotation.style.opacity}),this.currentShapeGroup.konvaGroup.add(this.cloudPath),this.drawStartRect(t)),this.updateCloudPreview()}},{key:"mouseMoveHandler",value:function(e){if(this.isPainting&&this.cloudPath){var t=this.konvaStage.getRelativePointerPosition();this.updateCloudPreview(t)}}},{key:"mouseUpHandler",value:function(e){}},{key:"updateCloudPreview",value:function(e){if(this.cloudPath){var t=DG(this.points);e&&t.push(e);var r=this.generateCloudPathData(t);this.cloudPath.data(r)}}},{key:"generateCloudPathData",value:function(e){if(e.length<2)return"";for(var t=12*1.1,r=this.computeCentroid(e),n="",o=null,i=0;i<e.length-1;i++){var a=e[i],s=e[i+1],l=s.x-a.x,c=s.y-a.y,u=Math.hypot(l,c),d=Math.atan2(c,l);0!==i||o||(o=d),0===i&&(d=o);var f=Math.cos(d+Math.PI/2),h=Math.sin(d+Math.PI/2),p=(a.x+s.x)/2,m=(a.y+s.y)/2,g=1;f*(r.x-p)+h*(r.y-m)>0&&(g=-1);for(var v=Math.max(2,Math.floor(u/t)),b=0;b<v;b++){var y=b/v,w=(b+1)/v,x=a.x+l*y,S=a.y+c*y,C=a.x+l*w,k=a.y+c*w,E=(x+C)/2+12*f*g,O=(S+k)/2+12*h*g;0===i&&0===b&&(n+="M ".concat(x," ").concat(S," ")),n+="Q ".concat(E," ").concat(O," ").concat(C," ").concat(k," ")}}return n}},{key:"computeCentroid",value:function(e){var t=e.reduce((function(e,t){return e.x+=t.x,e.y+=t.y,e}),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}},{key:"drawStartRect",value:function(e){var t=this;this.startRect=new(IE().Rect)({x:e.x-this.startRectSize/2,y:e.y-this.startRectSize/2,width:this.startRectSize,height:this.startRectSize,stroke:"#000",strokeWidth:2,fill:null,cornerRadius:2,hitStrokeWidth:10,draggable:!1,dash:[4,2],name:"startRect"}),this.getBgLayer().add(this.startRect),this.startRect.moveToTop(),this.startRect.on("mouseup",(function(e){t.handleDoubleClick()})),this.startRect.on("mousemove",(function(e){var r;t.startRect.stroke("#1677ff"),null===(r=t.startRect.getLayer())||void 0===r||r.batchDraw()})),this.startRect.on("mouseout",(function(e){var r;t.startRect.stroke("#000"),null===(r=t.startRect.getLayer())||void 0===r||r.batchDraw()}))}},{key:"changeStyle",value:function(e,t){var r=e.id,n=this.getShapeGroupById(r);if(n){n.getChildren().forEach((function(e){e instanceof IE().Path&&(void 0!==t.color&&e.stroke(t.color),void 0!==t.strokeWidth&&e.strokeWidth(t.strokeWidth),void 0!==t.opacity&&e.opacity(t.opacity))}));var o={konvaString:n.toJSON()};void 0!==t.color&&(o.color=t.color),this.setChanged(r,o)}}}])}(vL);function XG(e){return XG="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},XG(e)}function YG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $G(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$G(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.")}()}function $G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ZG(){ZG=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==XG(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(XG(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function QG(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function JG(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){QG(i,n,o,a,s,"next",e)}function s(e){QG(i,n,o,a,s,"throw",e)}a(void 0)}))}}function eq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rq(n.key),n)}}function tq(e,t,r){return(t=rq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rq(e){var t=function(e){if("object"!=XG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=XG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==XG(t)?t:t+""}var nq=function(){return function(e,t){return t&&eq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r,n=this,o=t.userName,i=t.PDFViewerApplication,a=t.PDFJS_EventBus,s=t.setDefaultMode,l=t.onWebSelectionSelected,c=t.onStoreAdd,u=t.onStoreDelete,d=t.onAnnotationSelected,f=t.onAnnotationChange,h=t.onAnnotationChanging,p=t.onAnnotationChanged;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tq(this,"konvaCanvasStore",new Map),tq(this,"editorStore",new Map),tq(this,"currentAnnotation",null),tq(this,"globalKeyUpHandler",(function(e){"Escape"!==e.code||n.currentAnnotation.type!==To.SIGNATURE&&n.currentAnnotation.type!==To.STAMP||(WN(fL),n.setDefaultMode())})),this.userName=o,this.pdfViewerApplication=i,this.pdfjsEventBus=a,this.setDefaultMode=s,this.onWebSelectionSelected=l,this.onStoreAdd=c,this.onStoreDelete=u,this.onAnnotationSelected=d,this.onAnnotationChange=f,this.onAnnotationChanging=h,this.onAnnotationChanged=p,this.store=new qV({PDFViewerApplication:i}),this.selector=new LV({konvaCanvasStore:this.konvaCanvasStore,getAnnotationStore:function(e){return n.store.annotation(e)},onSelected:function(e,t,r){n.onAnnotationSelected(n.store.annotation(e),t,r)},onChanged:(r=JG(ZG().mark((function e(t,r,o,i,a){return ZG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.findEditorForGroupId(t)&&n.updateStore(t,{konvaString:r,konvaClientRect:i}),n.onAnnotationChanged(n.store.annotation(t),a);case 3:case"end":return e.stop()}}),e)}))),function(e,t,n,o,i){return r.apply(this,arguments)}),onCancel:function(){n.onAnnotationChanging()},onDelete:function(e){n.deleteAnnotation(e,!0)}}),this.webSelection=new JV({onSelect:function(e){n.onWebSelectionSelected(e)},onHighlight:function(e){Object.keys(e).forEach((function(t){var r=Number(t),o=e[t],i=n.konvaCanvasStore.get(r);if(i){var a=i.konvaStage,s=i.wrapper,l=n.findEditor(r,n.currentAnnotation.type);l||(l=new IU({userName:n.userName,pdfViewerApplication:n.pdfViewerApplication,konvaStage:a,pageNumber:r,annotation:n.currentAnnotation,onAdd:function(e){n.saveToStore(e)},onChange:function(e,t){n.updateStore(e,t)}},n.currentAnnotation.type),n.editorStore.set(l.id,l)),l.convertTextSelection(o,s)}}))}}),this.transform=new EG(i),this.bindGlobalEvents()}),[{key:"bindGlobalEvents",value:function(){window.addEventListener("keyup",this.globalKeyUpHandler)}},{key:"createPainterWrapper",value:function(e,t){var r=document.createElement("div");r.id="".concat(sL,"_page_").concat(t),r.setAttribute("data-main-rotation","".concat(e.viewport.rotation)),r.classList.add(sL);var n={width:e.viewport.viewBox[2],height:e.viewport.viewBox[3]},o=n.width,i=n.height,a="var(--scale-factor)";return r.style.width="calc(".concat(a," * ").concat(o,"px)"),r.style.height="calc(".concat(a," * ").concat(i,"px)"),e.div.appendChild(r),r}},{key:"createKonvaStage",value:function(e,t){var r=new(IE().Stage)({container:e,width:t.width,height:t.height,rotation:t.rotation,scale:{x:t.scale,y:t.scale}}),n=new(IE().Layer);return r.add(n),r}},{key:"cleanUpInvalidStore",value:function(){var e=this;this.konvaCanvasStore.forEach((function(t){var r;r=t.wrapper,document.body.contains(r)||(t.konvaStage.destroy(),e.konvaCanvasStore.delete(t.pageNumber))}))}},{key:"insertCanvas",value:function(e,t){this.cleanUpInvalidStore();var r=this.createPainterWrapper(e,t),n=this.createKonvaStage(r,e.viewport);this.konvaCanvasStore.set(t,{pageNumber:t,konvaStage:n,wrapper:r,isActive:!1}),this.reDrawAnnotation(t),this.enablePainting()}},{key:"scaleCanvas",value:function(e,t){var r=this.konvaCanvasStore.get(t);if(r){var n=r.konvaStage,o=e.viewport,i=o.scale,a=o.width,s=o.height;n.scale({x:i,y:i}),n.width(a),n.height(s)}}},{key:"setMode",value:function(e){var t,r="painting"===e;document.body.classList.toggle("".concat(lL),r),Object.values(To).filter((function(e){return"number"==typeof e})).map((function(e){return"".concat(cL,"_").concat(e)})).forEach((function(e){return document.body.classList.remove(e)})),WN(fL),this.currentAnnotation&&document.body.classList.add("".concat(cL,"_").concat(null===(t=this.currentAnnotation)||void 0===t?void 0:t.type))}},{key:"saveToStore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Po.find((function(t){return t.pdfjsAnnotationType===e.pdfjsType}));this.onStoreAdd(this.store.save(e,t),t,r)}},{key:"updateStore",value:function(e,t){this.onAnnotationChange(this.store.update(e,t))}},{key:"findEditorForGroupId",value:function(e){var t=null;return this.editorStore.forEach((function(r){var n;null!==(n=r.shapeGroupStore)&&void 0!==n&&n.has(e)&&(t=r)})),t}},{key:"findEditor",value:function(e,t){return this.editorStore.get("".concat(e,"_").concat(t))}},{key:"enableEditor",value:function(e){var t=this,r=e.konvaStage,n=e.pageNumber,o=e.annotation,i=this.findEditor(n,o.type);if(i)return i instanceof oV?void i.activateWithSignature(r,o,this.tempDataTransfer):i instanceof bV?void i.activateWithStamp(r,o,this.tempDataTransfer):void i.activate(r,o);var a=null;switch(o.type){case To.FREETEXT:a=new kU({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(){}});break;case To.RECTANGLE:a=new WU({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}});break;case To.ARROW:a=new NG({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}});break;case To.CLOUD:a=new KG({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}});break;case To.CIRCLE:a=new AL({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}});break;case To.NOTE:a=new RV({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(){}});break;case To.FREEHAND:a=new DL({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}});break;case To.FREE_HIGHLIGHT:a=new KL({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}});break;case To.SIGNATURE:a=new oV({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(){}},this.tempDataTransfer);break;case To.STAMP:a=new bV({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(){}},this.tempDataTransfer);break;case To.HIGHLIGHT:case To.UNDERLINE:case To.STRIKEOUT:a=new IU({userName:this.userName,pdfViewerApplication:this.pdfViewerApplication,konvaStage:r,pageNumber:n,annotation:o,onAdd:function(e){t.saveToStore(e)},onChange:function(e,r){t.updateStore(e,r)}},o.type);break;case To.SELECT:this.selector.activate(n);break;default:return void console.warn("未实现的批注类型: ".concat(o.type))}a&&this.editorStore.set(a.id,a)}},{key:"enablePainting",value:function(){var e=this;this.konvaCanvasStore.forEach((function(t){var r=t.konvaStage,n=t.pageNumber;e.currentAnnotation&&e.enableEditor({konvaStage:r,pageNumber:n,annotation:e.currentAnnotation})}))}},{key:"reDrawAnnotation",value:function(e){var t=this,r=this.konvaCanvasStore.get(e);this.store.getByPage(e).forEach((function(n){var o=t.findEditor(e,n.type);if(!o){var i=Po.find((function(e){return e.type===n.type}));t.enableEditor({konvaStage:r.konvaStage,pageNumber:e,annotation:i}),o=t.findEditor(e,n.type)}o&&o.addSerializedGroupToLayer(r.konvaStage,n.konvaString)}))}},{key:"deleteAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.store.annotation(e),n=this.konvaCanvasStore.get(r.pageNumber);if(r){this.store.delete(e);var o=this.findEditor(r.pageNumber,r.type);o&&o.deleteGroup(e,n.konvaStage),t&&this.onStoreDelete(e)}}},{key:"disablePainting",value:function(){this.setMode("default"),this.clearTempDataTransfer(),this.selector.clear(),console.log("Painting mode disabled")}},{key:"saveTempDataTransfer",value:function(e){return this.tempDataTransfer=e,this.tempDataTransfer}},{key:"clearTempDataTransfer",value:function(){return this.tempDataTransfer=null,this.tempDataTransfer}},{key:"initCanvas",value:function(e){var t=e.pageView,r=e.cssTransform,n=e.pageNumber;r?this.scaleCanvas(t,n):this.insertCanvas(t,n)}},{key:"initWebSelection",value:function(e){this.webSelection.create(e)}},{key:"activate",value:function(e,t){if(this.currentAnnotation=e,this.disablePainting(),this.saveTempDataTransfer(t),e){switch(console.log("Painting mode active type: ".concat(e.type," | pdfjs annotationStorage type: ").concat(e.pdfjsEditorType)),e.type){case To.FREETEXT:case To.RECTANGLE:case To.CIRCLE:case To.FREEHAND:case To.FREE_HIGHLIGHT:case To.SIGNATURE:case To.STAMP:case To.SELECT:case To.NOTE:case To.ARROW:case To.CLOUD:this.setMode("painting");break;default:this.setMode("default")}this.enablePainting()}}},{key:"resetPdfjsAnnotationStorage",value:function(){}},{key:"highlightRange",value:function(e,t){this.currentAnnotation=t,this.webSelection.highlight(e)}},{key:"selectAnnotation",value:function(e){this.setDefaultMode(),this.selector.select(e)}},{key:"initAnnotations",value:(t=JG(ZG().mark((function e(t,r){var n,o=this;return ZG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=8;break}return e.next=3,this.transform.decodePdfAnnotation();case 3:(n=e.sent).forEach((function(e){o.saveToStore(e,!0)})),t.forEach((function(e){n.has(e.id)?o.updateStore(e.id,e):o.saveToStore(e,!0)})),e.next=9;break;case 8:t.forEach((function(e){o.saveToStore(e,!0)}));case 9:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"update",value:function(e,t){this.store.update(e,t)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.selector.delete(),this.deleteAnnotation(e,t)}},{key:"highlight",value:(e=JG(ZG().mark((function e(t){var r,n,o,i,a,s,l,c,u,d=this;return ZG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.pdfViewerApplication.pdfViewer.getPageView(t.pageNumber),n=t.konvaClientRect,o=n.x,i=n.y,a=r.viewport.convertToPdfPoint(o,i),s=YG(a,2),l=s[0],c=s[1],this.pdfViewerApplication.pdfViewer.scrollPageIntoView({pageNumber:t.pageNumber,destArray:[null,{name:"XYZ"},l,c,null],allowNegativeOffset:!0}),(u=function(e){d.findEditor(t.pageNumber,t.type)?(d.setDefaultMode(),d.selector.select(t.id),d.currentAnnotation&&d.currentAnnotation.type===To.SELECT&&d.selector.activate(t.pageNumber)):e>0?setTimeout((function(){u(e-1)}),200):console.error("Failed to find editor after maximum retries.")})(5);case 8:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"getData",value:function(){return this.store.annotations}},{key:"updateAnnotationStyle",value:function(e,t){var r=this.findEditorForGroupId(e.id);r&&r.updateStyle(e,t)}}]);var e,t}(),oq=o(7830),iq={};iq.styleTagTransform=f(),iq.setAttributes=l(),iq.insert=a().bind(null,"head"),iq.domAPI=n(),iq.insertStyleElement=u(),t()(oq.A,iq),oq.A&&oq.A.locals&&oq.A.locals;const aq={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 sq=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:aq}))};const lq=m.forwardRef(sq);var cq=function(e){if(Tt()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],r=window.document.documentElement;return t.some((function(e){return e in r.style}))}return!1};function uq(e,t){return Array.isArray(e)||void 0===t?cq(e):function(e,t){if(!cq(e))return!1;var r=document.createElement("div"),n=r.style[e];return r.style[e]=t,r.style[e]!==n}(e,t)}const dq={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 fq=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:dq}))};const hq=m.forwardRef(fq),pq=e=>{const t={};return[1,2,3,4,5].forEach((r=>{t[`\n h${r}&,\n div&-h${r},\n div&-h${r} > textarea,\n h${r}\n `]=((e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:i}=n;return{marginBottom:o,color:r,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)})),t},mq=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},ac(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},gq=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:tt[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}}),vq=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Si(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},bq=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),yq=e=>{const{componentCls:t,titleMarginTop:r}=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,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},pq(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:r},"\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:r}}}),gq(e)),mq(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},ac(e)),{marginInlineStart:e.marginXXS})}),vq(e)),bq(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"}})}},wq=Iu("Typography",(e=>[yq(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),xq=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:h=m.createElement(hq,null)}=e,p=m.useRef(null),g=m.useRef(!1),v=m.useRef(null),[b,y]=m.useState(l);m.useEffect((()=>{y(l)}),[l]),m.useEffect((()=>{var e;if(null===(e=p.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=p.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{c(b.trim())},[x,S,C]=wq(t),k=ze()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i,[`${t}-${f}`]:!!f},n,S,C);return x(m.createElement("div",{className:k,style:o},m.createElement(rB,{ref:p,maxLength:a,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:r,altKey:n,metaKey:o,shiftKey:i}=e;v.current!==t||g.current||r||n||o||i||(t===$c.ENTER?(w(),null==d||d()):t===$c.ESC&&u())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{w()},"aria-label":r,rows:1,autoSize:s}),null!==h?th(h,{className:`${t}-edit-content-confirm`}):null))};var Sq=o(7965),Cq=o.n(Sq);const kq=e=>{let{copyConfig:t,children:r}=e;const[n,o]=m.useState(!1),[i,a]=m.useState(!1),s=m.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),m.useEffect((()=>l),[]);const u=Ws((e=>{return n=void 0,i=void 0,d=function*(){var n;null==e||e.preventDefault(),null==e||e.stopPropagation(),a(!0);try{const i="function"==typeof t.text?yield t.text():t.text;Cq()(i||function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&null==e?[]:Array.isArray(e)?e:[e]}(r,!0).join("")||"",c),a(!1),o(!0),l(),s.current=setTimeout((()=>{o(!1)}),3e3),null===(n=t.onCopy)||void 0===n||n.call(t,e)}catch(e){throw a(!1),e}},new((u=void 0)||(u=Promise))((function(e,t){function r(e){try{a(d.next(e))}catch(e){t(e)}}function o(e){try{a(d.throw(e))}catch(e){t(e)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof u?n:new u((function(e){e(n)}))).then(r,o)}a((d=d.apply(n,i||[])).next())}));var n,i,u,d}));return{copied:n,copyLoading:i,onClick:u}};function Eq(e,t){return m.useMemo((()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&"object"==typeof e?e:null)]}),[e])}const Oq=m.forwardRef(((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:c}=e,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:h,style:p}=Zo("typography"),g=null!=l?l:f,v=a?Cn(t,a):t,b=d("typography",r),[y,w,x]=wq(b),S=ze()(b,h,{[`${b}-rtl`]:"rtl"===g},o,i,w,x),C=Object.assign(Object.assign({},p),c);return y(m.createElement(n,Object.assign({className:S,style:C,ref:v},u),s))})),Aq=Oq,Tq={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 jq=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Tq}))};const Pq=m.forwardRef(jq);function Mq(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Rq(e,t,r){return!0===e||void 0===e?t:e||r&&t}const _q=e=>["string","number"].includes(typeof e),Iq=e=>{let{prefixCls:t,copied:r,locale:n,iconOnly:o,tooltips:i,icon:a,tabIndex:s,onCopy:l,loading:c}=e;const u=Mq(i),d=Mq(a),{copied:f,copy:h}=null!=n?n:{},p=r?f:h,g=Rq(u[r?1:0],p),v="string"==typeof g?g:p;return m.createElement(im,{title:g},m.createElement("button",{type:"button",className:ze()(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:o}),onClick:l,"aria-label":v,tabIndex:s},r?Rq(d[1],m.createElement($b,null),!0):Rq(d[0],c?m.createElement(Xc,null):m.createElement(Pq,null),!0)))},Nq=m.forwardRef(((e,t)=>{let{style:r,children:n}=e;const o=m.useRef(null);return m.useImperativeHandle(t,(()=>({isExceed:()=>{const e=o.current;return e.scrollHeight>e.clientHeight},getHeight:()=>o.current.clientHeight}))),m.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)}));function Fq(e,t){let r=0;const n=[];for(let o=0;o<e.length;o+=1){if(r===t)return n;const i=e[o],a=r+(_q(i)?String(i).length:1);if(a>t){const e=t-r;return n.push(String(i).slice(0,e)),n}n.push(i),r=a}return e}const Dq=0,Bq=4,Lq={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function zq(e){const{enableMeasure:t,width:r,text:n,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,c=m.useMemo((()=>sd(n)),[n]),u=m.useMemo((()=>(e=>e.reduce(((e,t)=>e+(_q(t)?String(t).length:1)),0))(c)),[n]),d=m.useMemo((()=>o(c,!1)),[n]),[f,h]=m.useState(null),p=m.useRef(null),g=m.useRef(null),v=m.useRef(null),b=m.useRef(null),y=m.useRef(null),[w,x]=m.useState(!1),[S,C]=m.useState(Dq),[k,E]=m.useState(0),[O,A]=m.useState(null);Pi((()=>{C(t&&r&&u?1:Dq)}),[r,n,i,t,c]),Pi((()=>{var e,t,r,n;if(1===S){C(2);const e=g.current&&getComputedStyle(g.current).whiteSpace;A(e)}else if(2===S){const o=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());C(o?3:Bq),h(o?[0,u]:null),x(o);const a=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,s=1===i?0:(null===(r=b.current)||void 0===r?void 0:r.getHeight())||0,c=(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,d=Math.max(a,s+c);E(d+1),l(o)}}),[S]);const T=f?Math.ceil((f[0]+f[1])/2):0;Pi((()=>{var e;const[t,r]=f||[0,0];if(t!==r){const n=((null===(e=p.current)||void 0===e?void 0:e.getHeight())||0)>k;let o=T;r-t===1&&(o=n?t:r),h(n?[t,o]:[o,r])}}),[f,T]);const j=m.useMemo((()=>{if(!t)return o(c,!1);if(3!==S||!f||f[0]!==f[1]){const e=o(c,!1);return[Bq,Dq].includes(S)?e:m.createElement("span",{style:Object.assign(Object.assign({},Lq),{WebkitLineClamp:i})},e)}return o(a?c:Fq(c,f[0]),w)}),[a,S,f,c].concat(Vo(s))),P={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return m.createElement(m.Fragment,null,j,2===S&&m.createElement(m.Fragment,null,m.createElement(Nq,{style:Object.assign(Object.assign(Object.assign({},P),Lq),{WebkitLineClamp:i}),ref:v},d),m.createElement(Nq,{style:Object.assign(Object.assign(Object.assign({},P),Lq),{WebkitLineClamp:i-1}),ref:b},d),m.createElement(Nq,{style:Object.assign(Object.assign(Object.assign({},P),Lq),{WebkitLineClamp:1}),ref:y},o([],!0))),3===S&&f&&f[0]!==f[1]&&m.createElement(Nq,{style:Object.assign(Object.assign({},P),{top:400}),ref:p},o(Fq(c,T),!0)),1===S&&m.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const Hq=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:o}=e;return(null==o?void 0:o.title)&&t?m.createElement(im,Object.assign({open:!!r&&void 0},o),n):n};const Uq=m.forwardRef(((e,t)=>{var r;const{prefixCls:n,className:o,style:i,type:a,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:h}=e,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=m.useContext(Xo),[b]=Gv("Text"),y=m.useRef(null),w=m.useRef(null),x=g("typography",n),S=kf(p,["mark","code","delete","underline","strong","keyboard","italic"]),[C,k]=Eq(u),[E,O]=Ks(!1,{value:k.editing}),{triggerType:A=["icon"]}=k,T=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),O(e)},j=(e=>{const t=(0,m.useRef)(void 0);return(0,m.useEffect)((()=>{t.current=e})),t.current})(E);Pi((()=>{var e;!E&&j&&(null===(e=w.current)||void 0===e||e.focus())}),[E]);const P=e=>{null==e||e.preventDefault(),T(!0)},[M,R]=Eq(d),{copied:_,copyLoading:I,onClick:N}=kq({copyConfig:R,children:l}),[F,D]=m.useState(!1),[B,L]=m.useState(!1),[z,H]=m.useState(!1),[U,V]=m.useState(!1),[W,G]=m.useState(!0),[q,K]=Eq(c,{expandable:!1,symbol:e=>e?null==b?void 0:b.collapse:null==b?void 0:b.expand}),[X,Y]=Ks(K.defaultExpanded||!1,{value:K.expanded}),$=q&&(!X||"collapsible"===K.expandable),{rows:Z=1}=K,Q=m.useMemo((()=>$&&(void 0!==K.suffix||K.onEllipsis||K.expandable||C||M)),[$,K,C,M]);Pi((()=>{q&&!Q&&(D(uq("webkitLineClamp")),L(uq("textOverflow")))}),[Q,q]);const[J,ee]=m.useState($),te=m.useMemo((()=>!Q&&(1===Z?B:F)),[Q,B,F]);Pi((()=>{ee(te&&$)}),[te,$]);const re=$&&(J?U:z),ne=$&&1===Z&&J,oe=$&&Z>1&&J,[ie,ae]=m.useState(0),se=e=>{var t;H(e),z!==e&&(null===(t=K.onEllipsis)||void 0===t||t.call(K,e))};m.useEffect((()=>{const e=y.current;if(q&&J&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}(e);U!==t&&V(t)}}),[q,J,l,oe,W,ie]),m.useEffect((()=>{const e=y.current;if("undefined"==typeof IntersectionObserver||!e||!J||!$)return;const t=new IntersectionObserver((()=>{G(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[J,$]);const le=((e,t,r)=>(0,m.useMemo)((()=>!0===e?{title:null!=t?t:r}:(0,m.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:r},e):{title:e}),[e,t,r]))(K.tooltip,k.text,l),ce=m.useMemo((()=>{if(q&&!J)return[k.text,l,h,le.title].find(_q)}),[q,J,h,le.title,re]);if(E)return m.createElement(xq,{value:null!==(r=k.text)&&void 0!==r?r:"string"==typeof l?l:"",onSave:e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),T(!1)},onCancel:()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),T(!1)},onEnd:k.onEnd,prefixCls:x,className:o,style:i,direction:v,component:f,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const ue=()=>{const{expandable:e,symbol:t}=K;return e?m.createElement("button",{type:"button",key:"expand",className:`${x}-${X?"collapse":"expand"}`,onClick:e=>((e,t)=>{var r;Y(t.expanded),null===(r=K.onExpand)||void 0===r||r.call(K,e,t)})(e,{expanded:!X}),"aria-label":X?b.collapse:null==b?void 0:b.expand},"function"==typeof t?t(X):t):null},de=()=>{if(!C)return;const{icon:e,tooltip:t,tabIndex:r}=k,n=sd(t)[0]||(null==b?void 0:b.edit),o="string"==typeof n?n:"";return A.includes("icon")?m.createElement(im,{key:"edit",title:!1===t?"":n},m.createElement("button",{type:"button",ref:w,className:`${x}-edit`,onClick:P,"aria-label":o,tabIndex:r},e||m.createElement(lq,{role:"button"}))):null},fe=e=>[e&&ue(),de(),M?m.createElement(Iq,Object.assign({key:"copy"},R,{prefixCls:x,copied:_,locale:b,onCopy:N,loading:I,iconOnly:null==l})):null];return m.createElement(Hh,{onResize:e=>{let{offsetWidth:t}=e;ae(t)},disabled:!$},(r=>m.createElement(Hq,{tooltipProps:le,enableEllipsis:$,isEllipsis:re},m.createElement(Aq,Object.assign({className:ze()({[`${x}-${a}`]:a,[`${x}-disabled`]:s,[`${x}-ellipsis`]:q,[`${x}-ellipsis-single-line`]:ne,[`${x}-ellipsis-multiple-line`]:oe},o),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:oe?Z:void 0}),component:f,ref:Cn(r,y,t),direction:v,onClick:A.includes("text")?P:void 0,"aria-label":null==ce?void 0:ce.toString(),title:h},S),m.createElement(zq,{enableMeasure:$&&!J,text:l,rows:Z,width:ie,onEllipsis:se,expanded:X,miscDeps:[_,X,I,C,M,b]},((t,r)=>function(e,t){let{mark:r,code:n,underline:o,delete:i,strong:a,keyboard:s,italic:l}=e,c=t;function u(e,t){t&&(c=m.createElement(e,{},c))}return u("strong",a),u("u",o),u("del",i),u("code",n),u("mark",r),u("kbd",s),u("i",l),c}(e,m.createElement(m.Fragment,null,t.length>0&&r&&!X&&ce?m.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!X&&m.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),K.suffix,fe(e)])(r)))))))))})),Vq=Uq;const Wq=m.forwardRef(((e,t)=>{var{ellipsis:r,rel:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:void 0===n&&"_blank"===o.target?"noopener noreferrer":n});return delete i.navigate,m.createElement(Vq,Object.assign({},i,{ref:t,ellipsis:!!r,component:"a"}))})),Gq=m.forwardRef(((e,t)=>m.createElement(Vq,Object.assign({ref:t},e,{component:"div"}))));const qq=(e,t)=>{var{ellipsis:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["ellipsis"]);const o=m.useMemo((()=>r&&"object"==typeof r?kf(r,["expandable","rows"]):r),[r]);return m.createElement(Vq,Object.assign({ref:t},n,{ellipsis:o,component:"span"}))},Kq=m.forwardRef(qq);const Xq=[1,2,3,4,5],Yq=m.forwardRef(((e,t)=>{const{level:r=1}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["level"]),o=Xq.includes(r)?`h${r}`:"h1";return m.createElement(Vq,Object.assign({ref:t},n,{component:o}))})),$q=Aq;$q.Text=Kq,$q.Link=Wq,$q.Title=Yq,$q.Paragraph=Gq;const Zq=$q,Qq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"};var Jq=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:Qq}))};const eK=m.forwardRef(Jq),tK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z"}}]},name:"dislike",theme:"outlined"};var rK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:tK}))};const nK=m.forwardRef(rK),oK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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:"minus-circle",theme:"outlined"};var iK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:oK}))};const aK=m.forwardRef(iK),sK={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 lK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:sK}))};const cK=m.forwardRef(lK),uK={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 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};var dK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:uK}))};const fK=m.forwardRef(dK),hK={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 pK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:hK}))};const mK=m.forwardRef(pK),gK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};var vK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:gK}))};const bK=m.forwardRef(vK),yK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};var wK=function(e,t){return m.createElement(ur,Te({},e,{ref:t,icon:yK}))};const xK=m.forwardRef(wK);function SK(e){return SK="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},SK(e)}function CK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kK(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?CK(Object(r),!0).forEach((function(t){jK(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CK(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function EK(e){return function(e){if(Array.isArray(e))return TK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AK(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 OK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||AK(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 AK(e,t){if(e){if("string"==typeof e)return TK(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?TK(e,t):void 0}}function TK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jK(e,t,r){return(t=function(e){var t=function(e){if("object"!=SK(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=SK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==SK(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PK=Zq.Text,MK={Circle:(0,Mn.jsx)(lo,{}),FreeText:(0,Mn.jsx)(ao,{}),Ink:(0,Mn.jsx)(co,{}),Highlight:(0,Mn.jsx)(no,{}),Underline:(0,Mn.jsx)(io,{}),Squiggly:(0,Mn.jsx)(uo,{}),StrikeOut:(0,Mn.jsx)(oo,{}),Stamp:(0,Mn.jsx)(ho,{}),Line:(0,Mn.jsx)(co,{}),Square:(0,Mn.jsx)(so,{}),Polygon:(0,Mn.jsx)(co,{}),PolyLine:(0,Mn.jsx)(xo,{}),Caret:(0,Mn.jsx)(fo,{}),Link:(0,Mn.jsx)(co,{}),Text:(0,Mn.jsx)(bo,{}),FileAttachment:(0,Mn.jsx)(vo,{}),Popup:(0,Mn.jsx)(co,{}),Widget:(0,Mn.jsx)(co,{}),Note:(0,Mn.jsx)(bo,{}),Arrow:(0,Mn.jsx)(wo,{})},RK=jK(jK(jK(jK(jK(jK({},jo.Accepted,{labelKey:"comment.status.accepted",icon:(0,Mn.jsx)(eK,{})}),jo.Rejected,{labelKey:"comment.status.rejected",icon:(0,Mn.jsx)(nK,{})}),jo.Cancelled,{labelKey:"comment.status.cancelled",icon:(0,Mn.jsx)(aK,{})}),jo.Completed,{labelKey:"comment.status.completed",icon:(0,Mn.jsx)(cK,{})}),jo.Closed,{labelKey:"comment.status.closed",icon:(0,Mn.jsx)(fK,{})}),jo.None,{labelKey:"comment.status.none",icon:(0,Mn.jsx)(mK,{})}),_K=function(e){var t,r=(t=e.subtype,MK[t]||null);return r?(0,Mn.jsx)("span",{className:"annotation-icon",children:r}):null},IK=oB.TextArea,NK=(0,m.forwardRef)((function(e,t){var r=OK((0,m.useState)([]),2),n=r[0],o=r[1],i=OK((0,m.useState)(null),2),a=i[0],s=i[1],l=OK((0,m.useState)(null),2),c=l[0],u=l[1],d=OK((0,m.useState)(null),2),f=d[0],h=d[1],p=OK((0,m.useState)(null),2),g=p[0],v=p[1],b=OK((0,m.useState)([]),2),y=b[0],w=b[1],x=OK((0,m.useState)([]),2),S=x[0],C=x[1],k=ke().t,E=(0,m.useRef)({});(0,m.useImperativeHandle)(t,(function(){return{addAnnotation:O,delAnnotation:A,selectedAnnotation:T,updateAnnotation:j}}));var O=function(e){o((function(t){return[].concat(EK(t),[e])})),s(null)},A=function(e){o((function(t){return t.filter((function(t){return t.id!==e}))})),(null==a?void 0:a.id)===e&&s(null),(null==c?void 0:c.id)===e&&u(null),h(null)},T=function(t,r){if(s(t),r){var n=t.title===e.userName,o=""===t.contentsObj.text;n&&o?v(t):u(t);var i=E.current[t.id];i&&i.scrollIntoView({behavior:"smooth",block:"center"})}},j=function(e){o((function(t){return t.map((function(t){return t.id===e.id?kK(kK({},t),{},{konvaClientRect:e.konvaClientRect,date:XN(Date.now())}):t}))})),v(null)},P=(0,m.useMemo)((function(){var e=new Map;return n.forEach((function(t){e.set(t.title,(e.get(t.title)||0)+1)})),Array.from(e.entries())}),[n]),M=(0,m.useMemo)((function(){var e=new Map;return n.forEach((function(t){e.set(t.subtype,(e.get(t.subtype)||0)+1)})),Array.from(e.entries())}),[n]);(0,m.useEffect)((function(){w(P.map((function(e){return OK(e,1)[0]})))}),[P]),(0,m.useEffect)((function(){C(M.map((function(e){return OK(e,1)[0]})))}),[M]);var R=(0,m.useMemo)((function(){return 0===y.length||0===S.length?[]:n.filter((function(e){return y.includes(e.title)&&S.includes(e.subtype)}))}),[n,y,S]),_=(0,m.useMemo)((function(){return R.reduce((function(e,t){return e[t.pageNumber]||(e[t.pageNumber]=[]),e[t.pageNumber].push(t),e}),{})}),[R]),I=(0,Mn.jsxs)("div",{className:"CustomComment_filterContent",children:[(0,Mn.jsx)("div",{className:"title",children:k("normal.author")}),(0,Mn.jsx)("ul",{children:P.map((function(e){var t=OK(e,2),r=t[0],n=t[1];return(0,Mn.jsx)("li",{children:(0,Mn.jsx)(gB,{checked:y.includes(r),onChange:function(){return e=r,void w((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):[].concat(EK(t),[e])}));var e},children:(0,Mn.jsxs)(SS,{children:[(0,Mn.jsx)(PK,{ellipsis:!0,style:{maxWidth:200},children:r}),(0,Mn.jsxs)(PK,{type:"secondary",children:["(",n,")"]})]})})},r)}))}),(0,Mn.jsx)("div",{className:"title",children:k("normal.type")}),(0,Mn.jsx)("ul",{children:M.map((function(e){var t=OK(e,2),r=t[0],n=t[1];return(0,Mn.jsx)("li",{children:(0,Mn.jsx)(gB,{checked:S.includes(r),onChange:function(){return function(e){C((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):[].concat(EK(t),[e])}))}(r)},children:(0,Mn.jsxs)(SS,{children:[(0,Mn.jsx)(_K,{subtype:r}),(0,Mn.jsxs)(PK,{type:"secondary",children:["(",n,")"]})]})})},r)}))}),(0,Mn.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,Mn.jsx)(AC,{type:"link",onClick:function(){w(P.map((function(e){return OK(e,1)[0]}))),C(M.map((function(e){return OK(e,1)[0]})))},children:k("normal.selectAll")}),(0,Mn.jsx)(AC,{type:"link",onClick:function(){w([]),C([])},children:k("normal.clear")})]})]}),N=function(e){var t,r,n,o=EK(e.comments||[]).reverse().find((function(e){return void 0!==e.status&&null!==e.status})),i=null!==(t=null==o?void 0:o.status)&&void 0!==t?t:jo.None;return null!==(r=null===(n=RK[i])||void 0===n?void 0:n.icon)&&void 0!==r?r:RK[jo.None].icon},F=function(t,r,n){var i={id:UN(),title:e.userName,date:XN(Date.now()),content:r,status:n};o((function(r){return r.map((function(r){if(r.id===t.id){var n=kK(kK({},r),{},{comments:[].concat(EK(r.comments||[]),[i]),date:XN(Date.now())});return e.onUpdate(n),n}return r}))})),u(null)},D=(0,m.useCallback)((function(t){var r="";if(g&&(null==a?void 0:a.id)===t.id){var n=function(){!function(t,r){t.contentsObj.text=r,e.onUpdate(t)}(t,r),v(null)};return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(IK,{defaultValue:t.contentsObj.text,autoFocus:!0,rows:4,style:{marginBottom:"8px",marginTop:"8px"},onBlur:function(){return v(null)},onChange:function(e){return r=e.target.value},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),n())}}),(0,Mn.jsx)(AC,{type:"primary",block:!0,onMouseDown:n,children:k("normal.confirm")})]})}return(0,Mn.jsx)(Gq,{style:{margin:"8px 0 8px 15px"},ellipsis:{rows:3,expandable:!0,symbol:k("normal.more")},children:t.contentsObj.text})}),[g,a]),B=(0,m.useCallback)((function(e){var t="";if(c&&(null==a?void 0:a.id)===e.id){var r=function(){F(e,t),u(null)};return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(IK,{autoFocus:!0,rows:4,style:{marginBottom:"8px",marginTop:"8px"},onBlur:function(){return u(null)},onChange:function(e){return t=e.target.value},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),r())}}),(0,Mn.jsx)(AC,{type:"primary",block:!0,onMouseDown:r,children:k("normal.confirm")})]})}return null}),[c,a]),L=(0,m.useCallback)((function(t,r){var n="";if(f&&f.id===r.id){var o=function(){!function(t,r,n){r.date=XN(Date.now()),r.content=n,r.title=e.userName,e.onUpdate(t)}(t,r,n),h(null)};return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(IK,{defaultValue:f.content,autoFocus:!0,rows:4,style:{marginBottom:"8px"},onBlur:function(){return h(null)},onChange:function(e){return n=e.target.value},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),o())}}),(0,Mn.jsx)(AC,{type:"primary",block:!0,onMouseDown:o,children:k("normal.confirm")})]})}return(0,Mn.jsx)("p",{children:r.content})}),[c,f]),z=Object.entries(_).map((function(t){var r=OK(t,2),n=r[0],i=r[1],l=i.sort((function(e,t){return e.konvaClientRect.y-t.konvaClientRect.y}));return(0,Mn.jsxs)("div",{className:"group",children:[(0,Mn.jsxs)("h3",{children:[k("comment.page",{value:n}),(0,Mn.jsx)("span",{children:k("comment.total",{value:i.length})})]}),l.map((function(t){var r,n={className:t.id===(null==a?void 0:a.id)?"comment selected":"comment",id:"annotation-".concat(t.id)};return(0,m.createElement)("div",kK(kK({},n),{},{key:t.id,onClick:function(){return function(t){s(t),e.onSelected(t)}(t)},ref:function(e){return E.current[t.id]=e}}),(0,Mn.jsxs)("div",{className:"title",children:[(0,Mn.jsx)(_K,{subtype:t.subtype}),(0,Mn.jsxs)("div",{className:"username",children:[t.title,(0,Mn.jsx)("span",{children:YN(t.date,!0)})]}),(0,Mn.jsxs)("span",{className:"tool",children:[(0,Mn.jsx)(sU,{menu:{items:Object.entries(RK).map((function(e){var r=OK(e,2),n=r[0],o=r[1];return{key:n,label:k(o.labelKey),icon:o.icon,onClick:function(e){F(t,k("comment.statusText",{value:k(o.labelKey)}),e.key),u(null)}}}))},trigger:["click"],children:(0,Mn.jsx)("span",{className:"icon",children:N(t)})}),(0,Mn.jsx)(sU,{menu:{items:[{label:k("normal.reply"),key:"0",onClick:function(e){e.domEvent.stopPropagation(),u(t)}},{label:k("normal.edit"),key:"1",onClick:function(e){e.domEvent.stopPropagation(),v(t)}},{label:k("normal.delete"),key:"3",onClick:function(r){r.domEvent.stopPropagation(),function(t){o((function(e){return e.filter((function(e){return e.id!==t.id}))})),(null==a?void 0:a.id)===t.id&&s(null),(null==c?void 0:c.id)===t.id&&u(null),h(null),e.onDelete(t.id)}(t)}}]},trigger:["click"],children:(0,Mn.jsx)("span",{className:"icon",children:(0,Mn.jsx)(bK,{})})})]})]}),D(t),null===(r=t.comments)||void 0===r?void 0:r.map((function(r,n){return(0,Mn.jsxs)("div",{className:"reply",children:[(0,Mn.jsxs)("div",{className:"title",children:[(0,Mn.jsxs)("div",{className:"username",children:[" ",r.title,(0,Mn.jsx)("span",{children:YN(r.date,!0)})]}),(0,Mn.jsx)("span",{className:"tool",children:(0,Mn.jsx)(sU,{menu:{items:[{label:k("normal.edit"),key:"1",onClick:function(e){e.domEvent.stopPropagation(),h(r)}},{label:k("normal.delete"),key:"2",onClick:function(n){n.domEvent.stopPropagation(),function(t,r){var n=null;o((function(e){return e.map((function(e){if(e.id===t.id){var o=e.comments.filter((function(e){return e.id!==r.id}));return n=kK(kK({},e),{},{comments:o})}return e}))})),(null==f?void 0:f.id)===r.id&&h(null),n&&e.onUpdate(n)}(t,r)}}]},trigger:["click"],children:(0,Mn.jsx)("span",{className:"icon",children:(0,Mn.jsx)(bK,{})})})})]}),L(t,r)]},n)})),(0,Mn.jsxs)("div",{className:"reply-input",children:[B(t),!c&&!f&&!g&&(null==a?void 0:a.id)===t.id&&(0,Mn.jsx)(AC,{style:{marginTop:"8px"},onClick:function(){return u(t)},type:"primary",block:!0,children:k("normal.reply")})]}))}))]},n)}));return(0,Mn.jsxs)("div",{className:"CustomComment",onScroll:function(){e.onScroll&&e.onScroll()},children:[(0,Mn.jsx)("div",{className:"filters",children:(0,Mn.jsx)(hm,{content:I,trigger:"click",placement:"bottomLeft",children:(0,Mn.jsx)(AC,{size:"small",icon:(0,Mn.jsx)(xK,{})})})}),(0,Mn.jsx)("div",{className:"list",children:z})]})}));function FK(e){return FK="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},FK(e)}function DK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BK(n.key),n)}}function BK(e){var t=function(e){if("object"!=FK(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=FK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==FK(t)?t:t+""}var LK=function(){return function(e,t){return t&&DK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfDoc=t,this.page=r,this.annotation=n}),[{key:"addAnnotationToPage",value:function(e,t){var r=e.node.lookup(Dj.of("Annots"));r?r.push(t):e.node.set(Dj.of("Annots"),e.doc.context.obj([t]))}}])}();function zK(e){return zK="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},zK(e)}function HK(){HK=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==zK(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(zK(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function UK(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return VK(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?VK(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function VK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function WK(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function GK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qK(n.key),n)}}function qK(e){var t=function(e){if("object"!=zK(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=zK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zK(t)?t:t+""}function KK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KK=function(){return!!e})()}function XK(e){return XK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XK(e)}function YK(e,t){return YK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YK(e,t)}var $K=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=XK(t),function(e,t){if(t&&("object"==zK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,KK()?Reflect.construct(t,r||[],XK(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&YK(e,t)}(t,e),function(e,t){return t&&GK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=HK().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h;return HK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.annotation,n=this.page,o=this.pdfDoc,i=ZN(r.konvaClientRect,n.getHeight()),a=o.context,s=a.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:i,NM:IP.of(r.id),Contents:QN((null===(t=r.contentsObj)||void 0===t?void 0:t.text)||""),Name:Dj.of("Comment"),T:QN(r.title||le("normal.unknownUser")),M:IP.of(r.date),C:HN(r.color),Open:!1}),l=a.register(s),this.addAnnotationToPage(n,l),c=UK(r.comments||[]);try{for(c.s();!(u=c.n()).done;)d=u.value,f=a.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:i,Contents:QN(d.content),T:QN(d.title||le("normal.unknownUser")),M:IP.of(d.date),C:HN(r.color),IRT:l,RT:Dj.of("R"),NM:IP.of(d.id),Open:!1}),h=a.register(f),this.addAnnotationToPage(n,h)}catch(e){c.e(e)}finally{c.f()}case 8:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){WK(i,n,o,a,s,"next",e)}function s(e){WK(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK),ZK=o(4974),QK=o.n(ZK),JK=o(4213);function eX(e){return eX="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},eX(e)}function tX(){tX=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==eX(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(eX(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function rX(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return nX(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nX(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function nX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function oX(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function iX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aX(n.key),n)}}function aX(e){var t=function(e){if("object"!=eX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=eX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eX(t)?t:t+""}function sX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sX=function(){return!!e})()}function lX(e){return lX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lX(e)}function cX(e,t){return cX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cX(e,t)}var uX=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=lX(t),function(e,t){if(t&&("object"==eX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sX()?Reflect.construct(t,r||[],lX(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&cX(e,t)}(t,e),function(e,t){return t&&iX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=tX().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A;return tX().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.annotation,r=this.page,n=this.pdfDoc,o=n.context,i=r.getHeight(),a=JSON.parse(t.konvaString),s=a.children.filter((function(e){return"Rect"===e.className})),l=[],c=rX(s);try{for(c.s();!(u=c.n()).done;)d=u.value,f=d.attrs,h=f.x,p=f.y,m=f.width,g=f.height,v=h,b=i-p,y=h+m,w=i-(p+g),l.push(v,b,y,b,v,w,y,w)}catch(e){c.e(e)}finally{c.f()}x=o.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Highlight"),Rect:ZN(t.konvaClientRect,i),QuadPoints:l,C:HN(t.color),T:QN(t.title||le("normal.unknownUser")),Contents:QN(""),M:IP.of(t.date),NM:IP.of(t.id)}),S=o.register(x),this.addAnnotationToPage(r,S),C=rX(t.comments||[]);try{for(C.s();!(k=C.n()).done;)E=k.value,O=o.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(t.konvaClientRect,i),Contents:QN(E.content),T:QN(E.title||le("normal.unknownUser")),M:IP.of(E.date),C:HN(t.color),IRT:S,RT:Dj.of("R"),NM:IP.of(E.id),Open:!1}),A=o.register(O),this.addAnnotationToPage(r,A)}catch(e){C.e(e)}finally{C.f()}case 13:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){oX(i,n,o,a,s,"next",e)}function s(e){oX(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function dX(e){return dX="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},dX(e)}function fX(){fX=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==dX(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(dX(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function hX(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return pX(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pX(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function pX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mX(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function gX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vX(n.key),n)}}function vX(e){var t=function(e){if("object"!=dX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=dX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dX(t)?t:t+""}function bX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bX=function(){return!!e})()}function yX(e){return yX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yX(e)}function wX(e,t){return wX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wX(e,t)}var xX=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=yX(t),function(e,t){if(t&&("object"==dX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bX()?Reflect.construct(t,r||[],yX(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&wX(e,t)}(t,e),function(e,t){return t&&gX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=fX().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T;return fX().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.annotation,n=this.page,o=this.pdfDoc,i=o.context,a=n.getHeight(),s=JSON.parse(r.konvaString),l=s.children.filter((function(e){return"Rect"===e.className})),c=[],u=hX(l);try{for(u.s();!(d=u.n()).done;)f=d.value,h=f.attrs,p=h.x,m=h.y,g=h.width,v=h.height,b=p,y=a-m,w=p+g,x=a-(m+v),c.push(b,y,w,y,b,x,w,x)}catch(e){u.e(e)}finally{u.f()}S=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Underline"),Rect:ZN(r.konvaClientRect,a),QuadPoints:c,C:HN(r.color),T:QN(r.title||le("normal.unknownUser")),Contents:QN((null===(t=r.contentsObj)||void 0===t?void 0:t.text)||""),M:IP.of(r.date),NM:IP.of(r.id)}),C=i.register(S),this.addAnnotationToPage(n,C),k=hX(r.comments||[]);try{for(k.s();!(E=k.n()).done;)O=E.value,A=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(r.konvaClientRect,a),Contents:QN(O.content),T:QN(O.title||le("normal.unknownUser")),M:IP.of(O.date),C:HN(r.color),IRT:C,RT:Dj.of("R"),NM:IP.of(O.id),Open:!1}),T=i.register(A),this.addAnnotationToPage(n,T)}catch(e){k.e(e)}finally{k.f()}case 13:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){mX(i,n,o,a,s,"next",e)}function s(e){mX(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function SX(e){return SX="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},SX(e)}function CX(){CX=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==SX(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(SX(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function kX(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return EX(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?EX(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function EX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function OX(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function AX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TX(n.key),n)}}function TX(e){var t=function(e){if("object"!=SX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=SX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==SX(t)?t:t+""}function jX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jX=function(){return!!e})()}function PX(e){return PX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PX(e)}function MX(e,t){return MX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MX(e,t)}var RX=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=PX(t),function(e,t){if(t&&("object"==SX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jX()?Reflect.construct(t,r||[],PX(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&MX(e,t)}(t,e),function(e,t){return t&&AX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=CX().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T;return CX().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.annotation,n=this.page,o=this.pdfDoc,i=o.context,a=n.getHeight(),s=JSON.parse(r.konvaString),l=s.children.filter((function(e){return"Rect"===e.className})),c=[],u=kX(l);try{for(u.s();!(d=u.n()).done;)f=d.value,h=f.attrs,p=h.x,m=h.y,g=h.width,v=h.height,b=p,y=a-m,w=p+g,x=a-(m+v),c.push(b,y,w,y,b,x,w,x)}catch(e){u.e(e)}finally{u.f()}S=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("StrikeOut"),Rect:ZN(r.konvaClientRect,a),QuadPoints:c,C:HN(r.color),T:QN(r.title||le("normal.unknownUser")),Contents:QN((null===(t=r.contentsObj)||void 0===t?void 0:t.text)||""),M:IP.of(r.date),NM:IP.of(r.id)}),C=i.register(S),this.addAnnotationToPage(n,C),k=kX(r.comments||[]);try{for(k.s();!(E=k.n()).done;)O=E.value,A=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(r.konvaClientRect,a),Contents:QN(O.content),T:QN(O.title||le("normal.unknownUser")),M:IP.of(O.date),C:HN(r.color),IRT:C,RT:Dj.of("R"),NM:IP.of(O.id),Open:!1}),T=i.register(A),this.addAnnotationToPage(n,T)}catch(e){k.e(e)}finally{k.f()}case 13:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){OX(i,n,o,a,s,"next",e)}function s(e){OX(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function _X(e){return _X="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},_X(e)}function IX(){IX=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==_X(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(_X(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function NX(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return FX(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?FX(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function FX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DX(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function BX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LX(n.key),n)}}function LX(e){var t=function(e){if("object"!=_X(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=_X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_X(t)?t:t+""}function zX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zX=function(){return!!e})()}function HX(e){return HX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HX(e)}function UX(e,t){return UX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UX(e,t)}var VX=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=HX(t),function(e,t){if(t&&("object"==_X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zX()?Reflect.construct(t,r||[],HX(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&UX(e,t)}(t,e),function(e,t){return t&&BX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=IX().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h;return IX().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.annotation,n=this.page,o=this.pdfDoc,i=o.context,a=n.getHeight(),s=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Square"),Rect:ZN(r.konvaClientRect,a),C:HN(r.color),T:QN(r.title||le("normal.unknownUser")),Contents:QN((null===(t=r.contentsObj)||void 0===t?void 0:t.text)||""),M:IP.of(r.date),NM:IP.of(r.id),Border:[0,0,1]}),l=i.register(s),this.addAnnotationToPage(n,l),c=NX(r.comments||[]);try{for(c.s();!(u=c.n()).done;)d=u.value,f=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(r.konvaClientRect,a),Contents:QN(d.content),T:QN(d.title||le("normal.unknownUser")),M:IP.of(d.date),C:HN(r.color),IRT:l,RT:Dj.of("R"),NM:IP.of(d.id),Open:!1}),h=i.register(f),this.addAnnotationToPage(n,h)}catch(e){c.e(e)}finally{c.f()}case 8:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){DX(i,n,o,a,s,"next",e)}function s(e){DX(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function WX(e){return WX="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},WX(e)}function GX(){GX=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==WX(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(WX(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function qX(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return KX(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KX(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function KX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function XX(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function YX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$X(n.key),n)}}function $X(e){var t=function(e){if("object"!=WX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=WX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WX(t)?t:t+""}function ZX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZX=function(){return!!e})()}function QX(e){return QX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QX(e)}function JX(e,t){return JX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JX(e,t)}var eY=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=QX(t),function(e,t){if(t&&("object"==WX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ZX()?Reflect.construct(t,r||[],QX(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&JX(e,t)}(t,e),function(e,t){return t&&YX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=GX().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h;return GX().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.annotation,n=this.page,o=this.pdfDoc,i=o.context,a=n.getHeight(),s=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Circle"),Rect:ZN(r.konvaClientRect,a),C:HN(r.color),T:QN(r.title||le("normal.unknownUser")),Contents:QN((null===(t=r.contentsObj)||void 0===t?void 0:t.text)||""),M:IP.of(r.date),NM:IP.of(r.id),Border:[0,0,1]}),l=i.register(s),this.addAnnotationToPage(n,l),c=qX(r.comments||[]);try{for(c.s();!(u=c.n()).done;)d=u.value,f=i.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(r.konvaClientRect,a),Contents:QN(d.content),T:QN(d.title||le("normal.unknownUser")),M:IP.of(d.date),C:HN(r.color),IRT:l,RT:Dj.of("R"),NM:IP.of(d.id),Open:!1}),h=i.register(f),this.addAnnotationToPage(n,h)}catch(e){c.e(e)}finally{c.f()}case 8:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){XX(i,n,o,a,s,"next",e)}function s(e){XX(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function tY(e){return tY="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},tY(e)}function rY(){rY=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==tY(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(tY(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function nY(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=iY(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function oY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||iY(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 iY(e,t){if(e){if("string"==typeof e)return aY(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aY(e,t):void 0}}function aY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function sY(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function lY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cY(n.key),n)}}function cY(e){var t=function(e){if("object"!=tY(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=tY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tY(t)?t:t+""}function uY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uY=function(){return!!e})()}function dY(e){return dY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dY(e)}function fY(e,t){return fY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fY(e,t)}var hY=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=dY(t),function(e,t){if(t&&("object"==tY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uY()?Reflect.construct(t,r||[],dY(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&fY(e,t)}(t,e),function(e,t){return t&&lY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=rY().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T,j,P,M,R,_,I,N;return rY().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=this.annotation,l=this.page,c=this.pdfDoc,u=c.context,d=l.getHeight(),f=JSON.parse(s.konvaString),h=f.children.filter((function(e){return"Line"===e.className})),p=f.attrs.x||0,m=f.attrs.y||0,g=f.attrs.scaleX||1,v=f.attrs.scaleY||1,b=u.obj(h.map((function(e){for(var t=e.attrs.points,r=[],n=0;n<t.length;n+=2){var o=p+t[n]*g,i=m+t[n+1]*v;r.push(o,d-i)}return u.obj(r)}))),y=(null===(t=h[0])||void 0===t?void 0:t.attrs)||{},w=null!==(r=y.strokeWidth)&&void 0!==r?r:1,x=null!==(n=y.opacity)&&void 0!==n?n:1,S=null!==(o=null!==(i=y.stroke)&&void 0!==i?i:s.color)&&void 0!==o?o:"rgb(255, 0, 0)",C=HN(S),k=oY(C,3),E=k[0],O=k[1],A=k[2],T=u.obj({W:kj.of(w),S:Dj.of("S")}),j=u.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Ink"),Rect:ZN(s.konvaClientRect,d),InkList:b,C:u.obj([kj.of(E),kj.of(O),kj.of(A)]),T:QN(s.title||le("normal.unknownUser")),Contents:QN((null===(a=s.contentsObj)||void 0===a?void 0:a.text)||""),M:IP.of(s.date),NM:IP.of(s.id),Border:u.obj([0,0,0]),BS:T,CA:kj.of(x)}),P=u.register(j),this.addAnnotationToPage(l,P),M=nY(s.comments||[]);try{for(M.s();!(R=M.n()).done;)_=R.value,I=u.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(s.konvaClientRect,d),Contents:QN(_.content),T:QN(_.title||le("normal.unknownUser")),M:IP.of(_.date),C:u.obj([kj.of(E),kj.of(O),kj.of(A)]),IRT:P,RT:Dj.of("R"),NM:IP.of(_.id),Open:!1}),N=u.register(I),this.addAnnotationToPage(l,N)}catch(e){M.e(e)}finally{M.f()}case 21:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){sY(i,n,o,a,s,"next",e)}function s(e){sY(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function pY(e){return pY="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},pY(e)}function mY(){mY=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==pY(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(pY(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function gY(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=bY(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function vY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||bY(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 bY(e,t){if(e){if("string"==typeof e)return yY(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yY(e,t):void 0}}function yY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wY(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function xY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SY(n.key),n)}}function SY(e){var t=function(e){if("object"!=pY(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=pY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pY(t)?t:t+""}function CY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CY=function(){return!!e})()}function kY(e){return kY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kY(e)}function EY(e,t){return EY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EY(e,t)}var OY=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=kY(t),function(e,t){if(t&&("object"==pY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,CY()?Reflect.construct(t,r||[],kY(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&EY(e,t)}(t,e),function(e,t){return t&&xY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=mY().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S;return mY().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.annotation,n=this.page,o=this.pdfDoc,i=ZN(r.konvaClientRect,n.getHeight()),a=vY(i,4),s=a[0],l=a[3],c=o.context,u=n.getWidth(),d=n.getHeight(),f=Math.max(0,Math.min(s,u-20)),h=Math.min(d,Math.max(l,20)),p=h-20,m=[kj.of(f),kj.of(p),kj.of(f+20),kj.of(h)],g=c.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:m,NM:IP.of(r.id),Contents:QN((null===(t=r.contentsObj)||void 0===t?void 0:t.text)||""),Name:Dj.of("Comment"),T:QN(r.title||le("normal.unknownUser")),M:IP.of(r.date),C:HN(r.color),Open:!1}),v=c.register(g),this.addAnnotationToPage(n,v),b=gY(r.comments||[]);try{for(b.s();!(y=b.n()).done;)w=y.value,x=c.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:m,Contents:QN(w.content),T:QN(w.title||le("normal.unknownUser")),M:IP.of(w.date),C:HN(r.color),IRT:v,RT:Dj.of("R"),NM:IP.of(w.id),Open:!1}),S=c.register(x),this.addAnnotationToPage(n,S)}catch(e){b.e(e)}finally{b.f()}case 15:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){wY(i,n,o,a,s,"next",e)}function s(e){wY(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function AY(e){return AY="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},AY(e)}function TY(){TY=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==AY(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(AY(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function jY(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=MY(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function PY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||MY(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 MY(e,t){if(e){if("string"==typeof e)return RY(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?RY(e,t):void 0}}function RY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _Y(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function IY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NY(n.key),n)}}function NY(e){var t=function(e){if("object"!=AY(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=AY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AY(t)?t:t+""}function FY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FY=function(){return!!e})()}function DY(e){return DY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DY(e)}function BY(e,t){return BY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BY(e,t)}var LY=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=DY(t),function(e,t){if(t&&("object"==AY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,FY()?Reflect.construct(t,r||[],DY(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&BY(e,t)}(t,e),function(e,t){return t&&IY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=TY().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T,j,P,M,R,_,I,N,F,D;return TY().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.annotation,o=this.page,i=this.pdfDoc,a=i.context,s=ZN(n.konvaClientRect,o.getHeight()),l=PY(s,4),c=l[0],u=l[1],d=l[2],f=l[3],h=o.getWidth(),p=o.getHeight(),m=Math.max(0,Math.min(c,h)),g=Math.max(0,Math.min(u,p)),v=Math.max(m,Math.min(d,h)),b=Math.max(g,Math.min(f,p)),y=[kj.of(m),kj.of(g),kj.of(v),kj.of(b)],w=void 0,null===(t=n.contentsObj)||void 0===t||!t.image){e.next=24;break}return x=n.contentsObj.image.replace(/^data:image\/png;base64,/,""),e.next=15,i.embedPng(x);case 15:S=e.sent,C=S.width,k=S.height,E=a.obj({Type:"XObject",Subtype:"Form",BBox:[0,0,C,k],Resources:a.obj({XObject:a.obj({Im1:S.ref})})}),O="q ".concat(C," 0 0 ").concat(k," 0 0 cm /Im1 Do Q"),A=(new TextEncoder).encode(O),T=Gj.of(E,A),j=a.register(T),w=a.obj({N:j});case 24:P={Type:Dj.of("Annot"),Subtype:Dj.of("Stamp"),Rect:y,NM:IP.of(n.id),Contents:QN((null===(r=n.contentsObj)||void 0===r?void 0:r.text)||""),T:QN(n.title||le("normal.unknownUser")),M:IP.of(n.date),Open:!1},w&&(P.AP=w),M=a.obj(P),R=a.register(M),this.addAnnotationToPage(o,R),_=jY(n.comments||[]);try{for(_.s();!(I=_.n()).done;)N=I.value,F=a.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(n.konvaClientRect,p),Contents:QN(N.content),T:QN(N.title||le("normal.unknownUser")),M:IP.of(N.date),IRT:R,RT:Dj.of("R"),NM:IP.of(N.id),Open:!1}),D=a.register(F),this.addAnnotationToPage(o,D)}catch(e){_.e(e)}finally{_.f()}case 31:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){_Y(i,n,o,a,s,"next",e)}function s(e){_Y(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function zY(e){return zY="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},zY(e)}function HY(){HY=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==zY(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(zY(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function UY(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=WY(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function VY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||WY(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 WY(e,t){if(e){if("string"==typeof e)return GY(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GY(e,t):void 0}}function GY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function qY(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function KY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XY(n.key),n)}}function XY(e){var t=function(e){if("object"!=zY(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=zY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zY(t)?t:t+""}function YY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YY=function(){return!!e})()}function $Y(e){return $Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$Y(e)}function ZY(e,t){return ZY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZY(e,t)}var QY=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=$Y(t),function(e,t){if(t&&("object"==zY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,YY()?Reflect.construct(t,r||[],$Y(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&ZY(e,t)}(t,e),function(e,t){return t&&KY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=HY().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T,j,P,M,R,_,I,N;return HY().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=this.annotation,l=this.page,c=this.pdfDoc,u=c.context,d=l.getHeight(),f=JSON.parse(s.konvaString),h=f.children.filter((function(e){return"Arrow"===e.className})),p=f.attrs.x||0,m=f.attrs.y||0,g=f.attrs.scaleX||1,v=f.attrs.scaleY||1,b=u.obj(h.map((function(e){for(var t=e.attrs.points,r=[],n=0;n<t.length;n+=2){var o=p+t[n]*g,i=m+t[n+1]*v;r.push(o,d-i)}return u.obj(r)}))),y=(null===(t=h[0])||void 0===t?void 0:t.attrs)||{},w=null!==(r=y.strokeWidth)&&void 0!==r?r:1,x=null!==(n=y.opacity)&&void 0!==n?n:1,S=null!==(o=null!==(i=y.stroke)&&void 0!==i?i:s.color)&&void 0!==o?o:"rgb(255, 0, 0)",C=HN(S),k=VY(C,3),E=k[0],O=k[1],A=k[2],T=u.obj({W:kj.of(w),S:Dj.of("S")}),j=u.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Ink"),Rect:ZN(s.konvaClientRect,d),InkList:b,C:u.obj([kj.of(E),kj.of(O),kj.of(A)]),T:QN(s.title||le("normal.unknownUser")),Contents:QN((null===(a=s.contentsObj)||void 0===a?void 0:a.text)||""),M:IP.of(s.date),NM:IP.of(s.id),Border:u.obj([0,0,0]),BS:T,CA:kj.of(x)}),P=u.register(j),this.addAnnotationToPage(l,P),M=UY(s.comments||[]);try{for(M.s();!(R=M.n()).done;)_=R.value,I=u.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(s.konvaClientRect,d),Contents:QN(_.content),T:QN(_.title||le("normal.unknownUser")),M:IP.of(_.date),C:u.obj([kj.of(E),kj.of(O),kj.of(A)]),IRT:P,RT:Dj.of("R"),NM:IP.of(_.id),Open:!1}),N=u.register(I),this.addAnnotationToPage(l,N)}catch(e){M.e(e)}finally{M.f()}case 21:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){qY(i,n,o,a,s,"next",e)}function s(e){qY(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function JY(e){return JY="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},JY(e)}function e$(){e$=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==JY(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(JY(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function t$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||c$(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 r$(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function n$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o$(n.key),n)}}function o$(e){var t=function(e){if("object"!=JY(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=JY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==JY(t)?t:t+""}function i$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i$=function(){return!!e})()}function a$(e){return a$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a$(e)}function s$(e,t){return s$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s$(e,t)}function l$(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c$(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function c$(e,t){if(e){if("string"==typeof e)return u$(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u$(e,t):void 0}}function u$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d$(e){var t,r=[],n=l$(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]);try{for(n.s();!(t=n.n()).done;){var o=t.value,i=o[0],a=o.slice(1).trim().split(/[\s,]+/).map(parseFloat);if("M"===i||"L"===i)for(var s=0;s<a.length;s+=2)r.push(a[s],a[s+1]);else"Q"===i?a.length>=4&&r.push(a[2],a[3]):"C"===i&&a.length>=6&&r.push(a[4],a[5])}}catch(e){n.e(e)}finally{n.f()}return r}var f$,h$=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=a$(t),function(e,t){if(t&&("object"==JY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i$()?Reflect.construct(t,r||[],a$(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&s$(e,t)}(t,e),function(e,t){return t&&n$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:(r=e$().mark((function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,x,S,C,k,E,O,A,T,j,P,M,R,_,I,N;return e$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=this.annotation,l=this.page,c=this.pdfDoc,u=c.context,d=l.getHeight(),f=JSON.parse(s.konvaString),h=f.children.filter((function(e){return"Path"===e.className})),p=f.attrs.x||0,m=f.attrs.y||0,g=f.attrs.scaleX||1,v=f.attrs.scaleY||1,b=u.obj(h.map((function(e){for(var t=d$(e.attrs.data),r=[],n=0;n<t.length;n+=2){var o=p+t[n]*g,i=m+t[n+1]*v;r.push(o,d-i)}return u.obj(r)}))),y=(null===(t=h[0])||void 0===t?void 0:t.attrs)||{},w=null!==(r=y.strokeWidth)&&void 0!==r?r:1,x=null!==(n=y.opacity)&&void 0!==n?n:1,S=null!==(o=null!==(i=y.stroke)&&void 0!==i?i:s.color)&&void 0!==o?o:"rgb(255, 0, 0)",C=HN(S),k=t$(C,3),E=k[0],O=k[1],A=k[2],T=u.obj({W:kj.of(w),S:Dj.of("S")}),j=u.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Ink"),Rect:ZN(s.konvaClientRect,d),InkList:b,C:u.obj([kj.of(E),kj.of(O),kj.of(A)]),T:QN(s.title||le("normal.unknownUser")),Contents:QN((null===(a=s.contentsObj)||void 0===a?void 0:a.text)||""),M:IP.of(s.date),NM:IP.of(s.id),Border:u.obj([0,0,0]),BS:T,CA:kj.of(x)}),P=u.register(j),this.addAnnotationToPage(l,P),M=l$(s.comments||[]);try{for(M.s();!(R=M.n()).done;)_=R.value,I=u.obj({Type:Dj.of("Annot"),Subtype:Dj.of("Text"),Rect:ZN(s.konvaClientRect,d),Contents:QN(_.content),T:QN(_.title||le("normal.unknownUser")),M:IP.of(_.date),C:u.obj([kj.of(E),kj.of(O),kj.of(A)]),IRT:P,RT:Dj.of("R"),NM:IP.of(_.id),Open:!1}),N=u.register(I),this.addAnnotationToPage(l,N)}catch(e){M.e(e)}finally{M.f()}case 21:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){r$(i,n,o,a,s,"next",e)}function s(e){r$(i,n,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]);var r,n}(LK);function p$(){p$=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==m$(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(m$(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function m$(e){return m$="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},m$(e)}function g$(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v$(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function v$(e,t){if(e){if("string"==typeof e)return b$(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b$(e,t):void 0}}function b$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y$(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function w$(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){y$(i,n,o,a,s,"next",e)}function s(e){y$(i,n,o,a,s,"throw",e)}a(void 0)}))}}function x$(e,t,r){return(t=function(e){var t=function(e){if("object"!=m$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=m$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S$=(x$(x$(x$(x$(x$(x$(x$(x$(x$(x$(f$={},Oo.TEXT,$K),Oo.HIGHLIGHT,uX),Oo.UNDERLINE,xX),Oo.STRIKEOUT,RX),Oo.SQUARE,VX),Oo.CIRCLE,eY),Oo.INK,hY),Oo.POLYLINE,h$),Oo.FREETEXT,OY),Oo.STAMP,LY),x$(f$,Oo.LINE,QY));function C$(e,t,r){return k$.apply(this,arguments)}function k$(){return(k$=w$(p$().mark((function e(t,r,n){var o,i;return p$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(o=S$[t.pdfjsType])){e.next=7;break}return i=new o(n,r,t),e.next=5,i.parse();case 5:e.next=8;break;case 7:console.warn("Unsupported annotation type:",t.pdfjsType);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E$(e,t){var r=new Blob([e],{type:"application/octet-stream"});(0,JK.saveAs)(r,"".concat(t,".xlsx"))}function O$(e){var t,r=g$(e.getPages());try{for(r.s();!(t=r.n()).done;){var n=t.value,o=Dj.of("Annots");n.node.has(o)&&n.node.set(o,e.context.obj([]))}}catch(e){r.e(e)}finally{r.f()}}function A$(e,t){return T$.apply(this,arguments)}function T$(){return(T$=w$(p$().mark((function e(t,r){var n,o,i,a,s,l,c,u,d;return p$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t._downloadUrl);case 2:return n=e.sent,e.next=5,n.arrayBuffer();case 5:return o=e.sent,e.next=8,_N.load(o);case 8:O$(i=e.sent),a=g$(r),e.prev=11,a.s();case 13:if((s=a.n()).done){e.next=20;break}return l=s.value,c=i.getPages()[l.pageNumber-1],e.next=18,C$(l,c,i);case 18:e.next=13;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(11),a.e(e.t0);case 25:return e.prev=25,a.f(),e.finish(25);case 28:return e.next=30,i.save();case 30:u=e.sent,d=t._title||"annotated",h="".concat(d,"_").concat(JN()),void 0,void 0,p=(f=u).buffer.slice(f.byteOffset,f.byteOffset+f.byteLength),m=new Blob([p],{type:"application/pdf"}),(0,JK.saveAs)(m,"".concat(h,".pdf"));case 34:case"end":return e.stop()}var f,h,p,m}),e,null,[[11,22,25,28]])})))).apply(this,arguments)}function j$(e,t){return P$.apply(this,arguments)}function P$(){return P$=w$(p$().mark((function e(t,r){var n,o,i,a,s,l,c,u,d;return p$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r.sort((function(e,t){return e.pageNumber!==t.pageNumber?e.pageNumber-t.pageNumber:$N(t.date)-$N(e.date)})),o=function(e){var t,r,n=(r=e.comments||[],function(e){if(Array.isArray(e))return b$(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||v$(r)||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.")}()).reverse().find((function(e){return void 0!==e.status&&null!==e.status})),o=null!==(t=null==n?void 0:n.status)&&void 0!==t?t:jo.None;return le("comment.status.".concat(o.toLowerCase()))},i=1,a=0,r.forEach((function(e){var t,r,s=null===(t=Po.find((function(t){return t.type===e.type})))||void 0===t?void 0:t.name,l=le("annotations.".concat(s));n.push({index:"".concat(i),id:e.id,page:e.pageNumber,annotationType:l,recordType:le("export.recordType.annotation"),author:e.title,content:(null===(r=e.contentsObj)||void 0===r?void 0:r.text)||"",date:YN(e.date,!0),status:o(e)}),a=0,e.comments.forEach((function(e){a++,n.push({index:"".concat(i,".").concat(a),id:e.id,page:"",annotationType:"--",recordType:le("export.recordType.reply"),author:e.title,content:e.content,date:YN(e.date,!0),status:""})})),i++})),s=new(QK().Workbook),(l=s.addWorksheet(le("export.sheetName"))).columns=[{key:"index",header:"#",width:8,style:{alignment:{vertical:"middle"}}},{key:"id",header:le("export.fields.id"),width:20,style:{alignment:{vertical:"middle"}}},{key:"page",header:le("export.fields.page"),width:10,style:{alignment:{vertical:"middle"}}},{key:"annotationType",header:le("export.fields.annotationType"),width:18,style:{alignment:{vertical:"middle"}}},{key:"recordType",header:le("export.fields.recordType"),width:12,style:{alignment:{vertical:"middle"}}},{key:"author",header:le("export.fields.author"),width:16,style:{alignment:{vertical:"middle"}}},{key:"content",header:le("export.fields.content"),width:40,style:{alignment:{wrapText:!0,vertical:"top"}}},{key:"date",header:le("export.fields.date"),width:22,style:{alignment:{vertical:"middle"}}},{key:"status",header:le("export.fields.status"),width:14,style:{alignment:{vertical:"middle"}}}],n.forEach((function(e){var t=l.addRow(e),r=e.recordType===le("export.recordType.reply");t.font={size:12,color:{argb:r?"389e0d":"000000"}}})),l.getRow(1).eachCell((function(e){e.font={bold:!0,size:12},e.fill={type:"pattern",pattern:"solid",fgColor:{argb:"D9E1F2"}}})),l.eachRow((function(e){e.eachCell((function(e){e.border={top:{style:"thin",color:{argb:"000000"}},left:{style:"thin",color:{argb:"000000"}},bottom:{style:"thin",color:{argb:"000000"}},right:{style:"thin",color:{argb:"000000"}}}}))})),e.next=14,s.xlsx.writeBuffer();case 14:c=e.sent,u=t._title||"annotated",d="".concat(u,"_").concat(JN()),E$(c,d);case 18:case"end":return e.stop()}}),e)}))),P$.apply(this,arguments)}var M$=o(9616),R$={};function _$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I$(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I$(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.")}()}function I$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}R$.styleTagTransform=f(),R$.setAttributes=l(),R$.insert=a().bind(null,"head"),R$.domAPI=n(),R$.insertStyleElement=u(),t()(M$.A,R$),M$.A&&M$.A.locals&&M$.A.locals;var N$=(0,m.forwardRef)((function(e,t){var r,n=_$((0,m.useState)(!1),2),o=n[0],i=n[1],a=_$((0,m.useState)(null),2),s=a[0],l=a[1],c=_$((0,m.useState)(Eo.setting.COLOR),2),u=c[0],d=c[1],f=_$((0,m.useState)(Eo.setting.STROKE_WIDTH),2),h=f[0],p=f[1],g=_$((0,m.useState)(Eo.setting.OPACITY),2),v=g[0],b=g[1],y=_$((0,m.useState)(!1),2),w=y[0],x=y[1],S=(0,m.useRef)(null),C=ke().t;(0,m.useImperativeHandle)(t,(function(){return{open:k,close:E}}));var k=function(e,t){l(e),i(!0);var r,n=(r=e.konvaString,IE().Node.create(r).children[0]);d(n.stroke()),p(n.strokeWidth()),b(100*n.opacity()),requestAnimationFrame((function(){var r,n=S.current;if(n){var o="".concat(sL,"_page_").concat(e.pageNumber),i=document.querySelector("#".concat(o," .konvajs-content")),a=null==i||null===(r=i.getBoundingClientRect)||void 0===r?void 0:r.call(i),s=1*t.x+a.left,l=1*t.y+a.top;pn({getBoundingClientRect:function(){return{x:s,y:l,width:1*t.width,height:1*t.height,left:s,top:l,right:s+1*t.width,bottom:l+1*t.height}}},n,{placement:"bottom",middleware:[hn()]}).then((function(e){var t=e.x,r=e.y;Object.assign(n.style,{position:"absolute",left:"".concat(t,"px"),top:"".concat(r,"px")})}))}}))},E=function(){i(!1),l(null),x(!1)},O=s&&(null===(r=Po.find((function(e){return e.type===s.type})))||void 0===r?void 0:r.styleEditable),A=function(t){s&&e.onChangeStyle(s,t)};return(0,Mn.jsxs)("div",{className:"CustomAnnotationMenu ".concat(o?"show":"hide"),ref:S,children:[w&&s&&(0,Mn.jsxs)("div",{className:"styleContainer",children:[O.color&&(0,Mn.jsx)("div",{className:"colorPalette",children:Eo.colors.map((function(e){return(0,Mn.jsx)("div",{className:"cell ".concat(rF(e,u)?"active":""),onMouseDown:function(){A({color:e}),d(e)},children:(0,Mn.jsx)("span",{style:{backgroundColor:e}})},e)}))}),(O.opacity||O.strokeWidth)&&(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(Lm,{size:"small"}),(0,Mn.jsx)("div",{className:"prototypeSetting",children:(0,Mn.jsxs)(OD,{layout:"vertical",children:[O.strokeWidth&&(0,Mn.jsx)(OD.Item,{label:"".concat(C("normal.strokeWidth")," (").concat(h,")"),children:(0,Mn.jsx)(gx,{value:h,min:1,max:20,onChange:function(e){A({strokeWidth:e}),p(e)}})}),O.opacity&&(0,Mn.jsx)(OD.Item,{label:"".concat(C("normal.opacity")," (").concat(v,"%)"),children:(0,Mn.jsx)(gx,{value:v,min:0,max:100,onChange:function(e){A({opacity:e/100}),b(e)}})})]})})]})]}),!w&&s&&(0,Mn.jsxs)("ul",{className:"buttons",children:[(0,Mn.jsx)("li",{onMouseDown:function(){s&&(e.onOpenComment(s),E())},children:(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(yo,{})})}),O&&(0,Mn.jsx)("li",{onMouseDown:function(){s&&x(!0)},children:(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(po,{})})}),(0,Mn.jsx)("li",{onMouseDown:function(){s&&(e.onDelete(s),E())},children:(0,Mn.jsx)("div",{className:"icon",children:(0,Mn.jsx)(So,{})})})]})]})}));function F$(e){return F$="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},F$(e)}function D$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B$(n.key),n)}}function B$(e){var t=function(e){if("object"!=F$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=F$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F$(t)?t:t+""}var L$=function(){return function(e,t){return t&&D$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(t=B$(t))in e?Object.defineProperty(e,t,{value:null,enumerable:!0,configurable:!0,writable:!0}):e[t]=null}(this,"connectionPathElement")}),[{key:"calculateShapeRect",value:function(e,t){var r="".concat(sL,"_page_").concat(e.pageNumber),n=document.querySelector("#".concat(r," .konvajs-content"));if(!n)return console.warn("[ConnectorLine] 页面容器未找到:".concat(r)),{x:0,y:0,width:t.width,height:t.height};var o=n.getBoundingClientRect();return{x:1*t.x+o.left,y:1*t.y+o.top,width:t.width,height:t.height}}},{key:"calculateAnnotationRect",value:function(e){var t=document.getElementById("annotation-".concat(e.id)).getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}}},{key:"calculateConnectionPath",value:function(e,t){var r=e.x+e.width,n=e.y+e.height/2,o=t.x,i=t.y+10,a=(r+o)/2;return"\n M ".concat(r," ").concat(n,"\n L ").concat(a," ").concat(n,"\n L ").concat(a," ").concat(i,"\n L ").concat(o," ").concat(i,"\n ").trim()}},{key:"createArrowMarkerDefs",value:function(e){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"defs"),n=document.createElementNS(t,"marker");n.setAttribute("id","arrow"),n.setAttribute("viewBox","0 0 10 10"),n.setAttribute("refX","0"),n.setAttribute("refY","5"),n.setAttribute("markerWidth","6"),n.setAttribute("markerHeight","6"),n.setAttribute("orient","auto");var o=document.createElementNS(t,"path");o.setAttribute("d","M 10 0 L 0 5 L 10 10 z"),o.setAttribute("fill",Eo.connectorLine.COLOR),n.appendChild(o),r.appendChild(n),e.appendChild(r)}},{key:"animateLine",value:function(){this.connectionPathElement&&(this.connectionPathElement.style.strokeDashoffset="0")}},{key:"shouldDrawBasedOnDistance",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,n=e.x+e.width;return t.x-n>r}},{key:"shouldDrawBasedOnScreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768;return window.innerWidth>e}},{key:"drawConnection",value:function(e,t){var r=this;requestAnimationFrame((function(){if(r.clearConnection(),r.shouldDrawBasedOnScreen()){var n=r.calculateShapeRect(e,t),o=r.calculateAnnotationRect(e);if(r.shouldDrawBasedOnDistance(n,o)){var i=r.calculateConnectionPath(n,o),a="http://www.w3.org/2000/svg";if(r.connectionPathElement){r.connectionPathElement.setAttribute("d",i);var s=r.connectionPathElement.getTotalLength();r.connectionPathElement.setAttribute("stroke-dasharray","".concat(s)),r.connectionPathElement.setAttribute("stroke-dashoffset","".concat(s)),r.connectionPathElement.style.strokeDashoffset="0"}else{var l=document.createElementNS(a,"svg"),c=document.createElementNS(a,"path");c.setAttribute("d",i);var u=c.getTotalLength();c.setAttribute("stroke",Eo.connectorLine.COLOR),c.setAttribute("stroke-width","".concat(Eo.connectorLine.WIDTH)),c.setAttribute("fill","none"),c.setAttribute("stroke-linecap","round"),c.setAttribute("opacity","".concat(Eo.connectorLine.OPACITY)),c.setAttribute("stroke-dasharray","".concat(u)),c.setAttribute("stroke-dashoffset","".concat(u)),c.setAttribute("marker-start","url(#arrow)"),c.style.transition="stroke-dashoffset 0.5s ease-in-out",c.style.transform="translateZ(0)",r.createArrowMarkerDefs(l),l.appendChild(c),l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100vw",l.style.height="100vh",l.style.pointerEvents="none",l.style.zIndex="98",l.id="connector-svg",r.connectionPathElement=c,document.body.appendChild(l),r.animateLine()}}}}))}},{key:"clearConnection",value:function(){var e=document.getElementById("connector-svg");e&&e.remove(),this.connectionPathElement=null}}])}();function z$(e){return z$="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},z$(e)}function H$(){H$=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==r&&n.call(v,i)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==z$(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(S,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(z$(t)+" is not iterable")}return h.prototype=p,l(b,"constructor",p),l(p,"constructor",h),h.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function U$(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function V$(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){U$(i,n,o,a,s,"next",e)}function s(e){U$(i,n,o,a,s,"throw",e)}a(void 0)}))}}function W$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q$(n.key),n)}}function G$(e,t,r){return(t=q$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q$(e){var t=function(e){if("object"!=z$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=z$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z$(t)?t:t+""}var K$=function(){return function(e,t){return t&&W$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t,r,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G$(this,"_connectorLine",null),this.loadEnd=!1,this.initialDataHash=null,this.PDFJS_PDFViewerApplication=window.PDFViewerApplication,this.PDFJS_EventBus=this.PDFJS_PDFViewerApplication.eventBus,this.$PDFJS_sidebarContainer=this.PDFJS_PDFViewerApplication.appConfig.sidebar.sidebarContainer,this.$PDFJS_toolbar_container=this.PDFJS_PDFViewerApplication.appConfig.toolbar.container,this.$PDFJS_viewerContainer=this.PDFJS_PDFViewerApplication.appConfig.viewerContainer,this.$PDFJS_mainContainer=this.PDFJS_PDFViewerApplication.appConfig.mainContainer,this.$PDFJS_outerContainer=this.PDFJS_PDFViewerApplication.appConfig.sidebar.outerContainer,this.customToolbarRef=(0,m.createRef)(),this.customPopbarRef=(0,m.createRef)(),this.customerAnnotationMenuRef=(0,m.createRef)(),this.customCommentRef=(0,m.createRef)(),(r=(t=this.PDFJS_PDFViewerApplication.l10n.getLanguage()).toLowerCase()).length>2&&(r=Ae[t.toLowerCase()]||"en"),se.use(we).init({resources:Oe,lng:r,fallbackLng:"en",interpolation:{escapeValue:!1}}),this.appOptions=G$(G$(G$(G$(G$({},Ro,se.t("normal.unknownUser")),_o,""),Io,""),No,null),Fo,"true"),this.parseHashParams(),this.painter=new nq({userName:this.getOption(Ro),PDFViewerApplication:this.PDFJS_PDFViewerApplication,PDFJS_EventBus:this.PDFJS_EventBus,setDefaultMode:function(){n.customToolbarRef.current.activeAnnotation(Po[0])},onWebSelectionSelected:function(e){n.customPopbarRef.current.open(e)},onStoreAdd:function(e,t,r){n.customCommentRef.current.addAnnotation(e),t||(r.isOnce&&n.painter.selectAnnotation(e.id),n.isCommentOpen()&&n.customCommentRef.current.selectedAnnotation(e,!0))},onStoreDelete:function(e){n.customCommentRef.current.delAnnotation(e)},onAnnotationSelected:function(e,t,r){var o;n.customerAnnotationMenuRef.current.open(e,r),t&&n.isCommentOpen()&&n.customCommentRef.current.selectedAnnotation(e,t),null===(o=n.connectorLine)||void 0===o||o.drawConnection(e,r)},onAnnotationChange:function(e){n.customCommentRef.current.updateAnnotation(e)},onAnnotationChanging:function(){var e,t;null===(e=n.connectorLine)||void 0===e||e.clearConnection(),null===(t=n.customerAnnotationMenuRef)||void 0===t||null===(t=t.current)||void 0===t||t.close()},onAnnotationChanged:function(e,t){var r,o;console.log("annotation changed",e),null===(r=n.connectorLine)||void 0===r||r.drawConnection(e,t),null===(o=n.customerAnnotationMenuRef)||void 0===o||null===(o=o.current)||void 0===o||o.open(e,t)}}),this.init()}),[{key:"connectorLine",get:function(){return Eo.connectorLine.ENABLED&&(this._connectorLine=new L$({})),this._connectorLine}},{key:"init",value:function(){this.addCustomStyle(),this.bindPdfjsEvents(),this.renderToolbar(),this.renderPopBar(),this.renderAnnotationMenu(),this.renderComment()}},{key:"parseHashParams",value:function(){var e=document.location.hash.substring(1);if(e){var t=function(e){var t=new Map;return new URLSearchParams(e).forEach((function(e,r){t.set(r.toLowerCase(),e)})),t}(e);t.has(Ro)?this.setOption(Ro,t.get(Ro)):console.warn("".concat(Ro," is undefined")),t.has(_o)?this.setOption(_o,t.get(_o)):console.warn("".concat(_o," is undefined")),t.has(Io)?this.setOption(Io,t.get(Io)):console.warn("".concat(Io," is undefined")),t.has(No)&&"true"===t.get(No)?this.setOption(No,"select"):console.warn("".concat(No," is undefined")),t.has(Fo)&&"false"===t.get(Fo)?this.setOption(Fo,"false"):console.warn("".concat(No," is undefined"))}else console.warn("HASH_PARAMS is undefined")}},{key:"setOption",value:function(e,t){this.appOptions[e]=t}},{key:"getOption",value:function(e){return this.appOptions[e]}},{key:"addCustomStyle",value:function(){document.body.classList.add("PdfjsAnnotationExtension"),this.toggleComment("true"===this.getOption(Fo))}},{key:"toggleComment",value:function(e){e?document.body.classList.remove("PdfjsAnnotationExtension_Comment_hidden"):document.body.classList.add("PdfjsAnnotationExtension_Comment_hidden")}},{key:"isCommentOpen",value:function(){return!document.body.classList.contains("PdfjsAnnotationExtension_Comment_hidden")}},{key:"renderToolbar",value:function(){var e=this,t=document.createElement("div");this.$PDFJS_toolbar_container.insertAdjacentElement("afterend",t),(0,v.H)(t).render((0,Mn.jsx)(nL,{ref:this.customToolbarRef,defaultAnnotationName:this.getOption(No),defaultSidebarOpen:"true"===this.getOption(Fo),userName:this.getOption(Ro),onChange:function(t,r){e.painter.activate(t,r)},onSave:function(){e.saveData()},onExport:function(){var t=V$(H$().mark((function t(r){return H$().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("excel"!==r){t.next=3;break}return e.exportExcel(),t.abrupt("return");case 3:if("pdf"!==r){t.next=7;break}return t.next=6,e.exportPdf();case 6:return t.abrupt("return");case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),onSidebarOpen:function(t){e.toggleComment(t),e.connectorLine.clearConnection()}}))}},{key:"renderPopBar",value:function(){var e=this,t=document.createElement("div");this.$PDFJS_viewerContainer.insertAdjacentElement("afterend",t),(0,v.H)(t).render((0,Mn.jsx)(Lo,{ref:this.customPopbarRef,onChange:function(t,r){e.painter.highlightRange(r,t)}}))}},{key:"renderAnnotationMenu",value:function(){var e=this,t=document.createElement("div");this.$PDFJS_outerContainer.insertAdjacentElement("afterend",t),(0,v.H)(t).render((0,Mn.jsx)(N$,{ref:this.customerAnnotationMenuRef,onOpenComment:function(t){e.toggleComment(!0),e.customToolbarRef.current.toggleSidebarBtn(!0),setTimeout((function(){e.customCommentRef.current.selectedAnnotation(t,!0)}),100)},onChangeStyle:function(t,r){e.painter.updateAnnotationStyle(t,r),e.customToolbarRef.current.updateStyle(t.type,r)},onDelete:function(t){e.painter.delete(t.id,!0)}}))}},{key:"renderComment",value:function(){var e=this,t=document.createElement("div");this.$PDFJS_mainContainer.insertAdjacentElement("afterend",t),(0,v.H)(t).render((0,Mn.jsx)(NK,{ref:this.customCommentRef,userName:this.getOption(Ro),onSelected:function(){var t=V$(H$().mark((function t(r){return H$().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.painter.highlight(r);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),onDelete:function(t){e.painter.delete(t)},onUpdate:function(t){e.painter.update(t.id,{title:t.title,contentsObj:t.contentsObj,comments:t.comments})},onScroll:function(){var t;null===(t=e.connectorLine)||void 0===t||t.clearConnection()}}))}},{key:"hidePdfjsEditorModeButtons",value:function(){Eo.setting.HIDE_PDFJS_ELEMENT.forEach((function(e){var t=document.querySelector(e);if(t){t.style.display="none";var r=t.nextElementSibling;r.classList.contains("horizontalToolbarSeparator")&&(r.style.display="none")}}))}},{key:"updatePdfjs",value:function(){var e=this.PDFJS_PDFViewerApplication.pdfViewer.currentScaleValue;"auto"===e||"page-fit"===e||"page-width"===e?(this.PDFJS_PDFViewerApplication.pdfViewer.currentScaleValue="0.8",this.PDFJS_PDFViewerApplication.pdfViewer.update()):(this.PDFJS_PDFViewerApplication.pdfViewer.currentScaleValue="auto",this.PDFJS_PDFViewerApplication.pdfViewer.update()),this.PDFJS_PDFViewerApplication.pdfViewer.currentScaleValue=e,this.PDFJS_PDFViewerApplication.pdfViewer.update()}},{key:"bindPdfjsEvents",value:function(){var e=this;this.hidePdfjsEditorModeButtons();var t,r,n,o=(t=function(){e.loadEnd=!0},n=!1,function(){if(!n){n=!0;for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];r=t.apply(this,o)}return r});this.PDFJS_EventBus._on("updateviewarea",(function(){var t,r;null===(t=e.customerAnnotationMenuRef.current)||void 0===t||t.close(),null===(r=e.connectorLine)||void 0===r||r.clearConnection()})),this.PDFJS_EventBus._on("pagerendered",function(){var t=V$(H$().mark((function t(r){var n,i,a;return H$().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.source,i=r.cssTransform,a=r.pageNumber,o(),e.painter.initCanvas({pageView:n,cssTransform:i,pageNumber:a});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.PDFJS_EventBus._on("documentloaded",V$(H$().mark((function t(){var r;return H$().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.painter.initWebSelection(e.$PDFJS_viewerContainer),t.next=3,e.getData();case 3:return r=t.sent,e.initialDataHash=eF(r),t.next=7,e.painter.initAnnotations(r,Eo.setting.LOAD_PDF_ANNOTATION);case 7:e.loadEnd&&e.updatePdfjs();case 8:case"end":return t.stop()}}),t)}))))}},{key:"getData",value:(n=V$(H$().mark((function e(){var t,r,n;return H$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getOption(_o)){e.next=3;break}return e.abrupt("return",[]);case 3:return e.prev=3,ad.open({type:"loading",content:le("normal.processing"),duration:0}),e.next=7,fetch(t,{method:"GET"});case 7:if((r=e.sent).ok){e.next=11;break}throw n="HTTP Error ".concat(r.status,": ").concat(r.statusText||"Unknown Status"),new Error(n);case 11:return e.next=13,r.json();case 13:return e.abrupt("return",e.sent);case 16:return e.prev=16,e.t0=e.catch(3),dE.error({content:le("load.fail",{value:null===e.t0||void 0===e.t0?void 0:e.t0.message}),closable:!1,okButtonProps:{loading:!1},okText:le("normal.ok")}),console.error("Fetch error:",e.t0),e.abrupt("return",[]);case 21:return e.prev=21,ad.destroy(),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[3,16,21,24]])}))),function(){return n.apply(this,arguments)})},{key:"saveData",value:(r=V$(H$().mark((function e(){var t,r,n,o,i;return H$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.painter.getData(),console.log("%c [ dataToSave ]","font-size:13px; background:#d10d00; color:#ff5144;",t),r=this.getOption(Io)){e.next=6;break}return ad.error({content:le("save.noPostUrl",{value:Io}),key:"save"}),e.abrupt("return");case 6:return n=dE.info({content:(0,Mn.jsxs)(SS,{children:[(0,Mn.jsx)(fr,{spin:!0}),le("save.start")]}),closable:!1,okButtonProps:{loading:!0},okText:le("normal.ok")}),e.prev=7,e.next=10,fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 10:if((o=e.sent).ok){e.next=13;break}throw new Error("Failed to save PDF. Status: ".concat(o.status," ").concat(o.statusText));case 13:return e.next=15,o.json();case 15:i=e.sent,this.initialDataHash=eF(t),n.destroy(),ad.success({content:le("save.success"),key:"save"}),console.log("Saved successfully:",i),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(7),n.update({type:"error",content:le("save.fail",{value:null===e.t0||void 0===e.t0?void 0:e.t0.message}),closable:!0,okButtonProps:{loading:!1}}),console.error("Error while saving data:",e.t0);case 26:case"end":return e.stop()}}),e,this,[[7,22]])}))),function(){return r.apply(this,arguments)})},{key:"exportPdf",value:(t=V$(H$().mark((function e(){var t,r;return H$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.painter.getData(),r=dE.info({title:le("normal.export"),content:(0,Mn.jsxs)(SS,{children:[(0,Mn.jsx)(fr,{spin:!0}),le("normal.processing")]}),closable:!1,okButtonProps:{loading:!0},okText:le("normal.ok")}),e.next=4,A$(this.PDFJS_PDFViewerApplication,t);case 4:r.update({type:"success",title:le("normal.export"),content:le("pdf.generationSuccess"),closable:!0,okButtonProps:{loading:!1}});case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"exportExcel",value:(e=V$(H$().mark((function e(){var t;return H$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.painter.getData(),e.next=3,j$(this.PDFJS_PDFViewerApplication,t);case 3:dE.info({type:"success",title:le("normal.export"),content:le("pdf.generationSuccess"),closable:!0,okButtonProps:{loading:!1}});case 4:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"hasUnsavedChanges",value:function(){return eF(this.painter.getData())!==this.initialDataHash}}]);var e,t,r,n}();window.pdfjsAnnotationExtensionInstance=new K$})(),{}})())); |