SmmRender

(function(ut,Ci){typeof exports=="object"&&typeof module<"u"?module.exports=Ci():typeof define=="function"&&define.amd?define(Ci):(ut=typeof globalThis<"u"?globalThis:ut||self,ut.SmmRender=Ci())})(this,function(){"use strict";var r9=Object.defineProperty;var n9=(ut,Ci,Tn)=>Ci in ut?r9(ut,Ci,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):ut[Ci]=Tn;var Nt=(ut,Ci,Tn)=>n9(ut,typeof Ci!="symbol"?Ci+"":Ci,Tn);var yh;const ut={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",LOGICAL_STRUCTURE_LEFT:"logicalStructureLeft",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"},TAG_PLACEMENT:{RIGHT:"right",BOTTOM:"bottom"},IMG_PLACEMENT:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},EDIT_NODE_CLASS:{SMM_NODE_EDIT_WRAP:"smm-node-edit-wrap",RICH_TEXT_EDIT_WRAP:"ql-editor",ASSOCIATIVE_LINE_TEXT_EDIT_WRAP:"associative-line-text-edit-warp"}},Ci={[ut.INIT_ROOT_NODE_POSITION.LEFT]:0,[ut.INIT_ROOT_NODE_POSITION.TOP]:0,[ut.INIT_ROOT_NODE_POSITION.RIGHT]:1,[ut.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[ut.INIT_ROOT_NODE_POSITION.CENTER]:.5},Tn=[ut.LAYOUT.LOGICAL_STRUCTURE,ut.LAYOUT.LOGICAL_STRUCTURE_LEFT,ut.LAYOUT.MIND_MAP,ut.LAYOUT.CATALOG_ORGANIZATION,ut.LAYOUT.ORGANIZATION_STRUCTURE,ut.LAYOUT.TIMELINE,ut.LAYOUT.TIMELINE2,ut.LAYOUT.VERTICAL_TIMELINE,ut.LAYOUT.FISHBONE],P2=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText","attachmentUrl","attachmentName","notation","outerFrame","number","range","customLeft","customTop","customTextWidth","checkbox","dir","needUpdate"],Cn={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error",EXPORT_LOAD_IMAGE_ERROR:"export_load_image_error",DATA_CHANGE_DETAIL_EVENT_ERROR:"data_change_detail_event_error"},U2=`
  /* 鼠标hover和激活时渲染的矩形 */
  .smm-hover-node{
    display: none;
    opacity: 0.6;
    stroke-width: 1;
  }

  .smm-node:not(.smm-node-dragging):hover .smm-hover-node{
    display: block;
  }

  .smm-node.active .smm-hover-node, .smm-node-highlight .smm-hover-node{
    display: block;
    opacity: 1;
    stroke-width: 2;
  }

  .smm-text-node-wrap, .smm-expand-btn-text {
    user-select: none;
  }
`,j2=["img","br","hr","input","link","meta","area"],Aa=1.2,_a=["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color","textAlign"];class q2{constructor(t={}){this.opt=t,this.mindMap=this.opt.mindMap,this.scale=1,this.sx=0,this.sy=0,this.x=0,this.y=0,this.firstDrag=!0,this.setTransformData(this.mindMap.opt.viewData),this.bind()}bind(){this.mindMap.keyCommand.addShortcut("Control+=",()=>{this.enlarge()}),this.mindMap.keyCommand.addShortcut("Control+-",()=>{this.narrow()}),this.mindMap.keyCommand.addShortcut("Control+i",()=>{this.fit()}),this.mindMap.event.on("mousedown",t=>{const{isDisableDrag:e,mousedownEventPreventDefault:i}=this.mindMap.opt;e||(i&&t.preventDefault(),this.sx=this.x,this.sy=this.y)}),this.mindMap.event.on("drag",(t,e)=>{t.ctrlKey||t.metaKey||this.mindMap.opt.isDisableDrag||(this.firstDrag&&(this.firstDrag=!1,this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")),this.x=this.sx+e.mousemoveOffset.x,this.y=this.sy+e.mousemoveOffset.y,this.transform())}),this.mindMap.event.on("mouseup",()=>{this.firstDrag=!0}),this.mindMap.event.on("mousewheel",(t,e,i,n)=>{const{customHandleMousewheel:o,mousewheelAction:s,mouseScaleCenterUseMousePosition:a,mousewheelMoveStep:l,mousewheelZoomActionReverse:h,disableMouseWheelZoom:c,translateRatio:u}=this.mindMap.opt;if(o&&typeof o=="function")return o(t);if(s===ut.MOUSE_WHEEL_ACTION.ZOOM||t.ctrlKey||t.metaKey){if(c)return;const{x:f,y:d}=this.mindMap.toPos(t.clientX,t.clientY),p=a?f:void 0,m=a?d:void 0;switch(n&&(e.includes(ut.DIR.LEFT)||e.includes(ut.DIR.RIGHT))&&(e=e.filter(v=>![ut.DIR.LEFT,ut.DIR.RIGHT].includes(v))),!0){case e.includes(ut.DIR.UP):h?this.enlarge(p,m,n):this.narrow(p,m,n);break;case e.includes(ut.DIR.DOWN):h?this.narrow(p,m,n):this.enlarge(p,m,n);break}}else{let f=0,d=0;n?(f=Math.abs(t.wheelDeltaX),d=Math.abs(t.wheelDeltaY)):f=d=l;let p=0,m=0;e.includes(ut.DIR.DOWN)&&(m=-d),e.includes(ut.DIR.UP)&&(m=d),e.includes(ut.DIR.LEFT)&&(p=f),e.includes(ut.DIR.RIGHT)&&(p=-f),this.translateXY(p*u,m*u)}}),this.mindMap.on("resize",()=>{this.checkNeedMindMapInCanvas()&&this.transform()})}getTransformData(){return{transform:this.mindMap.draw.transform(),state:{scale:this.scale,x:this.x,y:this.y,sx:this.sx,sy:this.sy}}}setTransformData(t){t&&(Object.keys(t.state).forEach(e=>{this[e]=t.state[e]}),this.mindMap.draw.transform({...t.transform}),this.mindMap.emit("view_data_change",this.getTransformData()),this.emitEvent("scale"),this.emitEvent("translate"))}translateXY(t,e){t===0&&e===0||(this.x+=t,this.y+=e,this.transform(),this.emitEvent("translate"))}translateX(t){t!==0&&(this.x+=t,this.transform(),this.emitEvent("translate"))}translateXTo(t){this.x=t,this.transform(),this.emitEvent("translate")}translateY(t){t!==0&&(this.y+=t,this.transform(),this.emitEvent("translate"))}translateYTo(t){this.y=t,this.transform(),this.emitEvent("translate")}transform(){try{this.limitMindMapInCanvas()}catch{}this.mindMap.draw.transform({origin:[0,0],scale:this.scale,translate:[this.x,this.y]}),this.mindMap.emit("view_data_change",this.getTransformData())}reset(){const t=this.scale!==1,e=this.x!==0||this.y!==0;this.scale=1,this.x=0,this.y=0,this.transform(),t&&this.emitEvent("scale"),e&&this.emitEvent("translate")}narrow(t,e,i){let{scaleRatio:n,minZoomRatio:o}=this.mindMap.opt;n=n/(i?5:1);const s=Math.max(this.scale-n,o/100);this.scaleInCenter(s,t,e),this.transform(),this.emitEvent("scale")}enlarge(t,e,i){let{scaleRatio:n,maxZoomRatio:o}=this.mindMap.opt;n=n/(i?5:1);let s=0;o===-1?s=this.scale+n:s=Math.min(this.scale+n,o/100),this.scaleInCenter(s,t,e),this.transform(),this.emitEvent("scale")}scaleInCenter(t,e,i){(e===void 0||i===void 0)&&(e=this.mindMap.width/2,i=this.mindMap.height/2);const n=this.scale,o=1-t/n,s=(e-this.x)*o,a=(i-this.y)*o;this.x+=s,this.y+=a,this.scale=t}setScale(t,e,i){e!==void 0&&i!==void 0?this.scaleInCenter(t,e,i):this.scale=t,this.transform(),this.emitEvent("scale")}fit(t=()=>{},e=!1,i){i=i===void 0?this.mindMap.opt.fitPadding:i;const n=this.mindMap.draw,o=n.transform(),s=t()||n.rbox(),a=s.width/o.scaleX,l=s.height/o.scaleY,h=a/l;let{width:c,height:u}=this.mindMap.elRect;c=c-i*2,u=u-i*2;const f=c/u;let d=0,p="";if(a<=c&&l<=u&&!e)d=1,p=1;else{let b=0;h>f?(b=c,p=2):(b=u*h,p=3),d=b/a}this.setScale(d);const m=t()||n.rbox();m.x-=this.mindMap.elRect.left,m.y-=this.mindMap.elRect.top;let v=0,g=0;p===1?(v=-m.x+i+(c-m.width)/2,g=-m.y+i+(u-m.height)/2):p===2?(v=-m.x+i,g=-m.y+i+(u-m.height)/2):p===3&&(v=-m.x+i+(c-m.width)/2,g=-m.y+i),this.translateXY(v,g)}checkNeedMindMapInCanvas(){if(this.mindMap.demonstrate&&this.mindMap.demonstrate.isInDemonstrate)return!1;const{isLimitMindMapInCanvasWhenHasScrollbar:t,isLimitMindMapInCanvas:e}=this.mindMap.opt;return this.mindMap.scrollbar?t:e}limitMindMapInCanvas(){if(!this.checkNeedMindMapInCanvas())return;let{scale:t,left:e,top:i,right:n,bottom:o}=this.getPositionLimit();const s=(this.mindMap.width-this.mindMap.initWidth)/2*t,a=(this.mindMap.height-this.mindMap.initHeight)/2*t,l=this.scale/t;e*=l,n*=l,i*=l,o*=l;const h=this.mindMap.width/2,c=this.mindMap.height/2,u=this.scale-1;e-=u*h-s,n-=u*h-s,i-=u*c-a,o-=u*c-a,this.x>e&&(this.x=e),this.x<n&&(this.x=n),this.y>i&&(this.y=i),this.y<o&&(this.y=o)}getPositionLimit(){const{scaleX:t,scaleY:e}=this.mindMap.draw.transform(),i=this.mindMap.draw.rbox(),n=this.mindMap.renderer.root.group.rbox(),o=this.mindMap.renderer.layout.getRootCenterOffset(n.width,n.height),s=n.x-i.x-o.x*t,a=n.x-i.x2-o.x*t,l=n.y-i.y-o.y*e,h=n.y-i.y2-o.y*e;return{scale:t,left:s,right:a,top:l,bottom:h}}emitEvent(t){switch(t){case"scale":this.mindMap.emit("scale",this.scale);case"translate":this.mindMap.emit("translate",this.x,this.y)}}}var Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function W2(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var e=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var n=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return r[i]}})}),e}var Lh={exports:{}},xf;function H2(){return xf||(xf=1,function(r){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=!1));function n(l,h,c){this.fn=l,this.context=h,this.once=c||!1}function o(l,h,c,u,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new n(c,u||l,f),p=e?e+h:h;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],d]:l._events[p].push(d):(l._events[p]=d,l._eventsCount++),l}function s(l,h){--l._eventsCount===0?l._events=new i:delete l._events[h]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var h=[],c,u;if(this._eventsCount===0)return h;for(u in c=this._events)t.call(c,u)&&h.push(e?u.slice(1):u);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(c)):h},a.prototype.listeners=function(h){var c=e?e+h:h,u=this._events[c];if(!u)return[];if(u.fn)return[u.fn];for(var f=0,d=u.length,p=new Array(d);f<d;f++)p[f]=u[f].fn;return p},a.prototype.listenerCount=function(h){var c=e?e+h:h,u=this._events[c];return u?u.fn?1:u.length:0},a.prototype.emit=function(h,c,u,f,d,p){var m=e?e+h:h;if(!this._events[m])return!1;var v=this._events[m],g=arguments.length,b,y;if(v.fn){switch(v.once&&this.removeListener(h,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,u),!0;case 4:return v.fn.call(v.context,c,u,f),!0;case 5:return v.fn.call(v.context,c,u,f,d),!0;case 6:return v.fn.call(v.context,c,u,f,d,p),!0}for(y=1,b=new Array(g-1);y<g;y++)b[y-1]=arguments[y];v.fn.apply(v.context,b)}else{var x=v.length,C;for(y=0;y<x;y++)switch(v[y].once&&this.removeListener(h,v[y].fn,void 0,!0),g){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,c);break;case 3:v[y].fn.call(v[y].context,c,u);break;case 4:v[y].fn.call(v[y].context,c,u,f);break;default:if(!b)for(C=1,b=new Array(g-1);C<g;C++)b[C-1]=arguments[C];v[y].fn.apply(v[y].context,b)}}return!0},a.prototype.on=function(h,c,u){return o(this,h,c,u,!1)},a.prototype.once=function(h,c,u){return o(this,h,c,u,!0)},a.prototype.removeListener=function(h,c,u,f){var d=e?e+h:h;if(!this._events[d])return this;if(!c)return s(this,d),this;var p=this._events[d];if(p.fn)p.fn===c&&(!f||p.once)&&(!u||p.context===u)&&s(this,d);else{for(var m=0,v=[],g=p.length;m<g;m++)(p[m].fn!==c||f&&!p[m].once||u&&p[m].context!==u)&&v.push(p[m]);v.length?this._events[d]=v.length===1?v[0]:v:s(this,d)}return this},a.prototype.removeAllListeners=function(h){var c;return h?(c=e?e+h:h,this._events[c]&&s(this,c)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=e,a.EventEmitter=a,r.exports=a}(Lh)),Lh.exports}var G2=H2();const V2=Sn(G2);let K2=class extends V2{constructor(t={}){super(),this.opt=t,this.mindMap=t.mindMap,this.isLeftMousedown=!1,this.isRightMousedown=!1,this.isMiddleMousedown=!1,this.mousedownPos={x:0,y:0},this.mousemovePos={x:0,y:0},this.mousemoveOffset={x:0,y:0},this.bindFn(),this.bind()}bindFn(){this.onBodyMousedown=this.onBodyMousedown.bind(this),this.onBodyClick=this.onBodyClick.bind(this),this.onDrawClick=this.onDrawClick.bind(this),this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onNodeMouseup=this.onNodeMouseup.bind(this),this.onMousewheel=this.onMousewheel.bind(this),this.onContextmenu=this.onContextmenu.bind(this),this.onSvgMousedown=this.onSvgMousedown.bind(this),this.onKeyup=this.onKeyup.bind(this),this.onMouseenter=this.onMouseenter.bind(this),this.onMouseleave=this.onMouseleave.bind(this)}bind(){document.body.addEventListener("mousedown",this.onBodyMousedown),document.body.addEventListener("click",this.onBodyClick),this.mindMap.svg.on("click",this.onDrawClick),this.mindMap.el.addEventListener("mousedown",this.onMousedown),this.mindMap.svg.on("mousedown",this.onSvgMousedown),window.addEventListener("mousemove",this.onMousemove),window.addEventListener("mouseup",this.onMouseup),this.on("node_mouseup",this.onNodeMouseup),this.mindMap.el.addEventListener("wheel",this.onMousewheel),this.mindMap.svg.on("contextmenu",this.onContextmenu),this.mindMap.svg.on("mouseenter",this.onMouseenter),this.mindMap.svg.on("mouseleave",this.onMouseleave),window.addEventListener("keyup",this.onKeyup)}unbind(){document.body.removeEventListener("mousedown",this.onBodyMousedown),document.body.removeEventListener("click",this.onBodyClick),this.mindMap.svg.off("click",this.onDrawClick),this.mindMap.el.removeEventListener("mousedown",this.onMousedown),window.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("mouseup",this.onMouseup),this.off("node_mouseup",this.onNodeMouseup),this.mindMap.el.removeEventListener("wheel",this.onMousewheel),this.mindMap.svg.off("contextmenu",this.onContextmenu),this.mindMap.svg.off("mouseenter",this.onMouseenter),this.mindMap.svg.off("mouseleave",this.onMouseleave),window.removeEventListener("keyup",this.onKeyup)}onDrawClick(t){this.emit("draw_click",t)}onBodyMousedown(t){this.emit("body_mousedown",t)}onBodyClick(t){this.emit("body_click",t)}onSvgMousedown(t){this.emit("svg_mousedown",t)}onMousedown(t){t.which===1?this.isLeftMousedown=!0:t.which===3?this.isRightMousedown=!0:t.which===2&&(this.isMiddleMousedown=!0),this.mousedownPos.x=t.clientX,this.mousedownPos.y=t.clientY,this.emit("mousedown",t,this)}onMousemove(t){let{useLeftKeySelectionRightKeyDrag:e}=this.mindMap.opt;this.mousemovePos.x=t.clientX,this.mousemovePos.y=t.clientY,this.mousemoveOffset.x=t.clientX-this.mousedownPos.x,this.mousemoveOffset.y=t.clientY-this.mousedownPos.y,this.emit("mousemove",t,this),(this.isMiddleMousedown||(e?this.isRightMousedown:this.isLeftMousedown))&&(t.preventDefault(),this.emit("drag",t,this))}onMouseup(t){this.onNodeMouseup(),this.emit("mouseup",t,this)}onNodeMouseup(){this.isLeftMousedown=!1,this.isRightMousedown=!1,this.isMiddleMousedown=!1}onMousewheel(t){t.stopPropagation(),t.preventDefault();const e=[];t.deltaY<0&&e.push(ut.DIR.UP),t.deltaY>0&&e.push(ut.DIR.DOWN),t.deltaX<0&&e.push(ut.DIR.LEFT),t.deltaX>0&&e.push(ut.DIR.RIGHT);let i=!1;const{customCheckIsTouchPad:n}=this.mindMap.opt;typeof n=="function"?i=n(t):i=Math.abs(t.deltaY)<=10,this.emit("mousewheel",t,e,this,i)}onContextmenu(t){t.preventDefault(),!t.ctrlKey&&this.emit("contextmenu",t)}onKeyup(t){this.emit("keyup",t)}onMouseenter(t){this.emit("svg_mouseenter",t)}onMouseleave(t){this.emit("svg_mouseleave",t)}};var ka=function(t){return X2(t)&&!Y2(t)};function X2(r){return!!r&&typeof r=="object"}function Y2(r){var t=Object.prototype.toString.call(r);return t==="[object RegExp]"||t==="[object Date]"||Q2(r)}var Z2=typeof Symbol=="function"&&Symbol.for,J2=Z2?Symbol.for("react.element"):60103;function Q2(r){return r.$$typeof===J2}function $2(r){return Array.isArray(r)?[]:{}}function rs(r,t){var e=t&&t.clone===!0;return e&&ka(r)?ao($2(r),r,t):r}function wf(r,t,e){var i=r.slice();return t.forEach(function(n,o){typeof i[o]>"u"?i[o]=rs(n,e):ka(n)?i[o]=ao(r[o],n,e):r.indexOf(n)===-1&&i.push(rs(n,e))}),i}function t3(r,t,e){var i={};return ka(r)&&Object.keys(r).forEach(function(n){i[n]=rs(r[n],e)}),Object.keys(t).forEach(function(n){!ka(t[n])||!r[n]?i[n]=rs(t[n],e):i[n]=ao(r[n],t[n],e)}),i}function ao(r,t,e){var i=Array.isArray(t),n=Array.isArray(r),o=e||{arrayMerge:wf},s=i===n;if(s)if(i){var a=o.arrayMerge||wf;return a(r,t,e)}else return t3(r,t,e);else return rs(t,e)}ao.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce(function(i,n){return ao(i,n,e)})};var La=ao;let Ma;const e3=new Uint8Array(16);function i3(){if(!Ma&&(Ma=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ma))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ma(e3)}const ai=[];for(let r=0;r<256;++r)ai.push((r+256).toString(16).slice(1));function r3(r,t=0){return ai[r[t+0]]+ai[r[t+1]]+ai[r[t+2]]+ai[r[t+3]]+"-"+ai[r[t+4]]+ai[r[t+5]]+"-"+ai[r[t+6]]+ai[r[t+7]]+"-"+ai[r[t+8]]+ai[r[t+9]]+"-"+ai[r[t+10]]+ai[r[t+11]]+ai[r[t+12]]+ai[r[t+13]]+ai[r[t+14]]+ai[r[t+15]]}const Ef={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Tf(r,t,e){if(Ef.randomUUID&&!r)return Ef.randomUUID();r=r||{};const i=r.random||(r.rng||i3)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,r3(i)}function Mh(r){this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(r)}Mh.prototype.init_genrand=function(r){for(this.mt[0]=r>>>0,this.mti=1;this.mti<this.N;this.mti++)r=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((r&4294901760)>>>16)*1812433253<<16)+(r&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0},Mh.prototype.genrand_int32=function(){var r,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var e;for(this.mti==this.N+1&&this.init_genrand(5489),e=0;e<this.N-this.M;e++)r=this.mt[e]&this.UPPER_MASK|this.mt[e+1]&this.LOWER_MASK,this.mt[e]=this.mt[e+this.M]^r>>>1^t[r&1];for(;e<this.N-1;e++)r=this.mt[e]&this.UPPER_MASK|this.mt[e+1]&this.LOWER_MASK,this.mt[e]=this.mt[e+(this.M-this.N)]^r>>>1^t[r&1];r=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^r>>>1^t[r&1],this.mti=0}return r=this.mt[this.mti++],r^=r>>>11,r^=r<<7&2636928640,r^=r<<15&4022730752,r^=r>>>18,r>>>0};const Dh={},Cf=[];function ue(r,t){if(Array.isArray(r)){for(const e of r)ue(e,t);return}if(typeof r=="object"){for(const e in r)ue(e,r[e]);return}Sf(Object.getOwnPropertyNames(t)),Dh[r]=Object.assign(Dh[r]||{},t)}function Si(r){return Dh[r]||{}}function n3(){return[...new Set(Cf)]}function Sf(r){Cf.push(...r)}function Oh(r,t){let e;const i=r.length,n=[];for(e=0;e<i;e++)n.push(t(r[e]));return n}function o3(r,t){let e;const i=r.length,n=[];for(e=0;e<i;e++)t(r[e])&&n.push(r[e]);return n}function Rh(r){return r%360*Math.PI/180}function Da(r){return r.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function s3(r){return r.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function Nf(r){return r.charAt(0).toUpperCase()+r.slice(1)}function lo(r,t,e,i){return(t==null||e==null)&&(i=i||r.bbox(),t==null?t=i.width/i.height*e:e==null&&(e=i.height/i.width*t)),{width:t,height:e}}function Fh(r,t){const e=r.origin;let i=r.ox!=null?r.ox:r.originX!=null?r.originX:"center",n=r.oy!=null?r.oy:r.originY!=null?r.originY:"center";e!=null&&([i,n]=Array.isArray(e)?e:typeof e=="object"?[e.x,e.y]:[e,e]);const o=typeof i=="string",s=typeof n=="string";if(o||s){const{height:a,width:l,x:h,y:c}=t.bbox();o&&(i=i.includes("left")?h:i.includes("right")?h+l:h+l/2),s&&(n=n.includes("top")?c:n.includes("bottom")?c+a:c+a/2)}return[i,n]}const Ih="http://www.w3.org/2000/svg",a3="http://www.w3.org/1999/xhtml",Oa="http://www.w3.org/2000/xmlns/",ns="http://www.w3.org/1999/xlink",l3="http://svgjs.dev/svgjs",Ce={window:typeof window>"u"?null:window,document:typeof document>"u"?null:document};let Bh=class{};const Nn={},zh="___SYMBOL___ROOT___";function os(r,t=Ih){return Ce.document.createElementNS(t,r)}function xi(r,t=!1){if(r instanceof Bh)return r;if(typeof r=="object")return Ph(r);if(r==null)return new Nn[zh];if(typeof r=="string"&&r.charAt(0)!=="<")return Ph(Ce.document.querySelector(r));const e=t?Ce.document.createElement("div"):os("svg");return e.innerHTML=r,r=Ph(e.firstChild),e.removeChild(e.firstChild),r}function Be(r,t){return t&&t.ownerDocument&&t instanceof t.ownerDocument.defaultView.Node?t:os(r)}function ji(r){if(!r)return null;if(r.instance instanceof Bh)return r.instance;if(r.nodeName==="#document-fragment")return new Nn.Fragment(r);let t=Nf(r.nodeName||"Dom");return t==="LinearGradient"||t==="RadialGradient"?t="Gradient":Nn[t]||(t="Dom"),new Nn[t](r)}let Ph=ji;function we(r,t=r.name,e=!1){return Nn[t]=r,e&&(Nn[zh]=r),Sf(Object.getOwnPropertyNames(r.prototype)),r}function h3(r){return Nn[r]}let c3=1e3;function Af(r){return"Svgjs"+Nf(r)+c3++}function _f(r){for(let t=r.children.length-1;t>=0;t--)_f(r.children[t]);return r.id&&(r.id=Af(r.nodeName)),r}function fe(r,t){let e,i;for(r=Array.isArray(r)?r:[r],i=r.length-1;i>=0;i--)for(e in t)r[i].prototype[e]=t[e]}function ze(r){return function(...t){const e=t[t.length-1];return e&&e.constructor===Object&&!(e instanceof Array)?r.apply(this,t.slice(0,-1)).attr(e):r.apply(this,t)}}function u3(){return this.parent().children()}function d3(){return this.parent().index(this)}function f3(){return this.siblings()[this.position()+1]}function p3(){return this.siblings()[this.position()-1]}function g3(){const r=this.position();return this.parent().add(this.remove(),r+1),this}function m3(){const r=this.position();return this.parent().add(this.remove(),r?r-1:0),this}function v3(){return this.parent().add(this.remove()),this}function y3(){return this.parent().add(this.remove(),0),this}function b3(r){r=xi(r),r.remove();const t=this.position();return this.parent().add(r,t),this}function x3(r){r=xi(r),r.remove();const t=this.position();return this.parent().add(r,t+1),this}function w3(r){return r=xi(r),r.before(this),this}function E3(r){return r=xi(r),r.after(this),this}ue("Dom",{siblings:u3,position:d3,next:f3,prev:p3,forward:g3,backward:m3,front:v3,back:y3,before:b3,after:x3,insertBefore:w3,insertAfter:E3});const kf=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,T3=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,C3=/rgb\((\d+),(\d+),(\d+)\)/,S3=/(#[a-z_][a-z0-9\-_]*)/i,N3=/\)\s*,?\s*/,A3=/\s/g,Lf=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Mf=/^rgb\(/,Df=/^(\s+)?$/,Of=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_3=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Or=/[\s,]+/,Uh=/[MLHVCSQTAZ]/i;function k3(){const r=this.attr("class");return r==null?[]:r.trim().split(Or)}function L3(r){return this.classes().indexOf(r)!==-1}function M3(r){if(!this.hasClass(r)){const t=this.classes();t.push(r),this.attr("class",t.join(" "))}return this}function D3(r){return this.hasClass(r)&&this.attr("class",this.classes().filter(function(t){return t!==r}).join(" ")),this}function O3(r){return this.hasClass(r)?this.removeClass(r):this.addClass(r)}ue("Dom",{classes:k3,hasClass:L3,addClass:M3,removeClass:D3,toggleClass:O3});function R3(r,t){const e={};if(arguments.length===0)return this.node.style.cssText.split(/\s*;\s*/).filter(function(i){return!!i.length}).forEach(function(i){const n=i.split(/\s*:\s*/);e[n[0]]=n[1]}),e;if(arguments.length<2){if(Array.isArray(r)){for(const i of r){const n=Da(i);e[i]=this.node.style[n]}return e}if(typeof r=="string")return this.node.style[Da(r)];if(typeof r=="object")for(const i in r)this.node.style[Da(i)]=r[i]==null||Df.test(r[i])?"":r[i]}return arguments.length===2&&(this.node.style[Da(r)]=t==null||Df.test(t)?"":t),this}function F3(){return this.css("display","")}function I3(){return this.css("display","none")}function B3(){return this.css("display")!=="none"}ue("Dom",{css:R3,show:F3,hide:I3,visible:B3});function z3(r,t,e){if(r==null)return this.data(Oh(o3(this.node.attributes,i=>i.nodeName.indexOf("data-")===0),i=>i.nodeName.slice(5)));if(r instanceof Array){const i={};for(const n of r)i[n]=this.data(n);return i}else if(typeof r=="object")for(t in r)this.data(t,r[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+r))}catch{return this.attr("data-"+r)}else this.attr("data-"+r,t===null?null:e===!0||typeof t=="string"||typeof t=="number"?t:JSON.stringify(t));return this}ue("Dom",{data:z3});function P3(r,t){if(typeof arguments[0]=="object")for(const e in r)this.remember(e,r[e]);else{if(arguments.length===1)return this.memory()[r];this.memory()[r]=t}return this}function U3(){if(arguments.length===0)this._memory={};else for(let r=arguments.length-1;r>=0;r--)delete this.memory()[arguments[r]];return this}function j3(){return this._memory=this._memory||{}}ue("Dom",{remember:P3,forget:U3,memory:j3});function q3(r){return r.length===4?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r}function W3(r){const t=Math.round(r),i=Math.max(0,Math.min(255,t)).toString(16);return i.length===1?"0"+i:i}function ho(r,t){for(let e=t.length;e--;)if(r[t[e]]==null)return!1;return!0}function H3(r,t){const e=ho(r,"rgb")?{_a:r.r,_b:r.g,_c:r.b,_d:0,space:"rgb"}:ho(r,"xyz")?{_a:r.x,_b:r.y,_c:r.z,_d:0,space:"xyz"}:ho(r,"hsl")?{_a:r.h,_b:r.s,_c:r.l,_d:0,space:"hsl"}:ho(r,"lab")?{_a:r.l,_b:r.a,_c:r.b,_d:0,space:"lab"}:ho(r,"lch")?{_a:r.l,_b:r.c,_c:r.h,_d:0,space:"lch"}:ho(r,"cmyk")?{_a:r.c,_b:r.m,_c:r.y,_d:r.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return e.space=t||e.space,e}function G3(r){return r==="lab"||r==="xyz"||r==="lch"}function jh(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*6*e:e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}class De{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof De||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&typeof t.r=="number"&&typeof t.g=="number"&&typeof t.b=="number"}static random(t="vibrant",e,i){const{random:n,round:o,sin:s,PI:a}=Math;if(t==="vibrant"){const l=24*n()+57,h=38*n()+45,c=360*n();return new De(l,h,c,"lch")}else if(t==="sine"){e=e??n();const l=o(80*s(2*a*e/.5+.01)+150),h=o(50*s(2*a*e/.5+4.6)+200),c=o(100*s(2*a*e/.5+2.3)+150);return new De(l,h,c)}else if(t==="pastel"){const l=8*n()+86,h=17*n()+9,c=360*n();return new De(l,h,c,"lch")}else if(t==="dark"){const l=10+10*n(),h=50*n()+86,c=360*n();return new De(l,h,c,"lch")}else if(t==="rgb"){const l=255*n(),h=255*n(),c=255*n();return new De(l,h,c)}else if(t==="lab"){const l=100*n(),h=256*n()-128,c=256*n()-128;return new De(l,h,c,"lab")}else if(t==="grey"){const l=255*n();return new De(l,l,l)}else throw new Error("Unsupported random color mode")}static test(t){return typeof t=="string"&&(Lf.test(t)||Mf.test(t))}cmyk(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,o,s]=[t,e,i].map(f=>f/255),a=Math.min(1-n,1-o,1-s);if(a===1)return new De(0,0,0,1,"cmyk");const l=(1-n-a)/(1-a),h=(1-o-a)/(1-a),c=(1-s-a)/(1-a);return new De(l,h,c,a,"cmyk")}hsl(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,o,s]=[t,e,i].map(m=>m/255),a=Math.max(n,o,s),l=Math.min(n,o,s),h=(a+l)/2,c=a===l,u=a-l,f=c?0:h>.5?u/(2-a-l):u/(a+l),d=c?0:a===n?((o-s)/u+(o<s?6:0))/6:a===o?((s-n)/u+2)/6:a===s?((n-o)/u+4)/6:0;return new De(360*d,100*f,100*h,"hsl")}init(t=0,e=0,i=0,n=0,o="rgb"){if(t=t||0,this.space)for(const u in this.space)delete this[this.space[u]];if(typeof t=="number")o=typeof n=="string"?n:o,n=typeof n=="string"?0:n,Object.assign(this,{_a:t,_b:e,_c:i,_d:n,space:o});else if(t instanceof Array)this.space=e||(typeof t[3]=="string"?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const u=H3(t,e);Object.assign(this,u)}else if(typeof t=="string")if(Mf.test(t)){const u=t.replace(A3,""),[f,d,p]=C3.exec(u).slice(1,4).map(m=>parseInt(m));Object.assign(this,{_a:f,_b:d,_c:p,_d:0,space:"rgb"})}else if(Lf.test(t)){const u=m=>parseInt(m,16),[,f,d,p]=T3.exec(q3(t)).map(u);Object.assign(this,{_a:f,_b:d,_c:p,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color");const{_a:s,_b:a,_c:l,_d:h}=this,c=this.space==="rgb"?{r:s,g:a,b:l}:this.space==="xyz"?{x:s,y:a,z:l}:this.space==="hsl"?{h:s,s:a,l}:this.space==="lab"?{l:s,a,b:l}:this.space==="lch"?{l:s,c:a,h:l}:this.space==="cmyk"?{c:s,m:a,y:l,k:h}:{};Object.assign(this,c)}lab(){const{x:t,y:e,z:i}=this.xyz(),n=116*e-16,o=500*(t-e),s=200*(e-i);return new De(n,o,s,"lab")}lch(){const{l:t,a:e,b:i}=this.lab(),n=Math.sqrt(e**2+i**2);let o=180*Math.atan2(i,e)/Math.PI;return o<0&&(o*=-1,o=360-o),new De(t,n,o,"lch")}rgb(){if(this.space==="rgb")return this;if(G3(this.space)){let{x:t,y:e,z:i}=this;if(this.space==="lab"||this.space==="lch"){let{l:d,a:p,b:m}=this;if(this.space==="lch"){const{c:R,h:F}=this,U=Math.PI/180;p=R*Math.cos(U*F),m=R*Math.sin(U*F)}const v=(d+16)/116,g=p/500+v,b=v-m/200,y=16/116,x=.008856,C=7.787;t=.95047*(g**3>x?g**3:(g-y)/C),e=1*(v**3>x?v**3:(v-y)/C),i=1.08883*(b**3>x?b**3:(b-y)/C)}const n=t*3.2406+e*-1.5372+i*-.4986,o=t*-.9689+e*1.8758+i*.0415,s=t*.0557+e*-.204+i*1.057,a=Math.pow,l=.0031308,h=n>l?1.055*a(n,1/2.4)-.055:12.92*n,c=o>l?1.055*a(o,1/2.4)-.055:12.92*o,u=s>l?1.055*a(s,1/2.4)-.055:12.92*s;return new De(255*h,255*c,255*u)}else if(this.space==="hsl"){let{h:t,s:e,l:i}=this;if(t/=360,e/=100,i/=100,e===0)return i*=255,new De(i,i,i);const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n,s=255*jh(o,n,t+1/3),a=255*jh(o,n,t),l=255*jh(o,n,t-1/3);return new De(s,a,l)}else if(this.space==="cmyk"){const{c:t,m:e,y:i,k:n}=this,o=255*(1-Math.min(1,t*(1-n)+n)),s=255*(1-Math.min(1,e*(1-n)+n)),a=255*(1-Math.min(1,i*(1-n)+n));return new De(o,s,a)}else return this}toArray(){const{_a:t,_b:e,_c:i,_d:n,space:o}=this;return[t,e,i,n,o]}toHex(){const[t,e,i]=this._clamped().map(W3);return`#${t}${e}${i}`}toRgb(){const[t,e,i]=this._clamped();return`rgb(${t},${e},${i})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,o,s]=[t,e,i].map(g=>g/255),a=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,l=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,c=(a*.4124+l*.3576+h*.1805)/.95047,u=(a*.2126+l*.7152+h*.0722)/1,f=(a*.0193+l*.1192+h*.9505)/1.08883,d=c>.008856?Math.pow(c,1/3):7.787*c+16/116,p=u>.008856?Math.pow(u,1/3):7.787*u+16/116,m=f>.008856?Math.pow(f,1/3):7.787*f+16/116;return new De(d,p,m,"xyz")}_clamped(){const{_a:t,_b:e,_c:i}=this.rgb(),{max:n,min:o,round:s}=Math,a=l=>n(0,o(s(l),255));return[t,e,i].map(a)}}class Ge{constructor(...t){this.init(...t)}clone(){return new Ge(this)}init(t,e){const i={x:0,y:0},n=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t=="object"?{x:t.x,y:t.y}:{x:t,y:e};return this.x=n.x==null?i.x:n.x,this.y=n.y==null?i.y:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){Jt.isMatrixLike(t)||(t=new Jt(t));const{x:e,y:i}=this;return this.x=t.a*e+t.c*i+t.e,this.y=t.b*e+t.d*i+t.f,this}}function V3(r,t){return new Ge(r,t).transformO(this.screenCTM().inverseO())}function co(r,t,e){return Math.abs(t-r)<1e-6}class Jt{constructor(...t){this.init(...t)}static formatTransforms(t){const e=t.flip==="both"||t.flip===!0,i=t.flip&&(e||t.flip==="x")?-1:1,n=t.flip&&(e||t.flip==="y")?-1:1,o=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,a=t.scale&&t.scale.length?t.scale[0]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleX)?t.scaleX*i:i,l=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n,h=t.shear||0,c=t.rotate||t.theta||0,u=new Ge(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),f=u.x,d=u.y,p=new Ge(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),m=p.x,v=p.y,g=new Ge(t.translate||t.tx||t.translateX,t.ty||t.translateY),b=g.x,y=g.y,x=new Ge(t.relative||t.rx||t.relativeX,t.ry||t.relativeY),C=x.x,R=x.y;return{scaleX:a,scaleY:l,skewX:o,skewY:s,shear:h,theta:c,rx:C,ry:R,tx:b,ty:y,ox:f,oy:d,px:m,py:v}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null}static matrixMultiply(t,e,i){const n=t.a*e.a+t.c*e.b,o=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,a=t.b*e.c+t.d*e.d,l=t.e+t.a*e.e+t.c*e.f,h=t.f+t.b*e.e+t.d*e.f;return i.a=n,i.b=o,i.c=s,i.d=a,i.e=l,i.f=h,i}around(t,e,i){return this.clone().aroundO(t,e,i)}aroundO(t,e,i){const n=t||0,o=e||0;return this.translateO(-n,-o).lmultiplyO(i).translateO(n,o)}clone(){return new Jt(this)}decompose(t=0,e=0){const i=this.a,n=this.b,o=this.c,s=this.d,a=this.e,l=this.f,h=i*s-n*o,c=h>0?1:-1,u=c*Math.sqrt(i*i+n*n),f=Math.atan2(c*n,c*i),d=180/Math.PI*f,p=Math.cos(f),m=Math.sin(f),v=(i*o+n*s)/h,g=o*u/(v*i-n)||s*u/(v*n+i),b=a-t+t*p*u+e*(v*p*u-m*g),y=l-e+t*m*u+e*(v*m*u+p*g);return{scaleX:u,scaleY:g,shear:v,rotate:d,translateX:b,translateY:y,originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new Jt(t);return co(this.a,e.a)&&co(this.b,e.b)&&co(this.c,e.c)&&co(this.d,e.d)&&co(this.e,e.e)&&co(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return t==="x"?this.scaleO(-1,1,e,0):t==="y"?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=Jt.fromArray([1,0,0,1,0,0]);return t=t instanceof xr?t.matrixify():typeof t=="string"?Jt.fromArray(t.split(Or).map(parseFloat)):Array.isArray(t)?Jt.fromArray(t):typeof t=="object"&&Jt.isMatrixLike(t)?t:typeof t=="object"?new Jt().transform(t):arguments.length===6?Jt.fromArray([].slice.call(arguments)):e,this.a=t.a!=null?t.a:e.a,this.b=t.b!=null?t.b:e.b,this.c=t.c!=null?t.c:e.c,this.d=t.d!=null?t.d:e.d,this.e=t.e!=null?t.e:e.e,this.f=t.f!=null?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,i=this.c,n=this.d,o=this.e,s=this.f,a=t*n-e*i;if(!a)throw new Error("Cannot invert "+this);const l=n/a,h=-e/a,c=-i/a,u=t/a,f=-(l*o+c*s),d=-(h*o+u*s);return this.a=l,this.b=h,this.c=c,this.d=u,this.e=f,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=this,i=t instanceof Jt?t:new Jt(t);return Jt.matrixMultiply(i,e,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=this,i=t instanceof Jt?t:new Jt(t);return Jt.matrixMultiply(e,i,this)}rotate(t,e,i){return this.clone().rotateO(t,e,i)}rotateO(t,e=0,i=0){t=Rh(t);const n=Math.cos(t),o=Math.sin(t),{a:s,b:a,c:l,d:h,e:c,f:u}=this;return this.a=s*n-a*o,this.b=a*n+s*o,this.c=l*n-h*o,this.d=h*n+l*o,this.e=c*n-u*o+i*o-e*n+e,this.f=u*n+c*o-e*o-i*n+i,this}scale(t,e,i,n){return this.clone().scaleO(...arguments)}scaleO(t,e=t,i=0,n=0){arguments.length===3&&(n=i,i=e,e=t);const{a:o,b:s,c:a,d:l,e:h,f:c}=this;return this.a=o*t,this.b=s*e,this.c=a*t,this.d=l*e,this.e=h*t-i*t+i,this.f=c*e-n*e+n,this}shear(t,e,i){return this.clone().shearO(t,e,i)}shearO(t,e=0,i=0){const{a:n,b:o,c:s,d:a,e:l,f:h}=this;return this.a=n+o*t,this.c=s+a*t,this.e=l+h*t-i*t,this}skew(t,e,i,n){return this.clone().skewO(...arguments)}skewO(t,e=t,i=0,n=0){arguments.length===3&&(n=i,i=e,e=t),t=Rh(t),e=Rh(e);const o=Math.tan(t),s=Math.tan(e),{a,b:l,c:h,d:c,e:u,f}=this;return this.a=a+l*o,this.b=l+a*s,this.c=h+c*o,this.d=c+h*s,this.e=u+f*o-n*o,this.f=f+u*s-i*s,this}skewX(t,e,i){return this.skew(t,0,e,i)}skewY(t,e,i){return this.skew(0,t,e,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(Jt.isMatrixLike(t))return new Jt(t).multiplyO(this);const e=Jt.formatTransforms(t),i=this,{x:n,y:o}=new Ge(e.ox,e.oy).transform(i),s=new Jt().translateO(e.rx,e.ry).lmultiplyO(i).translateO(-n,-o).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,o);if(isFinite(e.px)||isFinite(e.py)){const a=new Ge(n,o).transform(s),l=isFinite(e.px)?e.px-a.x:0,h=isFinite(e.py)?e.py-a.y:0;s.translateO(l,h)}return s.translateO(e.tx,e.ty),s}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function K3(){return new Jt(this.node.getCTM())}function X3(){if(typeof this.isRoot=="function"&&!this.isRoot()){const r=this.rect(1,1),t=r.node.getScreenCTM();return r.remove(),new Jt(t)}return new Jt(this.node.getScreenCTM())}we(Jt,"Matrix");function Yr(){if(!Yr.nodes){const r=xi().size(2,0);r.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),r.attr("focusable","false"),r.attr("aria-hidden","true");const t=r.path().node;Yr.nodes={svg:r,path:t}}if(!Yr.nodes.svg.node.parentNode){const r=Ce.document.body||Ce.document.documentElement;Yr.nodes.svg.addTo(r)}return Yr.nodes}function Rf(r){return!r.width&&!r.height&&!r.x&&!r.y}function Y3(r){return r===Ce.document||(Ce.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Ce.document}).call(Ce.document.documentElement,r)}class di{constructor(...t){this.init(...t)}addOffset(){return this.x+=Ce.window.pageXOffset,this.y+=Ce.window.pageYOffset,new di(this)}init(t){const e=[0,0,0,0];return t=typeof t=="string"?t.split(Or).map(parseFloat):Array.isArray(t)?t:typeof t=="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):e,this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Rf(this)}merge(t){const e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.x+this.width,t.x+t.width)-e,o=Math.max(this.y+this.height,t.y+t.height)-i;return new di(e,i,n,o)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof Jt||(t=new Jt(t));let e=1/0,i=-1/0,n=1/0,o=-1/0;return[new Ge(this.x,this.y),new Ge(this.x2,this.y),new Ge(this.x,this.y2),new Ge(this.x2,this.y2)].forEach(function(a){a=a.transform(t),e=Math.min(e,a.x),i=Math.max(i,a.x),n=Math.min(n,a.y),o=Math.max(o,a.y)}),new di(e,n,i-e,o-n)}}function Ff(r,t,e){let i;try{if(i=t(r.node),Rf(i)&&!Y3(r.node))throw new Error("Element not in the dom")}catch{i=e(r)}return i}function Z3(){const e=Ff(this,n=>n.getBBox(),n=>{try{const o=n.clone().addTo(Yr().svg).show(),s=o.node.getBBox();return o.remove(),s}catch(o){throw new Error(`Getting bbox of element "${n.node.nodeName}" is not possible: ${o.toString()}`)}});return new di(e)}function J3(r){const i=Ff(this,o=>o.getBoundingClientRect(),o=>{throw new Error(`Getting rbox of element "${o.node.nodeName}" is not possible`)}),n=new di(i);return r?n.transform(r.screenCTM().inverseO()):n.addOffset()}function Q3(r,t){const e=this.bbox();return r>e.x&&t>e.y&&r<e.x+e.width&&t<e.y+e.height}ue({viewbox:{viewbox(r,t,e,i){return r==null?new di(this.attr("viewBox")):this.attr("viewBox",new di(r,t,e,i))},zoom(r,t){let{width:e,height:i}=this.attr(["width","height"]);if((!e&&!i||typeof e=="string"||typeof i=="string")&&(e=this.node.clientWidth,i=this.node.clientHeight),!e||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const n=this.viewbox(),o=e/n.width,s=i/n.height,a=Math.min(o,s);if(r==null)return a;let l=a/r;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),t=t||new Ge(e/2/o+n.x,i/2/s+n.y);const h=new di(n).transform(new Jt({scale:l,origin:t}));return this.viewbox(h)}}}),we(di,"Box");class An extends Array{constructor(t=[],...e){if(super(t,...e),typeof t=="number")return this;this.length=0,this.push(...t)}}fe([An],{each(r,...t){return typeof r=="function"?this.map((e,i,n)=>r.call(e,e,i,n)):this.map(e=>e[r](...t))},toArray(){return Array.prototype.concat.apply([],this)}});const $3=["toArray","constructor","each"];An.extend=function(r){r=r.reduce((t,e)=>($3.includes(e)||e[0]==="_"||(t[e]=function(...i){return this.each(e,...i)}),t),{}),fe([An],r)};function uo(r,t){return new An(Oh((t||Ce.document).querySelectorAll(r),function(e){return ji(e)}))}function tv(r){return uo(r,this.node)}function ev(r){return ji(this.node.querySelector(r))}let iv=0;const If={};function Bf(r){let t=r.getEventHolder();return t===Ce.window&&(t=If),t.events||(t.events={}),t.events}function qh(r){return r.getEventTarget()}function rv(r){let t=r.getEventHolder();t===Ce.window&&(t=If),t.events&&(t.events={})}function Wh(r,t,e,i,n){const o=e.bind(i||r),s=xi(r),a=Bf(s),l=qh(s);t=Array.isArray(t)?t:t.split(Or),e._svgjsListenerId||(e._svgjsListenerId=++iv),t.forEach(function(h){const c=h.split(".")[0],u=h.split(".")[1]||"*";a[c]=a[c]||{},a[c][u]=a[c][u]||{},a[c][u][e._svgjsListenerId]=o,l.addEventListener(c,o,n||!1)})}function fo(r,t,e,i){const n=xi(r),o=Bf(n),s=qh(n);typeof e=="function"&&(e=e._svgjsListenerId,!e)||(t=Array.isArray(t)?t:(t||"").split(Or),t.forEach(function(a){const l=a&&a.split(".")[0],h=a&&a.split(".")[1];let c,u;if(e)o[l]&&o[l][h||"*"]&&(s.removeEventListener(l,o[l][h||"*"][e],i||!1),delete o[l][h||"*"][e]);else if(l&&h){if(o[l]&&o[l][h]){for(u in o[l][h])fo(s,[l,h].join("."),u);delete o[l][h]}}else if(h)for(a in o)for(c in o[a])h===c&&fo(s,[a,h].join("."));else if(l){if(o[l]){for(c in o[l])fo(s,[l,c].join("."));delete o[l]}}else{for(a in o)fo(s,a);rv(n)}}))}function nv(r,t,e,i){const n=qh(r);return t instanceof Ce.window.Event||(t=new Ce.window.CustomEvent(t,{detail:e,cancelable:!0,...i})),n.dispatchEvent(t),t}class ss extends Bh{addEventListener(){}dispatch(t,e,i){return nv(this,t,e,i)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const i=e[t.type];for(const n in i)for(const o in i[n])i[n][o](t);return!t.defaultPrevented}fire(t,e,i){return this.dispatch(t,e,i),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,i){return fo(this,t,e,i),this}on(t,e,i,n){return Wh(this,t,e,i,n),this}removeEventListener(){}}we(ss,"EventTarget");function zf(){}const as={duration:400,ease:">",delay:0},ov={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class po extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return typeof t=="number"?this:(this.length=0,this.push(...this.parse(t)),this)}parse(t=[]){return t instanceof Array?t:t.trim().split(Or).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class oe{constructor(...t){this.init(...t)}convert(t){return new oe(this.value,t)}divide(t){return t=new oe(t),new oe(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"",typeof t=="number"?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:typeof t=="string"?(e=t.match(kf),e&&(this.value=parseFloat(e[1]),e[5]==="%"?this.value/=100:e[5]==="s"&&(this.value*=1e3),this.unit=e[5])):t instanceof oe&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new oe(t),new oe(this-t,this.unit||t.unit)}plus(t){return t=new oe(t),new oe(this+t,this.unit||t.unit)}times(t){return t=new oe(t),new oe(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Pf=[];function sv(r){Pf.push(r)}function av(r,t,e){if(r==null){r={},t=this.node.attributes;for(const i of t)r[i.nodeName]=Of.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return r}else{if(r instanceof Array)return r.reduce((i,n)=>(i[n]=this.attr(n),i),{});if(typeof r=="object"&&r.constructor===Object)for(t in r)this.attr(t,r[t]);else if(t===null)this.node.removeAttribute(r);else{if(t==null)return t=this.node.getAttribute(r),t==null?ov[r]:Of.test(t)?parseFloat(t):t;t=Pf.reduce((i,n)=>n(r,i,this),t),typeof t=="number"?t=new oe(t):De.isColor(t)?t=new De(t):t.constructor===Array&&(t=new po(t)),r==="leading"?this.leading&&this.leading(t):typeof e=="string"?this.node.setAttributeNS(e,r,t.toString()):this.node.setAttribute(r,t.toString()),this.rebuild&&(r==="font-size"||r==="x")&&this.rebuild()}}return this}class Zr extends ss{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return t=xi(t),t.removeNamespace&&this.node instanceof Ce.window.SVGElement&&t.removeNamespace(),e==null?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return xi(t).put(this,e)}children(){return new An(Oh(this.node.children,function(t){return ji(t)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let i=this.node.cloneNode(t);return e&&(i=_f(i)),new this.constructor(i)}each(t,e){const i=this.children();let n,o;for(n=0,o=i.length;n<o;n++)t.apply(i[n],[n,i]),e&&i[n].each(t,e);return this}element(t,e){return this.put(new Zr(os(t),e))}first(){return ji(this.node.firstChild)}get(t){return ji(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,a3)}id(t){return typeof t>"u"&&!this.node.id&&(this.node.id=Af(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return ji(this.node.lastChild)}matches(t){const e=this.node,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return i&&i.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=ji(e.node.parentNode),!t)return e;do if(typeof t=="string"?e.matches(t):e instanceof t)return e;while(e=ji(e.node.parentNode));return e}put(t,e){return t=xi(t),this.add(t,e),t}putIn(t,e){return xi(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=xi(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const i=10**t,n=this.attr(e);for(const o in n)typeof n[o]=="number"&&(n[o]=Math.round(n[o]*i)/i);return this.attr(n),this}svg(t,e){return this.xml(t,e,Ih)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const i=e.index(this);return e.put(t,i).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(t,e,i){if(typeof t=="boolean"&&(i=e,e=t,t=null),t==null||typeof t=="function"){e=e??!0,this.writeDataToDom();let a=this;if(t!=null){if(a=ji(a.node.cloneNode(!0)),e){const l=t(a);if(a=l||a,l===!1)return""}a.each(function(){const l=t(this),h=l||this;l===!1?this.remove():l&&this!==h&&this.replace(h)},!0)}return e?a.node.outerHTML:a.node.innerHTML}e=e??!1;const n=os("wrapper",i),o=Ce.document.createDocumentFragment();n.innerHTML=t;for(let a=n.children.length;a--;)o.appendChild(n.firstElementChild);const s=this.parent();return e?this.replace(o)&&s:this.add(o)}}fe(Zr,{attr:av,find:tv,findOne:ev}),we(Zr,"Dom");let xr=class extends Zr{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,e){return this.cx(t).cy(e)}cx(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new oe(t).plus(this.x()))}dy(t=0){return this.y(new oe(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e=typeof t=="string";e||(t=xi(t));const i=new An;let n=this;for(;(n=n.parent())&&n.node!==Ce.document&&n.nodeName!=="#document-fragment"&&(i.push(n),!(!e&&n.node===t.node||e&&n.matches(t)));)if(n.node===this.root().node)return null;return i}reference(t){if(t=this.attr(t),!t)return null;const e=(t+"").match(S3);return e?xi(e[1]):null}root(){const t=this.parent(h3(zh));return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const i=lo(this,t,e);return this.width(new oe(i.width)).height(new oe(i.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}};fe(xr,{bbox:Z3,rbox:J3,inside:Q3,point:V3,ctm:K3,screenCTM:X3}),we(xr,"Element");const ls={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(r,t){return t==="color"?r:r+"-"+t}};["fill","stroke"].forEach(function(r){const t={};let e;t[r]=function(i){if(typeof i>"u")return this.attr(r);if(typeof i=="string"||i instanceof De||De.isRgb(i)||i instanceof xr)this.attr(r,i);else for(e=ls[r].length-1;e>=0;e--)i[ls[r][e]]!=null&&this.attr(ls.prefix(r,ls[r][e]),i[ls[r][e]]);return this},ue(["Element","Runner"],t)}),ue(["Element","Runner"],{matrix:function(r,t,e,i,n,o){return r==null?new Jt(this):this.attr("transform",new Jt(r,t,e,i,n,o))},rotate:function(r,t,e){return this.transform({rotate:r,ox:t,oy:e},!0)},skew:function(r,t,e,i){return arguments.length===1||arguments.length===3?this.transform({skew:r,ox:t,oy:e},!0):this.transform({skew:[r,t],ox:e,oy:i},!0)},shear:function(r,t,e){return this.transform({shear:r,ox:t,oy:e},!0)},scale:function(r,t,e,i){return arguments.length===1||arguments.length===3?this.transform({scale:r,ox:t,oy:e},!0):this.transform({scale:[r,t],ox:e,oy:i},!0)},translate:function(r,t){return this.transform({translate:[r,t]},!0)},relative:function(r,t){return this.transform({relative:[r,t]},!0)},flip:function(r="both",t="center"){return"xybothtrue".indexOf(r)===-1&&(t=r,r="both"),this.transform({flip:r,origin:t},!0)},opacity:function(r){return this.attr("opacity",r)}}),ue("radius",{radius:function(r,t=r){return(this._element||this).type==="radialGradient"?this.attr("r",new oe(r)):this.rx(r).ry(t)}}),ue("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(r){return new Ge(this.node.getPointAtLength(r))}}),ue(["Element","Runner"],{font:function(r,t){if(typeof r=="object"){for(t in r)this.font(t,r[t]);return this}return r==="leading"?this.leading(t):r==="anchor"?this.attr("text-anchor",t):r==="size"||r==="family"||r==="weight"||r==="stretch"||r==="variant"||r==="style"?this.attr("font-"+r,t):this.attr(r,t)}});const lv=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce(function(r,t){const e=function(i){return i===null?this.off(t):this.on(t,i),this};return r[t]=e,r},{});ue("Element",lv);function hv(){return this.attr("transform",null)}function cv(){return(this.attr("transform")||"").split(N3).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Or).map(function(i){return parseFloat(i)})]}).reverse().reduce(function(t,e){return e[0]==="matrix"?t.lmultiply(Jt.fromArray(e[1])):t[e[0]].apply(t,e[1])},new Jt)}function uv(r,t){if(this===r)return this;const e=this.screenCTM(),i=r.screenCTM().inverse();return this.addTo(r,t).untransform().transform(i.multiply(e)),this}function dv(r){return this.toParent(this.root(),r)}function fv(r,t){if(r==null||typeof r=="string"){const n=new Jt(this).decompose();return r==null?n:n[r]}Jt.isMatrixLike(r)||(r={...r,origin:Fh(r,this)});const e=t===!0?this:t||!1,i=new Jt(e).transform(r);return this.attr("transform",i)}ue("Element",{untransform:hv,matrixify:cv,toParent:uv,toRoot:dv,transform:fv});let qi=class B2 extends xr{flatten(t=this,e){return this.each(function(){if(this instanceof B2)return this.flatten().ungroup()}),this}ungroup(t=this.parent(),e=t.index(this)){return e=e===-1?t.children().length:e,this.each(function(i,n){return n[n.length-i-1].toParent(t,e)}),this.remove()}};we(qi,"Container");class Hh extends qi{constructor(t,e=t){super(Be("defs",t),e)}flatten(){return this}ungroup(){return this}}we(Hh,"Defs");let Li=class extends xr{};we(Li,"Shape");function Gh(r){return this.attr("rx",r)}function Vh(r){return this.attr("ry",r)}function Uf(r){return r==null?this.cx()-this.rx():this.cx(r+this.rx())}function jf(r){return r==null?this.cy()-this.ry():this.cy(r+this.ry())}function qf(r){return this.attr("cx",r)}function Wf(r){return this.attr("cy",r)}function Hf(r){return r==null?this.rx()*2:this.rx(new oe(r).divide(2))}function Gf(r){return r==null?this.ry()*2:this.ry(new oe(r).divide(2))}var pv={__proto__:null,rx:Gh,ry:Vh,x:Uf,y:jf,cx:qf,cy:Wf,width:Hf,height:Gf};class Ra extends Li{constructor(t,e=t){super(Be("ellipse",t),e)}size(t,e){const i=lo(this,t,e);return this.rx(new oe(i.width).divide(2)).ry(new oe(i.height).divide(2))}}fe(Ra,pv),ue("Container",{ellipse:ze(function(r=0,t=r){return this.put(new Ra).size(r,t).move(0,0)})}),we(Ra,"Ellipse");class Vf extends Zr{constructor(t=Ce.document.createDocumentFragment()){super(t)}xml(t,e,i){if(typeof t=="boolean"&&(i=e,e=t,t=null),t==null||typeof t=="function"){const n=new Zr(os("wrapper",i));return n.add(this.node.cloneNode(!0)),n.xml(!1,i)}return super.xml(t,!1,i)}}we(Vf,"Fragment");function Kf(r,t){return(this._element||this).type==="radialGradient"?this.attr({fx:new oe(r),fy:new oe(t)}):this.attr({x1:new oe(r),y1:new oe(t)})}function Xf(r,t){return(this._element||this).type==="radialGradient"?this.attr({cx:new oe(r),cy:new oe(t)}):this.attr({x2:new oe(r),y2:new oe(t)})}var gv={__proto__:null,from:Kf,to:Xf};class hs extends qi{constructor(t,e){super(Be(t+"Gradient",typeof t=="string"?null:t),e)}attr(t,e,i){return t==="transform"&&(t="gradientTransform"),super.attr(t,e,i)}bbox(){return new di}targets(){return uo("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}fe(hs,gv),ue({Container:{gradient(...r){return this.defs().gradient(...r)}},Defs:{gradient:ze(function(r,t){return this.put(new hs(r)).update(t)})}}),we(hs,"Gradient");class cs extends qi{constructor(t,e=t){super(Be("pattern",t),e)}attr(t,e,i){return t==="transform"&&(t="patternTransform"),super.attr(t,e,i)}bbox(){return new di}targets(){return uo("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ue({Container:{pattern(...r){return this.defs().pattern(...r)}},Defs:{pattern:ze(function(r,t,e){return this.put(new cs).update(e).attr({x:0,y:0,width:r,height:t,patternUnits:"userSpaceOnUse"})})}}),we(cs,"Pattern");let _n=class extends Li{constructor(t,e=t){super(Be("image",t),e)}load(t,e){if(!t)return this;const i=new Ce.window.Image;return Wh(i,"load",function(n){const o=this.parent(cs);this.width()===0&&this.height()===0&&this.size(i.width,i.height),o instanceof cs&&o.width()===0&&o.height()===0&&o.size(this.width(),this.height()),typeof e=="function"&&e.call(this,n)},this),Wh(i,"load error",function(){fo(i)}),this.attr("href",i.src=t,ns)}};sv(function(r,t,e){return(r==="fill"||r==="stroke")&&_3.test(t)&&(t=e.root().defs().image(t)),t instanceof _n&&(t=e.root().defs().pattern(0,0,i=>{i.add(t)})),t}),ue({Container:{image:ze(function(r,t){return this.put(new _n).size(0,0).load(r,t)})}}),we(_n,"Image");class Jr extends po{bbox(){let t=-1/0,e=-1/0,i=1/0,n=1/0;return this.forEach(function(o){t=Math.max(o[0],t),e=Math.max(o[1],e),i=Math.min(o[0],i),n=Math.min(o[1],n)}),new di(i,n,t-i,e-n)}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];t instanceof Array?t=Array.prototype.concat.apply([],t):t=t.trim().split(Or).map(parseFloat),t.length%2!==0&&t.pop();for(let i=0,n=t.length;i<n;i=i+2)e.push([t[i],t[i+1]]);return e}size(t,e){let i;const n=this.bbox();for(i=this.length-1;i>=0;i--)n.width&&(this[i][0]=(this[i][0]-n.x)*t/n.width+n.x),n.height&&(this[i][1]=(this[i][1]-n.y)*e/n.height+n.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,i=this.length;e<i;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){Jt.isMatrixLike(t)||(t=new Jt(t));for(let e=this.length;e--;){const[i,n]=this[e];this[e][0]=t.a*i+t.c*n+t.e,this[e][1]=t.b*i+t.d*n+t.f}return this}}const mv=Jr;function vv(r){return r==null?this.bbox().x:this.move(r,this.bbox().y)}function yv(r){return r==null?this.bbox().y:this.move(this.bbox().x,r)}function bv(r){const t=this.bbox();return r==null?t.width:this.size(r,t.height)}function xv(r){const t=this.bbox();return r==null?t.height:this.size(t.width,r)}var Kh={__proto__:null,MorphArray:mv,x:vv,y:yv,width:bv,height:xv};class us extends Li{constructor(t,e=t){super(Be("line",t),e)}array(){return new Jr([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,i,n){return t==null?this.array():(typeof e<"u"?t={x1:t,y1:e,x2:i,y2:n}:t=new Jr(t).toLine(),this.attr(t))}size(t,e){const i=lo(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}}fe(us,Kh),ue({Container:{line:ze(function(...r){return us.prototype.plot.apply(this.put(new us),r[0]!=null?r:[0,0,0,0])})}}),we(us,"Line");class Fa extends qi{constructor(t,e=t){super(Be("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}ue({Container:{marker(...r){return this.defs().marker(...r)}},Defs:{marker:ze(function(r,t,e){return this.put(new Fa).size(r,t).ref(r/2,t/2).viewbox(0,0,r,t).attr("orient","auto").update(e)})},marker:{marker(r,t,e,i){let n=["marker"];return r!=="all"&&n.push(r),n=n.join("-"),r=arguments[1]instanceof Fa?arguments[1]:this.defs().marker(t,e,i),this.attr(n,r)}}}),we(Fa,"Marker");function go(r,t){return function(e){return e==null?this[r]:(this[r]=e,t&&t.call(this),this)}}const wv={"-":function(r){return r},"<>":function(r){return-Math.cos(r*Math.PI)/2+.5},">":function(r){return Math.sin(r*Math.PI/2)},"<":function(r){return-Math.cos(r*Math.PI/2)+1},bezier:function(r,t,e,i){return function(n){return n<0?r>0?t/r*n:e>0?i/e*n:0:n>1?e<1?(1-i)/(1-e)*n+(i-e)/(1-e):r<1?(1-t)/(1-r)*n+(t-r)/(1-r):1:3*n*(1-n)**2*t+3*n**2*(1-n)*i+n**3}},steps:function(r,t="end"){t=t.split("-").reverse()[0];let e=r;return t==="none"?--e:t==="both"&&++e,(i,n=!1)=>{let o=Math.floor(i*r);const s=i*o%1===0;return(t==="start"||t==="both")&&++o,n&&s&&--o,i>=0&&o<0&&(o=0),i<=1&&o>e&&(o=e),o/e}}};class Xh{done(){return!1}}class Yh extends Xh{constructor(t=as.ease){super(),this.ease=wv[t]||t}step(t,e,i){return typeof t!="number"?i<1?t:e:t+(e-t)*this.ease(i)}}class Ia extends Xh{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,i,n){return this.stepper(t,e,i,n)}}function Yf(){const r=(this._duration||500)/1e3,t=this._overshoot||0,e=1e-10,i=Math.PI,n=Math.log(t/100+e),o=-n/Math.sqrt(i*i+n*n),s=3.9/(o*r);this.d=2*o*s,this.k=s*s}class Ev extends Ia{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,i,n){if(typeof t=="string")return t;if(n.done=i===1/0,i===1/0)return e;if(i===0)return t;i>100&&(i=16),i/=1e3;const o=n.velocity||0,s=-this.d*o-this.k*(t-e),a=t+o*i+s*i*i/2;return n.velocity=o+s*i,n.done=Math.abs(e-a)+Math.abs(o)<.002,n.done?e:a}}fe(Ev,{duration:go("_duration",Yf),overshoot:go("_overshoot",Yf)});class Tv extends Ia{constructor(t=.1,e=.01,i=0,n=1e3){super(),this.p(t).i(e).d(i).windup(n)}step(t,e,i,n){if(typeof t=="string")return t;if(n.done=i===1/0,i===1/0)return e;if(i===0)return t;const o=e-t;let s=(n.integral||0)+o*i;const a=(o-(n.error||0))/i,l=this._windup;return l!==!1&&(s=Math.max(-l,Math.min(s,l))),n.error=o,n.integral=s,n.done=Math.abs(o)<.001,n.done?e:t+(this.P*o+this.I*s+this.D*a)}}fe(Tv,{windup:go("_windup"),p:go("P"),i:go("I"),d:go("D")});const Cv={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Zh={M:function(r,t,e){return t.x=e.x=r[0],t.y=e.y=r[1],["M",t.x,t.y]},L:function(r,t){return t.x=r[0],t.y=r[1],["L",r[0],r[1]]},H:function(r,t){return t.x=r[0],["H",r[0]]},V:function(r,t){return t.y=r[0],["V",r[0]]},C:function(r,t){return t.x=r[4],t.y=r[5],["C",r[0],r[1],r[2],r[3],r[4],r[5]]},S:function(r,t){return t.x=r[2],t.y=r[3],["S",r[0],r[1],r[2],r[3]]},Q:function(r,t){return t.x=r[2],t.y=r[3],["Q",r[0],r[1],r[2],r[3]]},T:function(r,t){return t.x=r[0],t.y=r[1],["T",r[0],r[1]]},Z:function(r,t,e){return t.x=e.x,t.y=e.y,["Z"]},A:function(r,t){return t.x=r[5],t.y=r[6],["A",r[0],r[1],r[2],r[3],r[4],r[5],r[6]]}},Jh="mlhvqtcsaz".split("");for(let r=0,t=Jh.length;r<t;++r)Zh[Jh[r]]=function(e){return function(i,n,o){if(e==="H")i[0]=i[0]+n.x;else if(e==="V")i[0]=i[0]+n.y;else if(e==="A")i[5]=i[5]+n.x,i[6]=i[6]+n.y;else for(let s=0,a=i.length;s<a;++s)i[s]=i[s]+(s%2?n.y:n.x);return Zh[e](i,n,o)}}(Jh[r].toUpperCase());function Sv(r){const t=r.segment[0];return Zh[t](r.segment.slice(1),r.p,r.p0)}function Qh(r){return r.segment.length&&r.segment.length-1===Cv[r.segment[0].toUpperCase()]}function Nv(r,t){r.inNumber&&kn(r,!1);const e=Uh.test(t);if(e)r.segment=[t];else{const i=r.lastCommand,n=i.toLowerCase(),o=i===n;r.segment=[n==="m"?o?"l":"L":i]}return r.inSegment=!0,r.lastCommand=r.segment[0],e}function kn(r,t){if(!r.inNumber)throw new Error("Parser Error");r.number&&r.segment.push(parseFloat(r.number)),r.inNumber=t,r.number="",r.pointSeen=!1,r.hasExponent=!1,Qh(r)&&$h(r)}function $h(r){r.inSegment=!1,r.absolute&&(r.segment=Sv(r)),r.segments.push(r.segment)}function Av(r){if(!r.segment.length)return!1;const t=r.segment[0].toUpperCase()==="A",e=r.segment.length;return t&&(e===4||e===5)}function _v(r){return r.lastToken.toUpperCase()==="E"}function kv(r,t=!0){let e=0,i="";const n={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:t,p0:new Ge,p:new Ge};for(;n.lastToken=i,i=r.charAt(e++);)if(!(!n.inSegment&&Nv(n,i))){if(i==="."){if(n.pointSeen||n.hasExponent){kn(n,!1),--e;continue}n.inNumber=!0,n.pointSeen=!0,n.number+=i;continue}if(!isNaN(parseInt(i))){if(n.number==="0"||Av(n)){n.inNumber=!0,n.number=i,kn(n,!0);continue}n.inNumber=!0,n.number+=i;continue}if(i===" "||i===","){n.inNumber&&kn(n,!1);continue}if(i==="-"){if(n.inNumber&&!_v(n)){kn(n,!1),--e;continue}n.number+=i,n.inNumber=!0;continue}if(i.toUpperCase()==="E"){n.number+=i,n.hasExponent=!0;continue}if(Uh.test(i)){if(n.inNumber)kn(n,!1);else if(Qh(n))$h(n);else throw new Error("parser Error");--e}}return n.inNumber&&kn(n,!1),n.inSegment&&Qh(n)&&$h(n),n.segments}function Lv(r){let t="";for(let e=0,i=r.length;e<i;e++)t+=r[e][0],r[e][1]!=null&&(t+=r[e][1],r[e][2]!=null&&(t+=" ",t+=r[e][2],r[e][3]!=null&&(t+=" ",t+=r[e][3],t+=" ",t+=r[e][4],r[e][5]!=null&&(t+=" ",t+=r[e][5],t+=" ",t+=r[e][6],r[e][7]!=null&&(t+=" ",t+=r[e][7])))));return t+" "}class Ln extends po{bbox(){return Yr().path.setAttribute("d",this.toString()),new di(Yr.nodes.path.getBBox())}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let n,o=this.length-1;o>=0;o--)n=this[o][0],n==="M"||n==="L"||n==="T"?(this[o][1]+=t,this[o][2]+=e):n==="H"?this[o][1]+=t:n==="V"?this[o][1]+=e:n==="C"||n==="S"||n==="Q"?(this[o][1]+=t,this[o][2]+=e,this[o][3]+=t,this[o][4]+=e,n==="C"&&(this[o][5]+=t,this[o][6]+=e)):n==="A"&&(this[o][6]+=t,this[o][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),kv(t)}size(t,e){const i=this.bbox();let n,o;for(i.width=i.width===0?1:i.width,i.height=i.height===0?1:i.height,n=this.length-1;n>=0;n--)o=this[n][0],o==="M"||o==="L"||o==="T"?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y):o==="H"?this[n][1]=(this[n][1]-i.x)*t/i.width+i.x:o==="V"?this[n][1]=(this[n][1]-i.y)*e/i.height+i.y:o==="C"||o==="S"||o==="Q"?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y,this[n][3]=(this[n][3]-i.x)*t/i.width+i.x,this[n][4]=(this[n][4]-i.y)*e/i.height+i.y,o==="C"&&(this[n][5]=(this[n][5]-i.x)*t/i.width+i.x,this[n][6]=(this[n][6]-i.y)*e/i.height+i.y)):o==="A"&&(this[n][1]=this[n][1]*t/i.width,this[n][2]=this[n][2]*e/i.height,this[n][6]=(this[n][6]-i.x)*t/i.width+i.x,this[n][7]=(this[n][7]-i.y)*e/i.height+i.y);return this}toString(){return Lv(this)}}const Zf=r=>{const t=typeof r;return t==="number"?oe:t==="string"?De.isColor(r)?De:Or.test(r)?Uh.test(r)?Ln:po:kf.test(r)?oe:tc:ec.indexOf(r.constructor)>-1?r.constructor:Array.isArray(r)?po:t==="object"?fs:tc};class Mn{constructor(t){this._stepper=t||new Yh("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(e,i){return e&&i},!0)}from(t){return t==null?this._from:(this._from=this._set(t),this)}stepper(t){return t==null?this._stepper:(this._stepper=t,this)}to(t){return t==null?this._to:(this._to=this._set(t),this)}type(t){return t==null?this._type:(this._type=t,this)}_set(t){this._type||this.type(Zf(t));let e=new this._type(t);return this._type===De&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===fs&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(i){return i.done=!0,i}),e}}class tc{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class ds{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,ds.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}ds.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Mv=(r,t)=>r[0]<t[0]?-1:r[0]>t[0]?1:0;class fs{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let i=0,n=e.length;i<n;++i){if(e[i+1]===t[i+1]){if(e[i+1]===De&&t[i+7]!==e[i+7]){const a=t[i+7],l=new De(this.values.splice(i+3,5))[a]().toArray();this.values.splice(i+3,0,...l)}i+=e[i+2]+2;continue}if(!t[i+1])return this;const o=new t[i+1]().toArray(),s=e[i+2]+3;e.splice(i,s,t[i],t[i+1],t[i+2],...o),i+=e[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t)){this.values=t.slice();return}t=t||{};const e=[];for(const i in t){const n=Zf(t[i]),o=new n(t[i]).toArray();e.push([i,n,o.length,...o])}return e.sort(Mv),this.values=e.reduce((i,n)=>i.concat(n),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const i=e.shift(),n=e.shift(),o=e.shift(),s=e.splice(0,o);t[i]=new n(s)}return t}}const ec=[tc,ds,fs];function Dv(r=[]){ec.push(...[].concat(r))}function Ov(){fe(ec,{to(r){return new Mn().type(this.constructor).from(this.toArray()).to(r)},fromArray(r){return this.init(r),this},toConsumable(){return this.toArray()},morph(r,t,e,i,n){const o=function(s,a){return i.step(s,t[a],e,n[a],n)};return this.fromArray(r.map(o))}})}class Dn extends Li{constructor(t,e=t){super(Be("path",t),e)}array(){return this._array||(this._array=new Ln(this.attr("d")))}clear(){return delete this._array,this}height(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return t==null?this.array():this.clear().attr("d",typeof t=="string"?t:this._array=new Ln(t))}size(t,e){const i=lo(this,t,e);return this.attr("d",this.array().size(i.width,i.height))}width(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)}x(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}y(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}}Dn.prototype.MorphArray=Ln,ue({Container:{path:ze(function(r){return this.put(new Dn).plot(r||new Ln)})}}),we(Dn,"Path");function Rv(){return this._array||(this._array=new Jr(this.attr("points")))}function Fv(){return delete this._array,this}function Iv(r,t){return this.attr("points",this.array().move(r,t))}function Bv(r){return r==null?this.array():this.clear().attr("points",typeof r=="string"?r:this._array=new Jr(r))}function zv(r,t){const e=lo(this,r,t);return this.attr("points",this.array().size(e.width,e.height))}var Jf={__proto__:null,array:Rv,clear:Fv,move:Iv,plot:Bv,size:zv};class On extends Li{constructor(t,e=t){super(Be("polygon",t),e)}}ue({Container:{polygon:ze(function(r){return this.put(new On).plot(r||new Jr)})}}),fe(On,Kh),fe(On,Jf),we(On,"Polygon");class ps extends Li{constructor(t,e=t){super(Be("polyline",t),e)}}ue({Container:{polyline:ze(function(r){return this.put(new ps).plot(r||new Jr)})}}),fe(ps,Kh),fe(ps,Jf),we(ps,"Polyline");class Wi extends Li{constructor(t,e=t){super(Be("rect",t),e)}}fe(Wi,{rx:Gh,ry:Vh}),ue({Container:{rect:ze(function(r,t){return this.put(new Wi).size(r,t)})}}),we(Wi,"Rect");class ic{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=typeof t.next<"u"?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Le={nextDraw:null,frames:new ic,timeouts:new ic,immediates:new ic,timer:()=>Ce.window.performance||Ce.window.Date,transforms:[],frame(r){const t=Le.frames.push({run:r});return Le.nextDraw===null&&(Le.nextDraw=Ce.window.requestAnimationFrame(Le._draw)),t},timeout(r,t){t=t||0;const e=Le.timer().now()+t,i=Le.timeouts.push({run:r,time:e});return Le.nextDraw===null&&(Le.nextDraw=Ce.window.requestAnimationFrame(Le._draw)),i},immediate(r){const t=Le.immediates.push(r);return Le.nextDraw===null&&(Le.nextDraw=Ce.window.requestAnimationFrame(Le._draw)),t},cancelFrame(r){r!=null&&Le.frames.remove(r)},clearTimeout(r){r!=null&&Le.timeouts.remove(r)},cancelImmediate(r){r!=null&&Le.immediates.remove(r)},_draw(r){let t=null;const e=Le.timeouts.last();for(;(t=Le.timeouts.shift())&&(r>=t.time?t.run():Le.timeouts.push(t),t!==e););let i=null;const n=Le.frames.last();for(;i!==n&&(i=Le.frames.shift());)i.run(r);let o=null;for(;o=Le.immediates.shift();)o();Le.nextDraw=Le.timeouts.first()||Le.frames.first()?Ce.window.requestAnimationFrame(Le._draw):null}},Pv=function(r){const t=r.start,e=r.runner.duration(),i=t+e;return{start:t,duration:e,end:i,runner:r.runner}},Uv=function(){const r=Ce.window;return(r.performance||r.Date).now()};let Qf=class extends ss{constructor(t=Uv){super(),this._timeSource=t,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(e=>e.start+e.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return t==null?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(t==null)return this.speed(-e);const i=Math.abs(e);return this.speed(t?-i:i)}schedule(t,e,i){if(t==null)return this._runners.map(Pv);let n=0;const o=this.getEndTime();if(e=e||0,i==null||i==="last"||i==="after")n=o;else if(i==="absolute"||i==="start")n=e,e=0;else if(i==="now")n=this._time;else if(i==="relative"){const l=this.getRunnerInfoById(t.id);l&&(n=l.start+e,e=0)}else if(i==="with-last"){const l=this.getLastRunnerInfo();n=l?l.start:this._time}else throw new Error('Invalid value for the "when" parameter');t.unschedule(),t.timeline(this);const s=t.persist(),a={persist:s===null?this._persist:s,start:n+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(a),this._runners.sort((l,h)=>l.start-h.start),this._runnerIds=this._runners.map(l=>l.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return t==null?this._timeSource:(this._timeSource=t,this)}speed(t){return t==null?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return t==null?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0?this:(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null),this)}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Le.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():this._paused?this:(this._nextFrame=Le.frame(this._step),this)}_stepFn(t=!1){const e=this._timeSource();let i=e-this._lastSourceTime;t&&(i=0);const n=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=n,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let s=this._runners.length;s--;){const a=this._runners[s],l=a.runner;this._time-a.start<=0&&l.reset()}let o=!1;for(let s=0,a=this._runners.length;s<a;s++){const l=this._runners[s],h=l.runner;let c=n;const u=this._time-l.start;if(u<=0){o=!0;continue}else u<c&&(c=u);if(!h.active())continue;h.step(c).done?l.persist!==!0&&h.duration()-h.time()+this._time+l.persist<this._time&&(h.unschedule(),--s,--a):o=!0}return o&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}};ue({Element:{timeline:function(r){return r==null?(this._timeline=this._timeline||new Qf,this._timeline):(this._timeline=r,this)}}});class Mi extends ss{constructor(t){super(),this.id=Mi.id++,t=t??as.duration,t=typeof t=="function"?new Ia(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration=typeof t=="number"&&t,this._isDeclarative=t instanceof Ia,this._stepper=this._isDeclarative?t:new Yh,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Jt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=this._isDeclarative?!0:null}static sanitise(t,e,i){let n=1,o=!1,s=0;return t=t||as.duration,e=e||as.delay,i=i||"last",typeof t=="object"&&!(t instanceof Xh)&&(e=t.delay||e,i=t.when||i,o=t.swing||o,n=t.times||n,s=t.wait||s,t=t.duration||as.duration),{duration:t,delay:e,swing:o,times:n,wait:s,when:i}}active(t){return t==null?this.enabled:(this.enabled=t,this)}addTransform(t,e){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,i){const n=Mi.sanitise(t,e,i),o=new Mi(n.duration);return this._timeline&&o.timeline(this._timeline),this._element&&o.element(this._element),o.loop(n).schedule(n.delay,n.when)}clearTransform(){return this.transforms=new Jt,this}clearTransformsFromQueue(){(!this.done||!this._timeline||!this._timeline._runnerIds.includes(this.id))&&(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Yh(t),this}element(t){return t==null?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,i){return typeof t=="object"&&(e=t.swing,i=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=i||0,this._times===!0&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(t==null){const s=Math.floor(this._time/e),l=(this._time-s*e)/this._duration;return Math.min(s+l,this._times)}const i=Math.floor(t),n=t%1,o=e*i+this._duration*n;return this.time(o)}persist(t){return t==null?this._persist:(this._persist=t,this)}position(t){const e=this._time,i=this._duration,n=this._wait,o=this._times,s=this._swing,a=this._reverse;let l;if(t==null){const f=function(p){const m=s*Math.floor(p%(2*(n+i))/(n+i)),v=m&&!a||!m&&a,g=Math.pow(-1,v)*(p%(n+i))/i+v;return Math.max(Math.min(g,1),0)},d=o*(n+i)-n;return l=e<=0?Math.round(f(1e-5)):e<d?f(e):Math.round(f(d-1e-5)),l}const h=Math.floor(this.loops()),c=s&&h%2===0;return l=h+(c&&!a||a&&c?t:1-t),this.loops(l)}progress(t){return t==null?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,i,n){return this._queue.push({initialiser:t||zf,runner:e||zf,retarget:i,isTransform:n,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted?this:(this.time(0),this._reseted=!0,this)}reverse(t){return this._reverse=t??!this._reverse,this}schedule(t,e,i){if(t instanceof Qf||(i=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,i),this}step(t){if(!this.enabled)return this;t=t??16,this._time+=t;const e=this.position(),i=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const n=this.duration(),o=this._lastTime<=0&&this._time>0,s=this._lastTime<n&&this._time>=n;this._lastTime=this._time,o&&this.fire("start",this);const a=this._isDeclarative;this.done=!a&&!s&&this._time>=n,this._reseted=!1;let l=!1;return(i||a)&&(this._initialise(i),this.transforms=new Jt,l=this._run(a?t:e),this.fire("step",this)),this.done=this.done||l&&a,s&&this.fire("finished",this),this}time(t){if(t==null)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return typeof t>"u"?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(!(!t&&!this._isDeclarative))for(let e=0,i=this._queue.length;e<i;++e){const n=this._queue[e],o=this._isDeclarative||!n.initialised&&t;t=!n.finished,o&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const i=this.timeline();i&&i.play()}}_run(t){let e=!0;for(let i=0,n=this._queue.length;i<n;++i){const o=this._queue[i],s=o.runner.call(this,t);o.finished=o.finished||s===!0,e=e&&o.finished}return e}_tryRetarget(t,e,i){if(this._history[t]){if(!this._history[t].caller.initialised){const o=this._queue.indexOf(this._history[t].caller);return this._queue.splice(o,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,i):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const n=this.timeline();return n&&n.play(),!0}return!1}}Mi.id=0;class Ba{constructor(t=new Jt,e=-1,i=!0){this.transforms=t,this.id=e,this.done=i}clearTransformsFromQueue(){}}fe([Mi,Ba],{mergeWith(r){return new Ba(r.transforms.lmultiply(this.transforms),r.id)}});const $f=(r,t)=>r.lmultiplyO(t),t0=r=>r.transforms;function jv(){const t=this._transformationRunners.runners.map(t0).reduce($f,new Jt);this.transform(t),this._transformationRunners.merge(),this._transformationRunners.length()===1&&(this._frameId=null)}class qv{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Ba).forEach(i=>i.clearTransformsFromQueue()),this}edit(t,e){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1,t+1),this.runners.splice(i,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const i=this.runners[e];if(t&&i.done&&t.done&&(!i._timeline||!i._timeline._runnerIds.includes(i.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id))){this.remove(i.id);const o=i.mergeWith(t);this.edit(t.id,o),t=o,--e}else t=i}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}ue({Element:{animate(r,t,e){const i=Mi.sanitise(r,t,e),n=this.timeline();return new Mi(i.duration).loop(i).element(this).timeline(n.play()).schedule(i.delay,i.when)},delay(r,t){return this.animate(0,r,t)},_clearTransformRunnersBefore(r){this._transformationRunners.clearBefore(r.id)},_currentTransform(r){return this._transformationRunners.runners.filter(t=>t.id<=r.id).map(t0).reduce($f,new Jt)},_addRunner(r){this._transformationRunners.add(r),Le.cancelImmediate(this._frameId),this._frameId=Le.immediate(jv.bind(this))},_prepareRunner(){this._frameId==null&&(this._transformationRunners=new qv().add(new Ba(new Jt(this))))}}});const Wv=(r,t)=>r.filter(e=>!t.includes(e));fe(Mi,{attr(r,t){return this.styleAttr("attr",r,t)},css(r,t){return this.styleAttr("css",r,t)},styleAttr(r,t,e){if(typeof t=="string")return this.styleAttr(r,{[t]:e});let i=t;if(this._tryRetarget(r,i))return this;let n=new Mn(this._stepper).to(i),o=Object.keys(i);return this.queue(function(){n=n.from(this.element()[r](o))},function(s){return this.element()[r](n.at(s).valueOf()),n.done()},function(s){const a=Object.keys(s),l=Wv(a,o);if(l.length){const c=this.element()[r](l),u=new fs(n.from()).valueOf();Object.assign(u,c),n.from(u)}const h=new fs(n.to()).valueOf();Object.assign(h,s),n.to(h),o=a,i=s}),this._rememberMorpher(r,n),this},zoom(r,t){if(this._tryRetarget("zoom",r,t))return this;let e=new Mn(this._stepper).to(new oe(r));return this.queue(function(){e=e.from(this.element().zoom())},function(i){return this.element().zoom(e.at(i),t),e.done()},function(i,n){t=n,e.to(i)}),this._rememberMorpher("zoom",e),this},transform(r,t,e){if(t=r.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",r))return this;const i=Jt.isMatrixLike(r);e=r.affine!=null?r.affine:e??!i;const n=new Mn(this._stepper).type(e?ds:Jt);let o,s,a,l,h;function c(){s=s||this.element(),o=o||Fh(r,s),h=new Jt(t?void 0:s),s._addRunner(this),t||s._clearTransformRunnersBefore(this)}function u(d){t||this.clearTransform();const{x:p,y:m}=new Ge(o).transform(s._currentTransform(this));let v=new Jt({...r,origin:[p,m]}),g=this._isDeclarative&&a?a:h;if(e){v=v.decompose(p,m),g=g.decompose(p,m);const y=v.rotate,x=g.rotate,C=[y-360,y,y+360],R=C.map(T=>Math.abs(T-x)),F=Math.min(...R),U=R.indexOf(F);v.rotate=C[U]}t&&(i||(v.rotate=r.rotate||0),this._isDeclarative&&l&&(g.rotate=l)),n.from(g),n.to(v);const b=n.at(d);return l=b.rotate,a=new Jt(b),this.addTransform(a),s._addRunner(this),n.done()}function f(d){(d.origin||"center").toString()!==(r.origin||"center").toString()&&(o=Fh(d,s)),r={...d,origin:o}}return this.queue(c,u,f,!0),this._isDeclarative&&this._rememberMorpher("transform",n),this},x(r,t){return this._queueNumber("x",r)},y(r){return this._queueNumber("y",r)},dx(r=0){return this._queueNumberDelta("x",r)},dy(r=0){return this._queueNumberDelta("y",r)},dmove(r,t){return this.dx(r).dy(t)},_queueNumberDelta(r,t){if(t=new oe(t),this._tryRetarget(r,t))return this;const e=new Mn(this._stepper).to(t);let i=null;return this.queue(function(){i=this.element()[r](),e.from(i),e.to(i+t)},function(n){return this.element()[r](e.at(n)),e.done()},function(n){e.to(i+new oe(n))}),this._rememberMorpher(r,e),this},_queueObject(r,t){if(this._tryRetarget(r,t))return this;const e=new Mn(this._stepper).to(t);return this.queue(function(){e.from(this.element()[r]())},function(i){return this.element()[r](e.at(i)),e.done()}),this._rememberMorpher(r,e),this},_queueNumber(r,t){return this._queueObject(r,new oe(t))},cx(r){return this._queueNumber("cx",r)},cy(r){return this._queueNumber("cy",r)},move(r,t){return this.x(r).y(t)},center(r,t){return this.cx(r).cy(t)},size(r,t){let e;return(!r||!t)&&(e=this._element.bbox()),r||(r=e.width/e.height*t),t||(t=e.height/e.width*r),this.width(r).height(t)},width(r){return this._queueNumber("width",r)},height(r){return this._queueNumber("height",r)},plot(r,t,e,i){if(arguments.length===4)return this.plot([r,t,e,i]);if(this._tryRetarget("plot",r))return this;const n=new Mn(this._stepper).type(this._element.MorphArray).to(r);return this.queue(function(){n.from(this._element.array())},function(o){return this._element.plot(n.at(o)),n.done()}),this._rememberMorpher("plot",n),this},leading(r){return this._queueNumber("leading",r)},viewbox(r,t,e,i){return this._queueObject("viewbox",new di(r,t,e,i))},update(r){return typeof r!="object"?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(r.opacity!=null&&this.attr("stop-opacity",r.opacity),r.color!=null&&this.attr("stop-color",r.color),r.offset!=null&&this.attr("offset",r.offset),this)}}),fe(Mi,{rx:Gh,ry:Vh,from:Kf,to:Xf}),we(Mi,"Runner");class rc extends qi{constructor(t,e=t){super(Be("svg",t),e),this.namespace()}defs(){return this.isRoot()?ji(this.node.querySelector("defs"))||this.put(new Hh):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Ce.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){return this.isRoot()?this.attr({xmlns:Ih,version:"1.1"}).attr("xmlns:xlink",ns,Oa).attr("xmlns:svgjs",l3,Oa):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Oa).attr("xmlns:svgjs",null,Oa)}root(){return this.isRoot()?this:super.root()}}ue({Container:{nested:ze(function(){return this.put(new rc)})}}),we(rc,"Svg",!0);let nc=class extends qi{constructor(t,e=t){super(Be("symbol",t),e)}};ue({Container:{symbol:ze(function(){return this.put(new nc)})}}),we(nc,"Symbol");function Hv(r){return this._build===!1&&this.clear(),this.node.appendChild(Ce.document.createTextNode(r)),this}function Gv(){return this.node.getComputedTextLength()}function Vv(r,t=this.bbox()){return r==null?t.x:this.attr("x",this.attr("x")+r-t.x)}function Kv(r,t=this.bbox()){return r==null?t.y:this.attr("y",this.attr("y")+r-t.y)}function Xv(r,t,e=this.bbox()){return this.x(r,e).y(t,e)}function Yv(r,t=this.bbox()){return r==null?t.cx:this.attr("x",this.attr("x")+r-t.cx)}function Zv(r,t=this.bbox()){return r==null?t.cy:this.attr("y",this.attr("y")+r-t.cy)}function Jv(r,t,e=this.bbox()){return this.cx(r,e).cy(t,e)}function Qv(r){return this.attr("x",r)}function $v(r){return this.attr("y",r)}function t6(r,t){return this.ax(r).ay(t)}function e6(r){return this._build=!!r,this}var e0={__proto__:null,plain:Hv,length:Gv,x:Vv,y:Kv,move:Xv,cx:Yv,cy:Zv,center:Jv,ax:Qv,ay:$v,amove:t6,build:e6};let Je=class extends Li{constructor(t,e=t){super(Be("text",t),e),this.dom.leading=new oe(1.3),this._rebuild=!0,this._build=!1}leading(t){return t==null?this.dom.leading:(this.dom.leading=new oe(t),this.rebuild())}rebuild(t){if(typeof t=="boolean"&&(this._rebuild=t),this._rebuild){const e=this;let i=0;const n=this.dom.leading;this.each(function(o){const s=Ce.window.getComputedStyle(this.node).getPropertyValue("font-size"),a=n*new oe(s);this.dom.newLined&&(this.attr("x",e.attr("x")),this.text()===`
`?i+=a:(this.attr("dy",o?a+i:0),i=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new oe(t.leading||1.3),this}text(t){if(t===void 0){const e=this.node.childNodes;let i=0;t="";for(let n=0,o=e.length;n<o;++n){if(e[n].nodeName==="textPath"){n===0&&(i=1);continue}n!==i&&e[n].nodeType!==3&&ji(e[n]).dom.newLined===!0&&(t+=`
`),t+=e[n].textContent}return t}if(this.clear().build(!0),typeof t=="function")t.call(this,this);else{t=(t+"").split(`
`);for(let e=0,i=t.length;e<i;e++)this.newLine(t[e])}return this.build(!1).rebuild()}};fe(Je,e0),ue({Container:{text:ze(function(r=""){return this.put(new Je).text(r)}),plain:ze(function(r=""){return this.put(new Je).plain(r)})}}),we(Je,"Text");class za extends Li{constructor(t,e=t){super(Be("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Je))return this;const e=t.index(this),i=Ce.window.getComputedStyle(this.node).getPropertyValue("font-size"),n=t.dom.leading*new oe(i);return this.dy(e?n:0).attr("x",t.x())}text(t){return t==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof t=="function"?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}fe(za,e0),ue({Tspan:{tspan:ze(function(r=""){const t=new za;return this._build||this.clear(),this.put(t).text(r)})},Text:{newLine:function(r=""){return this.tspan(r).newLine()}}}),we(za,"Tspan");class mo extends Li{constructor(t,e=t){super(Be("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new oe(t).divide(2))}}fe(mo,{x:Uf,y:jf,cx:qf,cy:Wf,width:Hf,height:Gf}),ue({Container:{circle:ze(function(r=0){return this.put(new mo).size(r).move(0,0)})}}),we(mo,"Circle");class oc extends qi{constructor(t,e=t){super(Be("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return uo("svg [clip-path*="+this.id()+"]")}}ue({Container:{clip:ze(function(){return this.defs().put(new oc)})},Element:{clipper(){return this.reference("clip-path")},clipWith(r){const t=r instanceof oc?r:this.parent().clip().add(r);return this.attr("clip-path","url(#"+t.id()+")")},unclip(){return this.attr("clip-path",null)}}}),we(oc,"ClipPath");class sc extends xr{constructor(t,e=t){super(Be("foreignObject",t),e)}}ue({Container:{foreignObject:ze(function(r,t){return this.put(new sc).size(r,t)})}}),we(sc,"ForeignObject");function i6(r,t){return this.children().forEach((e,i)=>{let n;try{n=e.bbox()}catch{return}const o=new Jt(e),s=o.translate(r,t).transform(o.inverse()),a=new Ge(n.x,n.y).transform(s);e.move(a.x,a.y)}),this}function r6(r){return this.dmove(r,0)}function n6(r){return this.dmove(0,r)}function o6(r,t=this.bbox()){return r==null?t.height:this.size(t.width,r,t)}function s6(r=0,t=0,e=this.bbox()){const i=r-e.x,n=t-e.y;return this.dmove(i,n)}function a6(r,t,e=this.bbox()){const i=lo(this,r,t,e),n=i.width/e.width,o=i.height/e.height;return this.children().forEach((s,a)=>{const l=new Ge(e).transform(new Jt(s).inverse());s.scale(n,o,l.x,l.y)}),this}function l6(r,t=this.bbox()){return r==null?t.width:this.size(r,t.height,t)}function h6(r,t=this.bbox()){return r==null?t.x:this.move(r,t.y,t)}function c6(r,t=this.bbox()){return r==null?t.y:this.move(t.x,r,t)}var i0={__proto__:null,dmove:i6,dx:r6,dy:n6,height:o6,move:s6,size:a6,width:l6,x:h6,y:c6};class fi extends qi{constructor(t,e=t){super(Be("g",t),e)}}fe(fi,i0),ue({Container:{group:ze(function(){return this.put(new fi)})}}),we(fi,"G");class gs extends qi{constructor(t,e=t){super(Be("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,ns)}}fe(gs,i0),ue({Container:{link:ze(function(r){return this.put(new gs).to(r)})},Element:{unlink(){const r=this.linker();if(!r)return this;const t=r.parent();if(!t)return this.remove();const e=t.index(r);return t.add(this,e),r.remove(),this},linkTo(r){let t=this.linker();return t||(t=new gs,this.wrap(t)),typeof r=="function"?r.call(t,t):t.to(r),this},linker(){const r=this.parent();return r&&r.node.nodeName.toLowerCase()==="a"?r:null}}}),we(gs,"A");class ac extends qi{constructor(t,e=t){super(Be("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return uo("svg [mask*="+this.id()+"]")}}ue({Container:{mask:ze(function(){return this.defs().put(new ac)})},Element:{masker(){return this.reference("mask")},maskWith(r){const t=r instanceof ac?r:this.parent().mask().add(r);return this.attr("mask","url(#"+t.id()+")")},unmask(){return this.attr("mask",null)}}}),we(ac,"Mask");class r0 extends xr{constructor(t,e=t){super(Be("stop",t),e)}update(t){return(typeof t=="number"||t instanceof oe)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),t.opacity!=null&&this.attr("stop-opacity",t.opacity),t.color!=null&&this.attr("stop-color",t.color),t.offset!=null&&this.attr("offset",new oe(t.offset)),this}}ue({Gradient:{stop:function(r,t,e){return this.put(new r0).update(r,t,e)}}}),we(r0,"Stop");function u6(r,t){if(!r)return"";if(!t)return r;let e=r+"{";for(const i in t)e+=s3(i)+":"+t[i]+";";return e+="}",e}let lc=class extends xr{constructor(t,e=t){super(Be("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,i={}){return this.rule("@font-face",{fontFamily:t,src:e,...i})}rule(t,e){return this.addText(u6(t,e))}};ue("Dom",{style(r,t){return this.put(new lc).rule(r,t)},fontface(r,t,e){return this.put(new lc).font(r,t,e)}}),we(lc,"Style");class hc extends Je{constructor(t,e=t){super(Be("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let i=null;return e&&(i=e.plot(t)),t==null?i:this}track(){return this.reference("href")}}ue({Container:{textPath:ze(function(r,t){return r instanceof Je||(r=this.text(r)),r.path(t)})},Text:{path:ze(function(r,t=!0){const e=new hc;r instanceof Dn||(r=this.defs().path(r)),e.attr("href","#"+r,ns);let i;if(t)for(;i=this.node.firstChild;)e.node.appendChild(i);return this.put(e)}),textPath(){return this.findOne("textPath")}},Path:{text:ze(function(r){return r instanceof Je||(r=new Je().addTo(this.parent()).text(r)),r.path(this)}),targets(){return uo("svg textPath").filter(r=>(r.attr("href")||"").includes(this.id()))}}}),hc.prototype.MorphArray=Ln,we(hc,"TextPath");class n0 extends Li{constructor(t,e=t){super(Be("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,ns)}}ue({Container:{use:ze(function(r,t){return this.put(new n0).use(r,t)})}}),we(n0,"Use");const Qe=xi;fe([rc,nc,_n,cs,Fa],Si("viewbox")),fe([us,ps,On,Dn],Si("marker")),fe(Je,Si("Text")),fe(Dn,Si("Path")),fe(Hh,Si("Defs")),fe([Je,za],Si("Tspan")),fe([Wi,Ra,hs,Mi],Si("radius")),fe(ss,Si("EventTarget")),fe(Zr,Si("Dom")),fe(xr,Si("Element")),fe(Li,Si("Shape")),fe([qi,Vf],Si("Container")),fe(hs,Si("Gradient")),fe(Mi,Si("Runner")),An.extend(n3()),Dv([oe,De,di,Jt,po,Jr,Ln,Ge]),Ov();const o0={paddingX:15,paddingY:5,imgMaxWidth:200,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",lineDasharray:"none",lineFlow:!1,lineFlowDuration:1,lineFlowForward:!0,lineStyle:"straight",rootLineKeepSameInCurve:!0,rootLineStartPositionKeepSameInCurve:!1,lineRadius:5,showLineMarker:!1,generalizationLineWidth:1,generalizationLineColor:"#549688",generalizationLineMargin:0,generalizationNodeMargin:20,associativeLineWidth:2,associativeLineColor:"rgb(51, 51, 51)",associativeLineActiveWidth:8,associativeLineActiveColor:"rgba(2, 167, 240, 1)",associativeLineDasharray:[6,4],associativeLineTextColor:"rgb(51, 51, 51)",associativeLineTextFontSize:14,associativeLineTextLineHeight:1.2,associativeLineTextFontFamily:"微软雅黑, Microsoft YaHei",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",nodeUseLineStyle:!1,root:{shape:"rectangle",fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"},second:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"normal",fontStyle:"normal",borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"},node:{shape:"rectangle",marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"normal",fontStyle:"normal",borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"},generalization:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"normal",fontStyle:"normal",borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"}},d6=["lineWidth","lineColor","lineDasharray","lineStyle","generalizationLineWidth","generalizationLineColor","associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily","backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","rootLineKeepSameInCurve","rootLineStartPositionKeepSameInCurve","showLineMarker","lineRadius","hoverRectColor","hoverRectRadius","lineFlow","lineFlowDuration","lineFlowForward","textAlign"],f6=r=>{let t=Object.keys(r);for(let e=0;e<t.length;e++)if(!d6.find(i=>i===t[e]))return!1;return!0},cc=["lineColor","lineDasharray","lineWidth","lineMarkerDir","lineFlow","lineFlowDuration","lineFlowForward"],ge=(r,t,e,i,n,o=0,s=0,a=[])=>{let l=!1;if(e&&(l=e(r,t,n,o,s,a)),!l&&r.children&&r.children.length>0){let h=o+1;r.children.forEach((c,u)=>{ge(c,r,e,i,!1,h,u,[...a,r])})}i&&i(r,t,n,o,s,a)},Pa=(r,t)=>{let e=[r],i=!1;for(t(r,null)==="stop"&&(i=!0);e.length&&!i;){let n=e.shift();n.children&&n.children.length&&n.children.forEach(o=>{i||(e.push(o),t(o,n)==="stop"&&(i=!0))})}},s0=(r,t,e,i)=>{let n=r/t,o=[];if(e&&i)if(r<=e&&t<=i)o=[r,t];else{let s=e/i;n>s?o=[e,e/n]:o=[n*i,i]}else e?r<=e?o=[r,t]:o=[e,e/n]:i&&(t<=i?o=[r,t]:o=[n*i,i]);return o},a0=r=>{r=r.replace(/<br>/gim,`
`);let t=document.createElement("div");return t.innerHTML=r,r=t.textContent,r},Ni=r=>{try{return JSON.parse(JSON.stringify(r))}catch{return null}},l0=(r,t,e=!1)=>(r.data=Ni(t.data),e&&(r.data.isActive=!1,$r(r.data).forEach(n=>{n.isActive=!1})),r.children=[],t.children&&t.children.length>0&&t.children.forEach((i,n)=>{r.children[n]=l0({},i,e)}),Object.keys(t).forEach(i=>{!["data","children"].includes(i)&&!/^_/.test(i)&&(r[i]=t[i])}),r),ms=(r,t,e=!1,i=!0)=>{const n=t.nodeData?t.nodeData:t;return r.data=Ni(n.data),i?delete r.data.uid:r.data.uid||(r.data.uid=Di()),e&&(r.data.isActive=!1),r.children=[],t.children&&t.children.length>0?t.children.forEach((o,s)=>{r.children[s]=ms({},o,e,i)}):t.nodeData&&t.nodeData.children&&t.nodeData.children.length>0&&t.nodeData.children.forEach((o,s)=>{r.children[s]=ms({},o,e,i)}),Object.keys(n).forEach(o=>{!["data","children"].includes(o)&&!/^_/.test(o)&&(r[o]=n[o])}),r},uc=(r,t=!1)=>new Promise((e,i)=>{const n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=()=>{try{let o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0,n.width,n.height),t?o.toBlob(a=>{e(a)}):e(o.toDataURL())}catch(o){i(o)}},n.onerror=o=>{i(o)},n.src=r}),p6=r=>{if(!/^data:/.test(r))return r;let[t,e]=r.split(",");return{type:/^data:[^/]+\/([^;]+);/.exec(t)[1],base64:e}},g6=(r,t)=>{let e=document.createElement("a");e.href=r,e.download=t,e.click()},vs=(r,t=300,e)=>{let i=null;return(...n)=>{i||(i=setTimeout(()=>{r.call(e,...n),i=null},t))}},m6=(r,t=300,e)=>{let i=null;return(...n)=>{i&&clearTimeout(i),i=setTimeout(()=>{i=null,r.apply(e,n)},t)}},Rn=(r,t=()=>{})=>{let e=0,i=r.length;if(i<=0)return t();let n=()=>{if(e>=i){t();return}r[e](),setTimeout(()=>{e++,n()},0)};n()},vo=r=>r*(Math.PI/180),v6=r=>r.replace(/([a-z])([A-Z])/g,(...t)=>t[1]+"-"+t[2].toLowerCase()),y6=function(r,t){let e=!1,i=null,n=()=>{e=!1,t?r.call(t):r()};if(typeof MutationObserver<"u"){let o=1,s=new MutationObserver(n),a=document.createTextNode(o);s.observe(a,{characterData:!0}),i=function(){o=(o+1)%2,a.data=o}}else i=setTimeout;return function(){e||(e=!0,i(n,0))}},b6=(r,t)=>{let e=r.elRect,{scaleX:i,scaleY:n,translateX:o,translateY:s}=r.draw.transform(),{left:a,top:l,width:h,height:c}=t,u=(a+h)*i+o,f=(l+c)*n+s;a=a*i+o,l=l*n+s;let d=0,p=0;return a<0&&(d=-a),u>e.width&&(d=-(u-e.width)),l<0&&(p=-l),f>e.height&&(p=-(f-e.height)),{isOuter:d!==0||p!==0,offsetLeft:d,offsetTop:p}};let Ua=null;const Fn=r=>(Ua||(Ua=document.createElement("div")),Ua.innerHTML=r,Ua.textContent),yo=r=>new Promise((t,e)=>{let i=new FileReader;i.onload=n=>{t(n.target.result)},i.onerror=n=>{e(n)},i.readAsDataURL(r)}),h0=r=>new Promise(t=>{let e=new Image;e.src=r,e.onload=()=>{t({width:e.width,height:e.height})},e.onerror=()=>{t({width:0,height:0})}}),Di=()=>Tf(),x6=r=>new Promise((t,e)=>{let i=new FileReader;i.readAsDataURL(r),i.onload=async n=>{let o=n.target.result,s=await h0(o);t({url:o,size:s})},i.onerror=n=>{e(n)}}),w6=r=>([["&nbsp;","&#160;"]].forEach(t=>{r=r.replace(new RegExp(t[0],"g"),t[1])}),r),In=r=>Object.prototype.toString.call(r).slice(8,-1),nr=r=>r==null||r==="";let ja=null;const E6=r=>{ja||(ja=document.createElement("div")),ja.innerHTML=r;for(let t=ja.childNodes,e=t.length;e--;)if(t[e].nodeType==1)return!0;return!1},c0=r=>(r=String(r).replace(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(r)||/rgba\(255,255,255,[^)]+\)/.test(r)),T6=r=>(r=String(r).replace(/\s+/g,""),["","transparent"].includes(r)||/rgba\(\d+,\d+,\d+,0\)/.test(r)),C6=r=>{let{lineColor:t,root:e,second:i,node:n}=r,o=[t,e.fillColor,e.color,i.fillColor,i.color,n.fillColor,n.color,e.borderColor,i.borderColor,n.borderColor];for(let s=0;s<o.length;s++){let a=o[s];if(!T6(a)&&!c0(a))return a}},S6=r=>{const t=e=>{e.childNodes.forEach(n=>{n.nodeType===1&&(n.classList.contains("ql-formula")?n.parentNode.removeChild(n):t(n))})};t(r)};let qa=null;const dc=r=>{qa||(qa=document.createElement("div")),qa.innerHTML=r;const t=qa.childNodes;let e="";for(let i=0;i<t.length;i++){const n=t[i];n.nodeType===1?(S6(n),n.tagName.toLowerCase()==="p"?e+=n.textContent+`
`:e+=n.textContent):n.nodeType===3&&(e+=n.nodeValue)}return e.replace(/\n$/,"")};let Qr=null;const N6=r=>{Qr||(Qr=document.createElement("div")),Qr.innerHTML=r;const t=Qr.querySelectorAll(".ql-formula");Array.from(t).forEach(n=>{const o=document.createTextNode("$smmformula$");n.parentNode.replaceChild(o,n)});const e=Qr.childNodes;let i=[];for(let n=0;n<e.length;n++){const o=e[n];o.nodeType===1?i.push(o.textContent):o.nodeType===3&&i.push(o.nodeValue)}if(r=i.map(n=>`<p><span>${bs(n)}</span></p>`).join(""),t.length>0){r=r.replace(/\$smmformula\$/g,'<span class="smmformula"></span>'),Qr.innerHTML=r;const n=Qr.querySelectorAll(".smmformula");Array.from(n).forEach((o,s)=>{o.parentNode.replaceChild(t[s],o)}),r=Qr.innerHTML}return r},A6=(r,t)=>{const e={};return Object.keys(t).forEach(i=>{const n=r[i],o=t[i];if(In(n)!==In(o)){e[i]=o;return}if(In(n)==="Object"){if(JSON.stringify(n)!==JSON.stringify(o)){e[i]=o;return}}else if(n!==o){e[i]=o;return}}),e},fc=r=>/^_/.test(r)?!1:!P2.includes(r),_6=r=>{const t=[...cc],e=Object.keys(r);for(let i=0;i<e.length;i++)if(!t.includes(e[i]))return!1;return!0},k6=r=>r.reduce((t,e)=>{const i=t.find(n=>n.type===e.type);return i?e.list.forEach(n=>{const o=i.list.find(s=>s.name===n.name);o?o.icon=n.icon:i.list.push(n)}):t.push({...e}),t},[]),Wa=r=>{let t=[];return r.forEach(e=>{r.find(i=>i.uid!==e.uid&&i.isAncestor(e))||t.push(e)}),t},L6=r=>{const t={},e={};r.forEach(n=>{const o=n.parent;if(o){const s=o.uid;e[s]=o;const a=n.getIndexInBrothers(),l={node:n,index:a};t[s]?t[s].find(h=>h.index===l.index)||t[s].push(l):t[s]=[l]}});const i=[];return Object.keys(t).forEach(n=>{if(t[n].length>1){const o=t[n].map(s=>s.index).sort((s,a)=>s-a);i.push({node:e[n],range:[o[0],o[o.length-1]]})}else i.push({node:t[n][0].node})}),i},M6=(r,t,e,i,n,o,s,a)=>t>n&&o>r&&i>s&&a>e,u0=r=>{let t=window.getSelection(),e=document.createRange();e.selectNodeContents(r),e.collapse(),t.removeAllRanges(),t.addRange(e)},d0=r=>{let t=window.getSelection(),e=document.createRange();e.selectNodeContents(r),t.removeAllRanges(),t.addRange(e)},Ha=(r,t={})=>{t={...t},t&&t.richText&&t.resetRichText&&delete t.resetRichText;const i=n=>{n.forEach(o=>{o.data={...o.data,...t},o.children&&o.children.length>0&&i(o.children)})};return i(r),r},ys=(r,t=!1,e=null,i=!1)=>{const n=o=>{o.forEach(s=>{s.data||(s.data={}),(t||nr(s.data.uid))&&(s.data.uid=Di()),i&&$r(s.data).forEach(l=>{(t||nr(l.uid))&&(l.uid=Di())}),e&&e(s),s.children&&s.children.length>0&&n(s.children)})};return n(r),r},Oi=r=>r?Array.isArray(r)?r:[r]:[],bo=r=>r.parent?r.parent.nodeData.children.findIndex(t=>t.data.uid===r.uid):0,oi=(r,t)=>t.findIndex(e=>e.uid===r.uid),f0=r=>{let t=0;for(let n=0;n<r.length;n++)t=r.charCodeAt(n)+((t<<5)-t);return"hsla("+new Mh(t).genrand_int32()%360+", 50%, 50%, 1)"},bs=r=>([["&","&amp;"],["<","&lt;"],[">","&gt;"]].forEach(t=>{r=r.replace(new RegExp(t[0],"g"),t[1])}),r),pc=(r,t)=>{const e=In(r);if(e!==In(t))return!1;if(e==="Object"){const i=Object.keys(r),n=Object.keys(t);if(i.length!==n.length)return!1;for(let o=0;o<i.length;o++){const s=i[o];if(!n.includes(s)||!pc(r[s],t[s]))return!1}return!0}else if(e==="Array"){if(r.length!==t.length)return!1;for(let i=0;i<r.length;i++){const n=r[i],o=t[i],s=In(n),a=In(o);if(s!==a||!pc(n,o))return!1}return!0}else return r===t},p0=()=>navigator.clipboard&&typeof navigator.clipboard.read=="function",g0=r=>{navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(JSON.stringify(r))},D6=async()=>{let r=null,t=null;if(p0()){const e=await navigator.clipboard.read();if(e&&e.length>0)for(const i of e)for(const n of i.types)/^image\//.test(n)?t=await i.getType(n):n==="text/plain"&&(r=await(await i.getType(n)).text())}return{text:r,img:t}},gc=r=>{if(!r||!r.parent)return;const t=bo(r);t!==-1&&r.parent.nodeData.children.splice(t,1)},O6=r=>(j2.forEach(t=>{r=r.replace(new RegExp(`<${t}([^>]*)>`,"g"),`<${t} $1 />`)}),r),R6=(r,t)=>{if(r.length!==t.length)return!1;for(let e=0;e<r.length;e++)if(!t.find(i=>i.uid===r[e].uid))return!1;return!0},m0=r=>({simpleMindMap:!0,data:r}),Ga=r=>{let t=null;if(typeof r=="string")try{const i=JSON.parse(r);typeof i=="object"&&i.simpleMindMap&&(t=i.data)}catch{}else typeof r=="object"&&r.simpleMindMap&&(t=r.data);const e=!!t;return{isSmm:e,data:e?t:String(r)}},v0=(r,t)=>{r.preventDefault();const e=window.getSelection();if(!e.rangeCount)return;e.deleteFromDocument(),t=t||r.clipboardData.getData("text"),t=bs(t),t=Fn(t);const i=t.split(/\n/g),n=document.createDocumentFragment();i.forEach((o,s)=>{const a=document.createTextNode(o);if(n.appendChild(a),s<i.length-1){const l=document.createElement("br");n.appendChild(l)}}),e.getRangeAt(0).insertNode(n),e.collapseToEnd()},y0=r=>{const t={},e=(i,n)=>{const o=i.data.uid;n&&n.children.push(o),t[o]={isRoot:!n,data:{...i.data},children:[]},i.children&&i.children.length>0&&i.children.forEach(s=>{e(s,t[o])})};return e(r,null),t},F6=(r,t)=>{const e=r.x+r.width/2,i=r.y+r.height/2,n=t.x+t.width/2,o=t.y+t.height/2;return e<n&&i<o?"left-top":e>n&&i<o?"right-top":e>n&&i>o?"right-bottom":e<n&&i>o?"left-bottom":e<n&&i===o?"left":e>n&&i===o?"right":e===n&&i<o?"top":e===n&&i>o?"bottom":"overlap"},I6=({addContentToHeader:r,addContentToFooter:t})=>{const e=[];let i=null,n=0,o=null,s=0;const a=(l,h)=>{if(typeof l=="function"){const c=l();if(!c)return;const{el:u,cssText:f,height:d}=c;if(u instanceof HTMLElement){Bn(u);const p=xo({el:u,height:d});h(p,d)}f&&e.push(f)}};return a(r,(l,h)=>{i=l,n=h}),a(t,(l,h)=>{o=l,s=h}),{cssTextList:e,header:i,headerHeight:n,footer:o,footerHeight:s}},b0=(r,t=0,e=0,i=0,n=0,o=!1,s=!1)=>{let a=1/0,l=-1/0,h=1/0,c=-1/0;const u=(f,d)=>{if(!(d&&o)&&f.group)try{const{x:p,y:m,width:v,height:g}=f.group.findOne(".smm-node-shape").rbox();p<a&&(a=p),p+v>l&&(l=p+v),m<h&&(h=m),m+g>c&&(c=m+g)}catch{}!s&&f._generalizationList.length>0&&f._generalizationList.forEach(p=>{u(p.generalizationNode)}),f.children&&f.children.forEach(p=>{u(p)})};return u(r,!0),a=a-t+i,h=h-e+n,l=l-t+i,c=c-e+n,{left:a,top:h,width:l-a,height:c-h}},B6=(r,t=0,e=0,i=0,n=0)=>{let o=1/0,s=-1/0,a=1/0,l=-1/0;return r.forEach(h=>{const{left:c,top:u,width:f,height:d}=b0(h,t,e,i,n,!1,!0);c<o&&(o=c),c+f>s&&(s=c+f),u<a&&(a=u),u+d>l&&(l=u+d)}),{left:o,top:a,width:s-o,height:l-a}};(()=>{if(document.documentElement.requestFullScreen)return"fullscreenchange";if(document.documentElement.webkitRequestFullScreen)return"webkitfullscreenchange";if(document.documentElement.mozRequestFullScreen)return"mozfullscreenchange";if(document.documentElement.msRequestFullscreen)return"msfullscreenchange"})();const xo=({el:r,width:t,height:e})=>{const i=new sc;return t!==void 0&&i.width(t),e!==void 0&&i.height(e),i.add(r),i},$r=r=>{const t=r.generalization;return t?Array.isArray(t)?t:[t]:[]},Bn=r=>{r.setAttribute("xmlns","http://www.w3.org/1999/xhtml")},mc=r=>(r=[...r],r.sort((t,e)=>t.sortIndex-e.sortIndex),r),x0=(r,t)=>La(r,t,{arrayMerge:(e,i)=>i}),w0=r=>{const t={};return _a.forEach(e=>{let i=r.style.merge(e);e==="fontSize"&&(i=i+"px"),t[e]=i}),t},z6=(r,t)=>{const e=String(r).split("."),i=String(t).split("."),n=Math.max(e.length,i.length);for(let o=0;o<n;o++){const s=e[o]||0,a=i[o]||0;if(s>a)return">";if(s<a)return"<"}return"="},E0=["backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize"];class or{static setBackgroundStyle(t,e){if(!t)return;if(!or.cacheStyle){or.cacheStyle={};let l=window.getComputedStyle(t);E0.forEach(h=>{or.cacheStyle[h]=l[h]})}let{backgroundColor:i,backgroundImage:n,backgroundRepeat:o,backgroundPosition:s,backgroundSize:a}=e;t.style.backgroundColor=i,n&&n!=="none"?(t.style.backgroundImage=`url(${n})`,t.style.backgroundRepeat=o,t.style.backgroundPosition=s,t.style.backgroundSize=a):t.style.backgroundImage="none"}static removeBackgroundStyle(t){or.cacheStyle&&(E0.forEach(e=>{t.style[e]=or.cacheStyle[e]}),or.cacheStyle=null)}constructor(t){this.ctx=t,this._markerPath=null,this._marker=null,this._gradient=null}merge(t,e){let i=this.ctx.mindMap.themeConfig,n=null,o=!1;e?(o=!0,n=i):this.ctx.isGeneralization?n=i.generalization:this.ctx.layerIndex===0?n=i.root:this.ctx.layerIndex===1?n=i.second:n=i.node;let s="";return this.getSelfStyle(t)!==void 0?s=this.getSelfStyle(t):n[t]!==void 0?s=n[t]:s=i[t],o||this.addToEffectiveStyles({[t]:s}),s}getStyle(t,e){return this.merge(t,e)}getSelfStyle(t){return this.ctx.getData(t)}addToEffectiveStyles(t){this.ctx.effectiveStyles={...this.ctx.effectiveStyles,...t}}rect(t){this.shape(t),t.radius(this.merge("borderRadius"))}shape(t){const e={gradientStyle:this.merge("gradientStyle"),startColor:this.merge("startColor"),endColor:this.merge("endColor"),startDir:this.merge("startDir"),endDir:this.merge("endDir"),fillColor:this.merge("fillColor"),borderColor:this.merge("borderColor"),borderWidth:this.merge("borderWidth"),borderDasharray:this.merge("borderDasharray")};e.gradientStyle?(this._gradient||(this._gradient=this.ctx.nodeDraw.gradient("linear")),this._gradient.update(i=>{i.stop(0,e.startColor),i.stop(1,e.endColor)}),this._gradient.from(...e.startDir).to(...e.endDir),t.fill(this._gradient)):t.fill({color:e.fillColor}),t.stroke({color:e.borderColor,width:e.borderWidth,dasharray:e.borderDasharray})}text(t){const e={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration")};t.fill({color:e.color}).css({"font-family":e.fontFamily,"font-size":e.fontSize+"px","font-weight":e.fontWeight,"font-style":e.fontStyle,"text-decoration":e.textDecoration})}domText(t,e=1){const i={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration"),textAlign:this.merge("textAlign")};t.style.color=i.color,t.style.textDecoration=i.textDecoration,t.style.fontFamily=i.fontFamily,t.style.fontSize=i.fontSize*e+"px",t.style.fontWeight=i.fontWeight||"normal",t.style.fontStyle=i.fontStyle,t.style.textAlign=i.textAlign}tagText(t,e){t.fill({color:"#fff"}).css({"font-size":e.fontSize+"px"})}tagRect(t,e){t.fill({color:e.fill}),e.radius&&t.radius(e.radius)}iconNode(t,e){t.attr({fill:e||this.merge("color")})}line(t,{width:e,color:i,dasharray:n}={},o,s){const{customHandleLine:a}=this.ctx.mindMap.opt;if(typeof a=="function"&&a(this.ctx,t,{width:e,color:i,dasharray:n}),t.stroke({color:i,dasharray:n,width:e}).fill({color:"none"}),o){const l=this.merge("showLineMarker",!0),h=s.style;if(l){h._marker=h._marker||h.createMarker(),h._markerPath.stroke({color:i}).fill({color:i}),t.attr("marker-start",""),t.attr("marker-end","");const c=h.merge("lineMarkerDir");t.marker(c,h._marker)}else h._marker&&(t.attr("marker-start",""),t.attr("marker-end",""),h._marker.remove(),h._marker=null)}}createMarker(){return this.ctx.lineDraw.marker(20,20,t=>{t.ref(8,5),t.size(20,20),t.attr("markerUnits","userSpaceOnUse"),t.attr("orient","auto-start-reverse"),this._markerPath=t.path("M0,0 L2,5 L0,10 L10,5 Z")})}generalizationLine(t){t.stroke({width:this.merge("generalizationLineWidth",!0),color:this.merge("generalizationLineColor",!0)}).fill({color:"none"})}iconBtn(t,e,i){let{color:n,fill:o,fontSize:s,fontColor:a}=this.ctx.mindMap.opt.expandBtnStyle||{color:"#808080",fill:"#fff",fontSize:12,fontColor:"#333333"};t.fill({color:n}),e.fill({color:n}),i.fill({color:o}),this.ctx.mindMap.opt.isShowExpandNum&&t.attr({"font-size":s+"px","font-color":a})}hasCustomStyle(){let t=!1;return Object.keys(this.ctx.getData()).forEach(e=>{fc(e)&&(t=!0)}),t}getCustomStyle(){const t={};return Object.keys(this.ctx.getData()).forEach(e=>{fc(e)&&(t[e]=this.ctx.getData(e))}),t}hoverNode(t){const e=this.merge("hoverRectColor")||this.ctx.mindMap.opt.hoverRectColor,i=this.merge("hoverRectRadius");t.radius(i).fill("none").stroke({color:e})}onRemove(){this._marker&&(this._marker.remove(),this._marker=null),this._markerPath&&(this._markerPath.remove(),this._markerPath=null),this._gradient&&(this._gradient.remove(),this._gradient=null)}}or.cacheStyle=null;class P6{constructor(t){this.node=t,this.mindMap=t.mindMap}getShapePadding(t,e,i,n){const o=this.node.getShape(),s=15,a=5,l=t+i*2,h=e+n*2,c=Math.abs(l-h);switch(o){case ut.SHAPE.ROUNDED_RECTANGLE:return{paddingX:e>t?(e-t)/2:0,paddingY:0};case ut.SHAPE.DIAMOND:return{paddingX:t/2,paddingY:e/2};case ut.SHAPE.PARALLELOGRAM:return{paddingX:i<=0?s:0,paddingY:0};case ut.SHAPE.OUTER_TRIANGULAR_RECTANGLE:return{paddingX:i<=0?s:0,paddingY:0};case ut.SHAPE.INNER_TRIANGULAR_RECTANGLE:return{paddingX:i<=0?s:0,paddingY:0};case ut.SHAPE.ELLIPSE:return{paddingX:i<=0?s:0,paddingY:n<=0?a:0};case ut.SHAPE.CIRCLE:return{paddingX:h>l?c/2:0,paddingY:h<l?c/2:0};default:return{paddingX:0,paddingY:0}}}createShape(){const t=this.node.getShape();let e=null;return t===ut.SHAPE.RECTANGLE?e=this.createRect():t===ut.SHAPE.DIAMOND?e=this.createDiamond():t===ut.SHAPE.PARALLELOGRAM?e=this.createParallelogram():t===ut.SHAPE.ROUNDED_RECTANGLE?e=this.createRoundedRectangle():t===ut.SHAPE.OCTAGONAL_RECTANGLE?e=this.createOctagonalRectangle():t===ut.SHAPE.OUTER_TRIANGULAR_RECTANGLE?e=this.createOuterTriangularRectangle():t===ut.SHAPE.INNER_TRIANGULAR_RECTANGLE?e=this.createInnerTriangularRectangle():t===ut.SHAPE.ELLIPSE?e=this.createEllipse():t===ut.SHAPE.CIRCLE&&(e=this.createCircle()),e}getNodeSize(){const t=this.node.getBorderWidth();let{width:e,height:i}=this.node;return e-=t,i-=t,{width:e,height:i}}createPath(t){const{customCreateNodePath:e}=this.mindMap.opt;return e?Qe(e(t)):new Dn().plot(t)}createPolygon(t){const{customCreateNodePolygon:e}=this.mindMap.opt;return e?Qe(e(t)):new On().plot(t)}createRect(){let{width:t,height:e}=this.getNodeSize(),i=this.node.style.merge("borderRadius");const n=`
      M${i},0
      L${t-i},0
      C${t-i},0 ${t},0 ${t},${i}
      L${t},${e-i}
      C${t},${e-i} ${t},${e} ${t-i},${e}
      L${i},${e}
      C${i},${e} 0,${e} 0,${e-i}
      L0,${i}
      C0,${i} 0,0 ${i},0
      Z
    `;return this.createPath(n)}createDiamond(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const d=[[i,0],[t,n],[i,e],[0,n]];return this.createPolygon(d)}createParallelogram(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[t,0],[e,0],[e-t,i],[0,i]];return this.createPolygon(n)}createRoundedRectangle(){let{width:t,height:e}=this.getNodeSize(),i=e/2;const n=`
      M${i},0
      L${t-i},0
      A${e/2},${e/2} 0 0,1 ${t-i},${e} 
      L${i},${e}
      A${e/2},${e/2} 0 0,1 ${i},0
    `;return this.createPath(n)}createOctagonalRectangle(){let t=5,{width:e,height:i}=this.getNodeSize();const n=[[0,t],[t,0],[e-t,0],[e,t],[e,i-t],[e-t,i],[t,i],[0,i-t]];return this.createPolygon(n)}createOuterTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[t,0],[e-t,0],[e,i/2],[e-t,i],[t,i],[0,i/2]];return this.createPolygon(n)}createInnerTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[0,0],[e,0],[e-t/2,i/2],[e,i],[0,i],[t/2,i/2]];return this.createPolygon(n)}createEllipse(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const o=`
      M${i},0
      A${i},${n} 0 0,1 ${i},${e} 
      M${i},${e} 
      A${i},${n} 0 0,1 ${i},0 
    `;return this.createPath(o)}createCircle(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const o=`
      M${i},0
      A${i},${n} 0 0,1 ${i},${e} 
      M${i},${e} 
      A${i},${n} 0 0,1 ${i},0 
    `;return this.createPath(o)}}const U6=[ut.SHAPE.RECTANGLE,ut.SHAPE.DIAMOND,ut.SHAPE.PARALLELOGRAM,ut.SHAPE.ROUNDED_RECTANGLE,ut.SHAPE.OCTAGONAL_RECTANGLE,ut.SHAPE.OUTER_TRIANGULAR_RECTANGLE,ut.SHAPE.INNER_TRIANGULAR_RECTANGLE,ut.SHAPE.ELLIPSE,ut.SHAPE.CIRCLE];function j6(){const r=this.getData("generalization");return Array.isArray(r)?r:r?[r]:[]}function q6(){return this.formatGetGeneralization().length>0}function W6(){return!!this.formatGetGeneralization().find(t=>!t.range||t.range.length<=0)}function H6(r){return this._generalizationList.findIndex(t=>t.generalizationNode.uid===r.uid)}function G6(){if(this.isGeneralization||!this.checkHasGeneralization())return;let r=0,t=0;this.formatGetGeneralization().forEach((i,n)=>{let o=this._generalizationList[n];o||(o=this._generalizationList[n]={}),o.node=this,o.range=i.range,o.generalizationLine||(o.generalizationLine=this.lineDraw.path()),o.generalizationNode||(o.generalizationNode=new xs({data:{inserting:i.inserting,data:i},uid:Di(),renderer:this.renderer,mindMap:this.mindMap,isGeneralization:!0})),delete i.inserting,o.generalizationNode.generalizationBelongNode=this,o.generalizationNode.width>r&&(r=o.generalizationNode.width),o.generalizationNode.height>t&&(t=o.generalizationNode.height),i.isActive&&this.renderer.addNodeToActiveList(o.generalizationNode)}),this._generalizationNodeWidth=r,this._generalizationNodeHeight=t}function V6(){this.isGeneralization||(this.removeGeneralization(),this.createGeneralizationNode())}function K6(r){if(this.isGeneralization)return;this.updateGeneralizationData();const t=this.formatGetGeneralization();if(t.length<=0||this.getData("expand")===!1){this.removeGeneralization();return}t.length!==this._generalizationList.length&&this.removeGeneralization(),this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this._generalizationList),this._generalizationList.forEach(e=>{this.style.generalizationLine(e.generalizationLine),e.generalizationNode.render(()=>{},r)})}function X6(){const r=this.getChildrenLength(),t=this.formatGetGeneralization(),e=[];t.forEach(i=>{if(!i.range){e.push(i);return}i.range.length>0&&i.range[0]<=r-1&&i.range[1]<=r-1&&e.push(i)}),e.length!==t.length&&this.setData({generalization:e})}function Y6(){this.isGeneralization||(this._generalizationList.forEach(r=>{r.generalizationNode.style.onRemove(),r.generalizationLine&&(r.generalizationLine.remove(),r.generalizationLine=null),r.generalizationNode&&(this.renderer.removeNodeFromActiveList(r.generalizationNode),r.generalizationNode.remove(),r.generalizationNode=null)}),this._generalizationList=[],this.generalizationBelongNode&&this.nodeDraw.find(".generalization_"+this.generalizationBelongNode.uid).remove())}function Z6(){this.isGeneralization||this._generalizationList.forEach(r=>{r.generalizationLine&&r.generalizationLine.hide(),r.generalizationNode&&r.generalizationNode.hide()})}function J6(){this.isGeneralization||this._generalizationList.forEach(r=>{r.generalizationLine&&r.generalizationLine.show(),r.generalizationNode&&r.generalizationNode.show()})}function Q6(r){this._generalizationList.forEach(t=>{t.generalizationLine.opacity(r),t.generalizationNode.group.opacity(r)})}function $6(){const r=this.generalizationBelongNode,t=r.formatGetGeneralization(),e=r.getGeneralizationNodeIndex(this),i=t[e],o=this.getStyle("hoverRectColor")||this.mindMap.opt.hoverRectColor,s=o?{stroke:o}:null;Array.isArray(i.range)&&i.range.length>0?this.mindMap.renderer.highlightNode(r,i.range,s):this.mindMap.renderer.highlightNode(r,null,s)}function ty(){this.mindMap.renderer.closeHighlightNode()}const T0={formatGetGeneralization:j6,checkHasGeneralization:q6,checkHasSelfGeneralization:W6,getGeneralizationNodeIndex:H6,createGeneralizationNode:G6,updateGeneralization:V6,updateGeneralizationData:X6,renderGeneralization:K6,removeGeneralization:Y6,hideGeneralization:Z6,showGeneralization:J6,setGeneralizationOpacity:Q6,handleGeneralizationMouseenter:$6,handleGeneralizationMouseleave:ty},vc={open:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M475.136 327.168v147.968h-147.968v74.24h147.968v147.968h74.24v-147.968h147.968v-74.24h-147.968v-147.968h-74.24z m36.864-222.208c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z"></path></svg>',close:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z"></path><path d="M252.928 474.624h518.144v74.24h-518.144z"></path></svg>',quickCreateChild:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M514.048 62.464q93.184 0 175.616 35.328t143.872 96.768 96.768 143.872 35.328 175.616q0 94.208-35.328 176.128t-96.768 143.36-143.872 96.768-175.616 35.328q-94.208 0-176.64-35.328t-143.872-96.768-96.768-143.36-35.328-176.128q0-93.184 35.328-175.616t96.768-143.872 143.872-96.768 176.64-35.328zM772.096 576.512q26.624 0 45.056-18.944t18.432-45.568-18.432-45.056-45.056-18.432l-192.512 0 0-192.512q0-26.624-18.944-45.568t-45.568-18.944-45.056 18.944-18.432 45.568l0 192.512-192.512 0q-26.624 0-45.056 18.432t-18.432 45.056 18.432 45.568 45.056 18.944l192.512 0 0 191.488q0 26.624 18.432 45.568t45.056 18.944 45.568-18.944 18.944-45.568l0-191.488 192.512 0z"></path></svg>'};function ey(){if(this._openExpandNode)return;const{expandBtnSize:r,expandBtnIcon:t,isShowExpandNum:e}=this.mindMap.opt;let{close:i,open:n}=t||{};e?(this._openExpandNode=new Je,this._openExpandNode.addClass("smm-expand-btn-text"),this._openExpandNode.attr({"text-anchor":"middle","dominant-baseline":"middle",x:r/2,y:2})):(this._openExpandNode=Qe(n||vc.open).size(r,r),this._openExpandNode.x(0).y(-r/2)),this._closeExpandNode=Qe(i||vc.close).size(r,r),this._closeExpandNode.x(0).y(-r/2),this._fillExpandNode=new mo().size(r),this._fillExpandNode.x(0).y(-r/2),this.style.iconBtn(this._openExpandNode,this._closeExpandNode,this._fillExpandNode)}function iy(r=[]){return r.reduce((t,e)=>t+this.sumNode(e.children||[]),r.length)}function ry(){let{expand:r}=this.getData();if(r===this._lastExpandBtnType)return;this._expandBtn&&this._expandBtn.clear(),this.createExpandNodeContent();let t;if(r===!1?(t=this._openExpandNode,this._lastExpandBtnType=!1):(t=this._closeExpandNode,this._lastExpandBtnType=!0),this._expandBtn){let{isShowExpandNum:e,expandBtnStyle:i,expandBtnNumHandler:n}=this.mindMap.opt;if(e)if(r)this._fillExpandNode.stroke("none");else{this._fillExpandNode.stroke({color:i.strokeColor});let o=this.sumNode(this.nodeData.children||[]);if(typeof n=="function"){const s=n(o,this);nr(s)||(o=s)}t.text(String(o))}this._expandBtn.add(this._fillExpandNode).add(t)}}function ny(){this._expandBtn&&this.renderer.layout.renderExpandBtn(this,this._expandBtn)}function oy(){this.getChildrenLength()<=0||this.isRoot||(this._expandBtn?this.group.add(this._expandBtn):(this._expandBtn=new fi,this._expandBtn.on("mouseover",r=>{r.stopPropagation(),this._expandBtn.css({cursor:"pointer"})}),this._expandBtn.on("mouseout",r=>{r.stopPropagation(),this._expandBtn.css({cursor:"auto"})}),this._expandBtn.on("click",r=>{r.stopPropagation(),this.mindMap.execCommand("SET_NODE_EXPAND",this,!this.getData("expand")),this.mindMap.emit("expand_btn_click",this)}),this._expandBtn.on("dblclick",r=>{r.stopPropagation()}),this._expandBtn.addClass("smm-expand-btn"),this.group.add(this._expandBtn)),this._showExpandBtn=!0,this.updateExpandBtnNode(),this.updateExpandBtnPos())}function sy(){this._expandBtn&&this._showExpandBtn&&(this._expandBtn.remove(),this._showExpandBtn=!1)}function ay(){const{alwaysShowExpandBtn:r,notShowExpandBtn:t}=this.mindMap.opt;r||t||setTimeout(()=>{this.renderExpandBtn()},0)}function ly(){const{alwaysShowExpandBtn:r,notShowExpandBtn:t}=this.mindMap.opt;if(r||this._isMouseenter||t)return;let{isActive:e,expand:i}=this.getData();!e&&i&&setTimeout(()=>{this.removeExpandBtn()},0)}const C0={createExpandNodeContent:ey,updateExpandBtnNode:ry,updateExpandBtnPos:ny,renderExpandBtn:oy,removeExpandBtn:sy,showExpandBtn:ay,hideExpandBtn:ly,sumNode:iy};function hy(r={}){this.mindMap.execCommand("SET_NODE_DATA",this,r)}function cy(r,t,e){this.mindMap.execCommand("SET_NODE_TEXT",this,r,t,e)}function uy(r){this.mindMap.execCommand("SET_NODE_IMAGE",this,r)}function dy(r){this.mindMap.execCommand("SET_NODE_ICON",this,r)}function fy(r,t){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,r,t)}function py(r){this.mindMap.execCommand("SET_NODE_NOTE",this,r)}function gy(r,t){this.mindMap.execCommand("SET_NODE_ATTACHMENT",this,r,t)}function my(r){this.mindMap.execCommand("SET_NODE_TAG",this,r)}function vy(r){this.mindMap.execCommand("SET_NODE_SHAPE",this,r)}function yy(r,t){this.mindMap.execCommand("SET_NODE_STYLE",this,r,t)}function by(r){this.mindMap.execCommand("SET_NODE_STYLES",this,r)}const S0={setData:hy,setText:cy,setImage:uy,setIcon:dy,setHyperlink:fy,setNote:py,setAttachment:gy,setTag:my,setShape:vy,setStyle:yy,setStyles:by},xy='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M435.484444 251.733333v68.892445L295.822222 320.682667a168.504889 168.504889 0 0 0-2.844444 336.952889h142.506666v68.892444H295.822222a237.397333 237.397333 0 0 1 0-474.794667h139.662222z m248.945778 0a237.397333 237.397333 0 0 1 0 474.851556H544.654222v-69.006222l139.776 0.056889a168.504889 168.504889 0 0 0 2.844445-336.952889H544.597333V251.676444h139.776z m-25.827555 203.946667a34.474667 34.474667 0 0 1 0 68.892444H321.649778a34.474667 34.474667 0 0 1 0-68.892444h336.952889z" ></path></svg>',wy='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M152.768 985.984 152.768 49.856l434.56 0 66.816 0 234.048 267.392 0 66.816 0 601.92L152.768 985.984 152.768 985.984zM654.144 193.088l0 124.16 108.736 0L654.144 193.088 654.144 193.088zM821.312 384.064l-167.168 0L587.328 384.064 587.328 317.312 587.328 116.736 219.584 116.736 219.584 919.04l601.728 0L821.312 384.064 821.312 384.064zM386.688 517.888 319.808 517.888 319.808 450.944l66.816 0L386.624 517.888 386.688 517.888zM386.688 651.584 319.808 651.584 319.808 584.704l66.816 0L386.624 651.584 386.688 651.584zM386.688 785.344 319.808 785.344l0-66.88 66.816 0L386.624 785.344 386.688 785.344zM721.024 517.888 453.632 517.888 453.632 450.944l267.392 0L721.024 517.888 721.024 517.888zM654.144 651.584 453.632 651.584 453.632 584.704l200.512 0L654.144 651.584 654.144 651.584zM620.672 785.344l-167.04 0 0-66.88 167.04 0L620.672 785.344 620.672 785.344z" ></path></svg>',Ey='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" width="128" height="128"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" ></path></svg>',yc=[{name:"优先级图标",type:"priority",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#E93B30"></path><path d="M580.309333 256h-75.52c-10.666667 29.824-30.165333 55.765333-58.709333 78.165333-28.416 22.314667-54.869333 37.418667-79.146667 45.397334v84.608a320 320 0 0 0 120.234667-70.698667v352.085333H580.266667V256z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M511.957333 1024C229.248 1024 0 794.752 0 512S229.248 0 511.957333 0C794.752 0 1024 229.248 1024 512s-229.248 512-512.042667 512z" fill="#FA8D2E"></path><path d="M667.946667 658.602667h-185.301334c4.864-8.533333 11.178667-17.066667 19.072-25.984 7.808-8.874667 26.453333-26.837333 55.936-53.888 29.525333-27.008 49.877333-47.786667 61.226667-62.165334 16.981333-21.717333 29.44-42.453333 37.290667-62.293333 7.808-19.84 11.776-40.746667 11.776-62.677333 0-38.570667-13.738667-70.741333-41.088-96.725334C599.466667 268.928 561.706667 256 513.834667 256c-43.690667 0-80.128 11.136-109.354667 33.578667-29.098667 22.4-46.506667 59.306667-52.010667 110.805333l93.184 9.301333c1.792-27.349333 8.405333-46.890667 19.754667-58.624 11.434667-11.776 26.837333-17.664 46.165333-17.664 19.541333 0 34.858667 5.589333 45.909334 16.768 11.136 11.264 16.682667 27.221333 16.682666 48.042667 0 18.858667-6.4 37.930667-19.242666 57.258667-9.472 14.037333-35.157333 40.533333-77.098667 79.872-52.096 48.554667-87.04 87.509333-104.704 116.821333A226.688 226.688 0 0 0 341.333333 745.429333h326.613334v-86.826666z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#2E66FA"></path><path d="M627.754667 731.733333c-29.354667 25.088-66.901333 37.632-112.725334 37.632-44.928 0-81.792-11.52-110.592-34.773333-33.066667-26.538667-49.877333-64.469333-50.304-114.133333h92.16c0.426667 21.76 7.552 38.314667 21.333334 49.664 12.288 10.88 28.117333 16.341333 47.402666 16.341333 20.309333 0 36.778667-6.101333 49.322667-18.432 12.544-12.330667 18.773333-29.568 18.773333-51.797333 0-21.290667-6.229333-38.186667-18.773333-50.773334-12.544-12.501333-29.866667-18.773333-52.138667-18.773333h-13.525333v-80.042667H512c42.112 0 63.274667-21.034667 63.274667-63.146666 0-20.309333-5.888-36.096-17.706667-47.445334a60.757333 60.757333 0 0 0-43.818667-17.066666c-17.493333 0-32 5.504-43.434666 16.298666-11.562667 10.88-17.792 25.728-18.773334 44.714667H359.68c0.981333-43.946667 16.042667-78.976 45.397333-104.96 29.354667-25.941333 65.706667-39.04 109.226667-39.04 44.928 0 81.792 13.525333 110.592 40.490667 28.8 26.922667 43.306667 61.610667 43.306667 104.149333 0 48.213333-19.413333 82.688-58.154667 103.552 43.52 23.125333 65.28 61.44 65.28 114.858667 0 48.128-15.957333 85.76-47.573333 112.682666z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M600.96 256v309.802667h60.117333v81.536h-60.16v98.218666h-90.154666v-98.218666H311.466667v-81.237334L522.666667 256h78.293333zM510.72 399.104l-112.042667 166.698667h112.042667V399.104z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M470.912 343.552h175.786667V256H400.256l-47.786667 253.952 75.434667 10.837333c21.205333-23.552 45.269333-35.413333 72.021333-35.413333 21.546667 0 38.997333 7.509333 52.437334 22.4 13.312 15.018667 20.053333 37.418667 20.053333 67.328 0 31.872-6.741333 55.765333-20.181333 71.552-13.397333 15.872-29.866667 23.765333-49.237334 23.765333-17.066667 0-32.085333-6.186667-45.013333-18.432-13.013333-12.373333-20.821333-29.013333-23.466667-50.133333L341.333333 611.498667c5.546667 40.874667 22.485333 73.429333 50.730667 97.621333 28.330667 24.32 64.938667 36.437333 109.866667 36.437333 56.149333 0 100.053333-21.546667 131.754666-64.554666a176.64 176.64 0 0 0 34.816-107.52c0-48.042667-14.378667-87.210667-43.221333-117.333334-28.8-30.208-63.957333-45.312-105.514667-45.312-21.674667 0-42.922667 5.248-63.829333 15.616l14.976-82.901333z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512 0c282.88 0 512 229.205333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M519.210667 256c36.992 0 67.626667 10.368 91.776 31.189333 24.192 20.821333 39.68 51.029333 46.293333 90.709334l-90.197333 9.984c-2.176-18.56-7.978667-32.298667-17.28-41.173334-9.258667-8.874667-21.418667-13.226667-36.224-13.226666-19.754667 0-36.437333 8.789333-50.048 26.453333-13.696 17.664-22.314667 54.613333-25.856 110.549333 23.296-27.52 52.138667-41.258667 86.656-41.258666 38.997333 0 72.362667 14.805333 100.181333 44.544 27.733333 29.696 41.685333 68.010667 41.685333 114.858666 0 49.877333-14.634667 89.856-43.818666 119.936-29.226667 30.208-66.730667 45.226667-112.554667 45.226667-49.066667 0-89.429333-19.072-121.130667-57.344C357.12 658.218667 341.333333 595.541333 341.333333 508.416c0-89.344 16.469333-153.813333 49.493334-193.194667C423.722667 275.754667 466.56 256 519.168 256z m-9.472 241.834667c-17.962667 0-33.066667 6.997333-45.525334 21.12-12.330667 14.037333-18.56 34.858667-18.56 62.293333 0 30.421333 6.912 53.76 20.906667 70.4 13.952 16.469333 29.866667 24.746667 47.786667 24.746667 17.28 0 31.701333-6.826667 43.178666-20.309334 11.52-13.525333 17.237333-35.669333 17.237334-66.56 0-31.658667-6.186667-54.869333-18.517334-69.546666a58.197333 58.197333 0 0 0-46.506666-22.144z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.752 0 512S229.248 0 512.042667 0C794.752 0 1024 229.248 1024 512s-229.248 512-511.957333 512z" fill="#6D768D"></path><path d="M673.024 273.066667H354.133333v86.869333h212.224a691.2 691.2 0 0 0-104.746666 187.989333c-26.026667 70.101333-39.978667 138.88-41.429334 206.293334h89.6c-0.298667-42.922667 6.698667-91.776 21.034667-146.474667a654.72 654.72 0 0 1 62.08-154.965333c27.136-48.554667 53.888-85.76 80.128-111.701334V273.066667z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z" fill="#6D768D"></path><path d="M512.426667 256c46.208 0 82.048 11.861333 107.605333 35.541333 25.6 23.68 38.314667 53.674667 38.314667 89.898667 0 22.613333-5.802667 42.666667-17.578667 60.330667a111.445333 111.445333 0 0 1-49.450667 40.277333c26.965333 10.837333 47.36 26.752 61.312 47.658667 13.994667 20.906667 21.034667 45.013333 21.034667 72.362666 0 45.098667-14.336 81.834667-42.965333 109.952-28.586667 28.245333-66.602667 42.368-114.090667 42.368-44.245333 0-81.066667-11.648-110.464-34.986666-34.645333-27.52-52.010667-65.28-52.010667-113.365334 0-26.368 6.528-50.645333 19.626667-72.746666 13.056-22.144 33.578667-39.210667 61.696-51.242667-24.064-10.154667-41.557333-24.192-52.48-41.941333a109.824 109.824 0 0 1-16.512-58.666667c0-36.224 12.757333-66.218667 37.973333-89.898667 25.386667-23.68 61.354667-35.541333 108.032-35.541333z m1.28 265.429333c-22.784 0-39.722667 7.978667-50.901334 23.893334-11.136 15.786667-16.64 33.066667-16.64 51.498666 0 25.984 6.485333 46.208 19.712 60.714667 13.098667 14.506667 29.525333 21.802667 49.152 21.802667 19.242667 0 35.157333-6.997333 47.786667-20.992 12.629333-13.909333 18.858667-34.048 18.858667-60.416 0-23.082667-6.314667-41.557333-19.2-55.466667a63.274667 63.274667 0 0 0-48.725334-21.034667z m-0.341334-191.488c-17.792 0-32 5.333333-42.581333 16-10.538667 10.666667-15.872 24.746667-15.872 42.325334 0 18.645333 5.248 33.152 15.701333 43.648 10.453333 10.453333 24.362667 15.658667 41.770667 15.658666 17.664 0 31.658667-5.290667 42.24-15.872 10.538667-10.581333 15.872-25.173333 15.872-43.818666 0-17.493333-5.248-31.573333-15.701333-42.154667s-24.277333-15.786667-41.429334-15.786667z" fill="#FFFFFF"></path></svg>'},{name:"9",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.333333 229.248 0 512 0c282.88 0 512 229.333333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M497.28 256c49.365333 0 89.856 19.157333 121.429333 57.429333 31.701333 38.229333 47.488 101.205333 47.488 188.842667 0 89.173333-16.384 153.386667-49.365333 192.853333-32.853333 39.594667-75.605333 59.264-128.426667 59.264-37.888 0-68.608-10.154667-91.989333-30.506666s-38.4-50.816-45.013333-91.306667l90.112-9.984c2.261333 18.474667 8.021333 32.085333 17.28 41.088 9.173333 8.874667 21.418667 13.312 36.608 13.312 19.2 0 35.541333-8.874667 48.981333-26.752 13.44-17.749333 22.016-54.613333 25.770667-110.549333-23.466667 27.264-52.821333 40.874667-88.064 40.874666-38.314667 0-71.253333-14.72-99.114667-44.330666C355.242667 506.709333 341.333333 468.224 341.333333 420.864c0-49.493333 14.592-89.258667 43.946667-119.466667C414.549333 271.104 451.925333 256 497.237333 256z m-4.352 77.482667c-17.237333 0-31.658667 6.826667-43.008 20.437333-11.477333 13.653333-17.194667 35.84-17.194667 66.816 0 31.402667 6.229333 54.485333 18.645334 69.205333 12.458667 14.72 27.946667 22.101333 46.592 22.101334 18.005333 0 33.066667-7.082667 45.44-21.205334 12.330667-14.208 18.432-35.029333 18.432-62.506666 0-29.994667-6.912-53.376-20.821334-69.973334-13.824-16.597333-29.866667-24.874667-48.085333-24.874666z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M619.946667 273.066667c46.976 0 83.754667 16.042667 110.250666 48.042666 31.573333 37.973333 47.36 100.864 47.36 188.672 0 87.722667-15.829333 150.698667-47.658666 189.056-26.325333 31.616-62.976 47.36-109.952 47.36-47.274667 0-85.418667-17.237333-114.346667-51.968-28.885333-34.602667-43.392-96.426667-43.392-185.386666 0-87.168 15.872-150.016 47.701333-188.416 26.282667-31.488 62.933333-47.36 110.037334-47.36z m-207.488 12.8v452.266666H325.504V411.690667A299.904 299.904 0 0 1 213.333333 476.373333V398.933333c22.656-7.296 47.36-21.12 73.856-41.514666 26.624-20.522667 44.842667-44.288 54.784-71.552h70.485334z m207.488 60.842666c-11.306667 0-21.461333 3.413333-30.336 10.24-8.874667 6.826667-15.786667 19.157333-20.693334 36.864-6.4 22.997333-9.642667 61.653333-9.642666 115.968 0 54.442667 2.944 91.733333 8.661333 112.128 5.802667 20.352 13.098667 33.877333 21.845333 40.618667 8.789333 6.741333 18.858667 10.154667 30.165334 10.154667 11.349333 0 21.376-3.498667 30.250666-10.325334 8.874667-6.826667 15.786667-19.157333 20.693334-36.778666 6.4-22.826667 9.642667-61.354667 9.642666-115.797334 0-54.314667-2.858667-91.648-8.661333-112.042666-5.802667-20.352-13.013333-33.962667-21.76-40.789334a47.616 47.616 0 0 0-30.165333-10.24z" fill="#FFFFFF"></path></svg>'}]},{name:"进度图标",type:"progress",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144-294.144A414.72 414.72 0 0 1 928 512c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512h416c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144 294.144A414.72 414.72 0 0 1 512 928z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96v832z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512l-294.144 294.144A414.72 414.72 0 0 1 96 512c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512H96c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512L217.856 217.856A414.72 414.72 0 0 1 512 96V512z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#12BB37"></path><path d="M716.629333 341.333333h-51.328a35.072 35.072 0 0 0-28.330666 14.293334l-171.989334 233.984-77.909333-106.026667a35.2 35.2 0 0 0-28.330667-14.293333H307.413333c-7.082667 0-11.264 7.936-7.082666 13.653333l136.32 185.472a35.2 35.2 0 0 0 56.533333 0l230.4-313.429333a8.533333 8.533333 0 0 0-6.954667-13.653334z" fill="#FFFFFF"></path></svg>'}]},{name:"表情图标",type:"expression",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024"><path d="M1.097856 1.097642h1021.804717v1021.804716H1.097856z" fill="#F09495" ></path><path d="M1024.000214 1024H0.000214V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.195498v1019.609432z" fill="#FFFFFF" ></path><path d="M234.695985 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" ></path><path d="M234.695985 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115s28.339115 12.772559 28.339115 28.339115c0.099786 15.666342-12.672773 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617-11.774703-26.243617-26.243617-26.243617z" fill="#FFFFFF" ></path><path d="M776.232528 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" ></path><path d="M776.232528 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115 15.666342 0 28.339115 12.772559 28.339115 28.339115 0 15.666342-12.772559 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617c-0.099786-14.468914-11.874488-26.243617-26.243617-26.243617z" fill="#FFFFFF" ></path><path d="M512.000214 671.656987c-52.58702 0-105.872539-17.961411-105.872539-52.387449S459.413194 566.882089 512.000214 566.882089s105.872539 17.961411 105.87254 52.387449S564.587234 671.656987 512.000214 671.656987z m0-74.240499c-21.952836 0-43.207172 3.592282-58.2748 9.77899-13.870201 5.68778-17.06334 11.275775-17.06334 12.07406s3.19314 6.386279 17.06334 12.07406c15.067628 6.186708 36.321965 9.77899 58.2748 9.77899s43.207172-3.592282 58.274801-9.77899c13.870201-5.68778 17.06334-11.275775 17.06334-12.07406s-3.19314-6.386279-17.06334-12.07406c-15.067628-6.286494-36.321965-9.77899-58.274801-9.77899z" fill="#040000" ></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#E6A6C9" ></path><path d="M315.1 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM738.7 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM293.5 698.8l-14.5-1.3c0.1-0.6 1.5-14.6 15.1-27.9 17.2-16.7 45-24.8 82.7-24 4.9-0.1 10.9-10.5 16.1-19.6 8.4-14.7 19-33.1 37.9-34.3 19.4-1.2 42.2 16.4 71.5 55.4 9.9 5.2 16.5 11.2 21.8 16.1 8.4 7.7 13.1 11.9 25.1 10.8 14.9-1.4 38.9-11.1 77.5-31.4 26.8-28.4 56.4-41.4 83.5-36.6 27.9 4.9 50.6 27.6 67.5 67.5l-13.4 5.7c-14.7-34.5-34.3-54.9-56.7-58.8-22.3-3.9-47.6 7.8-71.2 33.1l-0.8 0.9-1.1 0.6c-85.6 45.1-99.4 38-120.2 19.1-5.5-5-11.2-10.2-20.1-14.7l-1.5-0.8-1-1.4c-32.2-43.2-50.4-51.6-60-51-11.1 0.7-18.8 14-26.2 27-7.6 13.2-15.4 26.9-28.8 26.9h-0.2c-78.4-1.6-83 38.3-83 38.7z" fill="#040000" ></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#F7E983" ></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" ></path><path d="M329.174412 344.491728a38.118106 10.277919 57.6 1 0 17.355867-11.014369 38.118106 10.277919 57.6 1 0-17.355867 11.014369Z" fill="#040000" ></path><path d="M644.769475 355.956059a11.175989 36.321965 30 1 0 36.321965-62.911488 11.175989 36.321965 30 1 0-36.321965 62.911488Z" fill="#040000" ></path><path d="M569.678445 671.158059c-26.343403 0-51.190021-5.288638-70.049503-14.967843-20.755408-10.577275-32.230754-25.445332-32.230755-41.710388 0-16.265056 11.475346-31.133112 32.230755-41.710387 18.859482-9.579419 43.805886-14.967843 70.049503-14.967843s51.190021 5.288638 70.049503 14.967843c20.755408 10.577275 32.230754 25.445332 32.230754 41.710387 0 16.265056-11.475346 31.133112-32.230754 41.710388-18.859482 9.679205-43.805886 14.967843-70.049503 14.967843z m0-95.095693c-49.693237 0-84.318846 20.356266-84.318846 38.517248s34.625609 38.517248 84.318846 38.517248 84.318846-20.356266 84.318846-38.517248-34.725395-38.517248-84.318846-38.517248z" fill="#040000" ></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#A6D9E2" ></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" ></path><path d="M376.194134 348.950302m-23.44962 0a23.44962 23.44962 0 1 0 46.89924 0 23.44962 23.44962 0 1 0-46.89924 0Z" fill="#040000" ></path><path d="M629.150672 348.950302m-24.647047 0a24.647047 24.647047 0 1 0 49.294095 0 24.647047 24.647047 0 1 0-49.294095 0Z" fill="#040000" ></path><path d="M397.847613 603.503411c13.471058 8.282206 28.738258 14.468914 43.7061 19.458195 29.835899 9.978562 62.266225 14.169558 93.299551 7.483921 21.054765-4.490353 40.213604-14.369129 56.778016-28.039758 6.785422-5.587995-2.893783-15.167414-9.579419-9.579419-46.999026 38.916391-112.258819 31.033327-163.847983 6.086922-4.590138-2.195284-9.080491-4.490353-13.371272-7.184564-7.583707-4.590138-14.468914 7.184564-6.984993 11.774703z" fill="#040000" ></path><path d="M627.753674 534.052621c-31.033327 24.048334-58.474371 68.253362-37.419607 106.970182 10.577275 19.35841 29.835899 32.629897 48.795167 42.708244 7.982849 4.190996 15.067628-7.883064 7.084779-12.07406-25.245761-13.271487-53.485091-35.324108-49.094524-66.557006 2.793997-20.156695 15.766127-37.319821 29.736114-51.190022 3.392711-3.392711 6.984993-6.785422 10.776847-9.77899 2.993569-2.295069 2.394855-7.483921 0-9.878776-2.893783-3.19314-6.885208-2.49464-9.878776-0.199572z" fill="#040000" ></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#AD6F59" ></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" ></path><path d="M411.829832 330.730879a38.118106 10.277919 57.6 1 0 17.355867-11.014368 38.118106 10.277919 57.6 1 0-17.355867 11.014368Z" fill="#040000" ></path><path d="M480.669675 609.989476c11.774703-25.844475 27.740401-51.788735 44.60417-73.342429 13.770415-17.462483 29.237186-33.92711 47.897096-44.803742 17.262912-10.078347 35.324108-13.67063 54.283376-6.58585 11.974274 4.390567 23.948548 14.468914 33.128825 24.547261 14.369129 15.865913 25.145975 34.625609 34.725394 53.684662 4.290782 8.581563 17.262912 0.997856 12.972131-7.583707-15.167414-30.334828-35.224323-63.763009-66.157864-80.327421-21.054765-11.37556-44.504385-11.475346-66.157864-1.895927-21.054765 9.280062-38.617034 25.644904-53.485091 42.907815-14.468914 16.863769-27.041902 35.324108-38.217891 54.582733-5.887351 10.178133-11.674917 20.555837-16.464627 31.232898-1.696355 3.692068-0.997856 7.982849 2.694212 10.277918 3.19314 1.895927 8.581563 0.898071 10.178133-2.694211z" fill="#040000" ></path><path d="M663.863649 338.091735a14.468914 33.727538 30 1 0 33.727538-58.417811 14.468914 33.727538 30 1 0-33.727538 58.417811Z" fill="#040000" ></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#83CEE3" ></path><path d="M369 375.8m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" ></path><path d="M369 411.7c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.1 36-36 36z m0-69.1c-18.3 0-33.2 14.9-33.2 33.2S350.7 409 369 409s33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" ></path><path d="M672.2 333.6c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.3-7.6-13zM578.2 720.9c-12.5-96.7-33.3-154.7-55.6-155.6-8.8 3.9-22.3 17.5-37.7 60.1-10.8 29.8-18.4 62.2-23 81.6-1.2 5.1-2.1 9.1-2.9 11.8l-9.3-2.4c0.7-2.6 1.6-6.6 2.8-11.6 14.9-63 36-136.8 67.5-148.8l0.8-0.3h0.8c18.2-0.4 33.2 19.5 45.8 60.8 10.2 33.3 16.7 74.6 20.5 103.3l-9.7 1.1z" fill="#040000" ></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#8CC66D" ></path><path d="M375.778679 404.47473a14.5 33.8 30 1 0 33.8-58.543317 14.5 33.8 30 1 0-33.8 58.543317Z" fill="#040000" ></path><path d="M627.220263 374.211388a43.1 11.6 57.6 1 0 19.588408-12.431182 43.1 11.6 57.6 1 0-19.588408 12.431182Z" fill="#040000" ></path><path d="M451.1 548.5c17.6-9.3 63.9-30 105.3-16.2 17 20.3 32.7 98.8 28.8 138.1-27.5 10.2-82.5 10.2-106.1 5.8-8.3-10.5-32.7-81.8-35.3-114.6-0.4-5.5 2.5-10.6 7.3-13.1z" fill="#040000" ></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#5A74B8" ></path><path d="M357.7 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" ></path><path d="M357.7 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2 33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" ></path><path d="M676 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" ></path><path d="M676 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2c18.3 0 33.2-14.9 33.2-33.2s-14.9-33.2-33.2-33.2z" fill="#FFFFFF" ></path><path d="M347.6 684.1c0.3-0.9 0.6-1.7 0.9-2.6 0.2-0.5 1.4-3.2 0.3-0.8 0.6-1.4 1.3-2.9 2-4.3 3.2-6.3 6-10.7 10.9-15.3 4.3-4 10.8-7.5 17.1-6.1 3.9 0.9 7.9 4.9 11.1 7.2 3.1 2.2 6.3 4.5 9.7 6.2 7.5 3.8 15.3 4.4 23.4 1.9 4.7-1.5 9.2-3.6 13.6-5.9 5-2.6 10.7-5 14.2-9.5 4.5-5.7 6.1-8.5 11.4-14.1 1-1 2-2 3.1-3 0.2-0.2 2.2-1.7 0.6-0.5 0.6-0.4 1.2-0.9 1.8-1.3 1-0.6 2.1-1.3 3.2-1.7-2 0.8 0.2 0 0.6-0.1 2.3-0.7-0.3-0.2 1.2-0.3 2.8-0.1 3.6 0 5.5 1 3.8 1.9 6.6 4.7 9.5 7.8 4.5 5 7.5 11.1 11.7 16.2 1.8 2.2 3.7 4.3 5.4 6.5 8.1 10.3 17.7 22.2 32.2 22 8.8-0.1 16.6-5.2 22.6-11.2 4.2-4.1 7.7-8.9 11-13.7 2.9-4.2 4.6-9.9 6.2-13.5 3.2-7.1 7.2-13.1 13-18.1 4.8-4.2 11.1-6.5 16.7-5.3 10.5 2.4 17.2 12.1 23.1 20.2 4.7 6.5 9.8 13 16 18.2 7.8 6.4 17.1 11.4 27.5 11.1 14.1-0.4 25.5-9.5 34.2-19.9 3-3.6 3.6-8.8 0-12.4-3.1-3.1-9.4-3.7-12.4 0-6.3 7.6-14.7 15.9-24.9 14.7-2.2-0.3-5.3-1.5-7.9-3.1-3.5-2.1-6.1-4.4-9.1-7.5-4.9-5.1-6.8-8.1-10.9-13.8-7.3-10.1-16.1-19.6-28.2-23.7-18.5-6.3-35.7 5.6-46 20.1-2.4 3.3-4.4 6.9-6.1 10.6-1.8 3.9-2.7 8.5-5.2 11.9-3.1 4.4-6.2 8.8-10.2 12.5-3 2.8-5.7 4.4-8.6 5.1-0.4 0.1-1.7 0.1 0.1 0h-2.2c2.1 0.1 0 0-0.5-0.1-0.7-0.2-1.4-0.4-2-0.6 1.8 0.7-1.8-1.1-2.4-1.5l-1.2-0.9c1.5 1.2-0.9-0.9-1.2-1.1-4.7-4.3-8.4-9.5-12.3-14.4-10.9-13.6-20.9-34-41-34.9-14.2-0.6-24.5 10.6-32.4 20.8-1.2 1.6-2.5 3.2-3.7 4.8-1.5 1.9 1.1-1.4-0.4 0.5-0.4 0.5-0.8 1.2-1.3 1.6-1.7 1.4-4.6 2.6-6.6 3.6-2.9 1.6-5.9 3.2-9 4.5-1.6 0.7-3.4 1.2-5.1 1.7-2.2 0.6-0.7 0.5-2.8 0.4-2.8 0-3.9-0.4-6.6-1.9-3.9-2.2-7.5-4.9-11.1-7.5-5.6-4-10-6.9-17-7.5-10.5-0.9-20.3 3.2-28.2 9.9-9.4 8.1-16.4 20.2-20.1 32-3.6 11.2 13.3 15.8 16.8 5.1z" fill="#040000" ></path></svg>'},{name:"9",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F0884F" ></path><path d="M287.2 382c6.4 2.3 11.6-3.7 15.4-7.9 5.1-5.5 10.2-11 16-15.9 0.8-0.7 1.7-1.4 2.5-2.1 1.2-0.9-1.7 1.3 0.2-0.2l1.2-0.9c2.1-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1 0.7-0.9-0.4 1-1.6 2.5-4.6 5.4-8.1 7.8-6.8 4.6-14.4 8.2-22 11.4-7 3-7.4 11.9 0 14.8 7.4 2.8 15 5.3 22.4 8.1 3.1 1.1 4.2 1.5 6.9 2.9 1.1 0.6 2.1 1.2 3.2 1.8 1.2 0.8-0.7-0.5 0.1 0 0.4 0.3 0.8 0.7 1.1 1.1 0.6 0.8-1.1-1.2-0.2-0.2 0.8 0.9-0.3-1.4-0.1-0.2 0.1 0.9 0.2-1.9 0-0.9-0.1 0.5-0.8 1.8 0 0.2-0.2 0.5-0.5 1-0.8 1.4-0.3 0.3-0.9 1.3-0.3 0.5-0.5 0.7-1.1 1.3-1.7 1.9-6.9 7.3-15.9 12.8-24.4 18.1-8.3 5.3-0.6 18.5 7.7 13.2 9.9-6.3 20.9-12.8 28.6-21.8 4.8-5.5 8.1-12.9 4.2-19.9-3.4-6-10.5-8.9-16.6-11.4-8.6-3.5-17.5-6.2-26.2-9.5v14.8c14.4-6.1 47.2-18.8 41.2-40.3-3.5-12.9-19.4-18.9-30.8-22.6-3.4-1.1-6.9-2.1-10.5-2.9-9.1-2.2-13.3 12.5-3.6 14.6z" fill="#040000" ></path></svg>'},{name:"10",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F6F180" ></path><path d="M342.9 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" ></path><path d="M342.9 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.7 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.6-28.3-28.3-28.3z" fill="#FFFFFF" ></path><path d="M702 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" ></path><path d="M702 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.8 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.7-28.3-28.3-28.3z" fill="#FFFFFF" ></path><path d="M358.7 519.9c20 22 45.5 40.4 71.3 54.8 51.2 28.5 111.7 39.9 168 19.5 44.3-16.1 80.7-47.8 110.2-83.9 3-3.7 3.6-8.9 0-12.5-3.1-3.1-9.5-3.7-12.5 0-25.5 31.4-56.2 59.7-93.7 76-27.1 11.7-56.6 15.7-85.8 12.2-24.7-2.9-49.5-11.8-71.5-23.4-18.7-9.8-36.6-22.2-51.1-34.3-7.8-6.5-15.5-13.3-22.4-20.9-7.7-8.5-20.1 4.1-12.5 12.5z" ></path></svg>'},{name:"11",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M48.2 844.9c-68.5-210.6 186-782.1 409.1-795.4 6.3-0.4 12.5 0.2 18.6 1.6C665.1 94.6 985.4 515 987.1 821.3c0.1 20-12.9 37.9-22.4 43.1-162.7 89.8-605.8 179.7-884.4 30.9-15-7.9-24.2-26.1-32.1-50.4z" fill="#F0884F" ></path><path d="M401 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" ></path><path d="M408.7 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" ></path><path d="M527.5 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" ></path><path d="M527.5 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" ></path><path d="M450.7 517c1.1-8.2 3.2-16.4 6.1-24.1 0.1-0.3 1-2.5 0.5-1.4s0.3-0.7 0.5-1c0.7-1.4 1.4-2.8 2.2-4.1 0.4-0.8 2.8-3.9 1.3-2.1 0.8-1 1.7-1.9 2.6-2.8 1-1-1.5 1 0.1 0 0.5-0.3 1-0.6 1.5-0.8-1.3 0.7-1.2 0.3 0 0.1 1.9-0.3-1.8 0.3 0.1 0 1.2-0.2 1.5 0.3 0-0.1 0.6 0.2 1.3 0.3 1.9 0.5 0.3 0.1-1.3-0.7 0.2 0.1 0.8 0.5 1.6 0.9 2.4 1.4 1.4 1 0-0.1 1.4 1.1 0.9 0.8 1.8 1.7 2.6 2.6 1.8 1.9 3.5 3.9 5 6.1 5.1 7.1 9.3 14.8 13.2 22.6 3.5 6.9 13.7 4.7 15.8-2.1 2.6-8.7 4.8-17.4 7.4-26.1 0.9-3.2 1.9-6.4 3.2-9.4-0.7 1.6 0.8-1.6 1.2-2.2l0.9-1.5c0.7-1.2-1.4 0.7 0.1-0.1 1.7-0.9-1.2 0.3-0.3 0.1 0.8-0.2 1-1.2 0.3-0.3-0.6 0.8 0.6 0-0.5 0.2-2 0.3 2.4 0.5-1.1 0 0.5 0.1 1.2 0.2 1.6 0.4-1.1-0.8-0.8-0.4 0.2 0.2 0.7 0.4 3.4 2.3 2.7 1.8 8.9 7.1 15.9 16.9 22.5 26 2.8 3.8 7.5 5.6 11.8 3.1 3.7-2.2 5.9-8 3.1-11.8-8.2-11.1-16.6-23-27.7-31.4-6.3-4.7-14.5-7.6-21.7-3-6.7 4.2-9.6 12.5-11.9 19.6-3.2 9.9-5.5 20-8.6 29.9 5.3-0.7 10.5-1.4 15.8-2.1-7.8-15.5-24.8-50.1-48-41.7-14.1 5.1-19.7 23-22.9 36.2-0.9 3.8-1.8 7.7-2.3 11.6-0.6 4.6 1.1 9.3 6 10.6 4.2 1 10.2-1.5 10.8-6.1z" fill="#040000" ></path></svg>'},{name:"12",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M485.538528 993.072489a362.00362 481.804818 3.149 1 0 52.933731-962.15464 362.00362 481.804818 3.149 1 0-52.933731 962.15464Z" fill="#AADCF0" ></path><path d="M688.2 334.1c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.4-7.6-13zM375.8 347c13.4 6.8 26.7 14 39.5 21.9 1.8 1.2 3.7 2.3 5.5 3.5 0.9 0.6 1.7 1.2 2.6 1.8 0.9 0.6 1.9 1.4 1.6 1.1 1.1 0.9 2.1 1.9 3.1 2.8 1.2 1 0-0.3 0.1 0 0-0.2-0.8-2.4-0.3-4.1 1.5-5.5 2.3-2.7 0.8-2-0.4 0.2-0.9 0.8-1.3 1.1 1.7-1.4-1.6 1.1-2.3 1.6-3.4 2.3-6.9 4.4-10.4 6.4-14.9 8.6-30.3 16.4-45.6 24.3-8.6 4.4-1 17.4 7.6 13 15-7.7 30.1-15.4 44.8-23.8 6.2-3.6 13.8-7.3 18.7-12.7 7.6-8.3-3.8-16.6-9.9-20.9-8.7-6.1-18-11.3-27.3-16.4-6.5-3.6-13-7.1-19.6-10.4-8.6-4.5-16.3 8.5-7.6 12.8zM412.8 570.9c13.5 7.7 28.5 13.3 43.3 17.9 29.8 9.2 61.7 13.1 92.6 7.3 20.6-3.9 40-12.5 56.6-25.2 2.8-2.2 4.3-5.6 2.3-9-1.6-2.8-6.2-4.5-9-2.3-48.3 36.9-113.3 30-165.6 6.7-4.6-2.1-9.2-4.2-13.7-6.7-7.3-4.2-13.9 7.2-6.5 11.3z" fill="#040000" ></path><path d="M644.6 505.2c-30.1 21.5-60.6 62.5-39.1 99.8 10.7 18.6 30.3 30.9 49.1 40.1 7.8 3.8 14.6-7.9 6.8-11.7-23.6-11.5-53.7-31.4-49.4-60.9 2.8-18.9 15.8-34.6 29.5-47.2 2.5-2.3 5.1-4.6 7.8-6.7 0.5-0.4 0.9-0.7 1.4-1.1-0.4 0.3-1.2 0.9-0.1 0.1l0.9-0.6c6.9-5.1 0.2-16.8-6.9-11.8z" fill="#040000" ></path></svg>'},{name:"13",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M235.1 76.9c75.6-26.5 297.3-90.1 514.2-16.6 16.3 5.5 29.8 17.4 37.1 33 57.5 122.4 127.1 602.1 62.1 785.6a62.58 62.58 0 0 1-32.5 35.8c-109.5 51.8-428.1 136.7-609.3 37.2-14.4-7.9-25-21.3-29.7-37.1-41.9-140.6-37-627.7 19.1-798 6.1-18.7 20.5-33.4 39-39.9z" fill="#F9DABD" ></path><path d="M392.2 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" ></path><path d="M618.6 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" ></path><path d="M512 562.6c-36 0-65.3-29.3-65.3-65.3S476 432 512 432s65.3 29.3 65.3 65.3-29.3 65.3-65.3 65.3z m0-122.9c-31.7 0-57.6 25.8-57.6 57.6s25.8 57.6 57.6 57.6c31.7 0 57.6-25.8 57.6-57.6s-25.9-57.6-57.6-57.6z" fill="#040000" ></path></svg>'},{name:"14",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M178.1 971.5c38.1 15.9 98.7 26.6 171.3-12.3 3.7-2 8.4-1.6 11.6 1.1 43.3 35.9 123.3 80.8 236 10.9 3.8-2.4 8.7-2.4 12.6-0.2 41.8 23.9 191.6 58.2 246.6 14.2 4.4-3.5 9.1-6.6 14.5-8.5C1065 909.5 678.2-652 194.3 351c-37.5 77.8-38.4 94.1-71.9 211.3-27.6 96.3-29.1 231.3 1.4 348.1 7.2 27.3 27.3 49.9 54.3 61.1z" fill="#ABAAAA" ></path><path d="M468.9 349H418c-6.1 0-11.1-5-11.1-11.1V336c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.1-5 11.1-11.1 11.1zM643 471.9H390c-6.6 0-12-5.4-12-12s5.4-12 12-12h253c6.6 0 12 5.4 12 12s-5.4 12-12 12zM609 349h-61.2c-6 0-11-4.9-11-11v-2.1c0-6 4.9-11 11-11H609c6 0 11 4.9 11 11v2.1c0 6.1-4.9 11-11 11z" fill="#040000" ></path></svg>'},{name:"15",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M673.1 318.7c3.7-17.5 5.6-35.7 5.6-54.4 0-137.9-105.5-249.7-235.6-249.7S207.4 126.4 207.4 264.3c0 55.4 17.1 106.7 45.9 148.1-55.2 63.3-88.6 145.9-88.6 236.3 0 199.2 162.1 360.6 362.1 360.6 200 0 362.1-161.5 362.1-360.6 0.1-147.3-88.7-274-215.8-330z" fill="#4F8A54" ></path><path d="M392 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" ></path><path d="M386 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" ></path><path d="M505.6 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" ></path><path d="M501.4 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" ></path><path d="M474.3 364.8h-50.9c-6.1 0-11.1-5-11.1-11.1v-1.9c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.2-5 11.1-11.1 11.1z" fill="#040000" ></path></svg>'},{name:"16",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M246.4 227.6c-166.9 101.1-461.9 344 87 564.1 1.5 0.6 2.9 1.1 4.4 1.6 80.7 27.7 392.8 165.4 641-198.1 40-58.6 38.5-136.2-3.7-193.3C892 289.5 727 201.1 429.1 182.7c-64.1-4-127.8 11.6-182.7 44.9z" fill="#CF92BE" ></path><path d="M617.1 393.4c-17.4 8.8-34.9 18.1-51.2 28.9-6.9 4.6-20.3 12.3-17.4 22.6 1.2 4.3 5.6 7 9 9.5 3.7 2.7 7.6 5 11.5 7.3 18.2 10.8 37.1 20.3 55.9 30 10 5.1 18.9-10 8.8-15.1-16.4-8.4-32.9-16.9-49-26-4.5-2.6-9.1-5.2-13.5-8l-4.5-3c-0.7-0.5-1.3-1-2-1.5 1.6 1.2 0.7 0.4-0.2-0.2-1.3-0.9-0.3-0.9-0.5-0.3 0.2 0.2 0.4 0.5 0.6 0.7 1 1.9 1.3 3.7 0.8 5.7 0.1-0.6 0.7-1.4-0.6 1.3 0.7-1.5-0.1 0-0.2 0.1 0.6-0.6 1.2-1.3 1.9-1.9l1.8-1.5c1.8-1.6-0.6 0.3 1.2-0.9 2-1.5 4.1-2.9 6.2-4.3 10-6.5 20.4-12.4 30.9-18 6.5-3.5 13.1-7 19.7-10.4 9.6-5 0.8-20.1-9.2-15zM323.1 408.5c15.9 8.1 31.7 16.5 46.8 26 2.2 1.4 4.3 2.8 6.5 4.2 1 0.7 1.9 1.3 2.8 2 0.5 0.3 1 0.7 1.4 1.1-1.1-0.9-0.3-0.3 0.3 0.3 1.1 1 2.2 2.2 3.3 3.1 1.4 1.1-1-1.7-0.1-0.1-0.6-1.1-0.9-4.1 0.3-6.7 2.2-4.8 0.7 0.1 0-0.5 0 0-1.1 0.9-1.3 1 2.3-1.9 0 0-0.5 0.4-0.8 0.5-1.5 1.1-2.3 1.6-4 2.7-8.1 5.1-12.3 7.5-17.3 10-35.1 19.1-52.8 28.2-10 5.1-1.2 20.2 8.8 15.1 17.5-9 35-17.9 52-27.7 7.3-4.2 15.9-8.6 21.8-14.7 9.3-9.7-4.3-19.7-11.5-24.7-10.1-7.1-20.9-13.1-31.7-19-7.6-4.2-15.2-8.2-22.9-12.1-9.7-5.2-18.6 9.9-8.6 15zM513 592.1c-12.2 0-24.6-1.4-36.3-4.3-8-2-13.9-8.2-15.4-16.2s1.7-15.8 8.4-20.5c23.2-16.3 60.5-31.9 106.2-13 6.4 2.6 11 8.3 12.3 15.1 1.3 6.7-0.8 13.6-5.7 18.3-13.5 13.1-40.9 20.6-69.5 20.6z m-37.4-32.5c-3.4 2.4-4.9 6.2-4.2 10.2 0.8 4.1 3.6 7.1 7.7 8.1 39.1 9.7 81.2 0.7 96.1-13.7 2.4-2.3 3.4-5.6 2.7-8.9-0.7-3.4-2.9-6.2-6.1-7.5-41.2-17.2-75.1-3.1-96.2 11.8z" fill="#040000" ></path></svg>'},{name:"17",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M1008.6 465.7c0-124.9-95.5-226.2-213.4-226.2-12 0-23.8 1.1-35.2 3.1v-3.1c0-124.9-95.5-226.2-213.4-226.2S333.4 114.6 333.4 239.5c0 2.4 0 4.8 0.1 7.2-17.1-4.7-35-7.2-53.4-7.2-117.8 0-213.4 101.3-213.4 226.2 0 92.1 51.9 171.3 126.3 206.6-13.7 29.9-21.4 63.4-21.4 98.8 0 124.9 95.5 226.2 213.4 226.2 68.8 0 130-34.5 169-88.1 39 53.6 100.2 88.1 169 88.1 117.8 0 213.4-101.3 213.4-226.2 0-41.2-10.4-79.9-28.6-113.1 60.5-39.9 100.8-111.1 100.8-192.3z" fill="#8CC66D" ></path><path d="M437.8 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M649.7 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M527.3 625.9c6.3-14.2 13.1-28.3 17.9-43 6.2-19 8.3-38.6 10.5-58.3l2.1-19.2c0.7-6.2-9-6.1-9.7 0-1.7 16.3-2.8 32.8-5.7 48.9-4.2 23.7-13.8 45-23.5 66.7-2.5 5.6 5.9 10.5 8.4 4.9z" fill="#252525" ></path><path d="M447.7 522.3c20.3-0.1 40.6-0.2 61-0.4l96.6-0.6c7.5 0 14.9-0.1 22.4-0.1 16.6-0.1 16.7-25.9 0-25.8-20.3 0.1-40.6 0.2-61 0.4l-96.6 0.6c-7.5 0-14.9 0.1-22.4 0.1-16.6 0.1-16.7 25.9 0 25.8z" fill="#040000" ></path><path d="M495.4 508.2c-10.3 3.8-9.2 20.9-9.2 29.5 0.1 16 2.1 32.3 6.1 47.8 3.5 13.7 8.7 29.9 20.6 38.7 12.9 9.5 27.6 2.1 37.6-7.9 10.2-10.3 17.8-23 24.7-35.6 11.6-21.3 20.9-43.8 29.7-66.4 3-7.8-9.5-11.1-12.5-3.4-7.4 19.1-15.3 38.1-24.7 56.4-5.9 11.5-12.2 23-20.3 33.1-2.8 3.5-5.8 6.9-9.2 9.8-1.9 1.7-1.4 1.3-3.3 2.5-1.3 0.8-2.6 1.6-3.9 2.2-0.7 0.3 1-0.2-0.8 0.3-0.6 0.2-1.2 0.3-1.8 0.5-1.1 0.3-1.2 0.2-0.5 0.1-0.6 0-1.3 0-1.9 0.1-2.2 0.1 0.6 0.5-1.8-0.2l-1.8-0.6c1.5 0.5 0.2 0.1-0.5-0.3-0.8-0.5-2.9-2.1-1.7-1.1-1-0.9-2-1.7-2.8-2.7-0.4-0.5-0.9-1-1.3-1.5 0.4 0.5 0.1 0.2-0.5-0.7-0.8-1.3-1.7-2.5-2.4-3.9-0.7-1.3-1.4-2.5-2-3.8-0.4-0.8-0.8-1.6-1.1-2.4-0.1-0.2-0.5-1.1 0 0l-0.6-1.5a86.8 86.8 0 0 1-3.3-9.8c-4.4-14.9-6.2-27.9-6.8-42.8-0.3-6.6-0.3-13.1 0.4-19.7 0.2-1.5-0.3 1.5 0.1-0.5l0.3-1.8c0.2-0.9 0.5-1.8 0.7-2.8 0.4-1.9-0.7 1.1 0.3-0.7 0.5-1-1.3 1.2-0.3 0.5-0.3 0.3-1.1 0.8-2 1.1 7.7-2.9 4.3-15.4-3.5-12.5z" fill="#040000" ></path></svg>'},{name:"18",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M75.4 739.8c-78.7-134.4-194-455.7 401.4-579.6 9.8-2 19.2-6.2 29.2-7.5C656.8 133 947.3 205 1000.1 578.4c42.6 223.8 29.7 392.1-822 233.6-43.1-8-80.6-34.4-102.7-72.2z" fill="#F09495" ></path><path d="M704.6 875.4c-129 0-301.8-20.5-526.6-62.3-43.5-8.1-81.2-34.6-103.5-72.7-19.3-32.9-44.8-84.3-57.1-142.5-13.9-65.1-8.8-125.3 15.1-179.2 54.3-122.3 203.7-209.6 444-259.6 4.1-0.9 8.3-2.1 12.3-3.4 5.5-1.7 11.1-3.4 16.9-4.2 29-3.8 75.7-5.9 133.8 5.7 54.5 10.9 105.3 31 150.8 59.9C843.7 251 888.2 296 922.7 351c39.7 63.1 66.1 139.6 78.5 227.3 8.1 42.4 15.2 87.3 12.5 127.9-2.8 42.6-16.4 75.5-41.5 100.7-42.5 42.7-120.3 65-237.8 68.1-9.6 0.2-19.6 0.4-29.8 0.4zM76.3 739.3c22 37.6 59.2 63.7 102.1 71.7 242.5 45.1 424.4 65.3 556.1 61.9 116.9-3.1 194.1-25.2 236.3-67.5 55.4-55.6 44.4-142.5 28.3-226.7C976 415.8 903.4 291.5 789.2 219c-124-78.7-248.1-69.9-283.2-65.3-5.6 0.7-11.2 2.4-16.6 4.1-4.1 1.2-8.3 2.5-12.5 3.4C237.3 211.1 88.5 298 34.5 419.6c-54.6 122.8 2.8 253 41.8 319.7z" fill="#FFFFFF" ></path><path d="M424.1 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M635.9 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M426.2 543.3c17.1 7.9 36.6 26 25.5 46.1-6.9 12.5-19.8 21.2-31.7 28.4-4.5 2.7-0.4 9.8 4.1 7.1 17.4-10.5 41.6-27.6 39-51.1-1.6-14-12.4-24.8-23.5-32.3-3-2-6.1-3.9-9.3-5.4-4.8-2.1-8.9 5-4.1 7.2zM629.5 535.4c-21.8 11.7-40.6 37-25.7 61.3 8.2 13.4 22.2 22.7 35.7 30.3 4.7 2.7 8.9-4.6 4.2-7.2-15.5-8.7-39.9-23.9-36.9-45.2 1.6-11.4 10.7-20.7 19.6-27.2 2.4-1.7 4.8-3.4 7.4-4.8 4.7-2.5 0.4-9.8-4.3-7.2z" fill="#040000" ></path><path d="M457.2 584.6c25.6 25.6 66.7 41 101.8 28.3 18.2-6.6 33.2-19.1 45.5-33.8 4.2-5.1-3-12.4-7.3-7.3-18.5 22-43.3 38.1-73 35-18.6-1.9-36.2-10.8-50.9-22-2.9-2.2-6.1-4.8-8.8-7.5-4.7-4.7-12 2.6-7.3 7.3z" fill="#040000" ></path></svg>'},{name:"19",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M915.9 510.5c8.4-19 13.1-39.8 13.1-61.7 0-90-78.9-162.9-176.2-162.9-3.2 0-6.3 0.1-9.5 0.2v-0.2c0-94.8-116.2-171.6-259.6-171.6S224 191.2 224 286v2c-96.2 0-174.1 72-174.1 160.9 0 38 14.3 73 38.2 100.5-41.8 29.4-68.8 75.9-68.8 128.2 0 88.9 78 160.9 174.1 160.9 17.1 0 33.6-2.3 49.3-6.5 28.9 46.1 88.7 77.7 157.6 77.7 49.4 0 94-16.2 126-42.3 32 26.1 76.6 42.3 126 42.3 77.3 0 143-39.7 166.7-95 3.1 0.2 6.3 0.2 9.5 0.2 97.3 0 176.2-72.9 176.2-162.9 0-60.6-35.7-113.4-88.8-141.5z" fill="#5A74B8" ></path><path d="M357.6 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" ></path><path d="M357.5 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" ></path><path d="M531.3 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" ></path><path d="M531.2 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" ></path><path d="M426.7 574.6c20.9 29.9 59.7 52.2 96.2 38.6 19.2-7.2 34.7-21.2 47.6-36.9 2.8-3.5 3.4-8.3 0-11.7-2.9-2.9-8.9-3.5-11.7 0-16.5 20.2-40.9 40.9-68.1 35.5-17.3-3.4-31-13.2-42.9-25.9-2-2.2-3.9-4.4-5.8-6.7-1.6-1.9 1.1 1.5-0.4-0.6-0.2-0.2-0.3-0.5-0.5-0.7-6.2-8.7-20.6-0.4-14.4 8.4z" fill="#040000" ></path></svg>'},{name:"20",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M792.8 301.4c-8.2 0-16.2 0.4-24.2 1.3-12.3-81.8-129.2-145.9-271.8-145.9-137.1 0-250.5 59.3-269.9 136.6C105.3 295.5 7.4 391.2 7.4 508.9c0 119.1 100.2 215.6 223.7 215.6 5.3 0 10.6-0.2 15.8-0.5 14.4 80.5 130.4 143.2 271.3 143.2 135.9 0 248.6-58.3 269.4-134.6 1.7 0 3.4 0.1 5.1 0.1 123.6 0 223.7-96.5 223.7-215.6s-100-215.7-223.6-215.7z" fill="#F6CD50" ></path><path d="M435.9 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" ></path><path d="M588.1 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" ></path><path d="M435.9 431.5m-27.8 0a27.8 27.8 0 1 0 55.6 0 27.8 27.8 0 1 0-55.6 0Z" fill="#040000" ></path><path d="M601.9 407.4c-5.7 2.9-11.3 5.9-16.9 9-6.8 3.8-15.3 7.8-20.5 13.8-5.6 6.5 1.6 11.1 6.7 14.4 11.2 7.1 23.3 13 35.1 19 5.7 2.9 10.8-5.7 5.1-8.6-10.9-5.6-21.9-11.1-32.4-17.4-2.4-1.4-4.6-3.1-7-4.6 1 0.6-0.4-0.4-0.4-0.4-1.9-0.3-0.5 4.2 0.5 4.1-0.1 0-0.6 0.3 0.3-0.3 0.5-0.3 1-0.9 1.5-1.3 9.7-7.9 21.9-13.5 33.1-19.2 5.7-2.7 0.6-11.4-5.1-8.5zM406.6 547.6c11.5 14.4 27 26.7 42.7 36.3 32.2 19.8 71.2 27.2 107.6 15.4 29.5-9.6 54.6-29.1 75.5-51.6 10.8-11.6-6.6-29.1-17.5-17.5-9.4 10.1-19.5 19.7-30.8 27.7-4.6 3.2-9.3 6.2-14.2 8.9-5 2.8-9.9 5.1-14.1 6.7-4.6 1.7-9.3 3.2-14.1 4.4-2.2 0.5-4.4 1-6.6 1.4-1 0.2-2 0.3-2.9 0.5 2.6-0.4-2.1 0.2-2.5 0.3-4.1 0.4-8.3 0.5-12.5 0.4-2.2-0.1-4.4-0.2-6.6-0.4-1.1-0.1-2.2-0.2-3.2-0.3-1.5-0.2-1.4-0.2 0.1 0l-2.1-0.3c-7.8-1.3-15.4-3.4-22.8-6.2-0.9-0.4-1.8-0.7-2.8-1.1-3.1-1.2 2.3 1.1-0.7-0.3-1.5-0.7-2.9-1.3-4.4-2-3.7-1.8-7.2-3.7-10.8-5.8-5.7-3.4-11.1-7.1-16.4-11.1 3 2.3-1.1-0.9-1.8-1.5-1.1-0.9-2.1-1.7-3.1-2.6-2.1-1.8-4.2-3.7-6.3-5.6-4.4-4.1-8.7-8.4-12.4-13.1-4.2-5.2-13.1-4.3-17.5 0-5 5.1-4 12.2 0.2 17.4z" fill="#040000" ></path></svg>'}]},{name:"标记图标",type:"sign",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M809.728 429.696a18.901333 18.901333 0 0 0-15.274667-12.885333l-183.466666-26.624-81.92-166.272a18.901333 18.901333 0 0 0-34.005334 0l-81.92 166.272-183.594666 26.624a19.029333 19.029333 0 0 0-10.496 32.298666l132.693333 129.536-31.274667 182.741334a18.816 18.816 0 0 0 27.477334 19.84l164.138666-86.186667 164.096 86.058667a18.773333 18.773333 0 1 0 27.434667-19.84l-31.36-182.741334 132.693333-129.408a18.901333 18.901333 0 0 0 4.778667-19.413333z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M644.565333 306.901333c32.128 0 65.834667-5.76 101.077334-17.237333a17.066667 17.066667 0 0 1 22.357333 16.213333v328.32c-1.109333 0.768 10.325333 27.093333-99.370667 19.84-109.653333-7.210667-181.76-45.098667-246.869333-45.098666-65.152 0-49.322667 2.688-74.154667 8.405333v168.064a24.746667 24.746667 0 0 1-24.490666 25.258667 22.528 22.528 0 0 1-17.28-7.253334 24.149333 24.149333 0 0 1-7.168-18.005333V281.258667C299.776 280.490667 328.106667 256 421.76 256s164.437333 50.901333 222.805333 50.901333z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M524.074667 225.408l274.517333 274.517333a17.066667 17.066667 0 0 1 0 24.149334l-274.517333 274.517333a17.066667 17.066667 0 0 1-24.149334 0l-274.517333-274.517333a17.066667 17.066667 0 0 1 0-24.149334l274.517333-274.517333a17.066667 17.066667 0 0 1 24.149334 0z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M317.866667 300.8h388.266666c9.386667 0 17.066667 7.68 17.066667 17.066667v388.266666a17.066667 17.066667 0 0 1-17.066667 17.066667h-388.266666a17.066667 17.066667 0 0 1-17.066667-17.066667v-388.266666c0-9.386667 7.68-17.066667 17.066667-17.066667z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M498.346667 279.082667L248.789333 701.44a15.829333 15.829333 0 0 0 13.653334 23.893333h499.114666a15.829333 15.829333 0 0 0 13.653334-23.893333l-249.6-422.357333a15.829333 15.829333 0 0 0-27.264 0z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path><path d="M634.538667 487.808L555.050667 426.24 507.306667 256a201.002667 201.002667 0 0 0-23.594667 20.394667l-0.256-0.256L525.653333 426.666667l-133.290666 59.946666a14.08 14.08 0 0 0-8.021334 15.957334l28.757334 126.378666a14.208 14.208 0 0 0 27.733333-6.229333l-26.24-115.114667 126.037333-56.704 76.416 59.136a14.250667 14.250667 0 0 0 19.968-2.474666 14.08 14.08 0 0 0-2.474666-19.797334z" fill="#6D768D"></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M374.656 273.194667c5.973333 4.48 12.117333 9.6 18.346667 15.36 6.272 5.717333 11.904 12.373333 16.896 19.84 2.517333 4.010667 5.504 8.490667 9.002666 13.482666a529.493333 529.493333 0 0 1 20.266667 32.213334h155.221333a169.813333 169.813333 0 0 0 9.770667-15.744c2.474667-4.48 5.248-8.96 8.234667-13.482667a460.842667 460.842667 0 0 1 23.253333-31.829333c4.992-6.229333 12.245333-12.373333 21.76-18.346667a34.261333 34.261333 0 0 0 10.112-9.728 31.274667 31.274667 0 0 0 5.248-11.989333 18.56 18.56 0 0 0-1.536-11.605334 17.664 17.664 0 0 0-10.112-8.618666c-4.48-1.493333-8.362667-2.005333-11.605333-1.493334a46.933333 46.933333 0 0 0-9.770667 2.602667c-3.242667 1.28-6.613333 2.645333-10.112 4.138667a32.426667 32.426667 0 0 1-12.757333 2.261333 26.026667 26.026667 0 0 1-12.373334-2.645333 45.653333 45.653333 0 0 1-8.96-6.357334l-8.661333-7.850666a30.336 30.336 0 0 0-11.989333-6.4c-9.984-3.968-18.005333-4.693333-24.021334-2.218667-5.973333 2.474667-11.946667 6.485333-17.962666 11.946667a88.618667 88.618667 0 0 1-11.989334 10.496 7.338667 7.338667 0 0 1-3.754666 1.493333 46.165333 46.165333 0 0 1-8.277334-5.205333 71.808 71.808 0 0 1-7.125333-4.906667 37.973333 37.973333 0 0 1-6.4-6.357333c-3.968-3.968-9.941333-6.613333-17.92-7.850667a31.061333 31.061333 0 0 0-21.76 4.138667c-8.533333 5.461333-14.506667 10.069333-18.048 13.824a29.354667 29.354667 0 0 1-15.744 7.893333 23.978667 23.978667 0 0 1-13.098667-0.768 987.733333 987.733333 0 0 0-14.634666-4.48 80.725333 80.725333 0 0 0-14.250667-2.986667 16.768 16.768 0 0 0-11.989333 2.986667c-6.997333 5.461333-9.258667 12.074667-6.741334 19.84a34.56 34.56 0 0 0 13.482667 18.346667z" fill="#FFFFFF"></path><path d="M780.757333 545.152a219.306667 219.306667 0 0 0-19.882666-65.536 224.981333 224.981333 0 0 0-33.365334-49.792 430.336 430.336 0 0 0-37.12-37.12c-14.506667-11.946667-27.264-23.296-38.272-34.048a544.512 544.512 0 0 1-27.733333-28.842667 305.28 305.28 0 0 1-22.485333-26.197333h-168.746667c-6.485333 8.490667-13.994667 17.493333-22.485333 26.965333a360.96 360.96 0 0 1-26.24 28.074667c-10.538667 10.24-22.272 21.12-35.285334 32.597333a305.493333 305.493333 0 0 0-41.6 44.16 250.026667 250.026667 0 0 0-49.493333 117.589334 216.106667 216.106667 0 0 0 1.877333 70.4 220.586667 220.586667 0 0 0 75.349334 126.549333c21.248 18.005333 47.146667 32.597333 77.653333 43.818667 30.464 11.264 65.493333 16.853333 104.96 16.853333 38.528 0 72.874667-4.864 103.125333-14.592a265.045333 265.045333 0 0 0 78.378667-39.338667c21.973333-16.469333 39.594667-35.797333 52.864-58.026666 13.226667-22.186667 22.101333-45.824 26.624-70.784 4.992-30.421333 5.632-58.026667 1.877333-82.773334z" fill="#FFFFFF"></path><path d="M593.322667 647.509333a20.48 20.48 0 0 1-11.861334 3.2h-50.133333v14.165334c0 4.266667-1.792 8.362667-5.376 12.373333a15.914667 15.914667 0 0 1-13.952 5.333333 24.917333 24.917333 0 0 1-14.336-3.882666c-3.84-2.602667-5.973333-7.210667-6.4-13.824v-14.165334h-48.725333a17.792 17.792 0 0 1-11.818667-3.882666 10.24 10.24 0 0 1-3.968-9.6c0-4.266667 1.578667-7.68 4.693333-10.24a16.768 16.768 0 0 1 11.093334-3.925334h48.682666v-24.789333h-48.682666a15.573333 15.573333 0 0 1-11.52-4.266667 13.525333 13.525333 0 0 1-4.266667-9.941333 15.36 15.36 0 0 1 4.693333-10.624 14.72 14.72 0 0 1 11.093334-4.949333h48.682666l0.725334-14.890667a1053.568 1053.568 0 0 1-40.832-42.538667l-10.752-9.898666a41.216 41.216 0 0 1-6.442667-11.690667c-1.92-4.992-0.938667-10.069333 2.858667-15.274667a13.653333 13.653333 0 0 1 15.786666-3.84c6.186667 2.090667 11.221333 4.821333 15.018667 8.106667 1.92 2.389333 5.248 5.888 10.026667 10.666667l15.061333 14.848 19.328 19.157333 22.186667-20.565333a987.605333 987.605333 0 0 1 29.397333-25.514667 21.162667 21.162667 0 0 1 14.293333-5.674667c5.290667 0 9.557333 2.133333 12.928 6.4 6.186667 7.082667 3.84 15.36-7.168 24.789334a179.072 179.072 0 0 0-12.885333 12.373333c-5.76 5.973333-11.52 11.733333-17.194667 17.408-6.698667 7.082667-14.08 14.378667-22.186666 21.973333v13.44h46.506666c6.698667 0 11.605333 1.536 14.72 4.608a14.165333 14.165333 0 0 1 4.650667 10.282667c0 4.266667-1.450667 7.936-4.309333 11.008-2.858667 3.029333-7.637333 4.352-14.336 3.84l-46.506667 0.768-0.768 24.064h45.866667c13.354667 0 20.053333 4.992 20.053333 14.933333 0.469333 4.693333-0.853333 8.106667-3.925333 10.24z" fill="#6D768D"></path></svg>'},{name:"9",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M512 213.333333l234.666667 341.333334h-128v213.333333h-213.333334v-213.333333h-128L512 213.333333z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M533.333333 810.666667L298.666667 469.333333h128V256h213.333333v213.333333h128l-234.666667 341.333334z" fill="#FFFFFF"></path></svg>'},{name:"11",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M213.333333 533.333333L554.666667 298.666667v128h213.333333v213.333333h-213.333333v128l-341.333334-234.666667z" fill="#FFFFFF"></path></svg>'},{name:"12",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M810.666667 533.333333L469.333333 768v-128H256v-213.333333h213.333333V298.666667l341.333334 234.666666z" fill="#FFFFFF"></path></svg>'},{name:"13",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#6D768D"></path><path d="M571.349333 508.586667l162.389334-162.346667a44.330667 44.330667 0 1 0-62.72-62.72l-162.389334 162.389333-162.517333-162.389333a44.330667 44.330667 0 1 0-62.72 62.72l162.389333 162.389333-162.389333 162.474667a44.330667 44.330667 0 1 0 62.72 62.72l162.389333-162.346667 162.389334 162.389334a44.330667 44.330667 0 1 0 62.72-62.72l-162.261334-162.56z" fill="#FFFFFF"></path></svg>'},{name:"14",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C233.386667 0 0 225.877333 0 512s225.877333 512 512 512 512-225.877333 512-512S790.613333 0 512 0z" fill="#6D768D"></path><path d="M726.144 311.210667l-277.333333 305.066666-124.8-124.8c-13.866667-13.866667-41.6-13.866667-55.466667 0-13.866667 13.866667-13.866667 41.6 0 55.466667l159.445333 152.533333c13.866667 13.866667 41.6 13.866667 55.466667 0l305.066667-332.8c13.866667-13.866667 13.866667-41.6 0-55.466666-20.778667-13.866667-48.512-13.866667-62.378667 0z" fill="#FFFFFF"></path></svg>'},{name:"15",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M541.952 755.626667a40.618667 40.618667 0 0 1-29.824 12.373333 41.344 41.344 0 0 1-30.122667-12.373333 40.106667 40.106667 0 0 1-12.672-30.122667c0-11.605333 4.096-21.845333 12.672-30.122667a40.405333 40.405333 0 0 1 30.122667-12.714666c11.605333 0 21.546667 4.138667 29.824 12.714666a40.32 40.32 0 0 1 12.714667 30.122667c0 11.861333-4.096 21.76-12.714667 30.122667zM450.986667 241.28A77.866667 77.866667 0 0 1 512.256 213.333333c24.874667 0 45.354667 8.917333 61.354667 27.946667 15.488 18.432 23.722667 41.685333 23.722666 69.674667 0 23.765333-33.152 200.533333-44.672 329.045333h-80.128C463.146667 511.402667 426.666667 334.677333 426.666667 310.954667c0-27.392 8.277333-50.645333 24.32-69.674667z" fill="#FFFFFF"></path></svg>'},{name:"16",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.794667 0 512 0z" fill="#6D768D"></path><path d="M490.666667 682.666667a64 64 0 1 1 0 128 64 64 0 0 1 0-128z m13.994666-490.752c61.397333 0 112.341333 14.634667 153.002667 43.946666 40.533333 29.269333 60.885333 72.618667 60.885333 130.133334 0 35.242667-12.373333 64.938667-29.952 89.045333-10.282667 14.677333-33.664 33.408-62.890666 56.192l-32.426667 22.357333c-15.701333 12.202667-29.696 26.453333-34.858667 42.666667-1.706667 5.546667-3.072 14.677333-3.968 24.533333-0.426667 4.949333-4.864 15.018667-15.232 15.018667h-83.328c-13.568 0-15.957333-10.581333-15.744-15.786667 1.493333-34.005333 4.608-64.213333 18.474667-80.469333 28.074667-32.896 91.904-73.813333 91.904-73.813333a104.106667 104.106667 0 0 0 23.552-24.021334c10.837333-14.933333 19.797333-31.317333 19.797333-49.237333 0-20.565333-6.016-39.338667-18.090666-56.32-12.032-16.938667-34.090667-25.386667-66.005334-25.386667-31.445333 0-53.76 10.410667-66.901333 31.274667-9.685333 15.445333-15.786667 29.610667-18.346667 45.013333-0.853333 5.461333-4.394667 16.981333-16.042666 16.981334H327.210667c-17.322667 0-21.12-11.221333-20.650667-16.64 6.272-68.138667 32.896-114.688 80-144.597334 32-20.565333 71.381333-30.890667 118.101333-30.890666z" fill="#FFFFFF"></path></svg>'},{name:"17",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M336.256 410.026667H253.312a40.021333 40.021333 0 0 0-39.850667 43.264l23.296 278.101333c1.706667 20.693333 19.072 36.608 39.850667 36.608h59.648c11.050667 0 20.010667-8.96 20.010667-19.968v-318.037333a19.968 19.968 0 0 0-20.010667-19.968z m434.432 0h-178.944C653.312 182.314667 548.949333 170.666667 548.949333 170.666667c-44.288 0-35.114667 34.986667-38.442666 40.832 0 84.48-68.010667 155.093333-101.034667 184.362666a39.552 39.552 0 0 0-13.226667 29.653334v322.56c0 11.008 8.96 19.925333 20.010667 19.925333h233.728c30.378667 0 58.154667-17.152 71.68-44.373333 18.176-36.736 40.448-90.112 54.656-133.973334 13.781333-42.410667 26.24-94.976 33.578667-131.968a39.850667 39.850667 0 0 0-39.253334-47.658666z" fill="#FFFFFF"></path></svg>'},{name:"18",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M796.16 413.909333c-31.146667-0.298667-115.626667-0.085333-146.858667-0.085333h-158.464c8.533333-7.68 15.914667-14.506667 23.594667-20.906667 29.781333-24.874667 25.813333-71.082667-14.208-88.874666-22.954667-10.24-44.970667-5.632-64 11.52-34.944 31.274667-69.632 62.677333-104.277333 93.994666a15.488 15.488 0 0 1-11.178667 4.437334c-11.221333-0.085333-26.88-0.128-46.933333-0.170667a17.066667 17.066667 0 0 0-17.109334 17.066667L256 719.701333a17.066667 17.066667 0 0 0 17.066667 17.152l49.578666-0.085333c3.968 0 7.466667 0.768 10.88 2.602667 15.829333 8.832 31.701333 17.493333 47.616 26.24a18.133333 18.133333 0 0 0 9.301334 2.346666h168.405333c6.186667 0 11.946667-0.981333 17.834667-2.56 29.44-7.253333 40.021333-30.293333 38.528-52.565333-0.768-9.728-4.266667-18.346667-9.984-26.24 19.626667-5.76 35.114667-16.213333 42.112-36.096 7.125333-20.394667 1.621333-38.4-12.672-53.333333 28.16-19.754667 34.858667-44.672 18.645333-75.648h140.458667c6.570667 0 13.013333-0.597333 19.370666-2.645334 31.957333-9.813333 48.810667-42.88 35.626667-71.552-10.154667-22.186667-28.629333-33.152-52.608-33.450666z" fill="#FFFFFF"></path></svg>'},{name:"19",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M270.506667 413.909333c31.146667-0.298667 115.626667-0.085333 146.858666-0.085333h158.464c-8.533333-7.68-15.914667-14.506667-23.594666-20.906667-29.781333-24.874667-25.813333-71.082667 14.208-88.874666 22.954667-10.24 44.970667-5.632 64 11.52 34.944 31.274667 69.632 62.677333 104.277333 93.994666 3.413333 2.986667 6.528 4.437333 11.178667 4.437334 11.221333-0.085333 26.88-0.128 46.933333-0.170667a17.066667 17.066667 0 0 1 17.109333 17.066667l0.682667 288.853333a17.066667 17.066667 0 0 1-17.066667 17.152l-49.578666-0.085333a22.101333 22.101333 0 0 0-10.88 2.602666c-15.829333 8.832-31.701333 17.493333-47.616 26.24a18.133333 18.133333 0 0 1-9.301334 2.346667h-168.405333a68.693333 68.693333 0 0 1-17.834667-2.56c-29.44-7.253333-40.021333-30.293333-38.528-52.565333 0.768-9.728 4.266667-18.346667 9.984-26.24-19.626667-5.76-35.114667-16.213333-42.112-36.096-7.125333-20.394667-1.621333-38.4 12.672-53.333334-28.16-19.754667-34.858667-44.672-18.645333-75.648H272.853333c-6.570667 0-13.013333-0.597333-19.370666-2.645333-31.957333-9.813333-48.810667-42.88-35.626667-71.552 10.154667-22.186667 28.629333-33.152 52.608-33.450667z" fill="#FFFFFF"></path></svg>'},{name:"20",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M667.733333 480.128H400v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 213.333333a155.605333 155.605333 0 0 0-155.392 155.434667v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 509.013333v292.010667a28.885333 28.885333 0 0 0 28.885333 28.885333h340.138667a28.885333 28.885333 0 0 0 28.928-28.885333V509.013333a28.885333 28.885333 0 0 0-28.928-28.885333z" fill="#FFFFFF"></path></svg>'},{name:"21",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M400.042667 437.461333v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 170.666667a155.605333 155.605333 0 0 0-155.392 155.434666v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 466.346667v292.010666a28.885333 28.885333 0 0 0 28.885333 28.885334h340.138667a28.885333 28.885333 0 0 0 28.928-28.885334V466.346667a28.885333 28.885333 0 0 0-28.928-28.885334H400.042667z" fill="#FFFFFF"></path><path d="M595.242667 437.461333v-111.36a97.706667 97.706667 0 0 0-97.621334-97.621333 97.706667 97.706667 0 0 0-97.578666 97.621333 28.885333 28.885333 0 0 1-57.813334 0A155.605333 155.605333 0 0 1 497.621333 170.666667a155.605333 155.605333 0 0 1 155.434667 155.434666v111.36h14.634667c16 0 28.928 12.928 28.928 28.885334v292.010666a28.885333 28.885333 0 0 1-28.928 28.885334H327.552A28.885333 28.885333 0 0 1 298.666667 758.357333V466.346667c0-15.957333 12.928-28.885333 28.885333-28.885334h267.690667z" fill="#FFFFFF"></path></svg>'},{name:"22",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M511.999787 512.000213m-511.999787 0a511.999787 511.999787 0 1 0 1023.999573 0 511.999787 511.999787 0 1 0-1023.999573 0Z" fill="#6D768D"></path><path d="M381.354508 364.586941c0 54.015977 29.013321 103.935957 75.946635 130.986613a152.53327 152.53327 0 0 0 151.935936 0 151.12527 151.12527 0 0 0 75.946636-130.986613A151.594604 151.594604 0 0 0 533.333111 213.333671a151.594604 151.594604 0 0 0-151.89327 151.25327zM660.479725 498.901552a185.258589 185.258589 0 0 1-127.146614 50.346646c-49.066646 0-93.866628-19.199992-127.06128-50.346646C317.141201 544.853533 255.999893 637.440161 255.999893 744.106783c0 13.183995 10.709329 23.850657 23.978657 23.850657h506.709122a23.893323 23.893323 0 0 0 23.978657-23.893323c0-106.538622-61.098641-199.25325-150.186604-245.205232z" fill="#FFFFFF"></path></svg>'},{name:"23",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M445.610667 401.578667a129.322667 129.322667 0 1 0 258.645333 0 129.322667 129.322667 0 0 0-258.645333 0z m237.568 114.901333a157.354667 157.354667 0 0 1-216.362667 0 236.373333 236.373333 0 0 0-127.957333 209.706667c0 11.264 9.130667 20.394667 20.394666 20.394666h431.402667a20.394667 20.394667 0 0 0 20.394667-20.394666 236.373333 236.373333 0 0 0-127.872-209.706667zM409.813333 401.578667c0-40.362667 14.592-77.397333 38.698667-106.112a112.725333 112.725333 0 0 0-29.013333-3.925334 112.64 112.64 0 0 0-112.426667 112.469334 112.64 112.64 0 0 0 144.853333 107.648 164.693333 164.693333 0 0 1-42.112-110.08z m-18.602666 136.704a136.533333 136.533333 0 0 1-65.706667-34.474667 205.44 205.44 0 0 0-111.232 182.4c0 9.813333 7.936 17.706667 17.706667 17.706667H303.36a273.621333 273.621333 0 0 1 87.893333-165.632z" fill="#FFFFFF"></path></svg>'}]}],Va={hyperlink:xy,note:wy,attachment:Ey,nodeIconList:yc,getNodeIconListIcon:(r,t=[])=>{let e=r.split("_"),n=k6([...yc,...t]).find(o=>o.type===e[0]);if(n){let o=n.list.find(s=>s.name===e[1]);return o?o.icon:""}else return""}},Ty=(r,t)=>{const e=new fi,i=new Je().text(r);return t.text(i),e.add(i),e.bbox()},N0={radius:3,fontSize:12,fill:"",height:20,paddingX:8};function Cy(){const r=this.getData("image");if(!r)return;const t=this.getImgShowSize(),e=new _n().load(r).size(...t),{defaultNodeImage:i}=this.mindMap.opt;if(i){const n=new Image;n.onerror=()=>{e.load(i)},n.src=r}return this.getData("imageTitle")&&e.attr("title",this.getData("imageTitle")),e.on("click",n=>{this.mindMap.emit("node_img_click",this,e,n)}),e.on("dblclick",n=>{this.mindMap.emit("node_img_dblclick",this,n,e)}),e.on("mouseenter",n=>{this.mindMap.emit("node_img_mouseenter",this,e,n)}),e.on("mouseleave",n=>{this.mindMap.emit("node_img_mouseleave",this,e,n)}),e.on("mousemove",n=>{this.mindMap.emit("node_img_mousemove",this,e,n)}),{node:e,width:t[0],height:t[1]}}function Sy(){const{custom:r,width:t,height:e}=this.getData("imageSize");return r?[t,e]:s0(t,e,this.mindMap.themeConfig.imgMaxWidth,this.mindMap.themeConfig.imgMaxHeight)}function Ny(){let r=this.getData();if(!r.icon||r.icon.length<=0)return[];let t=this.mindMap.themeConfig.iconSize;return r.icon.map(e=>{let i=Va.getNodeIconListIcon(e,this.mindMap.opt.iconList||[]),n=null;return/^<svg/.test(i)?n=Qe(i):n=new _n().load(i),n.size(t,t),n.on("click",o=>{this.mindMap.emit("node_icon_click",this,e,o,n)}),n.on("mouseenter",o=>{this.mindMap.emit("node_icon_mouseenter",this,e,o,n)}),n.on("mouseleave",o=>{this.mindMap.emit("node_icon_mouseleave",this,e,o,n)}),{node:n,width:t,height:t}})}function Ay(r){const t=this.hasCustomWidth();let e=typeof r=="string"?r:this.getData("text"),{textAutoWrapWidth:i,emptyTextMeasureHeightText:n}=this.mindMap.opt;i=t?this.customTextWidth:i;const o=new fi;let s=!1;this.getData("resetRichText")&&(delete this.nodeData.data.resetRichText,s=!0),s&&!nr(e)&&(E6(e)?e=N6(e):e=`<p>${e}</p>`,this.setData({text:e}));const a=[],l=w0(this);Object.keys(l).forEach(v=>{a.push([v,l[v]])}),this.mindMap.commonCaches.measureRichtextNodeTextSizeEl||(this.mindMap.commonCaches.measureRichtextNodeTextSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureRichtextNodeTextSizeEl.style.position="fixed",this.mindMap.commonCaches.measureRichtextNodeTextSizeEl.style.left="-999999px",this.mindMap.el.appendChild(this.mindMap.commonCaches.measureRichtextNodeTextSizeEl));const h=this.mindMap.commonCaches.measureRichtextNodeTextSizeEl;a.forEach(([v,g])=>{h.style[v]=g}),h.style.lineHeight=1.2;const c=`<div>${e}</div>`;h.innerHTML=c;const u=h.children[0];u.classList.add("smm-richtext-node-wrap"),Bn(u),u.style.maxWidth=i+"px",t?u.style.width=this.customTextWidth+"px":u.style.width="";let{width:f,height:d}=u.getBoundingClientRect();if(d<=0){h.innerHTML=`<p>${n}</p>`;let v=h.children[0];v.classList.add("smm-richtext-node-wrap"),d=v.getBoundingClientRect().height,h.innerHTML=c}f=Math.min(Math.ceil(f)+1,i),d=Math.ceil(d),o.attr("data-width",f),o.attr("data-height",d);const p=xo({el:h.children[0],width:f,height:d}),m={"line-height":1.2};return a.forEach(([v,g])=>{m[v6(v)]=g}),p.css(m),o.add(p),{node:o,nodeContent:p,width:f,height:d}}function _y(r){if(this.getData("needUpdate")&&delete this.nodeData.data.needUpdate,this.getData("richText"))return this.createRichTextNode(r);const t=typeof r=="string"?r:this.getData("text");this.getData("resetRichText")&&delete this.nodeData.data.resetRichText;const e=new fi,i=this.getStyle("fontSize",!1),n=this.getStyle("textAlign",!1);let o=[];nr(t)||(o=String(t).split(/\n/gim));const{textAutoWrapWidth:s,emptyTextMeasureHeightText:a}=this.mindMap.opt;let l=o.length>1;o.forEach((u,f)=>{let d=u.split(""),p=[],m=[];for(;d.length;){let v=d.shift(),g=[...m,v].join("");Ty(g,this.style).width<=s?m.push(v):(p.push(m.join("")),m=[v])}m.length>0&&p.push(m.join("")),p.length>1&&(l=!0),o[f]=p.join(`
`)}),o=o.join(`
`).replace(/\n$/g,"").split(/\n/gim),o.forEach((u,f)=>{u===""&&(u="\uFEFF");const d=new Je().text(u);d.addClass("smm-text-node-wrap"),d.attr("text-anchor",{left:"start",center:"middle",right:"end"}[n]||"start"),this.style.text(d),d.y(i*Aa*f+(Aa-1)*i/2),e.add(d)});let{width:h,height:c}=e.bbox();if(c<=0){const u=new Je().text(a);this.style.text(u),c=u.bbox().height}return h=Math.min(Math.ceil(h),s),c=Math.ceil(c),e.attr("data-width",h),e.attr("data-height",c),e.attr("data-ismultiLine",l||o.length>1),{node:e,width:h,height:c}}function ky(){const{hyperlink:r,hyperlinkTitle:t}=this.getData();if(!r)return;const{customHyperlinkJump:e,hyperlinkIcon:i}=this.mindMap.opt,{icon:n,style:o}=i,s=this.getNodeIconSize("hyperlinkIcon"),a=new Qe().size(s,s),l=new gs().to(r).target("_blank");l.node.addEventListener("click",c=>{typeof e=="function"&&(c.preventDefault(),e(r,this))}),t&&a.add(Qe(`<title>${t}</title>`)),l.rect(s,s).fill({color:"transparent"});const h=Qe(n||Va.hyperlink).size(s,s);return this.style.iconNode(h,o.color),l.add(h),a.add(l),{node:a,width:s,height:s}}function Ly(){const r=this.getData("tag");if(!r||r.length<=0)return[];let{maxTag:t,tagsColorMap:e}=this.mindMap.opt;e=e||{};const i=[];return r.slice(0,t).forEach((n,o)=>{let s="",a={...N0};typeof n=="string"?s=n:(s=n.text,a={...N0,...n.style});const l=typeof a.width<"u",h=new fi;h.on("click",()=>{this.mindMap.emit("node_tag_click",this,n,o,h)});const c=new Je().text(s);this.style.tagText(c,a);const{width:u,height:f}=c.bbox(),d=l?a.width:u+a.paddingX*2,p=l?Math.max(d,u):d,m=Math.max(a.height,f);l?c.x((p-u)/2):c.x(l?0:a.paddingX),c.cy(-m/2);const v=new Wi().size(d,a.height).cy(-m/2);l&&v.x((p-d)/2),this.style.tagRect(v,{...a,fill:a.fill||e[c.node.textContent]||f0(c.node.textContent)}),h.add(v).add(c),i.push({node:h,width:p,height:m})}),i}function My(){if(!this.getData("note"))return null;const{icon:r,style:t}=this.mindMap.opt.noteIcon,e=this.getNodeIconSize("noteIcon"),i=new Qe().attr("cursor","pointer").addClass("smm-node-note").size(e,e);i.add(new Wi().size(e,e).fill({color:"transparent"}));const n=Qe(r||Va.note).size(e,e);return this.style.iconNode(n,t.color),i.add(n),this.mindMap.opt.customNoteContentShow||(this.noteEl||(this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`
          position: fixed;
          padding: 10px;
          border-radius: 5px;
          box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
          display: none;
          background-color: #fff;
          z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}
      `,(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.noteEl)),this.noteEl.innerText=this.getData("note")),i.on("mouseover",()=>{const{left:o,top:s}=this.getNoteContentPosition();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.getData("note"),o,s,this):(this.noteEl.style.left=o+"px",this.noteEl.style.top=s+"px",this.noteEl.style.display="block")}),i.on("mouseout",()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"}),i.on("click",o=>{this.mindMap.emit("node_note_click",this,o,i)}),i.on("dblclick",o=>{this.mindMap.emit("node_note_dblclick",this,o,i)}),{node:i,width:e,height:e}}function Dy(){const{attachmentUrl:r,attachmentName:t}=this.getData();if(!r)return;const e=this.getNodeIconSize("attachmentIcon"),{icon:i,style:n}=this.mindMap.opt.attachmentIcon,o=new Qe().attr("cursor","pointer").size(e,e);t&&o.add(Qe(`<title>${t}</title>`)),o.add(new Wi().size(e,e).fill({color:"transparent"}));const s=Qe(i||Va.attachment).size(e,e);return this.style.iconNode(s,n.color),o.add(s),o.on("click",a=>{this.mindMap.emit("node_attachmentClick",this,a,o)}),o.on("contextmenu",a=>{this.mindMap.emit("node_attachmentContextmenu",this,a,o)}),{node:o,width:e,height:e}}function Oy(r){const{style:t}=this.mindMap.opt[r];return nr(t.size)?this.mindMap.themeConfig.iconSize:t.size}function Ry(){const r=this.getNodeIconSize("noteIcon"),{scaleY:t}=this.mindMap.view.getTransformData().transform,e=r*t;let{left:i,top:n}=this._noteData.node.node.getBoundingClientRect();return n+=e,{left:i,top:n}}function Fy(r){this.mindMap.commonCaches.measureCustomNodeContentSizeEl||(this.mindMap.commonCaches.measureCustomNodeContentSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.style.cssText=`
      position: fixed;
      left: -99999px;
      top: -99999px;
    `,this.mindMap.el.appendChild(this.mindMap.commonCaches.measureCustomNodeContentSizeEl)),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.innerHTML="",this.mindMap.commonCaches.measureCustomNodeContentSizeEl.appendChild(r);let t=this.mindMap.commonCaches.measureCustomNodeContentSizeEl.getBoundingClientRect();return{width:t.width,height:t.height}}function Iy(){return!!this._customNodeContent}const A0={createImgNode:Cy,getImgShowSize:Sy,createIconNode:Ny,createRichTextNode:Ay,createTextNode:_y,createHyperlinkNode:ky,createTagNode:Ly,createNoteNode:My,createAttachmentNode:Dy,getNoteContentPosition:Ry,getNodeIconSize:Oy,measureCustomNodeContentSize:Fy,isUseCustomNodeContent:Iy};function By(){if(this.getChildrenLength()<=0||this.isRoot)return;const{alwaysShowExpandBtn:r,notShowExpandBtn:t,expandBtnSize:e}=this.mindMap.opt;if(!r&&!t){let{width:i,height:n}=this;this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new Wi,this._unVisibleRectRegionNode.fill({color:"transparent"})),this.group.add(this._unVisibleRectRegionNode),this.renderer.layout.renderExpandBtnRect(this._unVisibleRectRegionNode,e,i,n,this)}}function zy(){this._unVisibleRectRegionNode&&(this._unVisibleRectRegionNode.remove(),this._unVisibleRectRegionNode=null)}function Py(){this.needRerenderExpandBtnPlaceholderRect&&(this.needRerenderExpandBtnPlaceholderRect=!1,this.renderExpandBtnPlaceholderRect()),this.getChildrenLength()>0?this._unVisibleRectRegionNode||this.renderExpandBtnPlaceholderRect():this._unVisibleRectRegionNode&&this.clearExpandBtnPlaceholderRect()}const _0={renderExpandBtnPlaceholderRect:By,clearExpandBtnPlaceholderRect:zy,updateExpandBtnPlaceholderRect:Py};function Uy(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes=null,this.dragHandleWidth=4,this.dragHandleMousedownX=0,this.isDragHandleMousedown=!1,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.dragHandleMousedownBodyCursor="",this.dragHandleMousedownLeft=0,this.onDragMousemoveHandle=this.onDragMousemoveHandle.bind(this),window.addEventListener("mousemove",this.onDragMousemoveHandle),this.onDragMouseupHandle=this.onDragMouseupHandle.bind(this),window.addEventListener("mouseup",this.onDragMouseupHandle),this.mindMap.on("node_mouseup",this.onDragMouseupHandle))}function jy(r){if(!this.isDragHandleMousedown)return;r.stopPropagation(),r.preventDefault();let{minNodeTextModifyWidth:t,maxNodeTextModifyWidth:e,isUseCustomNodeContent:i,customCreateNodeContent:n}=this.mindMap.opt;const o=i&&n&&this._customNodeContent;document.body.style.cursor="ew-resize",this.group.css({cursor:"ew-resize"});const{scaleX:s}=this.mindMap.draw.transform(),a=r.clientX-this.dragHandleMousedownX;let l=this.dragHandleMousedownCustomTextWidth+(this.dragHandleIndex===0?-a:a)/s;if(l=Math.max(l,t),e!==-1&&(l=Math.min(l,e)),!o&&this.getData("image")){const h=this.getImgShowSize();this._rectInfo.textContentWidth-this.customTextWidth+l<=h[0]&&(l=h[0]+this.customTextWidth-this._rectInfo.textContentWidth)}this.customTextWidth=l,this.dragHandleIndex===0&&(this.left=this.dragHandleMousedownLeft+a/s),this.reRender(o?[]:["text"],{ignoreUpdateCustomTextWidth:!0})}function qy(){this.isDragHandleMousedown&&(document.body.style.cursor=this.dragHandleMousedownBodyCursor,this.group.css({cursor:"default"}),this.isDragHandleMousedown=!1,this.dragHandleMousedownX=0,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.setData({customTextWidth:this.customTextWidth}),this.mindMap.render(),this.mindMap.emit("dragModifyNodeWidthEnd",this))}function Wy(){const r=[new Wi,new Wi];return r.forEach((t,e)=>{t.size(this.dragHandleWidth,this.height).fill({color:"transparent"}).css({cursor:"ew-resize"}),t.on("mousedown",i=>{i.stopPropagation(),i.preventDefault(),this.dragHandleMousedownX=i.clientX,this.dragHandleIndex=e,this.dragHandleMousedownCustomTextWidth=this.customTextWidth===void 0?this._textData?this._textData.width:this.width:this.customTextWidth,this.dragHandleMousedownBodyCursor=document.body.style.cursor,this.dragHandleMousedownLeft=this.left,this.isDragHandleMousedown=!0})}),r}function Hy(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes||(this._dragHandleNodes=this.createDragHandleNode()),this.getData("isActive")?(this._dragHandleNodes.forEach(r=>{r.height(this.height),this.group.add(r)}),this._dragHandleNodes[1].x(this.width-this.dragHandleWidth)):this._dragHandleNodes.forEach(r=>{r.remove()}))}const k0={initDragHandle:Uy,onDragMousemoveHandle:jy,onDragMouseupHandle:qy,createDragHandleNode:Wy,updateDragHandle:Hy};function Gy(){this.mindMap.cooperate&&(this._userListGroup=new fi,this.group.add(this._userListGroup))}function Vy(r){const{avatarSize:t,fontSize:e}=this.mindMap.opt.cooperateStyle,i=new fi,n=r.isMore?r.name:String(r.name)[0],o=new mo().size(t,t);o.fill({color:r.color||f0(n)});const s=new Je().text(n).fill({color:"#fff"}).css({"font-size":e+"px"}).dx(-e/2).dy((t-e)/2);return i.add(o).add(s),i}function Ky(r){const{avatarSize:t}=this.mindMap.opt.cooperateStyle;return new _n().load(r.avatar).size(t,t)}function Xy(){if(!this._userListGroup)return;const{avatarSize:r}=this.mindMap.opt.cooperateStyle;this._userListGroup.clear();const t=this.userList.length,e=Math.floor(this.width/r),i=[];t>e?i.push(...this.userList.slice(0,e-1),{isMore:!0,name:"+"+(t-e+1)}):i.push(...this.userList),i.forEach((n,o)=>{let s=null;n.avatar?s=this.createImageAvatar(n):s=this.createTextAvatar(n),s.on("click",a=>{this.mindMap.emit("node_cooperate_avatar_click",n,this,s,a)}),s.on("mouseenter",a=>{this.mindMap.emit("node_cooperate_avatar_mouseenter",n,this,s,a)}),s.on("mouseleave",a=>{this.mindMap.emit("node_cooperate_avatar_mouseleave",n,this,s,a)}),s.x(o*r).cy(-r/2),this._userListGroup.add(s)})}function Yy(r){this.userList.find(t=>t.id==r.id)||(this.userList.push(r),this.updateUserListNode())}function Zy(r){const t=this.userList.findIndex(e=>e.id==r.id);t!==-1&&(this.userList.splice(t,1),this.updateUserListNode())}function Jy(){this.userList=[],this.updateUserListNode()}const L0={createUserListNode:Gy,updateUserListNode:Xy,createTextAvatar:Vy,createImageAvatar:Ky,addUser:Yy,removeUser:Zy,emptyUser:Jy};function Qy(){this.isGeneralization||(this._quickCreateChildBtn=null,this._showQuickCreateChildBtn=!1)}function $y(){if(!(this.isGeneralization||this.getChildrenLength()>0)){if(this._quickCreateChildBtn)this.group.add(this._quickCreateChildBtn);else{const{quickCreateChildBtnIcon:r,expandBtnStyle:t,expandBtnSize:e}=this.mindMap.opt,{icon:i,style:n}=r;let{color:o,fill:s}=t||{color:"#808080",fill:"#fff"};o=n.color||o;const a=Qe(i||vc.quickCreateChild).size(e,e);a.css({cursor:"pointer"}),a.x(0).y(-e/2),this.style.iconNode(a,o);const l=new mo().size(e);l.x(0).y(-e/2),l.fill({color:s}).css({cursor:"pointer"}),this._quickCreateChildBtn=new fi,this._quickCreateChildBtn.add(l).add(a),this._quickCreateChildBtn.on("click",h=>{h.stopPropagation(),this.mindMap.emit("quick_create_btn_click",this);const{customQuickCreateChildBtnClick:c}=this.mindMap.opt;if(typeof c=="function"){c(this);return}this.mindMap.execCommand("INSERT_CHILD_NODE",!0,[this])}),this._quickCreateChildBtn.on("dblclick",h=>{h.stopPropagation()}),this._quickCreateChildBtn.addClass("smm-quick-create-child-btn"),this.group.add(this._quickCreateChildBtn)}this._showQuickCreateChildBtn=!0,this.renderer.layout.renderExpandBtn(this,this._quickCreateChildBtn)}}function tb(){this.isGeneralization||this._quickCreateChildBtn&&this._showQuickCreateChildBtn&&(this._quickCreateChildBtn.remove(),this._showQuickCreateChildBtn=!1)}function eb(){if(this.isGeneralization)return;const{isActive:r}=this.getData();r||this.removeQuickCreateChildBtn()}const M0={initQuickCreateChildBtn:Qy,showQuickCreateChildBtn:$y,removeQuickCreateChildBtn:tb,hideQuickCreateChildBtn:eb};function ib(r,t,e,i,n){const{imgTextMargin:o}=this.mindMap.opt;return r==="v"?i>0&&n>0?o:0:t>0&&e>0?o:0}function rb(r){let t=0,e=this._tagData.reduce((i,n)=>(t=Math.max(t,n.height),i+=n.width),0);return e+=(this._tagData.length-1)*r,{width:e,height:t}}function nb(){if(this.isUseCustomNodeContent()){const x=this.measureCustomNodeContentSize(this._customNodeContent);return{width:this.hasCustomWidth()?this.customTextWidth:x.width,height:x.height}}const{TAG_PLACEMENT:r,IMG_PLACEMENT:t}=ut,{textContentMargin:e}=this.mindMap.opt,n=(this.getStyle("tagPlacement")||r.RIGHT)===r.BOTTOM,o=this.getStyle("imgPlacement")||t.TOP;let s=0,a=0,l=0,h=0,c=0,u=0,f=0;if(this._imgData&&(s=this._imgData.width,a=this._imgData.height),this.mindMap.nodeInnerPrefixList.forEach(x=>{const C=this[`_${x.name}Data`];C&&(l+=C.width,h=Math.max(h,C.height),f++)}),this._prefixData&&(l+=this._prefixData.width,h=Math.max(h,this._prefixData.height),f++),this._iconData.length>0&&(l+=this._iconData.reduce((x,C)=>(h=Math.max(h,C.height),x+=C.width),0)+(this._iconData.length-1)*e,f++),this._textData&&(l+=this._textData.width,h=Math.max(h,this._textData.height),f++),this._hyperlinkData&&(l+=this._hyperlinkData.width,h=Math.max(h,this._hyperlinkData.height),f++),this._tagData.length>0){const{width:x,height:C}=this.getTagContentSize(e);n?(c=x,u=C):(l+=x,h=Math.max(h,C),f++)}this._noteData&&(l+=this._noteData.width,h=Math.max(h,this._noteData.height),f++),this._attachmentData&&(l+=this._attachmentData.width,h=Math.max(h,this._attachmentData.height),f++),this._postfixData&&(l+=this._postfixData.width,h=Math.max(h,this._postfixData.height),f++),l+=(f-1)*e,n&&l>0&&u>0&&(this._rectInfo.textContentWidthWithoutTag=l,l=Math.max(l,c),h=h+e+u),this._rectInfo.textContentWidth=l,this._rectInfo.textContentHeight=h;let d=0,p=0;[t.TOP,t.BOTTOM].includes(o)?(d=Math.max(s,l),p=a+h+this.getImgTextMarin("v",0,0,a,h)):(d=s+l+this.getImgTextMarin("h",s,l),p=Math.max(a,h));const{paddingX:m,paddingY:v}=this.getPaddingVale(),{paddingX:g,paddingY:b}=this.shapeInstance.getShapePadding(d,p,m,v);this.shapePadding.paddingX=g,this.shapePadding.paddingY=b;const y=this.getBorderWidth();return{width:d+m*2+g*2+y,height:p+v*2+b*2+y}}function ob(){if(!this.group)return;this.group.clear();const{hoverRectPadding:r,openRealtimeRenderOnNodeTextEdit:t,textContentMargin:e,addCustomContentToNode:i}=this.mindMap.opt;t&&this._expandBtn&&this.group.add(this._expandBtn);const{width:n,height:o}=this;let{paddingX:s,paddingY:a}=this.getPaddingVale();const l=this.getBorderWidth()/2;s+=this.shapePadding.paddingX+l,a+=this.shapePadding.paddingY+l,this.shapeNode=this.shapeInstance.createShape(),this.shapeNode.addClass("smm-node-shape"),this.shapeNode.translate(l,l),this.style.shape(this.shapeNode),this.group.add(this.shapeNode),this.renderExpandBtnPlaceholderRect(),this.createUserListNode&&this.createUserListNode(),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid);const h=()=>{this.hoverNode=new Wi().size(n+r*2,o+r*2).x(-r).y(-r),this.hoverNode.addClass("smm-hover-node"),this.style.hoverNode(this.hoverNode,n,o),this.group.add(this.hoverNode)};if(this.isUseCustomNodeContent()){const Z=xo({el:this._customNodeContent,width:n,height:o});this.group.add(Z),h();return}const{IMG_PLACEMENT:c,TAG_PLACEMENT:u}=ut,f=this.getStyle("imgPlacement")||c.TOP,p=(this.getStyle("tagPlacement")||u.RIGHT)===u.BOTTOM;let{textContentWidth:m,textContentHeight:v,textContentWidthWithoutTag:g}=this._rectInfo;const b=v;let y=0,x=0;const C=this._tagData&&this._tagData.length>0;if(C){const Z=this.getTagContentSize(e);y=Z.width,x=Z.height,p&&(v-=x+e)}let R=0,F=0;if(this._imgData)switch(R=this._imgData.width,F=this._imgData.height,this.group.add(this._imgData.node),f){case c.TOP:this._imgData.node.cx(n/2).y(a);break;case c.BOTTOM:this._imgData.node.cx(n/2).y(o-a-F);break;case c.LEFT:this._imgData.node.x(s).cy(o/2);break;case c.RIGHT:this._imgData.node.x(n-s-R).cy(o/2);break}let U=new fi,T=0;if(C&&p&&(T=g<m?(m-g)/2:0),this.mindMap.nodeInnerPrefixList.forEach(Z=>{const W=this[`_${Z.name}Data`];W&&(W.node.x(T).y((v-W.height)/2),U.add(W.node),T+=W.width+e)}),this._prefixData){const Z=xo({el:this._prefixData.el,width:this._prefixData.width,height:this._prefixData.height});Z.x(T).y((v-this._prefixData.height)/2),U.add(Z),T+=this._prefixData.width+e}let H=new fi;if(this._iconData&&this._iconData.length>0){let Z=0;this._iconData.forEach(W=>{W.node.x(T+Z).y((v-W.height)/2),H.add(W.node),Z+=W.width+e}),U.add(H),T+=Z}if(this._textData){const Z=this._textData.node.attr("data-offsetx")||0;this._textData.node.attr("data-offsetx",T),(this._textData.nodeContent||this._textData.node).x(-Z).x(T).y((v-this._textData.height)/2),t&&this._textData.node.opacity(this.mindMap.renderer.textEdit.getCurrentEditNode()===this?0:1),U.add(this._textData.node),T+=this._textData.width+e}this._hyperlinkData&&(this._hyperlinkData.node.x(T).y((v-this._hyperlinkData.height)/2),U.add(this._hyperlinkData.node),T+=this._hyperlinkData.width+e);let _=new fi;if(C)if(p){let Z=0;this._tagData.forEach(W=>{W.node.x(Z).y((x-W.height)/2),_.add(W.node),Z+=W.width+e}),_.x((m-y)/2).y(b-x),U.add(_)}else{let Z=0;this._tagData.forEach(W=>{W.node.x(T+Z).y((v-W.height)/2),_.add(W.node),Z+=W.width+e}),U.add(_),T+=Z}if(this._noteData&&(this._noteData.node.x(T).y((v-this._noteData.height)/2),U.add(this._noteData.node),T+=this._noteData.width+e),this._attachmentData&&(this._attachmentData.node.x(T).y((v-this._attachmentData.height)/2),U.add(this._attachmentData.node),T+=this._attachmentData.width+e),this._postfixData){const Z=xo({el:this._postfixData.el,width:this._postfixData.width,height:this._postfixData.height});Z.x(T).y((v-this._postfixData.height)/2),U.add(Z),T+=this._postfixData.width}this.group.add(U);const{width:k,height:O}=U.bbox();let N=0,X=0;switch(f){case c.TOP:N=n/2-k/2,X=a+F+this.getImgTextMarin("v",0,0,F,b);break;case c.BOTTOM:N=n/2-k/2,X=a;break;case c.LEFT:N=R+s+this.getImgTextMarin("h",R,m),X=o/2-O/2;break;case c.RIGHT:N=s,X=o/2-O/2;break}if(U.translate(N,X),h(),this._customContentAddToNodeAdd&&this._customContentAddToNodeAdd.el){const Z=xo(this._customContentAddToNodeAdd);this.group.add(Z),i&&typeof i.handle=="function"&&i.handle({content:this._customContentAddToNodeAdd,element:Z,node:this})}this.mindMap.emit("node_layout_end",this)}const D0={getImgTextMarin:ib,getTagContentSize:rb,getNodeRect:nb,layout:ob};class xs{constructor(t={}){this.opt=t,this.nodeData=this.handleData(t.data||{}),this.nodeDataSnapshot="",this.uid=t.uid,this.mindMap=t.mindMap,this.renderer=t.renderer,this.draw=this.mindMap.draw,this.nodeDraw=this.mindMap.nodeDraw,this.lineDraw=this.mindMap.lineDraw,this.style=new or(this),this.effectiveStyles={},this.shapeInstance=new P6(this),this.shapePadding={paddingX:0,paddingY:0},this.isRoot=t.isRoot===void 0?!1:t.isRoot,this.isGeneralization=t.isGeneralization===void 0?!1:t.isGeneralization,this.generalizationBelongNode=null,this.layerIndex=t.layerIndex===void 0?0:t.layerIndex,this.width=t.width||0,this.height=t.height||0,this.customTextWidth=t.data.data.customTextWidth||void 0,this._left=t.left||0,this._top=t.top||0,this.customLeft=t.data.data.customLeft||void 0,this.customTop=t.data.data.customTop||void 0,this.isDrag=!1,this.parent=t.parent||null,this.children=t.children||[],this.userList=[],this.group=null,this.shapeNode=null,this.hoverNode=null,this._customNodeContent=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this.noteEl=null,this.noteContentIsShow=!1,this._attachmentData=null,this._prefixData=null,this._postfixData=null,this._expandBtn=null,this._lastExpandBtnType=null,this._showExpandBtn=!1,this._openExpandNode=null,this._closeExpandNode=null,this._fillExpandNode=null,this._userListGroup=null,this._lines=[],this._generalizationList=[],this._unVisibleRectRegionNode=null,this._isMouseenter=!1,this._customContentAddToNodeAdd=null,this._rectInfo={textContentWidth:0,textContentHeight:0,textContentWidthWithoutTag:0},this._generalizationNodeWidth=0,this._generalizationNodeHeight=0,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.isMultipleChoice=!1,this.needLayout=!1,this.isHide=!1;const e=Object.getPrototypeOf(this);e.bindEvent||(Object.keys(D0).forEach(i=>{e[i]=D0[i]}),Object.keys(T0).forEach(i=>{e[i]=T0[i]}),Object.keys(C0).forEach(i=>{e[i]=C0[i]}),Object.keys(_0).forEach(i=>{e[i]=_0[i]}),Object.keys(S0).forEach(i=>{e[i]=S0[i]}),Object.keys(A0).forEach(i=>{e[i]=A0[i]}),this.mindMap.cooperate&&Object.keys(L0).forEach(i=>{e[i]=L0[i]}),Object.keys(k0).forEach(i=>{e[i]=k0[i]}),this.mindMap.opt.isShowCreateChildBtnIcon&&(Object.keys(M0).forEach(i=>{e[i]=M0[i]}),this.initQuickCreateChildBtn()),e.bindEvent=!0),this.getSize(),this.updateGeneralization(),this.initDragHandle()}get left(){return this.customLeft||this._left}set left(t){this._left=t}get top(){return this.customTop||this._top}set top(t){this._top=t}reset(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}resetWhenDelete(){this._isMouseenter=!1}handleData(t){return t.data.expand=t.data.expand!==!1,t.data.isActive=t.data.isActive===!0,t.children=t.children||[],t}createNodeData(t){const{isUseCustomNodeContent:e,customCreateNodeContent:i,createNodePrefixContent:n,createNodePostfixContent:o,addCustomContentToNode:s}=this.mindMap.opt,a=["custom","image","icon","text","hyperlink","tag","note","attachment","prefix","postfix",...this.mindMap.nodeInnerPrefixList.map(h=>h.name)],l={};if(Array.isArray(t)?a.forEach(h=>{t.includes(h)&&(l[h]=!0)}):a.forEach(h=>{l[h]=!0}),e&&i&&l.custom&&(this._customNodeContent=i(this)),this._customNodeContent){Bn(this._customNodeContent);return}l.image&&(this._imgData=this.createImgNode()),l.icon&&(this._iconData=this.createIconNode()),l.text&&(this._textData=this.createTextNode()),l.hyperlink&&(this._hyperlinkData=this.createHyperlinkNode()),l.tag&&(this._tagData=this.createTagNode()),l.note&&(this._noteData=this.createNoteNode()),l.attachment&&(this._attachmentData=this.createAttachmentNode()),this.mindMap.nodeInnerPrefixList.forEach(h=>{l[h.name]&&(this[`_${h.name}Data`]=h.createContent(this))}),l.prefix&&(this._prefixData=n?n(this):null,this._prefixData&&this._prefixData.el&&Bn(this._prefixData.el)),l.postfix&&(this._postfixData=o?o(this):null,this._postfixData&&this._postfixData.el&&Bn(this._postfixData.el)),s&&typeof s.create=="function"&&(this._customContentAddToNodeAdd=s.create(this),this._customContentAddToNodeAdd&&this._customContentAddToNodeAdd.el&&Bn(this._customContentAddToNodeAdd.el))}getSize(t,e={}){e.ignoreUpdateCustomTextWidth||!1||(this.customTextWidth=this.getData("customTextWidth")||void 0),this.customLeft=this.getData("customLeft")||void 0,this.customTop=this.getData("customTop")||void 0,this.createNodeData(t);const{width:n,height:o}=this.getNodeRect(),s=this.width!==n||this.height!==o;return this.width=n,this.height=o,s}bindGroupEvent(){this.group.on("click",t=>{if(this.mindMap.emit("node_click",this,t),this.isMultipleChoice){t.stopPropagation(),this.isMultipleChoice=!1;return}this.mindMap.opt.onlyOneEnableActiveNodeOnCooperate&&this.userList.length>0||this.active(t)}),this.group.on("mousedown",t=>{const{readonly:e,enableCtrlKeyNodeSelection:i,useLeftKeySelectionRightKeyDrag:n,mousedownEventPreventDefault:o}=this.mindMap.opt;if(o&&t.preventDefault(),e||(this.isRoot?t.which===3&&!n&&t.stopPropagation():t.which!==2&&t.stopPropagation()),!e&&(t.ctrlKey||t.metaKey)&&i){this.isMultipleChoice=!0;const s=this.getData("isActive");s||this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.mindMap.renderer[s?"removeNodeFromActiveList":"addNodeToActiveList"](this,!0),this.renderer.emitNodeActiveEvent(s?null:this)}this.mindMap.emit("node_mousedown",this,t)}),this.group.on("mouseup",t=>{!this.isRoot&&t.which!==2&&!this.mindMap.opt.readonly&&t.stopPropagation(),this.mindMap.emit("node_mouseup",this,t)}),this.group.on("mouseenter",t=>{this.isDrag||(this._isMouseenter=!0,this.showExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseenter(),this.mindMap.emit("node_mouseenter",this,t))}),this.group.on("mouseleave",t=>{this._isMouseenter&&(this._isMouseenter=!1,this.hideExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseleave(),this.mindMap.emit("node_mouseleave",this,t))}),this.group.on("dblclick",t=>{const{readonly:e,onlyOneEnableActiveNodeOnCooperate:i}=this.mindMap.opt;e||t.ctrlKey||t.metaKey||(t.stopPropagation(),!(i&&this.userList.length>0)&&this.mindMap.emit("node_dblclick",this,t))}),this.group.on("contextmenu",t=>{const{readonly:e,useLeftKeySelectionRightKeyDrag:i}=this.mindMap.opt;e||t.ctrlKey||(t.stopPropagation(),t.preventDefault(),!(this.mindMap.select&&!i&&this.mindMap.select.hasSelectRange())&&(this.getData("isActive")&&this.renderer.activeNodeList.length===1||(this.renderer.clearActiveNodeList(),this.active(t)),this.mindMap.emit("node_contextmenu",t,this)))})}active(t){this.mindMap.opt.readonly||(t&&t.stopPropagation(),!this.getData("isActive")&&(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActiveNodeList(),this.renderer.addNodeToActiveList(this,!0),this.renderer.emitNodeActiveEvent(this)))}deactivate(){this.mindMap.renderer.removeNodeFromActiveList(this),this.mindMap.renderer.emitNodeActiveEvent()}update(t){if(!this.group)return;this.updateNodeActiveClass();const{alwaysShowExpandBtn:e,notShowExpandBtn:i,isShowCreateChildBtnIcon:n}=this.mindMap.opt,o=this.getChildrenLength();if(!i)if(e)this._expandBtn&&o<=0?this.removeExpandBtn():this.renderExpandBtn();else{const{isActive:a,expand:l}=this.getData();o<=0?this.removeExpandBtn():l&&!a&&!this._isMouseenter?this.hideExpandBtn():this.showExpandBtn()}if(n)if(o>0)this.removeQuickCreateChildBtn();else{const{isActive:a}=this.getData();a?this.showQuickCreateChildBtn():this.hideQuickCreateChildBtn()}this.updateDragHandle(),this.renderGeneralization(t),this.updateUserListNode&&this.updateUserListNode();const s=this.group.transform();this.nodeDataSnapshot=JSON.stringify(this.getData()),(this.left!==s.translateX||this.top!==s.translateY)&&this.group.translate(this.left-s.translateX,this.top-s.translateY)}getNodePosInClient(t,e){const i=this.mindMap.draw.transform(),{scaleX:n,scaleY:o,translateX:s,translateY:a}=i,l=t*n+s,h=e*o+a;return{left:l,top:h}}checkIsInClient(t=0){const{left:e,top:i}=this.getNodePosInClient(this.left,this.top);return e+this.width>0-t&&i+this.height>0-t&&e<this.mindMap.width+t&&i<this.mindMap.height+t}reRender(t,e){const i=this.getSize(t,e);return this.layout(),this.update(),i}updateNodeActiveClass(){if(!this.group)return;const t=this.getData("isActive");this.group[t?"addClass":"removeClass"]("active")}updateNodeByActive(t){if(this.group){const{isShowCreateChildBtnIcon:e}=this.mindMap.opt;t?(this.showExpandBtn(),e&&this.showQuickCreateChildBtn()):(this.hideExpandBtn(),e&&this.hideQuickCreateChildBtn()),this.updateNodeActiveClass(),this.updateDragHandle()}}render(t=()=>{},e=!1,i=!1){this.renderLine();const{openPerformance:n,performanceConfig:o}=this.mindMap.opt;if(e||!n||this.checkIsInClient(o.padding)||this.isRoot?this.group?(this.nodeDraw.has(this.group)||this.nodeDraw.add(this.group),this.needLayout&&(this.needLayout=!1,this.layout()),this.updateExpandBtnPlaceholderRect(),this.update(e)):(this.group=new fi,this.group.addClass("smm-node"),this.group.css({cursor:"default"}),this.bindGroupEvent(),this.nodeDraw.add(this.group),this.layout(),this.update(e)):n&&o.removeNodeWhenOutCanvas&&this.removeSelf(),this.children&&this.children.length&&this.getData("expand")!==!1){let s=0;this.children.forEach(a=>{const l=()=>{a.render(()=>{s++,s>=this.children.length&&t()},e,i)};i?setTimeout(l,0):l()})}else t();this.nodeData.inserting&&(delete this.nodeData.inserting,this.active(),this.mindMap.emit("node_dblclick",this,null,!0))}removeSelf(){this.group&&(this.group.remove(),this.removeGeneralization())}remove(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.children&&this.children.length&&this.children.forEach(t=>{t.remove()}))}destroy(){this.removeLine(),this.parent&&this.parent.removeLine(),this.group&&(this.emptyUser&&this.emptyUser(),this.resetWhenDelete(),this.group.remove(),this.removeGeneralization(),this.group=null,this.style.onRemove())}hide(){if(this.group&&this.group.hide(),this.hideGeneralization(),this.parent){const t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].hide(),this._lines.forEach(e=>{e.hide()})}this.children&&this.children.length&&this.children.forEach(t=>{t.hide()})}show(){if(this.group){if(this.group.show(),this.showGeneralization(),this.parent){const t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].show(),this._lines.forEach(e=>{e.show()})}this.children&&this.children.length&&this.children.forEach(t=>{t.show()})}}setOpacity(t){this.group&&this.group.opacity(t),this._lines.forEach(e=>{e.opacity(t)}),this.children.forEach(e=>{e.setOpacity(t)}),this.setGeneralizationOpacity(t)}hideChildren(){this._lines.forEach(t=>{t.hide()}),this.children&&this.children.length&&this.children.forEach(t=>{t.hide()})}showChildren(){this._lines.forEach(t=>{t.show()}),this.children&&this.children.length&&this.children.forEach(t=>{t.show()})}startDrag(){this.isDrag=!0,this.group&&this.group.addClass("smm-node-dragging")}endDrag(){this.isDrag=!1,this.group&&this.group.removeClass("smm-node-dragging")}renderLine(t=!1){if(this.getData("expand")===!1)return;let e=this.getChildrenLength();this.mindMap.opt.layout===ut.LAYOUT.FISHBONE&&(this.isRoot||this.layerIndex===1)&&(e=0),e>this._lines.length?new Array(e-this._lines.length).fill(0).forEach(()=>{this._lines.push(this.lineDraw.path())}):e<this._lines.length&&(this._lines.slice(e).forEach(i=>{i.remove()}),this._lines=this._lines.slice(0,e)),this.renderer.layout.renderLine(this,this._lines,(...i)=>{this.styleLine(...i)},this.style.getStyle("lineStyle",!0)),t&&this.children&&this.children.length>0&&this.children.forEach(i=>{i.renderLine(t)})}getShape(){return this.mindMap.themeConfig.nodeUseLineStyle?ut.SHAPE.RECTANGLE:this.style.getStyle("shape",!1,!1)}hasCustomPosition(){return this.customLeft!==void 0&&this.customTop!==void 0}ancestorHasCustomPosition(){let t=this;for(;t;){if(t.hasCustomPosition())return!0;t=t.parent}return!1}ancestorHasGeneralization(){let t=this.parent;for(;t;){if(t.checkHasGeneralization())return!0;t=t.parent}return!1}addChildren(t){this.children.push(t)}styleLine(t,e,i){const{enableInheritAncestorLineStyle:n}=this.mindMap.opt,o=n?"getSelfInhertStyle":"getSelfStyle",s=e[o]("lineWidth")||e.getStyle("lineWidth",!0),a=e[o]("lineColor")||this.getRainbowLineColor(e)||e.getStyle("lineColor",!0),l=e[o]("lineDasharray")||e.getStyle("lineDasharray",!0);this.style.line(t,{width:s,color:a,dasharray:l},i,e)}getRainbowLineColor(t){return this.mindMap.rainbowLines?this.mindMap.rainbowLines.getNodeColor(t):""}removeLine(){this._lines.forEach(t=>{t.remove()}),this._lines=[]}isAncestor(t){if(this.uid===t.uid)return!1;let e=t.parent;for(;e;){if(this.uid===e.uid)return!0;e=e.parent}return!1}isParent(t){if(this.uid===t.uid)return!1;const e=t.parent;return!!(e&&this.uid===e.uid)}isBrother(t){return!this.parent||this.uid===t.uid?!1:this.parent.children.find(e=>e.uid===t.uid)}getIndexInBrothers(){return this.parent&&this.parent.children?this.parent.children.findIndex(t=>t.uid===this.uid):-1}getPaddingVale(){return{paddingX:this.getStyle("paddingX"),paddingY:this.getStyle("paddingY")}}getStyle(t,e){const i=this.style.merge(t,e);return i===void 0?"":i}getSelfStyle(t){return this.style.getSelfStyle(t)}getParentSelfStyle(t){return this.parent?this.parent.getSelfStyle(t)||this.parent.getParentSelfStyle(t):null}getSelfInhertStyle(t){return this.getSelfStyle(t)||this.getParentSelfStyle(t)}getBorderWidth(){return this.style.merge("borderWidth",!1)||0}getData(t){return t?this.nodeData.data[t]:this.nodeData.data}getPureData(t=!0,e=!1){return ms({},this,t,e)}getAncestorNodes(){const t=[];let e=this.parent;for(;e;)t.unshift(e),e=e.parent;return t}hasCustomStyle(){return this.style.hasCustomStyle()}getRect(){return this.group?this.group.rbox():null}getRectInSvg(){const{scaleX:t,scaleY:e,translateX:i,translateY:n}=this.mindMap.draw.transform();let{left:o,top:s,width:a,height:l}=this;const h=(o+a)*t+i,c=(s+l)*e+n;return o=o*t+i,s=s*e+n,{left:o,right:h,top:s,bottom:c,width:a*t,height:l*e}}highlight(){this.group&&this.group.addClass("smm-node-highlight")}closeHighlight(){this.group&&this.group.removeClass("smm-node-highlight")}fakeClone(){const t=new xs({...this.opt,uid:Di()});return Object.keys(this).forEach(e=>{t[e]=this[e]}),t}createSvgTextNode(t=""){return new Je().text(t)}getSvgObjects(){return{SVG:Qe,G:fi,Rect:Wi}}checkEnableDragModifyNodeWidth(){const{enableDragModifyNodeWidth:t,isUseCustomNodeContent:e,customCreateNodeContent:i}=this.mindMap.opt;return t&&(this.mindMap.richText||e&&i)}hasCustomWidth(){return this.checkEnableDragModifyNodeWidth()&&this.customTextWidth!==void 0}getChildrenLength(){return this.nodeData.children?this.nodeData.children.length:0}}class sb{constructor(t){this.max=t||1e3,this.size=0,this.pool=new Map}add(t,e){return!this.has(t)&&this.size>=this.max?!1:(this.delete(t),this.pool.set(t,e),this.size++,!0)}delete(t){this.pool.has(t)&&(this.pool.delete(t),this.size--)}has(t){return this.pool.has(t)}get(t){if(this.pool.has(t))return this.pool.get(t)}clear(){this.size=0,this.pool=new Map}}class tn{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.draw=this.mindMap.draw,this.lineDraw=this.mindMap.lineDraw,this.root=null,this.lru=new sb(this.mindMap.opt.maxNodeCacheCount),this.rootNodeCenterOffset=null}doLayout(){throw new Error("【computed】方法为必要方法,需要子类进行重写!")}renderLine(){throw new Error("【renderLine】方法为必要方法,需要子类进行重写!")}renderExpandBtn(){throw new Error("【renderExpandBtn】方法为必要方法,需要子类进行重写!")}renderGeneralization(){}cacheNode(t,e){this.renderer.nodeCache[t]=e,this.lru.add(t,e)}checkIsNeedResizeSources(){return[ut.CHANGE_THEME].includes(this.renderer.renderSource)}checkIsLayerTypeChange(t,e){if(t>=2&&e>=2)return!1;if(t>=2&&e<2||t<2&&e>=2)return!0}checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(t){this.renderer.renderSource===ut.CHANGE_LAYOUT&&(t.needRerenderExpandBtnPlaceholderRect=!0)}checkIsNodeDataChange(t,e){return t&&(t=typeof t=="string"?JSON.parse(t):t,t.isActive=e.isActive,t.expand=e.expand,t=JSON.stringify(t)),t!==JSON.stringify(e)}createNode(t,e,i,n,o,s){const a={};this.mindMap.nodeInnerPrefixList.forEach(c=>{if(c.createNodeData){const[u,f]=c.createNodeData({data:t,parent:e,ancestors:s,layerIndex:n,index:o});a[u]=f}});const l=t.data.uid;let h=null;if(t&&t._node&&!this.renderer.reRender){h=t._node;const c=this.checkIsLayerTypeChange(h.layerIndex,n);h.reset(),h.layerIndex=n,i?h.isRoot=!0:h.parent=e._node,this.cacheNode(t._node.uid,h),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(h);let u=!1;this.mindMap.nodeInnerPrefixList.forEach(p=>{if(p.updateNodeData){const m=p.updateNodeData(h,a);m&&(u=m)}});const f=this.checkIsNeedResizeSources(),d=this.checkIsNodeDataChange(t._node.nodeDataSnapshot,t.data);(f||d||c||h.getData("resetRichText")||h.getData("needUpdate")||u)&&(h.getSize(),h.needLayout=!0),this.checkGetGeneralizationChange(h,f)}else if((this.lru.has(l)||this.renderer.lastNodeCache[l])&&!this.renderer.reRender){h=this.lru.get(l)||this.renderer.lastNodeCache[l];const c=JSON.stringify(h.getData()),u=this.checkIsLayerTypeChange(h.layerIndex,n);h.reset(),h.nodeData=h.handleData(t||{}),h.layerIndex=n,i?h.isRoot=!0:h.parent=e._node,this.cacheNode(l,h),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(h),t._node=h;const f=this.checkIsNeedResizeSources(),d=this.checkIsNodeDataChange(c,t.data);let p=!1;this.mindMap.nodeInnerPrefixList.forEach(m=>{if(m.updateNodeData){const v=m.updateNodeData(h,a);v&&(p=v)}}),(f||d||u||h.getData("resetRichText")||h.getData("needUpdate")||p)&&(h.getSize(),h.needLayout=!0),this.checkGetGeneralizationChange(h,f)}else{const c=l||Di();h=new xs({data:t,uid:c,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:n,isRoot:i,parent:i?null:e._node,...a}),t.data.uid=c,this.cacheNode(c,h),t._node=h}return t.data.isActive&&this.renderer.addNodeToActiveList(h),this.mindMap.renderer.findActiveNodeIndex(h)!==-1&&h.setData({isActive:!0}),i?this.root=h:e._node.addChildren(h),h}checkGetGeneralizationChange(t,e){const i=t.getData("generalization");i&&t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach((n,o)=>{const s=n.generalizationNode,a=s.getData(),l=i[o];(e||l&&JSON.stringify(a)!==JSON.stringify(l))&&(l&&(s.nodeData.data=l),s.getSize(),s.needLayout=!0)})}formatPosition(t,e,i){return typeof t=="number"?t:Ci[t]!==void 0?e*Ci[t]:/^\d\d*%$/.test(t)?Number.parseFloat(t)/100*e:(e-i)/2}formatInitRootNodePosition(t){const{CENTER:e}=ut.INIT_ROOT_NODE_POSITION;return(!t||!Array.isArray(t)||t.length<2)&&(t=[e,e]),t}setNodeCenter(t,e){let{initRootNodePosition:i}=this.mindMap.opt;i=this.formatInitRootNodePosition(e||i),t.left=this.formatPosition(i[0],this.mindMap.width,t.width),t.top=this.formatPosition(i[1],this.mindMap.height,t.height)}getRootCenterOffset(t,e){if(this.rootNodeCenterOffset)return this.rootNodeCenterOffset;let{initRootNodePosition:i}=this.mindMap.opt;const{CENTER:n}=ut.INIT_ROOT_NODE_POSITION;if(i=this.formatInitRootNodePosition(i),i[0]===n&&i[1]===n)this.rootNodeCenterOffset={x:0,y:0};else{const o={width:t,height:e},s={width:t,height:e};this.setNodeCenter(o,[n,n]),this.setNodeCenter(s),this.rootNodeCenterOffset={x:s.left-o.left,y:s.top-o.top}}return this.rootNodeCenterOffset}updateChildren(t,e,i){t.forEach(n=>{n[e]+=i,n.children&&n.children.length&&!n.hasCustomPosition()&&this.updateChildren(n.children,e,i)})}updateChildrenPro(t,e){t.forEach(i=>{Object.keys(e).forEach(n=>{i[n]+=e[n]}),i.children&&i.children.length&&!i.hasCustomPosition()&&this.updateChildrenPro(i.children,e)})}getNodeAreaWidth(t,e=!1){let i=[],n=0,o=(s,a)=>{e&&s.checkHasGeneralization()&&(n+=s._generalizationNodeWidth),s.children.length?(a+=s.width/2,s.children.forEach(l=>{o(l,a)})):(a+=s.width,i.push(a))};return o(t,0),Math.max(...i)+n}quadraticCurvePath(t,e,i,n,o=!1){let s,a;return o?(s=t+(i-t)*.8,a=e+(n-e)*.2):(s=t+(i-t)*.2,a=e+(n-e)*.8),`M ${t},${e} Q ${s},${a} ${i},${n}`}cubicBezierPath(t,e,i,n,o=!1){let s,a,l,h;return o?(s=t,a=e+(n-e)/2,l=i,h=a):(s=t+(i-t)/2,a=e,l=s,h=n),`M ${t},${e} C ${s},${a} ${l},${h} ${i},${n}`}computeNewPoint(t,e,i=0){if(t[0]===e[0])return e[1]>t[1]?[e[0],e[1]-i]:[e[0],e[1]+i];if(t[1]===e[1])return e[0]>t[0]?[e[0]-i,e[1]]:[e[0]+i,e[1]]}createFoldLine(t){const{lineRadius:e}=this.mindMap.themeConfig,i=t.length;let n="",o="";if(i>=3&&e>0){const s=t[i-3],a=t[i-2],l=t[i-1];if(!(s[0].toFixed(0)===a[0].toFixed(0)&&a[0].toFixed(0)===l[0].toFixed(0)||s[1].toFixed(0)===a[1].toFixed(0)&&a[1].toFixed(0)===l[1].toFixed(0))){const c=this.computeNewPoint(s,a,e),u=this.computeNewPoint(l,a,e);o=`Q ${a[0]},${a[1]} ${u[0]},${u[1]}`,t.splice(i-2,1,c,o)}}return t.forEach((s,a)=>{if(typeof s=="string")n+=s;else{const[l,h]=s;a===0?n+=`M ${l},${h}`:n+=`L ${l},${h}`}}),n}getMarginX(t){const{themeConfig:e,opt:i}=this.mindMap,{second:n,node:o}=e,s=i.hoverRectPadding*2;return t===1?n.marginX+s:o.marginX+s}getMarginY(t){const{themeConfig:e,opt:i}=this.mindMap,{second:n,node:o}=e,s=i.hoverRectPadding*2;return t===1?n.marginY+s:o.marginY+s}getNodeWidthWithGeneralization(t){return Math.max(t.width,t.checkHasGeneralization()?t._generalizationNodeWidth:0)}getNodeHeightWithGeneralization(t){return Math.max(t.height,t.checkHasGeneralization()?t._generalizationNodeHeight:0)}getNodeBoundaries(t,e){let{generalizationLineMargin:i,generalizationNodeMargin:n}=this.mindMap.themeConfig,o=c=>{let u=1/0,f=-1/0,d=1/0,p=-1/0;c.children&&c.children.length>0&&c.children.forEach(v=>{let{left:g,right:b,top:y,bottom:x}=o(v),C=v.checkHasGeneralization()&&v.getData("expand")?v._generalizationNodeWidth+n:0,R=v.checkHasGeneralization()&&v.getData("expand")?v._generalizationNodeHeight+n:0;g-(e==="h"?C:0)<u&&(u=g-(e==="h"?C:0)),b+(e==="h"?C:0)>f&&(f=b+(e==="h"?C:0)),y<d&&(d=y),x+(e==="v"?R:0)>p&&(p=x+(e==="v"?R:0))});let m={left:c.left,right:c.left+c.width,top:c.top,bottom:c.top+c.height};return{left:m.left<u?m.left:u,right:m.right>f?m.right:f,top:m.top<d?m.top:d,bottom:m.bottom>p?m.bottom:p}},{left:s,right:a,top:l,bottom:h}=o(t);return{left:s,right:a,top:l,bottom:h,generalizationLineMargin:i,generalizationNodeMargin:n}}getChildrenBoundaries(t,e,i=0,n){let{generalizationLineMargin:o,generalizationNodeMargin:s}=this.mindMap.themeConfig;const a=t.children.slice(i,n+1);let l=1/0,h=-1/0,c=1/0,u=-1/0;return a.forEach(f=>{const d=this.getNodeBoundaries(f,e);l=d.left<l?d.left:l,h=d.right>h?d.right:h,c=d.top<c?d.top:c,u=d.bottom>u?d.bottom:u}),{left:l,right:h,top:c,bottom:u,generalizationLineMargin:o,generalizationNodeMargin:s}}getNodeGeneralizationRenderBoundaries(t,e){let i=null;return t.range?i=this.getChildrenBoundaries(t.node,e,t.range[0],t.range[1]):i=this.getNodeBoundaries(t.node,e),i}getNodeActChildrenLength(t){return t.nodeData.children&&t.nodeData.children.length}setLineStyle(t,e,i,n){e.plot(this.transformPath(i)),t&&t(e,n,!0)}transformPath(t){const{customTransformNodeLinePath:e}=this.mindMap.opt;return e?e(t):t}}class O0 extends tn{constructor(t={},e){super(t),this.isUseLeft=e===ut.LAYOUT.LOGICAL_STRUCTURE_LEFT}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}])}computedBaseValue(){let t=0;ge(this.renderer.renderTree,null,(e,i,n,o,s,a)=>{let l=this.createNode(e,i,n,o,s,a);if(l.sortIndex=t,t++,n?this.setNodeCenter(l):this.isUseLeft?l.left=i._node.left-l.width-this.getMarginX(o):l.left=i._node.left+i._node.width+this.getMarginX(o),!e.data.expand)return!0},(e,i,n,o)=>{let s=e.data.expand===!1?0:e._node.children.length;e._node.childrenAreaHeight=s?e._node.children.reduce((l,h)=>l+h.height,0)+(s+1)*this.getMarginY(o+1):0;let a=e._node.checkHasGeneralization()?e._node._generalizationNodeHeight+this.getMarginY(o+1):0;e._node.childrenAreaHeight2=Math.max(e._node.childrenAreaHeight,a)},!0,0)}computedTopValue(){ge(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let o=this.getMarginY(n+1),a=t.top+t.height/2-t.childrenAreaHeight/2+o;t.children.forEach(l=>{l.top=a,a+=l.height+o})}},null,!0)}adjustTopValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let o=t.childrenAreaHeight2-this.getMarginY(n+1)*2-t.height;o>0&&this.updateBrothers(t,o/2)},null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.uid===t.uid||o.hasCustomPosition())return;let a=0;s<n?a=-e:s>n&&(a=e),o.top+=a,o.children&&o.children.length&&this.updateChildren(o.children,"top",a)}),this.updateBrothers(t.parent,e)}}renderLine(t,e,i,n){n==="curve"?this.renderLineCurve(t,e,i):n==="direct"?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);let f=(this.getMarginX(t.layerIndex+1)-l)*.6;this.isUseLeft&&(f*=-1);let d=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((p,m)=>{let v;this.isUseLeft?v=t.layerIndex===0?n:n-l:v=t.layerIndex===0?n+s:n+s+l;let g=o+a/2,b=this.isUseLeft?p.left+p.width:p.left,y=p.top+p.height/2,x=d?p.width*(this.isUseLeft?-1:1):0;g=d&&!t.isRoot?g+a/2:g,y=d?y+p.height/2:y;let C=this.createFoldLine([[v,g],[v+f,g],[v+f,y],[b+x,y]]);this.setLineStyle(i,e[m],C,p)})}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);const{nodeUseLineStyle:u}=this.mindMap.themeConfig;t.children.forEach((f,d)=>{t.layerIndex===0&&(l=0);let p=this.isUseLeft?n-l:n+s+l,m=o+a/2,v=this.isUseLeft?f.left+f.width:f.left,g=f.top+f.height/2;m=u&&!t.isRoot?m+a/2:m,g=u?g+f.height/2:g;let b=u?` L ${this.isUseLeft?f.left:f.left+f.width},${g}`:"",y=`M ${p},${m} L ${v},${g}`+b;this.setLineStyle(i,e[d],y,f)})}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);const{nodeUseLineStyle:u,rootLineStartPositionKeepSameInCurve:f,rootLineKeepSameInCurve:d}=this.mindMap.themeConfig;t.children.forEach((p,m)=>{t.layerIndex===0&&(l=0);let v;this.isUseLeft?v=t.layerIndex===0&&!f?n+s/2:n-l:v=t.layerIndex===0&&!f?n+s/2:n+s+l;let g=o+a/2,b=this.isUseLeft?p.left+p.width:p.left,y=p.top+p.height/2,x="";g=u&&!t.isRoot?g+a/2:g,y=u?y+p.height/2:y;let C;this.isUseLeft?C=u?` L ${p.left},${y}`:"":C=u?` L ${p.left+p.width},${y}`:"",t.isRoot&&!d?x=this.quadraticCurvePath(v,g,b,y)+C:x=this.cubicBezierPath(v,g,b,y)+C,this.setLineStyle(i,e[m],x,p)})}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o,layerIndex:s}=t;s===0&&(o=0);let{translateX:a,translateY:l}=e.transform(),h=this.mindMap.themeConfig.nodeUseLineStyle?n/2:0,c=this.isUseLeft?0-o:i,u=n/2+h;c===a&&u===l||e.translate(c-a,u-l)}renderGeneralization(t){t.forEach(e=>{let{left:i,top:n,bottom:o,right:s,generalizationLineMargin:a,generalizationNodeMargin:l}=this.getNodeGeneralizationRenderBoundaries(e,"h"),h=this.isUseLeft?i-a:s+a,c=h,u=n,f=h,d=o,p=c+(this.isUseLeft?-20:20),m=u+(d-u)/2,v=`M ${c},${u} Q ${p},${m} ${f},${d}`;e.generalizationLine.plot(v),e.generalizationNode.left=h+(this.isUseLeft?-l:l)-(this.isUseLeft?e.generalizationNode.width:0),e.generalizationNode.top=n+(o-n-e.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n){this.isUseLeft?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}}let ab=class extends tn{constructor(t={}){super(t)}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}])}computedBaseValue(){ge(this.renderer.renderTree,null,(t,e,i,n,o,s)=>{let a=this.createNode(t,e,i,n,o,s);if(i?this.setNodeCenter(a):(e._node.dir?a.dir=e._node.dir:a.dir=a.getData("dir")||(o%2===0?ut.LAYOUT_GROW_DIR.RIGHT:ut.LAYOUT_GROW_DIR.LEFT),a.left=a.dir===ut.LAYOUT_GROW_DIR.RIGHT?e._node.left+e._node.width+this.getMarginX(n):e._node.left-this.getMarginX(n)-a.width),!t.data.expand)return!0},(t,e,i,n)=>{if(!t.data.expand){t._node.leftChildrenAreaHeight=0,t._node.rightChildrenAreaHeight=0;return}let o=0,s=0,a=0,l=0;t._node.children.forEach(c=>{c.dir===ut.LAYOUT_GROW_DIR.LEFT?(o++,a+=c.height):(s++,l+=c.height)}),t._node.leftChildrenAreaHeight=a+(o+1)*this.getMarginY(n+1),t._node.rightChildrenAreaHeight=l+(s+1)*this.getMarginY(n+1);let h=t._node.checkHasGeneralization()?t._node._generalizationNodeHeight+this.getMarginY(n+1):0;t._node.leftChildrenAreaHeight2=Math.max(t._node.leftChildrenAreaHeight,h),t._node.rightChildrenAreaHeight2=Math.max(t._node.rightChildrenAreaHeight,h)},!0,0)}computedTopValue(){ge(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let o=this.getMarginY(n+1),s=t.top+t.height/2+o,a=s-t.leftChildrenAreaHeight/2,l=s-t.rightChildrenAreaHeight/2;t.children.forEach(h=>{h.dir===ut.LAYOUT_GROW_DIR.LEFT?(h.top=a,a+=h.height+o):(h.top=l,l+=h.height+o)})}},null,!0)}adjustTopValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let o=this.getMarginY(n+1)*2+t.height,s=t.leftChildrenAreaHeight2-o,a=t.rightChildrenAreaHeight2-o;(s>0||a>0)&&this.updateBrothers(t,s/2,a/2)},null,!0)}updateBrothers(t,e,i){if(t.parent){let n=t.parent.children.filter(s=>s.dir===t.dir),o=oi(t,n);n.forEach((s,a)=>{if(s.hasCustomPosition())return;let l=0,h=s.dir===ut.LAYOUT_GROW_DIR.LEFT?e:i;a<o?l=-h:a>o&&(l=h),s.top+=l,s.children&&s.children.length&&this.updateChildren(s.children,"top",l)}),this.updateBrothers(t.parent,e,i)}}renderLine(t,e,i,n){n==="curve"?this.renderLineCurve(t,e,i):n==="direct"?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);let f=(this.getMarginX(t.layerIndex+1)-l)*.6,d=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((p,m)=>{let v=0,g=0,b=d?p.width:0;p.dir===ut.LAYOUT_GROW_DIR.LEFT?(g=-f,v=t.layerIndex===0?n:n-l,b=-b):(g=f,v=t.layerIndex===0?n+s:n+s+l);let y=o+a/2,x=p.dir===ut.LAYOUT_GROW_DIR.LEFT?p.left+p.width:p.left,C=p.top+p.height/2;y=d&&!t.isRoot?y+a/2:y,C=d?C+p.height/2:C;let R=this.createFoldLine([[v,y],[v+g,y],[v+g,C],[x+b,C]]);this.setLineStyle(i,e[m],R,p)})}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);const{nodeUseLineStyle:u}=this.mindMap.themeConfig;t.children.forEach((f,d)=>{t.layerIndex===0&&(l=0);let p=f.dir===ut.LAYOUT_GROW_DIR.LEFT?n-l:n+s+l,m=o+a/2,v=f.dir===ut.LAYOUT_GROW_DIR.LEFT?f.left+f.width:f.left,g=f.top+f.height/2;m=u&&!t.isRoot?m+a/2:m,g=u?g+f.height/2:g;let b="";u&&(f.dir===ut.LAYOUT_GROW_DIR.LEFT?b=` L ${f.left},${g}`:b=` L ${f.left+f.width},${g}`);let y=`M ${p},${m} L ${v},${g}`+b;this.setLineStyle(i,e[d],y,f)})}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);const{nodeUseLineStyle:u,rootLineKeepSameInCurve:f,rootLineStartPositionKeepSameInCurve:d}=this.mindMap.themeConfig;t.children.forEach((p,m)=>{t.layerIndex===0&&(l=0);let v=t.layerIndex===0&&!d?n+s/2:p.dir===ut.LAYOUT_GROW_DIR.LEFT?n-l:n+s+l,g=o+a/2,b=p.dir===ut.LAYOUT_GROW_DIR.LEFT?p.left+p.width:p.left,y=p.top+p.height/2,x="";g=u&&!t.isRoot?g+a/2:g,y=u?y+p.height/2:y;let C="";u&&(p.dir===ut.LAYOUT_GROW_DIR.LEFT?C=` L ${p.left},${y}`:C=` L ${p.left+p.width},${y}`),t.isRoot&&!f?x=this.quadraticCurvePath(v,g,b,y)+C:x=this.cubicBezierPath(v,g,b,y)+C,this.setLineStyle(i,e[m],x,p)})}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o}=t,{translateX:s,translateY:a}=e.transform(),l=this.mindMap.themeConfig.nodeUseLineStyle?n/2:0,h=t.dir===ut.LAYOUT_GROW_DIR.LEFT?0-o:i,c=n/2+l;if(h===s&&c===a)return;let u=h-s,f=c-a;e.translate(u,f)}renderGeneralization(t){t.forEach(e=>{let i=e.node.dir===ut.LAYOUT_GROW_DIR.LEFT,{top:n,bottom:o,left:s,right:a,generalizationLineMargin:l,generalizationNodeMargin:h}=this.getNodeGeneralizationRenderBoundaries(e,"h"),c=i?s-l:a+l,u=c,f=n,d=c,p=o,m=u+(i?-20:20),v=f+(p-f)/2,g=`M ${u},${f} Q ${m},${v} ${d},${p}`;e.generalizationLine.plot(g),e.generalizationNode.left=c+(i?-h:h)-(i?e.generalizationNode.width:0),e.generalizationNode.top=n+(o-n-e.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,o){o.dir===ut.LAYOUT_GROW_DIR.LEFT?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}};class lb extends tn{constructor(t={}){super(t)}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){ge(this.renderer.renderTree,null,(t,e,i,n,o,s)=>{let a=this.createNode(t,e,i,n,o,s);if(i?this.setNodeCenter(a):e._node.isRoot&&(a.top=e._node.top+e._node.height+this.getMarginX(n)),!t.data.expand)return!0},(t,e,i,n)=>{if(i){let o=t.data.expand===!1?0:t._node.children.length;t._node.childrenAreaWidth=o?t._node.children.reduce((s,a)=>s+a.width,0)+(o+1)*this.getMarginX(n+1):0}},!0,0)}computedLeftTopValue(){ge(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let o=this.getMarginX(n+1),s=this.getMarginY(n+1);if(i){let l=t.left+t.width/2-t.childrenAreaWidth/2+o;t.children.forEach(h=>{h.left=l,l+=h.width+o})}else{let a=t.top+this.getNodeHeightWithGeneralization(t)+s+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach(l=>{l.left=t.left+t.width*.5,l.top=a,a+=this.getNodeHeightWithGeneralization(l)+s+(this.getNodeActChildrenLength(l)>0?l.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;if(e&&e.isRoot){let a=this.getNodeAreaWidth(t,!0)-t.width;a>0&&this.updateBrothersLeft(t,a)}let o=t.children.length;if(e&&!e.isRoot&&o>0){let s=this.getMarginY(n+1),a=t.children.reduce((l,h)=>l+this.getNodeHeightWithGeneralization(h)+(this.getNodeActChildrenLength(h)>0?h.expandBtnSize:0),0)+o*s;this.updateBrothersTop(t,a)}},(t,e,i)=>{if(i){let{right:n,left:o}=this.getNodeBoundaries(t,"h"),s=n-o,a=t.left-o-(s-t.width)/2;this.updateChildren(t.children,"left",a)}},!0)}updateBrothersLeft(t,e){if(t.parent){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{o.hasCustomPosition()||s<=n||(o.left+=e,o.children&&o.children.length&&this.updateChildren(o.children,"left",e))}),this.updateBrothersLeft(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.hasCustomPosition())return;let a=0;s>n&&(a=e),o.top+=a,o.children&&o.children.length&&this.updateChildren(o.children,"top",a)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);let u=t.children.length,f=this.getMarginX(t.layerIndex+1);if(t.isRoot){let d=n+s/2,p=o+a,m=f*.7,v=1/0,g=-1/0;t.children.forEach((y,x)=>{let C=y.left+y.width/2,R=y.top;C<v&&(v=C),C>g&&(g=C);let F=this.mindMap.themeConfig.nodeUseLineStyle?` L ${y.left},${R} L ${y.left+y.width},${R}`:"",U=`M ${C},${p+m} L ${C},${p+m>R?R+y.height:R}`+F;this.setLineStyle(i,e[x],U,y)}),v=Math.min(v,d),g=Math.max(g,d);let b=this.lineDraw.path();if(t.style.line(b),b.plot(this.transformPath(`M ${d},${p} L ${d},${p+m}`)),t._lines.push(b),i&&i(b,t),u>0){let y=this.lineDraw.path();t.style.line(y),y.plot(this.transformPath(`M ${v},${p+m} L ${g},${p+m}`)),t._lines.push(y),i&&i(y,t)}}else{let d=o+a,p=-1/0,m=t.left+t.width*.3;if(t.children.forEach((v,g)=>{let b=v.top+v.height/2;b>p&&(p=b);let y="",x=v.left,C=v.left+v.width<m,R=!1;C?x=v.left+v.width:v.left<m&&v.left+v.width>m&&(R=!0,b=v.top,p=b),b>o&&b<d?y=`M ${C?t.left:t.left+t.width},${b} L ${x},${b}`:b<d?(R&&(b=v.top+v.height,x=m),y=`M ${m},${o} L ${m},${b} L ${x},${b}`):(R&&(x=m),y=`M ${m},${b} L ${x},${b}`);let F=this.mindMap.themeConfig.nodeUseLineStyle?` L ${x},${b-v.height/2} L ${x},${b+v.height/2}`:"";y+=F,this.setLineStyle(i,e[g],y,v)}),u>0){let v=this.lineDraw.path();l=u>0?l:0,t.style.line(v),p<d+l?v.hide():(v.plot(this.transformPath(`M ${m},${d+l} L ${m},${p}`)),v.show()),t._lines.push(v),i&&i(v,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o,isRoot:s}=t;if(!s){let{translateX:a,translateY:l}=e.transform();e.translate(i*.3-o/2-a,n+o/2-l)}}renderGeneralization(t){t.forEach(e=>{let{top:i,bottom:n,right:o,generalizationLineMargin:s,generalizationNodeMargin:a}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=o+s,h=i,c=o+s,u=n,f=l+20,d=h+(u-h)/2,p=`M ${l},${h} Q ${f},${d} ${c},${u}`;e.generalizationLine.plot(this.transformPath(p)),e.generalizationNode.left=o+a,e.generalizationNode.top=i+(n-i-e.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,o){t.size(i,e).x(0).y(n)}}class hb extends tn{constructor(t={}){super(t)}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedLeftValue()},()=>{this.adjustLeftValue()},()=>{t(this.root)}])}computedBaseValue(){ge(this.renderer.renderTree,null,(t,e,i,n,o,s)=>{let a=this.createNode(t,e,i,n,o,s);if(i?this.setNodeCenter(a):a.top=e._node.top+e._node.height+this.getMarginX(n),!t.data.expand)return!0},(t,e,i,n)=>{let o=t.data.expand===!1?0:t._node.children.length;t._node.childrenAreaWidth=o?t._node.children.reduce((a,l)=>a+l.width,0)+(o+1)*this.getMarginY(n+1):0;let s=t._node.checkHasGeneralization()?t._node._generalizationNodeWidth+this.getMarginY(n+1):0;t._node.childrenAreaWidth2=Math.max(t._node.childrenAreaWidth,s)},!0,0)}computedLeftValue(){ge(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let o=this.getMarginY(n+1),a=t.left+t.width/2-t.childrenAreaWidth/2+o;t.children.forEach(l=>{l.left=a,a+=l.width+o})}},null,!0)}adjustLeftValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let o=t.childrenAreaWidth2-this.getMarginY(n+1)*2-t.width;o>0&&this.updateBrothers(t,o/2)},null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.hasCustomPosition())return;let a=0;s<n?a=-e:s>n&&(a=e),o.left+=a,o.children&&o.children.length&&this.updateChildren(o.children,"left",a)}),this.updateBrothers(t.parent,e)}}renderLine(t,e,i,n){n==="curve"?this.renderLineCurve(t,e,i):n==="direct"?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);const{nodeUseLineStyle:u,rootLineStartPositionKeepSameInCurve:f,rootLineKeepSameInCurve:d}=this.mindMap.themeConfig;t.children.forEach((p,m)=>{t.layerIndex===0&&(l=0);let v=n+s/2,g=t.layerIndex===0&&!f?o+a/2:o+a+l,b=p.left+p.width/2,y=p.top,x="",C=u?` L ${p.left},${y} L ${p.left+p.width},${y}`:"";t.isRoot&&!d?x=this.quadraticCurvePath(v,g,b,y,!0)+C:x=this.cubicBezierPath(v,g,b,y,!0)+C,this.setLineStyle(i,e[m],x,p)})}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a}=t;const{nodeUseLineStyle:l}=this.mindMap.themeConfig;let h=n+s/2,c=o+a;t.children.forEach((u,f)=>{let d=u.left+u.width/2,p=u.top,m=l?` L ${u.left},${p} L ${u.left+u.width},${p}`:"",v=`M ${h},${c} L ${d},${p}`+m;this.setLineStyle(i,e[f],v,u)})}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l,isRoot:h}=t;const{alwaysShowExpandBtn:c,notShowExpandBtn:u}=this.mindMap.opt;(!c||u)&&(l=0);let f=n+s/2,d=o+a,m=this.getMarginX(t.layerIndex+1)*.7,v=1/0,g=-1/0,b=t.children.length;t.children.forEach((x,C)=>{let R=x.left+x.width/2,F=d+m>x.top?x.top+x.height:x.top;R<v&&(v=R),R>g&&(g=R);let U=this.mindMap.themeConfig.nodeUseLineStyle?` L ${x.left},${F} L ${x.left+x.width},${F}`:"",T=`M ${R},${d+m} L ${R},${F}`+U;this.setLineStyle(i,e[C],T,x)}),v=Math.min(f,v),g=Math.max(f,g);let y=this.lineDraw.path();if(t.style.line(y),l=b>0&&!h?l:0,y.plot(this.transformPath(`M ${f},${d+l} L ${f},${d+m}`)),t._lines.push(y),i&&i(y,t),b>0){let x=this.lineDraw.path();t.style.line(x),x.plot(this.transformPath(`M ${v},${d+m} L ${g},${d+m}`)),t._lines.push(x),i&&i(x,t)}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o}=t,{translateX:s,translateY:a}=e.transform();e.translate(i/2-o/2-s,n+o/2-a)}renderGeneralization(t){t.forEach(e=>{let{bottom:i,left:n,right:o,generalizationLineMargin:s,generalizationNodeMargin:a}=this.getNodeGeneralizationRenderBoundaries(e,"v"),l=n,h=i+s,c=o,u=i+s,f=l+(c-l)/2,d=h+20,p=`M ${l},${h} Q ${f},${d} ${c},${u}`;e.generalizationLine.plot(this.transformPath(p)),e.generalizationNode.top=i+a,e.generalizationNode.left=n+(o-n-e.generalizationNode.width)/2})}renderExpandBtnRect(t,e,i,n,o){t.size(i,e).x(0).y(n)}}class R0 extends tn{constructor(t={},e){super(t),this.layout=e}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){ge(this.renderer.renderTree,null,(t,e,i,n,o,s)=>{let a=this.createNode(t,e,i,n,o,s);if(i?this.setNodeCenter(a):(this.layout===ut.LAYOUT.TIMELINE2?e._node.dir?a.dir=e._node.dir:a.dir=o%2===0?ut.LAYOUT_GROW_DIR.BOTTOM:ut.LAYOUT_GROW_DIR.TOP:a.dir="",e._node.isRoot&&(a.top=e._node.top+(t._node.height>e._node.height?-(t._node.height-e._node.height)/2:(e._node.height-t._node.height)/2))),!t.data.expand)return!0},null,!0,0)}computedLeftTopValue(){ge(this.root,null,(t,e,i,n,o)=>{if(t.getData("expand")&&t.children&&t.children.length){let s=this.getMarginX(n+1),a=this.getMarginY(n+1);if(i){let h=t.left+t.width+s;t.children.forEach(c=>{c.left=h,h+=c.width+s})}else{let l=t.top+t.height+a+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach(h=>{h.left=t.left+t.width*.5,h.top=l,l+=h.height+a+(this.getNodeActChildrenLength(h)>0?h.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;t.isRoot&&this.updateBrothersLeft(t);let o=t.children.length;if(e&&!e.isRoot&&o>0){let s=this.getMarginY(n+1),a=t.children.reduce((l,h)=>l+h.height+(this.getNodeActChildrenLength(h)>0?h.expandBtnSize:0),0)+o*s;this.updateBrothersTop(t,a)}},(t,e,i,n)=>{e&&e.isRoot&&t.dir===ut.LAYOUT_GROW_DIR.TOP&&t.children.forEach(o=>{let s=this.getNodeAreaHeight(o),a=o.top;o.top=t.top-(o.top-t.top)-s+t.height,this.updateChildren(o.children,"top",o.top-a)})},!0)}getNodeAreaHeight(t){let e=0,i=n=>{e+=n.height+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)+this.getMarginY(n.layerIndex),n.children.length&&n.children.forEach(o=>{i(o)})};return i(t),e}updateBrothersLeft(t){let e=t.children,i=0;e.forEach(n=>{n.left+=i,n.children&&n.children.length&&this.updateChildren(n.children,"left",i);let{left:o,right:s}=this.getNodeBoundaries(n,"h"),l=s-o-n.width;l>0&&(i+=l)})}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.hasCustomPosition())return;let a=0;s>n&&(a=e),o.top+=a,o.children&&o.children.length&&this.updateChildren(o.children,"top",a)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0);let u=t.children.length;if(t.isRoot){let f=t;t.children.forEach((d,p)=>{let m=f.left+f.width,v=d.left,g=t.top+t.height/2,b=`M ${m},${g} L ${v},${g}`;this.setLineStyle(i,e[p],b,d),f=d})}else{let f=-1/0,d=1/0,p=t.left+t.width*.3;if(t.children.forEach((m,v)=>{let g=m.top+m.height/2;g>f&&(f=g),g<d&&(d=g);let b=`M ${p},${g} L ${m.left},${g}`;this.setLineStyle(i,e[v],b,m)}),u>0){let m=this.lineDraw.path();l=u>0?l:0,t.parent&&t.parent.isRoot&&t.dir===ut.LAYOUT_GROW_DIR.TOP?m.plot(this.transformPath(`M ${p},${o} L ${p},${d}`)):m.plot(this.transformPath(`M ${p},${o+a+l} L ${p},${f}`)),t.style.line(m),t._lines.push(m),i&&i(m,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o,isRoot:s}=t;if(!s){let{translateX:a,translateY:l}=e.transform();t.parent&&t.parent.isRoot&&t.dir===ut.LAYOUT_GROW_DIR.TOP?e.translate(i*.3-o/2-a,-o/2-l):e.translate(i*.3-o/2-a,n+o/2-l)}}renderGeneralization(t){t.forEach(e=>{let{top:i,bottom:n,right:o,generalizationLineMargin:s,generalizationNodeMargin:a}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=o+s,h=i,c=o+s,u=n,f=l+20,d=h+(u-h)/2,p=`M ${l},${h} Q ${f},${d} ${c},${u}`;e.generalizationLine.plot(this.transformPath(p)),e.generalizationNode.left=o+a,e.generalizationNode.top=i+(n-i-e.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,o){if(this.layout===ut.LAYOUT.TIMELINE)t.size(i,e).x(0).y(n);else{let s="";o.dir===ut.LAYOUT_GROW_DIR.TOP?s=o.layerIndex===1?ut.LAYOUT_GROW_DIR.TOP:ut.LAYOUT_GROW_DIR.BOTTOM:s=ut.LAYOUT_GROW_DIR.BOTTOM,s===ut.LAYOUT_GROW_DIR.TOP?t.size(i,e).x(0).y(-e):t.size(i,e).x(0).y(n)}}}class cb extends tn{constructor(t={},e){super(t),this.layout=e}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){ge(this.renderer.renderTree,null,(t,e,i,n,o,s)=>{let a=this.createNode(t,e,i,n,o,s);if(i?this.setNodeCenter(a):(e._node.dir?a.dir=e._node.dir:a.dir=o%2===0?ut.LAYOUT_GROW_DIR.RIGHT:ut.LAYOUT_GROW_DIR.LEFT,e._node.isRoot?a.left=e._node.left+(t._node.width>e._node.width?-(t._node.width-e._node.width)/2:(e._node.width-t._node.width)/2):a.left=a.dir===ut.LAYOUT_GROW_DIR.RIGHT?e._node.left+e._node.width+this.getMarginX(n):e._node.left-this.getMarginX(n)-a.width),!t.data.expand)return!0},(t,e,i,n)=>{if(i)return;let o=t.data.expand===!1?0:t._node.children.length;t._node.childrenAreaHeight=o?t._node.children.reduce((s,a)=>s+a.height,0)+(o+1)*this.getMarginY(n+1):0},!0,0)}computedTopValue(){ge(this.root,null,(t,e,i,n,o)=>{if(t.getData("expand")&&t.children&&t.children.length){let s=this.getMarginY(n+1);if(i){let l=t.top+t.height+s;t.children.forEach(h=>{h.top=l,l+=h.height+s})}else{let a=this.getMarginY(n+1),h=t.top+t.height/2+a-t.childrenAreaHeight/2;t.children.forEach(c=>{c.top=h,h+=c.height+a})}}},null,!0)}adjustLeftTopValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand")||i)return;let o=this.getMarginY(n+1)*2+t.height,s=t.childrenAreaHeight-o;s>0&&this.updateBrothers(t,s/2)},null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.hasCustomPosition()||!t.parent.isRoot&&o.uid===t.uid)return;let a=0;t.parent.isRoot?s<n?a=0:s>n?a=e*2:a=e:s<n?a=-e:s>n&&(a=e),o.top+=a,o.children&&o.children.length&&this.updateChildren(o.children,"top",a)}),this.updateBrothers(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.hasCustomPosition())return;let a=0;s>n&&(a=e),o.top+=a,o.children&&o.children.length&&this.updateChildren(o.children,"top",a)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i,n){n==="curve"?this.renderLineCurve(t,e,i):n==="direct"?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{expandBtnSize:n}=t;const{alwaysShowExpandBtn:o,notShowExpandBtn:s}=this.mindMap.opt;if((!o||s)&&(n=0),t.isRoot){let a=t;t.children.forEach((l,h)=>{let c=a.top+a.height,u=l.top,f=t.left+t.width/2,d=`M ${f},${c} L ${f},${u}`;this.setLineStyle(i,e[h],d,l),a=l})}else if(t.dir===ut.LAYOUT_GROW_DIR.RIGHT){let a=t.left+t.width,l=t.top+t.height/2,c=(this.getMarginX(t.layerIndex+1)-n)*.6;t.children.forEach((u,f)=>{let d=u.left,p=u.top+u.height/2,m=this.createFoldLine([[a,l],[a+c,l],[a+c,p],[d,p]]);this.setLineStyle(i,e[f],m,u)})}else{let a=t.left,l=t.top+t.height/2,c=(this.getMarginX(t.layerIndex+1)-n)*.6;t.children.forEach((u,f)=>{let d=u.left+u.width,p=u.top+u.height/2,m=this.createFoldLine([[a,l],[a-c,l],[a-c,p],[d,p]]);this.setLineStyle(i,e[f],m,u)})}}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0),t.children.forEach((u,f)=>{if(t.isRoot){let d=t;t.children.forEach((p,m)=>{let v=d.top+d.height,g=p.top,b=t.left+t.width/2,y=`M ${b},${v} L ${b},${g}`;this.setLineStyle(i,e[m],y,p),d=p})}else{let d=u.dir===ut.LAYOUT_GROW_DIR.LEFT?n-l:n+s+l,p=o+a/2,m=u.dir===ut.LAYOUT_GROW_DIR.LEFT?u.left+u.width:u.left,v=u.top+u.height/2,g=`M ${d},${p} L ${m},${v}`;this.setLineStyle(i,e[f],g,u)}})}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:o,width:s,height:a,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:c}=this.mindMap.opt;(!h||c)&&(l=0),t.children.forEach((u,f)=>{if(t.isRoot){let d=t;t.children.forEach((p,m)=>{let v=d.top+d.height,g=p.top,b=t.left+t.width/2,y=`M ${b},${v} L ${b},${g}`;this.setLineStyle(i,e[m],y,p),d=p})}else{let d=u.dir===ut.LAYOUT_GROW_DIR.LEFT?n-l:n+s+l,p=o+a/2,m=u.dir===ut.LAYOUT_GROW_DIR.LEFT?u.left+u.width:u.left,v=u.top+u.height/2,g=this.cubicBezierPath(d,p,m,v);this.setLineStyle(i,e[f],g,u)}})}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o,isRoot:s}=t;if(!s){let{translateX:a,translateY:l}=e.transform();t.dir===ut.LAYOUT_GROW_DIR.RIGHT?e.translate(i-a,n/2-l):e.translate(-o-a,n/2-l)}}renderGeneralization(t){t.forEach(e=>{let i=e.node.dir===ut.LAYOUT_GROW_DIR.LEFT,{top:n,bottom:o,left:s,right:a,generalizationLineMargin:l,generalizationNodeMargin:h}=this.getNodeGeneralizationRenderBoundaries(e,"h"),c=i?s-l:a+l,u=c,f=n,d=c,p=o,m=u+(i?-20:20),v=f+(p-f)/2,g=`M ${u},${f} Q ${m},${v} ${d},${p}`;e.generalizationLine.plot(this.transformPath(g)),e.generalizationNode.left=c+(i?-h:h)-(i?e.generalizationNode.width:0),e.generalizationNode.top=n+(o-n-e.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,o){o.dir===ut.LAYOUT_GROW_DIR.LEFT?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}}const wr={top:{renderExpandBtn({node:r,btn:t,expandBtnSize:e,translateX:i,translateY:n,width:o,height:s}){r.parent&&r.parent.isRoot?t.translate(o*.3-e/2-i,-e/2-n):t.translate(o*.3-e/2-i,s+e/2-n)},renderLine({node:r,line:t,top:e,x:i,lineLength:n,height:o,expandBtnSize:s,maxy:a,ctx:l}){r.parent&&r.parent.isRoot?t.plot(l.transformPath(`M ${i},${e} L ${i+n},${e-Math.tan(vo(l.mindMap.opt.fishboneDeg))*n}`)):t.plot(l.transformPath(`M ${i},${e+o+s} L ${i},${a}`))},computedLeftTopValue({layerIndex:r,node:t,ctx:e}){if(r>=1&&t.children){let i=e.getMarginY(r+1),n=t.left+t.width*e.childIndent,o=t.top+t.height+(e.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+i;t.children.forEach(s=>{s.left=n,s.top+=o,o+=s.height+(e.getNodeActChildrenLength(s)>0?s.expandBtnSize:0)+i})}},adjustLeftTopValueBefore({node:r,parent:t,ctx:e,layerIndex:i}){let n=r.children.length,o=e.getMarginY(i+1);if(t&&!t.isRoot&&n>0){let s=r.children.reduce((a,l)=>a+l.height+(e.getNodeActChildrenLength(l)>0?l.expandBtnSize:0)+o,0);e.updateBrothersTop(r,s)}},adjustLeftTopValueAfter({parent:r,node:t,ctx:e}){if(r&&r.isRoot){let i=e.getMarginY(t.layerIndex+1),n=t.expandBtnSize+i;t.children.forEach(o=>{let s=e.getNodeAreaHeight(o),a=o.top,l=o.left;o.top=t.top-(o.top-t.top)-s+t.height,o.left=t.left+t.width*e.indent+(s+n)/Math.tan(vo(e.mindMap.opt.fishboneDeg)),n+=s,e.updateChildrenPro(o.children,{top:o.top-a,left:o.left-l})})}}},bottom:{renderExpandBtn({node:r,btn:t,expandBtnSize:e,translateX:i,translateY:n,width:o,height:s}){r.parent&&r.parent.isRoot?t.translate(o*.3-e/2-i,s+e/2-n):t.translate(o*.3-e/2-i,-e/2-n)},renderLine({node:r,line:t,top:e,x:i,lineLength:n,height:o,miny:s,ctx:a}){r.parent&&r.parent.isRoot?t.plot(a.transformPath(`M ${i},${e+o} L ${i+n},${e+o+Math.tan(vo(a.mindMap.opt.fishboneDeg))*n}`)):t.plot(a.transformPath(`M ${i},${e} L ${i},${s}`))},computedLeftTopValue({layerIndex:r,node:t,ctx:e}){let i=e.getMarginY(r+1);if(r===1&&t.children){let n=t.left+t.width*e.childIndent,o=t.top+t.height+(e.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+i;t.children.forEach(s=>{s.left=n,s.top=o+(e.getNodeActChildrenLength(s)>0?s.expandBtnSize:0),o+=s.height+(e.getNodeActChildrenLength(s)>0?s.expandBtnSize:0)+i})}if(r>1&&t.children){let n=t.left+t.width*e.childIndent,o=t.top-(e.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)-i;t.children.forEach(s=>{s.left=n,s.top=o-s.height,o-=s.height+(e.getNodeActChildrenLength(s)>0?s.expandBtnSize:0)+i})}},adjustLeftTopValueBefore({node:r,ctx:t,layerIndex:e}){let i=t.getMarginY(e+1),n=r.children.length;if(e>2&&n>0){let o=r.children.reduce((s,a)=>s+a.height+(t.getNodeActChildrenLength(a)>0?a.expandBtnSize:0)+i,0);t.updateBrothersTop(r,-o)}},adjustLeftTopValueAfter({parent:r,node:t,ctx:e}){if(r&&r.isRoot){let i=e.getMarginY(t.layerIndex+1),n=0,o=t.expandBtnSize;t.children.forEach(s=>{let a=e.getNodeActChildrenLength(s)>0,l=e.getNodeAreaHeight(s),h=a?l-s.height-(a?s.expandBtnSize:0):0;h-=a?i:0;let c=n+h,u=s.left;s.top+=c,s.left=t.left+t.width*e.indent+(l+o)/Math.tan(vo(e.mindMap.opt.fishboneDeg)),n+=h,o+=l,e.updateChildrenPro(s.children,{top:c,left:s.left-u})})}}}};class ub extends tn{constructor(t={}){super(t),this.indent=.3,this.childIndent=.5}doLayout(t){Rn([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){ge(this.renderer.renderTree,null,(t,e,i,n,o,s)=>{let a=this.createNode(t,e,i,n,o,s);if(i)this.setNodeCenter(a);else if(e._node.dir?a.dir=e._node.dir:a.dir=o%2===0?ut.LAYOUT_GROW_DIR.TOP:ut.LAYOUT_GROW_DIR.BOTTOM,e._node.isRoot){let l=this.getMarginY(n);this.checkIsTop(a)?a.top=e._node.top-a.height-l:a.top=e._node.top+e._node.height+l}if(!t.data.expand)return!0},null,!0,0)}computedLeftTopValue(){ge(this.root,null,(t,e,i,n)=>{if(t.isRoot){let s=this.getMarginX(n+1),a=t.left+t.width+t.height+s,l=t.left+t.width+t.height+s;t.children.forEach(h=>{this.checkIsTop(h)?(h.left=a,a+=h.width+s):(h.left=l+20,l+=h.width+s)})}let o={layerIndex:n,node:t,ctx:this};this.checkIsTop(t)?wr.top.computedLeftTopValue(o):wr.bottom.computedLeftTopValue(o)},null,!0)}adjustLeftTopValue(){ge(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let o={node:t,parent:e,layerIndex:n,ctx:this};this.checkIsTop(t)?wr.top.adjustLeftTopValueBefore(o):wr.bottom.adjustLeftTopValueBefore(o)},(t,e)=>{let i={parent:e,node:t,ctx:this};if(this.checkIsTop(t)?wr.top.adjustLeftTopValueAfter(i):wr.bottom.adjustLeftTopValueAfter(i),t.isRoot){let n=0,o=0;t.children.forEach(s=>{if(this.checkIsTop(s)){s.left+=n,this.updateChildren(s.children,"left",n);let{left:a,right:l}=this.getNodeBoundaries(s,"h");n+=l-a}else{s.left+=o,this.updateChildren(s.children,"left",o);let{left:a,right:l}=this.getNodeBoundaries(s,"h");o+=l-a}})}},!0)}getNodeAreaHeight(t){let e=0,i=n=>{let o=this.getMarginY(n.layerIndex);e+=n.height+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)+o,n.children.length&&n.children.forEach(s=>{i(s)})};return i(t),e}updateBrothersLeft(t){let e=t.children,i=0;e.forEach(n=>{n.left+=i,n.children&&n.children.length&&this.updateChildren(n.children,"left",i);let{left:o,right:s}=this.getNodeBoundaries(n,"h"),l=s-o-n.width;l>0&&(i+=l)})}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=oi(t,i);i.forEach((o,s)=>{if(o.hasCustomPosition())return;let a=0;s>n&&(a=e),o.top+=a,o.children&&o.children.length&&this.updateChildren(o.children,"top",a)}),this.checkIsTop(t)?this.updateBrothersTop(t.parent,e):this.updateBrothersTop(t.parent,t.layerIndex===3?0:e)}}checkIsTop(t){return t.dir===ut.LAYOUT_GROW_DIR.TOP}renderLine(t,e,i){if(t.layerIndex!==1&&t.children.length<=0)return[];let{top:n,height:o,expandBtnSize:s}=t;const{alwaysShowExpandBtn:a,notShowExpandBtn:l}=this.mindMap.opt;(!a||l)&&(s=0);let h=t.children.length;if(t.isRoot){let c=-1/0;t.children.forEach(p=>{p.left>c&&(c=p.left);let m=this.getMarginY(p.layerIndex),v=p.left,g=t.height/2+m,b=g/Math.tan(vo(this.mindMap.opt.fishboneDeg)),y=this.lineDraw.path();this.checkIsTop(p)?y.plot(this.transformPath(`M ${v-b},${p.top+p.height+g} L ${p.left},${p.top+p.height}`)):y.plot(this.transformPath(`M ${v-b},${p.top-g} L ${v},${p.top}`)),t.style.line(y),t._lines.push(y),i&&i(y,t)});let u=t.top+t.height/2,f=t.height/2+this.getMarginY(t.layerIndex+1),d=this.lineDraw.path();d.plot(this.transformPath(`M ${t.left+t.width},${u} L ${c-f/Math.tan(vo(this.mindMap.opt.fishboneDeg))},${u}`)),t.style.line(d),t._lines.push(d),i&&i(d,t)}else{let c=-1/0,u=1/0,f=-1/0,d=t.left+t.width*this.indent;if(t.children.forEach((p,m)=>{p.left>f&&(f=p.left);let v=p.top+p.height/2;if(v>c&&(c=v),v<u&&(u=v),t.layerIndex>1){let g=`M ${d},${v} L ${p.left},${v}`;this.setLineStyle(i,e[m],g,p)}}),h>=0){let p=this.lineDraw.path();s=h>0?s:0;let m=f-t.left-t.width*this.indent;m=Math.max(m,0);let v={node:t,line:p,top:n,x:d,lineLength:m,height:o,expandBtnSize:s,maxy:c,miny:u,ctx:this};this.checkIsTop(t)?wr.top.renderLine(v):wr.bottom.renderLine(v),t.style.line(p),t._lines.push(p),i&&i(p,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:o,isRoot:s}=t;if(!s){let{translateX:a,translateY:l}=e.transform(),h={node:t,btn:e,expandBtnSize:o,translateX:a,translateY:l,width:i,height:n};this.checkIsTop(t)?wr.top.renderExpandBtn(h):wr.bottom.renderExpandBtn(h)}}renderGeneralization(t){t.forEach(e=>{let{top:i,bottom:n,right:o,generalizationLineMargin:s,generalizationNodeMargin:a}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=o+s,h=i,c=o+s,u=n,f=l+20,d=h+(u-h)/2,p=`M ${l},${h} Q ${f},${d} ${c},${u}`;e.generalizationLine.plot(this.transformPath(p)),e.generalizationNode.left=o+a,e.generalizationNode.top=i+(n-i-e.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,o){let s="";o.dir===ut.LAYOUT_GROW_DIR.TOP?s=o.layerIndex===1?ut.LAYOUT_GROW_DIR.TOP:ut.LAYOUT_GROW_DIR.BOTTOM:s=o.layerIndex===1?ut.LAYOUT_GROW_DIR.BOTTOM:ut.LAYOUT_GROW_DIR.TOP,s===ut.LAYOUT_GROW_DIR.TOP?t.size(i,e).x(0).y(-e):t.size(i,e).x(0).y(n)}}class db{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.currentNode=null,this.textEditNode=null,this.showTextEdit=!1,this.cacheEditingText="",this.hasBodyMousedown=!1,this.textNodePaddingX=5,this.textNodePaddingY=3,this.isNeedUpdateTextEditNode=!1,this.bindEvent()}bindEvent(){this.show=this.show.bind(this),this.onScale=this.onScale.bind(this),this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("node_dblclick",(t,e,i)=>{this.show({node:t,e,isInserting:i})}),this.mindMap.on("draw_click",()=>{this.hideEditTextBox()}),this.mindMap.on("body_mousedown",()=>{this.hasBodyMousedown=!0}),this.mindMap.on("body_click",()=>{this.hasBodyMousedown&&(this.hasBodyMousedown=!1,this.mindMap.opt.isEndNodeTextEditOnClickOuter&&this.hideEditTextBox())}),this.mindMap.on("svg_mousedown",()=>{this.hideEditTextBox()}),this.mindMap.on("expand_btn_click",()=>{this.hideEditTextBox()}),this.mindMap.on("before_node_active",()=>{this.hideEditTextBox()}),this.mindMap.on("mousewheel",()=>{this.mindMap.opt.mousewheelAction===ut.MOUSE_WHEEL_ACTION.MOVE&&this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("F2",()=>{this.renderer.activeNodeList.length<=0||this.show({node:this.renderer.activeNodeList[0]})}),this.mindMap.on("scale",this.onScale),this.mindMap.opt.enableAutoEnterTextEditWhenKeydown&&window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()}),this.mindMap.on("after_update_config",(t,e)=>{t.openRealtimeRenderOnNodeTextEdit!==e.openRealtimeRenderOnNodeTextEdit&&(this.mindMap.richText?this.mindMap.richText.onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t.openRealtimeRenderOnNodeTextEdit):this.onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t.openRealtimeRenderOnNodeTextEdit)),t.enableAutoEnterTextEditWhenKeydown!==e.enableAutoEnterTextEditWhenKeydown&&window[t.enableAutoEnterTextEditWhenKeydown?"addEventListener":"removeEventListener"]("keydown",this.onKeydown)}),this.mindMap.on("afterExecCommand",()=>{this.isShowTextEdit()&&(this.isNeedUpdateTextEditNode=!0)}),this.mindMap.on("node_tree_render_end",()=>{this.isShowTextEdit()&&this.isNeedUpdateTextEditNode&&(this.isNeedUpdateTextEditNode=!1,this.updateTextEditNode())})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(t){if(t.target!==document.body)return;const e=this.mindMap.renderer.activeNodeList;if(e.length<=0||e.length>1)return;const i=e[0];i&&this.checkIsAutoEnterTextEditKey(t)&&(t.preventDefault(),this.show({node:i,e:t,isInserting:!1,isFromKeyDown:!0}))}checkIsAutoEnterTextEditKey(t){const e=t.keyCode;return(e===229||e>=65&&e<=90||e>=48&&e<=57)&&!this.mindMap.keyCommand.hasCombinationKey(t)}registerTmpShortcut(){this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("Tab",()=>{this.hideEditTextBox()})}isShowTextEdit(){return this.mindMap.richText?this.mindMap.richText.showTextEdit:this.showTextEdit}async show({node:t,isInserting:e=!1,isFromKeyDown:i=!1,isFromScale:n=!1}){if(t.isUseCustomNodeContent())return;this.getCurrentEditNode()&&this.hideEditTextBox();const{beforeTextEdit:s,openRealtimeRenderOnNodeTextEdit:a}=this.mindMap.opt;if(typeof s=="function"){let d=!1;try{d=await s(t,e)}catch(p){d=!1,this.mindMap.opt.errorHandler(Cn.BEFORE_TEXT_EDIT_ERROR,p)}if(!d)return}const{offsetLeft:l,offsetTop:h}=b6(this.mindMap,t);this.mindMap.view.translateXY(l,h);const c=t._textData.node;a&&c.show();const u=c.node.getBoundingClientRect();a&&c.hide();const f={node:t,rect:u,isInserting:e,isFromKeyDown:i,isFromScale:n};if(this.mindMap.richText){this.mindMap.richText.showEditText(f);return}this.currentNode=t,this.showEditTextBox(f)}onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t){this.textEditNode&&(this.textEditNode.style.background=t?"transparent":this.currentNode?this.getBackground(this.currentNode):"",this.textEditNode.style.boxShadow=t?"none":"0 0 20px rgba(0,0,0,.5)")}onScale(){const t=this.getCurrentEditNode();t&&(this.mindMap.richText?(this.mindMap.richText.cacheEditingText=this.mindMap.richText.getEditText(),this.mindMap.richText.showTextEdit=!1):(this.cacheEditingText=this.getEditText(),this.showTextEdit=!1),this.show({node:t,isFromScale:!0}))}showEditTextBox({node:t,rect:e,isInserting:i,isFromKeyDown:n,isFromScale:o}){if(this.showTextEdit)return;const{nodeTextEditZIndex:s,textAutoWrapWidth:a,selectTextOnEnterEditText:l,openRealtimeRenderOnNodeTextEdit:h,autoEmptyTextWhenKeydownEnterEdit:c}=this.mindMap.opt;o||this.mindMap.emit("before_show_text_edit"),this.registerTmpShortcut(),this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.classList.add(ut.EDIT_NODE_CLASS.SMM_NODE_EDIT_WRAP),this.textEditNode.style.cssText=`
        position: fixed;
        box-sizing: border-box;
        ${h?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}
        padding: ${this.textNodePaddingY}px ${this.textNodePaddingX}px;
        margin-left: -${this.textNodePaddingX}px;
        margin-top: -${this.textNodePaddingY}px;
        outline: none; 
        word-break: break-all;
        line-break: anywhere;
      `,this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",v=>{v.stopPropagation()}),this.textEditNode.addEventListener("click",v=>{v.stopPropagation()}),this.textEditNode.addEventListener("mousedown",v=>{v.stopPropagation()}),this.textEditNode.addEventListener("keydown",v=>{this.checkIsAutoEnterTextEditKey(v)&&v.stopPropagation()}),this.textEditNode.addEventListener("paste",v=>{const g=v.clipboardData.getData("text"),{isSmm:b,data:y}=Ga(g);b&&y[0]&&y[0].data?v0(v,Fn(y[0].data.text)):v0(v),this.emitTextChangeEvent()}),this.textEditNode.addEventListener("input",()=>{this.emitTextChangeEvent()}),(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode));const u=this.mindMap.view.scale,f=t.style.merge("fontSize"),d=(this.cacheEditingText||t.getData("text")).split(/\n/gim).map(m=>bs(m)),p=t._textData.node.attr("data-ismultiLine")==="true";t.style.domText(this.textEditNode,u),h||(this.textEditNode.style.background=this.getBackground(t)),this.textEditNode.style.zIndex=s,n&&c?this.textEditNode.innerHTML="":this.textEditNode.innerHTML=d.join("<br>"),this.textEditNode.style.minWidth=e.width+this.textNodePaddingX*2+"px",this.textEditNode.style.minHeight=e.height+"px",this.textEditNode.style.left=Math.floor(e.left)+"px",this.textEditNode.style.top=Math.floor(e.top)+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=a*u+"px",p?(this.textEditNode.style.lineHeight=Aa,this.textEditNode.style.transform=`translateY(${(Aa-1)*f/2*u}px)`):this.textEditNode.style.lineHeight="normal",this.showTextEdit=!0,i||l&&!n?d0(this.textEditNode):u0(this.textEditNode),this.cacheEditingText=""}emitTextChangeEvent(){this.mindMap.emit("node_text_edit_change",{node:this.currentNode,text:this.getEditText(),richText:!1})}updateTextEditNode(){if(this.mindMap.richText){this.mindMap.richText.updateTextEditNode();return}if(!this.showTextEdit||!this.currentNode)return;const t=this.currentNode._textData.node.node.getBoundingClientRect();this.textEditNode.style.minWidth=t.width+this.textNodePaddingX*2+"px",this.textEditNode.style.minHeight=t.height+this.textNodePaddingY*2+"px",this.textEditNode.style.left=Math.floor(t.left)+"px",this.textEditNode.style.top=Math.floor(t.top)+"px"}getBackground(t){if(t.style.merge("gradientStyle")){const i=t.style.merge("startColor"),n=t.style.merge("endColor");return`linear-gradient(to right, ${i}, ${n})`}else{const i=t.style.merge("fillColor"),n=t.style.merge("color");return i==="transparent"?c0(n)?C6(this.mindMap.themeConfig):"#fff":i}}removeTextEditEl(){if(this.mindMap.richText){this.mindMap.richText.removeTextEditEl();return}if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return a0(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.mindMap.richText)return this.mindMap.richText.hideEditText();if(!this.showTextEdit)return;const t=this.currentNode,e=this.getEditText();this.currentNode=null,this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.showTextEdit=!1,this.mindMap.execCommand("SET_NODE_TEXT",t,e),this.mindMap.render(),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList,t)}getCurrentEditNode(){return this.mindMap.richText?this.mindMap.richText.node:this.currentNode}}const bc={[ut.LAYOUT.LOGICAL_STRUCTURE]:O0,[ut.LAYOUT.LOGICAL_STRUCTURE_LEFT]:O0,[ut.LAYOUT.MIND_MAP]:ab,[ut.LAYOUT.CATALOG_ORGANIZATION]:lb,[ut.LAYOUT.ORGANIZATION_STRUCTURE]:hb,[ut.LAYOUT.TIMELINE]:R0,[ut.LAYOUT.TIMELINE2]:R0,[ut.LAYOUT.VERTICAL_TIMELINE]:cb,[ut.LAYOUT.FISHBONE]:ub};class fb{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.themeConfig=this.mindMap.themeConfig,this.renderTree=this.mindMap.opt.data?La({},this.mindMap.opt.data):null,this.reRender=!1,this.isRendering=!1,this.hasWaitRendering=!1,this.waitRenderingParams=[],this.nodeCache={},this.lastNodeCache={},this.renderSource="",this.activeNodeList=[],this.root=null,this.textEdit=new db(this),this.beingCopyData=null,this.highlightBoxNode=null,this.highlightBoxNodeStyle=null,this.lastActiveNodeList=[],this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys()}setLayout(){const{layout:t}=this.mindMap.opt;this.layout=new(bc[t]?bc[t]:bc[ut.LAYOUT.LOGICAL_STRUCTURE])(this,t)}setData(t){this.renderTree=t||null}bindEvent(){const{openPerformance:t,performanceConfig:e,openRealtimeRenderOnNodeTextEdit:i}=this.mindMap.opt;this.mindMap.on("draw_click",o=>{this.clearActiveNodeListOnDrawClick(o,"click")}),this.mindMap.on("contextmenu",o=>{this.clearActiveNodeListOnDrawClick(o,"contextmenu")}),this.mindMap.svg.on("dblclick",()=>{this.mindMap.opt.enableDblclickBackToRootNode&&this.setRootNodeCenter()});const n=vs(()=>{this.root&&(this.mindMap.emit("node_tree_render_start"),this.root.render(()=>{this.mindMap.emit("node_tree_render_end")},!1,!0))},e.time);t&&this.mindMap.on("view_data_change",n),this.onNodeTextEditChange=m6(this.onNodeTextEditChange,100,this),i&&this.mindMap.on("node_text_edit_change",this.onNodeTextEditChange),this.mindMap.on("after_update_config",(o,s)=>{o.openPerformance!==s.openPerformance&&(this.mindMap[o.openPerformance?"on":"off"]("view_data_change",n),this.forceLoadNode()),o.openRealtimeRenderOnNodeTextEdit!==s.openRealtimeRenderOnNodeTextEdit&&this.mindMap[o.openRealtimeRenderOnNodeTextEdit?"on":"off"]("node_text_edit_change",this.onNodeTextEditChange)})}onNodeTextEditChange({node:t,text:e}){t._textData=t.createTextNode(e);const{width:i,height:n}=t.getNodeRect();t.width=i,t.height=n,t.layout(),this.mindMap.render(()=>{this.textEdit.updateTextEditNode()})}forceLoadNode(t){t=t||this.root,t&&(this.mindMap.emit("node_tree_render_start"),t.render(()=>{this.mindMap.emit("node_tree_render_end")},!0))}registerCommands(){this.selectAll=this.selectAll.bind(this),this.mindMap.command.add("SELECT_ALL",this.selectAll),this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertMultiNode=this.insertMultiNode.bind(this),this.mindMap.command.add("INSERT_MULTI_NODE",this.insertMultiNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.insertMultiChildNode=this.insertMultiChildNode.bind(this),this.mindMap.command.add("INSERT_MULTI_CHILD_NODE",this.insertMultiChildNode),this.insertParentNode=this.insertParentNode.bind(this),this.mindMap.command.add("INSERT_PARENT_NODE",this.insertParentNode),this.upNode=this.upNode.bind(this),this.mindMap.command.add("UP_NODE",this.upNode),this.downNode=this.downNode.bind(this),this.mindMap.command.add("DOWN_NODE",this.downNode),this.moveUpOneLevel=this.moveUpOneLevel.bind(this),this.mindMap.command.add("MOVE_UP_ONE_LEVEL",this.moveUpOneLevel),this.insertAfter=this.insertAfter.bind(this),this.mindMap.command.add("INSERT_AFTER",this.insertAfter),this.insertBefore=this.insertBefore.bind(this),this.mindMap.command.add("INSERT_BEFORE",this.insertBefore),this.moveNodeTo=this.moveNodeTo.bind(this),this.mindMap.command.add("MOVE_NODE_TO",this.moveNodeTo),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.removeCurrentNode=this.removeCurrentNode.bind(this),this.mindMap.command.add("REMOVE_CURRENT_NODE",this.removeCurrentNode),this.pasteNode=this.pasteNode.bind(this),this.mindMap.command.add("PASTE_NODE",this.pasteNode),this.cutNode=this.cutNode.bind(this),this.mindMap.command.add("CUT_NODE",this.cutNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeStyles=this.setNodeStyles.bind(this),this.mindMap.command.add("SET_NODE_STYLES",this.setNodeStyles),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearActiveNode=this.clearActiveNode.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearActiveNode),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.expandAllNode=this.expandAllNode.bind(this),this.mindMap.command.add("EXPAND_ALL",this.expandAllNode),this.unexpandAllNode=this.unexpandAllNode.bind(this),this.mindMap.command.add("UNEXPAND_ALL",this.unexpandAllNode),this.expandToLevel=this.expandToLevel.bind(this),this.mindMap.command.add("UNEXPAND_TO_LEVEL",this.expandToLevel),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeAttachment=this.setNodeAttachment.bind(this),this.mindMap.command.add("SET_NODE_ATTACHMENT",this.setNodeAttachment),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag),this.insertFormula=this.insertFormula.bind(this),this.mindMap.command.add("INSERT_FORMULA",this.insertFormula),this.addGeneralization=this.addGeneralization.bind(this),this.mindMap.command.add("ADD_GENERALIZATION",this.addGeneralization),this.removeGeneralization=this.removeGeneralization.bind(this),this.mindMap.command.add("REMOVE_GENERALIZATION",this.removeGeneralization),this.setNodeCustomPosition=this.setNodeCustomPosition.bind(this),this.mindMap.command.add("SET_NODE_CUSTOM_POSITION",this.setNodeCustomPosition),this.resetLayout=this.resetLayout.bind(this),this.mindMap.command.add("RESET_LAYOUT",this.resetLayout),this.setNodeShape=this.setNodeShape.bind(this),this.mindMap.command.add("SET_NODE_SHAPE",this.setNodeShape),this.goTargetNode=this.goTargetNode.bind(this),this.mindMap.command.add("GO_TARGET_NODE",this.goTargetNode),this.removeCustomStyles=this.removeCustomStyles.bind(this),this.mindMap.command.add("REMOVE_CUSTOM_STYLES",this.removeCustomStyles),this.removeAllNodeCustomStyles=this.removeAllNodeCustomStyles.bind(this),this.mindMap.command.add("REMOVE_ALL_NODE_CUSTOM_STYLES",this.removeAllNodeCustomStyles)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Tab",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.mindMap.keyCommand.addShortcut("Insert",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.mindMap.execCommand("INSERT_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Tab",()=>{this.mindMap.execCommand("INSERT_PARENT_NODE")}),this.mindMap.keyCommand.addShortcut("Control+g",()=>{this.mindMap.execCommand("ADD_GENERALIZATION")}),this.toggleActiveExpand=this.toggleActiveExpand.bind(this),this.mindMap.keyCommand.addShortcut("/",this.toggleActiveExpand),this.mindMap.keyCommand.addShortcut("Del|Backspace",()=>{this.mindMap.execCommand("REMOVE_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Backspace",()=>{this.mindMap.execCommand("REMOVE_CURRENT_NODE")}),this.mindMap.on("before_show_text_edit",()=>{this.startTextEdit()}),this.mindMap.on("hide_text_edit",()=>{this.endTextEdit()}),this.mindMap.keyCommand.addShortcut("Control+a",()=>{this.mindMap.execCommand("SELECT_ALL")}),this.mindMap.keyCommand.addShortcut("Control+l",()=>{this.mindMap.execCommand("RESET_LAYOUT")}),this.mindMap.keyCommand.addShortcut("Control+Up",()=>{this.mindMap.execCommand("UP_NODE")}),this.mindMap.keyCommand.addShortcut("Control+Down",()=>{this.mindMap.execCommand("DOWN_NODE")}),this.mindMap.keyCommand.addShortcut("Control+c",()=>{this.copy()}),this.mindMap.keyCommand.addShortcut("Control+x",()=>{this.cut()}),this.mindMap.keyCommand.addShortcut("Control+v",()=>{this.paste()}),this.mindMap.keyCommand.addShortcut("Control+Enter",()=>{this.setRootNodeCenter()})}emitNodeActiveEvent(t=null,e=[...this.activeNodeList]){R6(this.lastActiveNodeList,e)||(this.lastActiveNodeList=[...e],this.mindMap.batchExecution.push("emitNodeActiveEvent",()=>{this.mindMap.emit("node_active",t,e)}))}clearActiveNodeListOnDrawClick(t,e){if(this.activeNodeList.length<=0)return;let i=!0;const{useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;if(e==="contextmenu"?!n:n){const o=this.mindMap.event.mousedownPos;i=Math.abs(t.clientX-o.x)<=5&&Math.abs(t.clientY-o.y)<=5}i&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}startTextEdit(){this.mindMap.keyCommand.save()}endTextEdit(){this.mindMap.keyCommand.restore()}clearCache(){this.layout.lru.clear(),this.nodeCache={},this.lastNodeCache={}}render(t=()=>{},e){if(e===ut.CHANGE_THEME&&this.resetUnExpandNodeStyle(),this.isRendering){this.hasWaitRendering=!0,this.waitRenderingParams=[t,e];return}if(this.isRendering=!0,this.renderSource=e,this.lastNodeCache=this.nodeCache,this.nodeCache={},this.reRender&&this.clearActiveNodeList(),!this.renderTree){this.isRendering=!1,this.mindMap.emit("node_tree_render_end");return}this.mindMap.emit("node_tree_render_start"),this.root=null,this.layout.doLayout(i=>{Object.keys(this.lastNodeCache).forEach(n=>{this.nodeCache[n]||(this.removeNodeFromActiveList(this.lastNodeCache[n]),this.emitNodeActiveEvent(),this.lastNodeCache[n].destroy())}),this.root=i,this.root.render(()=>{if(this.isRendering=!1,t&&t(),this.hasWaitRendering){const n=this.waitRenderingParams;this.hasWaitRendering=!1,this.waitRenderingParams=[],this.render(...n)}else this.renderSource="",this.reRender&&(this.reRender=!1);this.mindMap.emit("node_tree_render_end")})}),this.emitNodeActiveEvent()}resetUnExpandNodeStyle(){this.renderTree&&ge(this.renderTree,null,t=>{if(!t.data.expand)return ge(t,null,e=>{e.data.needUpdate=!0}),!0})}clearActiveNode(){this.activeNodeList.length<=0||(this.clearActiveNodeList(),this.emitNodeActiveEvent(null,[]))}clearActiveNodeList(){this.activeNodeList.forEach(t=>{this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1)}),this.activeNodeList=[]}addNodeToActiveList(t,e=!1){if(this.mindMap.opt.onlyOneEnableActiveNodeOnCooperate&&t.userList.length>0)return;this.findActiveNodeIndex(t)===-1&&(e||this.mindMap.emit("before_node_active",t,this.activeNodeList),this.mindMap.execCommand("SET_NODE_ACTIVE",t,!0),this.activeNodeList.push(t))}removeNodeFromActiveList(t){let e=this.findActiveNodeIndex(t);e!==-1&&(this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1),this.activeNodeList.splice(e,1))}activeMultiNode(t=[]){t.forEach(e=>{this.mindMap.emit("before_node_active",e,this.activeNodeList),this.addNodeToActiveList(e,!0),this.emitNodeActiveEvent(e)})}cancelActiveMultiNode(t=[]){t.forEach(e=>{this.removeNodeFromActiveList(e),this.emitNodeActiveEvent(null)})}findActiveNodeIndex(t){return oi(t,this.activeNodeList)}selectAll(){this.mindMap.opt.readonly||(ge(this.root,null,t=>{t.getData("isActive")||this.addNodeToActiveList(t),t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach(e=>{const i=e.generalizationNode;i.getData("isActive")||this.addNodeToActiveList(i)})},null,!0,0,0),this.emitNodeActiveEvent())}back(t){this.backForward("back",t)}forward(t){this.backForward("forward",t)}backForward(t,e){this.mindMap.execCommand("CLEAR_ACTIVE_NODE");const i=this.mindMap.command[t](e);i&&(this.renderTree=i,this.mindMap.render()),this.mindMap.emit("data_change",i)}getNewNodeBehavior(t=!1,e=!1){const{createNewNodeBehavior:i}=this.mindMap.opt;let n=!1,o=!1;switch(i){case ut.CREATE_NEW_NODE_BEHAVIOR.DEFAULT:n=e||!t,o=e?!1:t;break;case ut.CREATE_NEW_NODE_BEHAVIOR.NOT_ACTIVE:n=!1,o=!1;break;case ut.CREATE_NEW_NODE_BEHAVIOR.ACTIVE_ONLY:n=!0,o=!1;break}return{focusNewNode:n,inserting:o}}insertNode(t=!0,e=[],i=null,n=[]){if(e=Oi(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:o,defaultInsertBelowSecondLevelNodeText:s}=this.mindMap.opt,a=e.length>0?e:this.activeNodeList,l=a.length>1,h=this.hasRichTextPlugin(),{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(t,l),f={expand:!0,richText:h,isActive:c};h&&(f.resetRichText=!0),n=Ha(n,f);const d=i&&i.richText;let p=!1;a.forEach(m=>{if(m.isGeneralization||m.isRoot)return;n=Ni(n);const v=m.parent,b=m.layerIndex===1?o:s,y=bo(m);d&&f.resetRichText&&delete f.resetRichText;const x={inserting:u,data:{text:b,...f,uid:Di(),...i||{}},children:[...ys(n,p)]};p=!0,v.nodeData.children.splice(y+1,0,x)}),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiNode(t,e){if(!e||e.length<=0||(t=Oi(t),this.activeNodeList.length<=0&&t.length<=0))return;this.textEdit.hideEditTextBox();const i=t.length>0?t:this.activeNodeList,n=this.hasRichTextPlugin(),{focusNewNode:o}=this.getNewNodeBehavior(!1,!0),s={expand:!0,richText:n,isActive:o};n&&(s.resetRichText=!0),e=Ha(e,s);let a=!1;i.forEach(l=>{if(l.isGeneralization||l.isRoot)return;e=Ni(e);const h=l.parent,c=bo(l),u=ys(e,a);a=!0,h.nodeData.children.splice(c+1,0,...u)}),o&&this.clearActiveNodeList(),this.mindMap.render()}insertChildNode(t=!0,e=[],i=null,n=[]){if(e=Oi(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:o,defaultInsertBelowSecondLevelNodeText:s}=this.mindMap.opt,a=e.length>0?e:this.activeNodeList,l=a.length>1,h=this.hasRichTextPlugin(),{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(t,l),f={expand:!0,richText:h,isActive:c};h&&(f.resetRichText=!0),n=Ha(n,f);const d=i&&i.richText;let p=!1;a.forEach(m=>{if(m.isGeneralization)return;n=Ni(n),m.nodeData.children||(m.nodeData.children=[]);const v=m.isRoot?o:s;d&&f.resetRichText&&delete f.resetRichText;const g={inserting:u,data:{text:v,uid:Di(),...f,...i||{}},children:[...ys(n,p)]};p=!0,m.nodeData.children.push(g),m.setData({expand:!0})}),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiChildNode(t,e){if(!e||e.length<=0||(t=Oi(t),this.activeNodeList.length<=0&&t.length<=0))return;this.textEdit.hideEditTextBox();const i=t.length>0?t:this.activeNodeList,n=this.hasRichTextPlugin(),{focusNewNode:o}=this.getNewNodeBehavior(!1,!0),s={expand:!0,richText:n,isActive:o};n&&(s.resetRichText=!0),e=Ha(e,s);let a=!1;i.forEach(l=>{l.isGeneralization||(e=Ni(e),l.nodeData.children||(l.nodeData.children=[]),e=ys(e,a),a=!0,l.nodeData.children.push(...e),l.setData({expand:!0}))}),o&&this.clearActiveNodeList(),this.mindMap.render()}insertParentNode(t=!0,e,i){if(e=Oi(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:n,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,s=e.length>0?e:this.activeNodeList,a=s.length>1,l=this.hasRichTextPlugin(),{focusNewNode:h,inserting:c}=this.getNewNodeBehavior(t,a),u={expand:!0,richText:l,isActive:h};l&&(u.resetRichText=!0);const f=i&&i.richText;s.forEach(d=>{if(d.isGeneralization||d.isRoot)return;const p=d.layerIndex===1?n:o;f&&u.resetRichText&&delete u.resetRichText;const m={inserting:c,data:{text:p,uid:Di(),...u,...i||{}},children:[d.nodeData]},v=d.parent,g=bo(d);v.nodeData.children.splice(g,1,m)}),h&&this.clearActiveNodeList(),this.mindMap.render()}upNode(t){if(this.activeNodeList.length<=0&&!t)return;const i=(t?[t]:this.activeNodeList)[0];if(i.isRoot)return;let n=i.parent,o=n.children,s=oi(i,o);if(s===-1||s===0)return;let a=s-1;o.splice(s,1),o.splice(a,0,i),n.nodeData.children.splice(s,1),n.nodeData.children.splice(a,0,i.nodeData),this.mindMap.render()}downNode(t){if(this.activeNodeList.length<=0&&!t)return;const i=(t?[t]:this.activeNodeList)[0];if(i.isRoot)return;let n=i.parent,o=n.children,s=oi(i,o);if(s===-1||s===o.length-1)return;let a=s+1;o.splice(s,1),o.splice(a,0,i),n.nodeData.children.splice(s,1),n.nodeData.children.splice(a,0,i.nodeData),this.mindMap.render()}moveUpOneLevel(t){if(t=t||this.activeNodeList[0],!t||t.isRoot||t.layerIndex<=1)return;const e=t.parent,i=e.parent,n=oi(t,e.children),o=oi(e,i.children);e.nodeData.children.splice(n,1),i.nodeData.children.splice(o+1,0,t.nodeData),this.mindMap.render()}_handleRemoveCustomStyles(t){let e=!1;return Object.keys(t).forEach(i=>{fc(i)&&(e=!0,delete t[i])}),this.hasRichTextPlugin()&&(e=!0,t.resetRichText=!0),e}removeCustomStyles(t){if(t=t||this.activeNodeList[0],!t)return;this._handleRemoveCustomStyles(t.getData())&&this.reRenderNodeCheckChange(t)}removeAllNodeCustomStyles(t){t=Oi(t);let e=!1;if(t.length>0)t.forEach(i=>{this._handleRemoveCustomStyles(i.getData())&&(e=!0)});else{if(!this.renderTree)return;ge(this.renderTree,null,i=>{this._handleRemoveCustomStyles(i.data)&&(e=!0);const o=$r(i.data);o.length>0&&o.forEach(s=>{this._handleRemoveCustomStyles(s)&&(e=!0)})})}e&&this.mindMap.reRender()}copy(){this.beingCopyData=this.copyNode(),this.beingCopyData&&(this.mindMap.opt.disabledClipboard||g0(m0(this.beingCopyData)))}cut(){this.mindMap.execCommand("CUT_NODE",t=>{this.beingCopyData=t,this.mindMap.opt.disabledClipboard||g0(m0(t))})}handlePaste(t){const{disabledClipboard:e}=this.mindMap.opt;if(e)return;const i=t.clipboardData||t.originalEvent.clipboardData,n=i.items;Array.from(n).forEach(o=>{o.type.indexOf("image")>-1&&o.getAsFile(),o.type.indexOf("text")>-1&&i.getData("text")}),this.paste()}async paste(){const{errorHandler:t,handleIsSplitByWrapOnPasteCreateNewNode:e,handleNodePasteImg:i,disabledClipboard:n,onlyPasteTextWhenHasImgAndText:o}=this.mindMap.opt;if(!n&&p0())try{const s=await D6();let a=s.text||"",l=s.img||null;if(a){let h=null,c=!0;if(this.mindMap.opt.customHandleClipboardText)try{const u=await this.mindMap.opt.customHandleClipboardText(a);if(!nr(u)){c=!1;const f=Ga(u);f.isSmm?h=f.data:a=f.data}}catch(u){t(Cn.CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR,u)}if(c){const u=Ga(a);u.isSmm?h=u.data:a=u.data}if(h)this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],Array.isArray(h)?h:[h]);else{this.hasRichTextPlugin()&&(a=bs(a));const u=a.split(new RegExp(`\r?
|(?<!
)\r`,"g")).filter(f=>!!f);u.length>1&&e?e().then(()=>{this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],u.map(f=>({data:{text:f},children:[]})))}).catch(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:a})}):this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:a})}}if(l&&(!a||!o))try{let h=null;i&&typeof i=="function"?h=await i(l):h=await x6(l),this.activeNodeList.length>0&&this.activeNodeList.forEach(c=>{this.mindMap.execCommand("SET_NODE_IMAGE",c,{url:h.url,title:"",width:h.size.width,height:h.size.height})})}catch(h){t(Cn.LOAD_CLIPBOARD_IMAGE_ERROR,h)}}catch(s){t(Cn.READ_CLIPBOARD_ERROR,s)}else this.beingCopyData&&this.mindMap.execCommand("PASTE_NODE",this.beingCopyData)}insertBefore(t,e){this.insertTo(t,e,"before")}insertAfter(t,e){this.insertTo(t,e,"after")}insertTo(t,e,i="before"){let n=Oi(t);n=n.filter(o=>!o.isRoot),i==="after"&&n.reverse(),n.forEach(o=>{let s=o.parent,a=s.children,l=oi(o,a);if(l===-1)return;a.splice(l,1),s.nodeData.children.splice(l,1);let h=e.parent,c=h.children,u=oi(e,c);u!==-1&&(i==="after"&&u++,c.splice(u,0,o),h.nodeData.children.splice(u,0,o.nodeData))}),this.mindMap.render()}removeNode(t=[]){if(t=Oi(t),this.activeNodeList.length<=0&&t.length<=0)return;let e=null,i=t.length>0,n=i?t:this.activeNodeList,o=n.find(s=>s.isRoot);if(o)this.clearActiveNodeList(),o.children=[],o.nodeData.children=[];else{e=this.getNextActiveNode(n);for(let s=0;s<n.length;s++){const a=n[s],l=this.textEdit.getCurrentEditNode();l&&l.getData("uid")===a.getData("uid")&&this.textEdit.hideEditTextBox(),i&&n.splice(s,1),a.isGeneralization?(this.deleteNodeGeneralization(a),this.removeNodeFromActiveList(a),s--):(this.removeNodeFromActiveList(a),gc(a),s--)}}this.activeNodeList=[],e&&this.addNodeToActiveList(e),this.emitNodeActiveEvent(),this.mindMap.render()}deleteNodeGeneralization(t){const e=t.generalizationBelongNode,i=e.getGeneralizationNodeIndex(t);let n=e.getData("generalization");Array.isArray(n)?n.splice(i,1):n=null,this.mindMap.execCommand("SET_NODE_DATA",e,{generalization:n}),this.closeHighlightNode()}removeCurrentNode(t=[]){if(t=Oi(t),this.activeNodeList.length<=0&&t.length<=0)return;let i=t.length>0?t:this.activeNodeList;i=i.filter(o=>!o.isRoot);let n=this.getNextActiveNode(i);for(let o=0;o<i.length;o++){let s=i[o];if(s.isGeneralization)this.deleteNodeGeneralization(s);else{const a=s.parent,l=bo(s);a.nodeData.children.splice(l,1,...s.nodeData.children||[])}}this.activeNodeList=[],n&&this.addNodeToActiveList(n),this.emitNodeActiveEvent(),this.mindMap.render()}getNextActiveNode(t){if(t.length!==1||this.findActiveNodeIndex(t[0])===-1)return null;let e=null;if(this.activeNodeList.length===1&&!this.activeNodeList[0].isGeneralization&&this.mindMap.opt.deleteNodeActive){const i=this.activeNodeList[0],n=i.parent.children,o=oi(i,n);o<n.length-1?e=n[o+1]:o>0?e=n[o-1]:e=i.parent}return e}copyNode(){if(this.activeNodeList.length<=0)return null;let t=Wa(this.activeNodeList);return t=mc(t),t.map(e=>ms({},e,!0))}cutNode(t){if(this.activeNodeList.length<=0)return;let e=Wa(this.activeNodeList).filter(n=>!n.isRoot);e=mc(e);const i=e.map(n=>ms({},n,!0));e.forEach(n=>{gc(n)}),this.clearActiveNodeList(),this.mindMap.render(),t&&typeof t=="function"&&t(i)}moveNodeTo(t,e){let i=Oi(t);i=i.filter(n=>!n.isRoot),i.forEach(n=>{this.removeNodeFromActiveList(n),gc(n),e.setData({expand:!0}),e.nodeData.children.push(n.nodeData)}),this.emitNodeActiveEvent(),this.mindMap.render()}pasteNode(t){t=Oi(t),this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],t)}setNodeStyle(t,e,i){const n={[e]:i};this.setNodeDataRender(t,n),cc.includes(e)&&(t.parent||t).renderLine(!0)}setNodeStyles(t,e){const i={...e};this.setNodeDataRender(t,i);let n=Object.keys(e),o=!1;n.forEach(s=>{cc.includes(s)&&(o=!0)}),o&&(t.parent||t).renderLine(!0)}setNodeActive(t,e){this.mindMap.execCommand("SET_NODE_DATA",t,{isActive:e}),t.updateNodeByActive(e)}setNodeExpand(t,e){this.mindMap.execCommand("SET_NODE_DATA",t,{expand:e}),this.mindMap.render()}expandAllNode(t=""){if(!this.renderTree)return;const e=(i,n)=>{!n&&i.data.uid===t&&(n=!0),n&&!i.data.expand&&(i.data.expand=!0),i.children&&i.children.length>0&&i.children.forEach(o=>{e(o,n)})};e(this.renderTree,!t),this.mindMap.render()}unexpandAllNode(t=!0,e=""){if(!this.renderTree)return;const i=(n,o,s)=>{!s&&n.data.uid===e&&(s=!0),s&&!o&&n.children&&n.children.length>0&&(n.data.expand=!1),n.children&&n.children.length>0&&n.children.forEach(a=>{i(a,!1,s)})};i(this.renderTree,!0,!e),this.mindMap.render(()=>{t&&this.setRootNodeCenter()})}expandToLevel(t){this.renderTree&&(ge(this.renderTree,null,(e,i,n,o)=>{o<t?e.data.expand=!0:!n&&e.children&&e.children.length>0&&(e.data.expand=!1)},null,!0,0,0),this.mindMap.render())}toggleActiveExpand(){this.activeNodeList.forEach(t=>{t.nodeData.children.length<=0||t.isRoot||this.toggleNodeExpand(t)})}toggleNodeExpand(t){this.mindMap.execCommand("SET_NODE_EXPAND",t,!t.getData("expand"))}setNodeText(t,e,i,n){i=i===void 0?t.getData("richText"):i,this.setNodeDataRender(t,{text:e,richText:i,resetRichText:n})}setNodeImage(t,e){const{url:i,title:n,width:o,height:s,custom:a=!1}=e||{url:"",title:"",width:0,height:0,custom:!1};this.setNodeDataRender(t,{image:i,imageTitle:n||"",imageSize:{width:o,height:s,custom:a}})}setNodeIcon(t,e){this.setNodeDataRender(t,{icon:e})}setNodeHyperlink(t,e,i=""){this.setNodeDataRender(t,{hyperlink:e,hyperlinkTitle:i})}setNodeNote(t,e){this.setNodeDataRender(t,{note:e})}setNodeAttachment(t,e,i=""){this.setNodeDataRender(t,{attachmentUrl:e,attachmentName:i})}setNodeTag(t,e){this.setNodeDataRender(t,{tag:e})}insertFormula(t,e=[]){if(!this.hasRichTextPlugin()||!this.mindMap.formula)return;e=Oi(e),(e.length>0?e:this.activeNodeList).forEach(n=>{this.mindMap.formula.insertFormulaToNode(n,t)})}addGeneralization(t,e=!0){if(this.activeNodeList.length<=0)return;const i=this.activeNodeList.filter(c=>!c.isRoot&&!c.isGeneralization&&!c.checkHasSelfGeneralization()),n=L6(i);if(n.length<=0)return;const o=this.hasRichTextPlugin(),{focusNewNode:s,inserting:a}=this.getNewNodeBehavior(e,n.length>1);let l=!1;const h=t&&t.richText;n.forEach(c=>{const u={inserting:a,...t||{text:this.mindMap.opt.defaultGeneralizationText},range:c.range||null,uid:Di(),richText:o,isActive:s};o&&!h&&(u.resetRichText=o);let f=c.node.getData("generalization");if(f=f?Array.isArray(f)?f:[f]:[],c.range){if(!!f.find(p=>p.range&&p.range[0]===c.range[0]&&p.range[1]===c.range[1]))return;f.push(u)}else f.push(u);l=!0,this.mindMap.execCommand("SET_NODE_DATA",c.node,{generalization:f}),c.node.setData({expand:!0})}),l&&(s&&this.clearActiveNodeList(),this.mindMap.render(()=>{this.mindMap.render()}))}removeGeneralization(){this.activeNodeList.length<=0||(this.activeNodeList.forEach(t=>{t.checkHasGeneralization()&&this.mindMap.execCommand("SET_NODE_DATA",t,{generalization:null})}),this.mindMap.render(),this.closeHighlightNode())}setNodeCustomPosition(t,e=void 0,i=void 0){[t].forEach(o=>{this.mindMap.execCommand("SET_NODE_DATA",o,{customLeft:e,customTop:i})})}resetLayout(){ge(this.root,null,t=>{t.customLeft=void 0,t.customTop=void 0,this.mindMap.execCommand("SET_NODE_DATA",t,{customLeft:void 0,customTop:void 0}),this.mindMap.render()},null,!0,0,0)}setNodeShape(t,e){if(!e||!U6.includes(e))return;[t].forEach(n=>{this.setNodeStyle(n,"shape",e)})}goTargetNode(t,e=()=>{}){let i=typeof t=="string"?t:t.getData("uid");i&&this.expandToNodeUid(i,()=>{let n=this.findNodeByUid(i);n&&(n.active(),this.moveNodeToCenter(n),e(n))})}setNodeData(t,e){Object.keys(e).forEach(i=>{t.nodeData.data[i]=e[i]})}setNodeDataRender(t,e,i=!1){if(this.mindMap.execCommand("SET_NODE_DATA",t,e),_6(e)){this.mindMap.emit("node_tree_render_end");return}this.reRenderNodeCheckChange(t,i)}reRenderNodeCheckChange(t,e){t.reRender()?e||this.mindMap.render():this.mindMap.emit("node_tree_render_end")}moveNodeToCenter(t,e){let{resetScaleOnMoveNodeToCenter:i}=this.mindMap.opt;e!==void 0&&(i=e);let{transform:n,state:o}=this.mindMap.view.getTransformData(),{left:s,top:a,width:l,height:h}=t;i||(s*=n.scaleX,a*=n.scaleY,l*=n.scaleX,h*=n.scaleY);let c=this.mindMap.width/2,u=this.mindMap.height/2,f=s+l/2,d=a+h/2,p=c-o.x,m=u-o.y,v=p-f,g=m-d;this.mindMap.view.translateX(v),this.mindMap.view.translateY(g),i&&this.mindMap.view.setScale(1)}setRootNodeCenter(){this.moveNodeToCenter(this.root)}expandToNodeUid(t,e=()=>{}){if(!this.renderTree){e();return}let i=[],n=!1;const o={};Pa(this.renderTree,(a,l)=>{if(a.data.uid===t)return i=l?[...o[l.data.uid],l]:[],"stop";if($r(a.data).forEach(c=>{c.uid===t&&(i=l?[...o[l.data.uid],l,a]:[],n=!0)}),n)return"stop";o[a.data.uid]=l?[...o[l.data.uid],l]:[]});let s=!1;if(i.forEach(a=>{a.data.expand||(s=!0,a.data.expand=!0)}),n){const a=i[i.length-1];a&&ge(a,null,l=>{l.data.expand||(s=!0,l.data.expand=!0)})}s?this.mindMap.render(e):e()}findNodeByUid(t){if(!this.root)return;let e=null;return ge(this.root,null,i=>{if(i.getData("uid")===t)return e=i,!0;let n=!1;if((i._generalizationList||[]).forEach(o=>{o.generalizationNode.getData("uid")===t&&(e=o.generalizationNode,n=!0)}),n)return!0}),e}highlightNode(t,e,i){if(this.isRendering)return;i={stroke:"rgb(94, 200, 248)",fill:"transparent",...i||{}},this.highlightBoxNode?this.highlightBoxNodeStyle&&(this.highlightBoxNodeStyle.stroke!==i.stroke||this.highlightBoxNodeStyle.fill!==i.fill)&&this.highlightBoxNode.stroke({color:i.stroke||"transparent"}).fill({color:i.fill||"transparent"}):this.highlightBoxNode=new On().stroke({color:i.stroke||"transparent"}).fill({color:i.fill||"transparent"}),this.highlightBoxNodeStyle={...i};let n=1/0,o=1/0,s=-1/0,a=-1/0;e?t.children.slice(e[0],e[1]+1).forEach(h=>{h.left<n&&(n=h.left),h.top<o&&(o=h.top);const c=h.left+h.width,u=h.top+h.height;c>s&&(s=c),u>a&&(a=u)}):(n=t.left,o=t.top,s=t.left+t.width,a=t.top+t.height),this.highlightBoxNode.plot([[n,o],[s,o],[s,a],[n,a]]),this.mindMap.otherDraw.add(this.highlightBoxNode)}closeHighlightNode(){this.highlightBoxNode&&this.highlightBoxNode.remove()}hasRichTextPlugin(){return!!this.mindMap.richText}}const zn={default:o0},xc={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(let r=0;r<=9;r++)xc[r]=r+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach((r,t)=>{xc[r]=t+65});const Pn=xc;class pb{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.shortcutMap={},this.shortcutMapCache={},this.isPause=!1,this.isInSvg=!1,this.bindEvent()}extendKeyMap(t,e){Pn[t]=e}removeKeyMap(t){typeof Pn[t]<"u"&&delete Pn[t]}pause(){this.isPause=!0}recovery(){this.isPause=!1}save(){Object.keys(this.shortcutMapCache).length>0||(this.shortcutMapCache=this.shortcutMap,this.shortcutMap={})}restore(){Object.keys(this.shortcutMapCache).length<=0||(this.shortcutMap=this.shortcutMapCache,this.shortcutMapCache={})}bindEvent(){this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("svg_mouseenter",()=>{this.isInSvg=!0}),this.mindMap.on("svg_mouseleave",()=>{this.mindMap.renderer.textEdit.isShowTextEdit()||this.mindMap.associativeLine&&this.mindMap.associativeLine.showTextEdit||(this.isInSvg=!1)}),window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}defaultEnableCheck(t){const e=t.target;return e===document.body||e.classList.contains(ut.EDIT_NODE_CLASS.SMM_NODE_EDIT_WRAP)||e.classList.contains(ut.EDIT_NODE_CLASS.RICH_TEXT_EDIT_WRAP)||e.classList.contains(ut.EDIT_NODE_CLASS.ASSOCIATIVE_LINE_TEXT_EDIT_WRAP)}onKeydown(t){const{enableShortcutOnlyWhenMouseInSvg:e,beforeShortcutRun:i,customCheckEnableShortcut:n}=this.mindMap.opt;(typeof n=="function"?n:this.defaultEnableCheck)(t)&&(this.isPause||e&&!this.isInSvg||Object.keys(this.shortcutMap).forEach(s=>{if(this.checkKey(t,s)){if(this.checkKey(t,"Control+v")||(t.stopPropagation(),t.preventDefault()),typeof i=="function"&&i(s,[...this.mindMap.renderer.activeNodeList]))return;this.shortcutMap[s].forEach(a=>{a()})}}))}checkKey(t,e){let i=this.getOriginEventCodeArr(t),n=this.getKeyCodeArr(e);if(i.length!==n.length)return!1;for(let o=0;o<i.length;o++){let s=n.findIndex(a=>a===i[o]);if(s===-1)return!1;n.splice(s,1)}return!0}getOriginEventCodeArr(t){let e=[];return(t.ctrlKey||t.metaKey)&&e.push(Pn.Control),t.altKey&&e.push(Pn.Alt),t.shiftKey&&e.push(Pn.Shift),e.includes(t.keyCode)||e.push(t.keyCode),e}hasCombinationKey(t){return t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}getKeyCodeArr(t){let e=t.split(/\s*\+\s*/),i=[];return e.forEach(n=>{i.push(Pn[n])}),i}addShortcut(t,e){t.split(/\s*\|\s*/).forEach(i=>{this.shortcutMap[i]?this.shortcutMap[i].push(e):this.shortcutMap[i]=[e]})}removeShortcut(t,e){t.split(/\s*\|\s*/).forEach(i=>{if(this.shortcutMap[i])if(e){let n=this.shortcutMap[i].findIndex(o=>o===e);n!==-1&&this.shortcutMap[i].splice(n,1)}else this.shortcutMap[i]=[],delete this.shortcutMap[i]})}getShortcutFn(t){let e=[];return t.split(/\s*\|\s*/).forEach(i=>{e=this.shortcutMap[i]||[]}),e}}const gb={version:"0.13.1"};class mb{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0,this.registerShortcutKeys(),this.originAddHistory=this.addHistory.bind(this),this.addHistory=vs(this.addHistory,this.mindMap.opt.addHistoryTime,this),this.isPause=!1}pause(){this.isPause=!0}recovery(){this.isPause=!1}clearHistory(){this.history=[],this.activeHistoryIndex=0,this.mindMap.emit("back_forward",0,0)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Control+z",()=>{this.mindMap.execCommand("BACK")}),this.mindMap.keyCommand.addShortcut("Control+y",()=>{this.mindMap.execCommand("FORWARD")})}exec(t,...e){if(this.commands[t]){if(this.commands[t].forEach(i=>{i(...e)}),this.mindMap.emit("afterExecCommand",t,...e),["BACK","FORWARD","SET_NODE_ACTIVE","CLEAR_ACTIVE_NODE"].includes(t))return;this.addHistory()}}add(t,e){this.commands[t]?this.commands[t].push(e):this.commands[t]=[e]}remove(t,e){if(this.commands[t])if(!e)this.commands[t]=[],delete this.commands[t];else{let i=this.commands[t].find(n=>n===e);i!==-1&&this.commands[t].splice(i,1)}}addHistory(){if(this.mindMap.opt.readonly||this.isPause)return;const t=this.history.length>0?this.history[this.activeHistoryIndex]:null,e=this.getCopyData();t!==e&&(t&&JSON.stringify(t)===JSON.stringify(e)||(this.emitDataUpdatesEvent(t,e),this.history=this.history.slice(0,this.activeHistoryIndex+1),this.history.push(Ni(e)),this.history.length>this.mindMap.opt.maxHistoryCount&&this.history.shift(),this.activeHistoryIndex=this.history.length-1,this.mindMap.emit("data_change",e),this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length)))}back(t=1){if(!this.mindMap.opt.readonly&&this.activeHistoryIndex-t>=0){const e=this.history[this.activeHistoryIndex];this.activeHistoryIndex-=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);const i=Ni(this.history[this.activeHistoryIndex]);return this.emitDataUpdatesEvent(e,i),i}}forward(t=1){if(this.mindMap.opt.readonly)return;let e=this.history.length;if(this.activeHistoryIndex+t<=e-1){const i=this.history[this.activeHistoryIndex];this.activeHistoryIndex+=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);const n=Ni(this.history[this.activeHistoryIndex]);return this.emitDataUpdatesEvent(i,n),n}}getCopyData(){if(!this.mindMap.renderer.renderTree)return null;const t=l0({},this.mindMap.renderer.renderTree,!0);return t.smmVersion=gb.version,t}removeDataUid(t){t=Ni(t);let e=i=>{delete i.data.uid,i.children&&i.children.length>0&&i.children.forEach(n=>{e(n)})};return e(t),t}emitDataUpdatesEvent(t,e){try{const i="data_change_detail";if(this.mindMap.event.listenerCount(i)>0&&t&&e){const o=Ni(y0(t)),s=Ni(y0(e)),a=[],l=(h,c)=>(h.children&&h.children.length>0&&h.children.forEach((u,f)=>{h.children[f]=typeof u=="string"?c[u]:c[u.data.uid],l(h.children[f],c)}),h);Object.keys(s).forEach(h=>{o[h]?pc(o[h],s[h])||a.push({action:"update",oldData:l(o[h],o),data:l(s[h],s)}):a.push({action:"create",data:l(s[h],s)})}),Object.keys(o).forEach(h=>{s[h]||a.push({action:"delete",data:l(o[h],o)})}),this.mindMap.emit(i,a)}}catch(i){this.mindMap.opt.errorHandler(Cn.DATA_CHANGE_DETAIL_EVENT_ERROR,i)}}}class vb{constructor(){this.has={},this.queue=[],this.nextTick=y6(this.flush,this)}push(t,e){if(this.has[t]){this.replaceTask(t,e);return}this.has[t]=!0,this.queue.push({name:t,fn:e}),this.nextTick()}replaceTask(t,e){const i=this.queue.findIndex(n=>n.name===t);i!==-1&&(this.queue[i]={name:t,fn:e})}flush(){let t=this.queue.slice(0);this.queue=[],t.forEach(({name:e,fn:i})=>{this.has[e]=!1,i()})}}const F0={el:null,data:null,viewData:null,readonly:!1,layout:ut.LAYOUT.LOGICAL_STRUCTURE,fishboneDeg:45,theme:"default",themeConfig:{},scaleRatio:.2,translateRatio:1,minZoomRatio:20,maxZoomRatio:400,customCheckIsTouchPad:null,mouseScaleCenterUseMousePosition:!0,maxTag:5,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,customNoteContentShow:null,textAutoWrapWidth:500,customHandleMousewheel:null,mousewheelAction:ut.MOUSE_WHEEL_ACTION.MOVE,mousewheelMoveStep:100,mousewheelZoomActionReverse:!0,defaultInsertSecondLevelNodeText:"二级节点",defaultInsertBelowSecondLevelNodeText:"分支主题",expandBtnStyle:{color:"#808080",fill:"#fff",fontSize:13,strokeColor:"#333333"},expandBtnIcon:{open:"",close:""},expandBtnNumHandler:null,isShowExpandNum:!0,enableShortcutOnlyWhenMouseInSvg:!0,customCheckEnableShortcut:null,initRootNodePosition:null,nodeTextEditZIndex:3e3,nodeNoteTooltipZIndex:3e3,isEndNodeTextEditOnClickOuter:!0,maxHistoryCount:500,alwaysShowExpandBtn:!1,notShowExpandBtn:!1,iconList:[],maxNodeCacheCount:1e3,fitPadding:50,enableCtrlKeyNodeSelection:!0,useLeftKeySelectionRightKeyDrag:!1,beforeTextEdit:null,isUseCustomNodeContent:!1,customCreateNodeContent:null,customInnerElsAppendTo:null,enableAutoEnterTextEditWhenKeydown:!1,autoEmptyTextWhenKeydownEnterEdit:!1,customHandleClipboardText:null,disableMouseWheelZoom:!1,errorHandler:(r,t)=>{console.error(r,t)},enableDblclickBackToRootNode:!1,hoverRectColor:"rgb(94, 200, 248)",hoverRectPadding:2,selectTextOnEnterEditText:!1,deleteNodeActive:!0,fit:!1,tagsColorMap:{},cooperateStyle:{avatarSize:22,fontSize:12},onlyOneEnableActiveNodeOnCooperate:!1,defaultGeneralizationText:"概要",handleIsSplitByWrapOnPasteCreateNewNode:null,addHistoryTime:100,isDisableDrag:!1,createNewNodeBehavior:ut.CREATE_NEW_NODE_BEHAVIOR.DEFAULT,defaultNodeImage:"",isLimitMindMapInCanvas:!1,handleNodePasteImg:null,customCreateNodePath:null,customCreateNodePolygon:null,customTransformNodeLinePath:null,beforeShortcutRun:null,resetScaleOnMoveNodeToCenter:!1,createNodePrefixContent:null,createNodePostfixContent:null,disabledClipboard:!1,customHyperlinkJump:null,openPerformance:!1,performanceConfig:{time:250,padding:100,removeNodeWhenOutCanvas:!0},emptyTextMeasureHeightText:"abc123我和你",openRealtimeRenderOnNodeTextEdit:!1,mousedownEventPreventDefault:!1,onlyPasteTextWhenHasImgAndText:!0,enableDragModifyNodeWidth:!0,minNodeTextModifyWidth:20,maxNodeTextModifyWidth:-1,customHandleLine:null,addHistoryOnInit:!0,noteIcon:{icon:"",style:{}},hyperlinkIcon:{icon:"",style:{}},attachmentIcon:{icon:"",style:{}},isShowCreateChildBtnIcon:!0,quickCreateChildBtnIcon:{icon:"",style:{}},customQuickCreateChildBtnClick:null,addCustomContentToNode:null,enableInheritAncestorLineStyle:!0,selectTranslateStep:3,selectTranslateLimit:20,enableFreeDrag:!1,autoMoveWhenMouseInEdgeOnDrag:!0,dragMultiNodeRectConfig:{width:40,height:20,fill:"rgb(94, 200, 248)"},dragPlaceholderRectFill:"rgb(94, 200, 248)",dragPlaceholderLineConfig:{color:"rgb(94, 200, 248)",width:2},dragOpacityConfig:{cloneNodeOpacity:.5,beingDragNodeOpacity:.3},handleDragCloneNode:null,beforeDragEnd:null,beforeDragStart:null,watermarkConfig:{onlyExport:!1,text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"#999",opacity:.5,fontSize:14},belowNode:!1},exportPaddingX:10,exportPaddingY:10,resetCss:`
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
  `,minExportImgCanvasScale:2,addContentToHeader:null,addContentToFooter:null,handleBeingExportSvg:null,maxCanvasSize:16384,defaultAssociativeLineText:"关联",associativeLineIsAlwaysAboveNode:!0,associativeLineInitPointsPosition:{from:"",to:""},enableAdjustAssociativeLinePoints:!0,beforeAssociativeLineConnection:null,disableTouchZoom:!1,minTouchZoomScale:20,maxTouchZoomScale:-1,isLimitMindMapInCanvasWhenHasScrollbar:!0,isOnlySearchCurrentRenderNodes:!1,beforeCooperateUpdate:null,rainbowLinesConfig:{open:!1,colorsList:[]},demonstrateConfig:null,enableEditFormulaInRichTextEdit:!0,katexFontPath:"https://unpkg.com/katex@0.16.11/dist/",getKatexOutputType:null,transformRichTextOnEnterEdit:null,beforeHideRichTextEdit:null,outerFramePaddingX:10,outerFramePaddingY:10,onlyPainterNodeCustomStyles:!1,beforeDeleteNodeImg:null,imgResizeBtnSize:25,minImgResizeWidth:50,minImgResizeHeight:50,maxImgResizeWidthInheritTheme:!1,maxImgResizeWidth:1/0,maxImgResizeHeight:1/0,customDeleteBtnInnerHTML:"",customResizeBtnInnerHTML:""};class Ue{constructor(t={}){if(Ue.instanceCount++,this.opt=this.handleOpt(La(F0,t)),this.opt.data=this.handleData(this.opt.data),this.el=this.opt.el,!this.el)throw new Error("缺少容器元素el");this.getElRectInfo(),this.initWidth=this.width,this.initHeight=this.height,this.cssEl=null,this.cssTextMap={},this.nodeInnerPrefixList=[],this.initContainer(),this.initTheme(),this.initCache(),this.event=new K2({mindMap:this}),this.keyCommand=new pb({mindMap:this}),this.command=new mb({mindMap:this}),this.renderer=new fb({mindMap:this}),this.view=new q2({mindMap:this}),this.batchExecution=new vb,Ue.pluginList.forEach(e=>{this.initPlugin(e)}),this.addCss(),this.render(this.opt.fit?()=>this.view.fit():()=>{}),this.opt.addHistoryOnInit&&this.opt.data&&this.command.addHistory()}handleOpt(t){return Tn.includes(t.layout)||(t.layout=ut.LAYOUT.LOGICAL_STRUCTURE),t.theme=t.theme&&zn[t.theme]?t.theme:"default",t}handleData(t){return nr(t)||Object.keys(t).length<=0?null:(t=Ni(t||{}),t.data&&!t.data.expand&&(t.data.expand=!0),ys([t],!1,null,!0),t)}initContainer(){const{associativeLineIsAlwaysAboveNode:t}=this.opt;this.el.classList.add("smm-mind-map-container");const e=()=>{this.associativeLineDraw=this.draw.group(),this.associativeLineDraw.addClass("smm-associative-line-container")};this.svg=Qe().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.draw.addClass("smm-container"),this.lineDraw=this.draw.group(),this.lineDraw.addClass("smm-line-container"),t||e(),this.nodeDraw=this.draw.group(),this.nodeDraw.addClass("smm-node-container"),t&&e(),this.otherDraw=this.draw.group(),this.otherDraw.addClass("smm-other-container")}clearDraw(){this.lineDraw.clear(),this.associativeLineDraw.clear(),this.nodeDraw.clear(),this.otherDraw.clear()}appendCss(t,e){this.cssTextMap[t]=e,this.removeCss(),this.addCss()}removeAppendCss(t){this.cssTextMap[t]&&(delete this.cssTextMap[t],this.removeCss(),this.addCss())}joinCss(){return U2+Object.keys(this.cssTextMap).map(t=>this.cssTextMap[t]).join(`
`)}addCss(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=this.joinCss(),document.head.appendChild(this.cssEl)}removeCss(){this.cssEl&&document.head.removeChild(this.cssEl)}render(t,e=""){this.batchExecution.push("render",()=>{this.initTheme(),this.renderer.render(t,e)})}reRender(t,e=""){this.renderer.reRender=!0,this.renderer.clearCache(),this.clearDraw(),this.render(t,e)}getElRectInfo(){if(this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.width<=0||this.height<=0)throw new Error("容器元素el的宽高不能为0")}resize(){const t=this.width,e=this.height;this.getElRectInfo(),this.svg.size(this.width,this.height),(t!==this.width||e!==this.height)&&(this.demonstrate?this.demonstrate.isInDemonstrate||this.render():this.render()),this.emit("resize")}on(t,e){this.event.on(t,e)}emit(t,...e){this.event.emit(t,...e)}off(t,e){this.event.off(t,e)}initCache(){this.commonCaches={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null}}initTheme(){this.themeConfig=x0(zn[this.opt.theme]||zn.default,this.opt.themeConfig),or.setBackgroundStyle(this.el,this.themeConfig)}setTheme(t,e=!1){this.execCommand("CLEAR_ACTIVE_NODE"),this.opt.theme=t,e||this.render(null,ut.CHANGE_THEME),this.emit("view_theme_change",t)}getTheme(){return this.opt.theme}setThemeConfig(t,e=!1){const i=A6(this.themeConfig,t);if(this.opt.themeConfig=t,!e){const n=f6(i);this.render(null,n?"":ut.CHANGE_THEME)}}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(t){return t===void 0?this.themeConfig:this.themeConfig[t]}getConfig(t){return t===void 0?this.opt:this.opt[t]}updateConfig(t={}){this.emit("before_update_config",this.opt);const e={...this.opt};this.opt=this.handleOpt(La.all([F0,this.opt,t])),this.emit("after_update_config",this.opt,e)}getLayout(){return this.opt.layout}setLayout(t,e=!1){Tn.includes(t)||(t=ut.LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=t,this.view.reset(),this.renderer.setLayout(),e||this.render(null,ut.CHANGE_LAYOUT),this.emit("layout_change",t)}execCommand(...t){this.command.exec(...t)}updateData(t){t=this.handleData(t),this.emit("before_update_data",t),this.renderer.setData(t),this.render(),this.command.addHistory(),this.emit("update_data",t)}setData(t){t=this.handleData(t),this.emit("before_set_data",t),this.opt.data=t,this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.renderer.setData(t),this.reRender(()=>{},ut.SET_DATA),this.emit("set_data",t)}setFullData(t){t.root&&this.setData(t.root),t.layout&&this.setLayout(t.layout),t.theme&&(t.theme.template&&this.setTheme(t.theme.template),t.theme.config&&this.setThemeConfig(t.theme.config)),t.view&&this.view.setTransformData(t.view)}getData(t){let e=this.command.getCopyData(),i={};return t?i={layout:this.getLayout(),root:e,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:i=e,Ni(i)}async export(...t){try{if(!this.doExport)throw new Error("请注册Export插件!");return await this.doExport.export(...t)}catch(e){this.opt.errorHandler(Cn.EXPORT_ERROR,e)}}toPos(t,e){return{x:t-this.elRect.left,y:e-this.elRect.top}}setMode(t){if(![ut.MODE.READONLY,ut.MODE.EDIT].includes(t))return;const e=t===ut.MODE.READONLY;e!==this.opt.readonly&&(e&&(this.renderer.textEdit.isShowTextEdit()&&(this.renderer.textEdit.hideEditTextBox(),this.command.originAddHistory()),this.execCommand("CLEAR_ACTIVE_NODE")),this.opt.readonly=e,!e&&this.command.history.length<=0&&this.command.originAddHistory(),this.emit("mode_change",t))}getSvgData({paddingX:t=0,paddingY:e=0,ignoreWatermark:i=!1,addContentToHeader:n,addContentToFooter:o,node:s}={}){const{watermarkConfig:a,openPerformance:l}=this.opt;l&&this.renderer.forceLoadNode(s);const{cssTextList:h,header:c,headerHeight:u,footer:f,footerHeight:d}=I6({addContentToHeader:n,addContentToFooter:o}),p=this.svg,m=this.draw,v=p.width(),g=p.height(),b=m.transform(),y=this.elRect;m.scale(1/b.scaleX,1/b.scaleY);const x=m.rbox();let C=null;s&&(C=b0(s,x.x,x.y,t,e));const R=0;x.width+=t*2,x.height+=e*2+R+u+d,m.translate(t,e),p.size(x.width,x.height),m.translate(-x.x+y.left,-x.y+y.top);let F=p.clone();const U=this.watermark&&this.watermark.hasWatermark();if(!i&&U){this.watermark.isInExport=!0;const{onlyExport:_}=a;x.width>v||x.height>g?(this.width=x.width,this.height=x.height,this.watermark.onResize(),F=p.clone(),this.width=v,this.height=g,this.watermark.onResize()):_&&(this.watermark.onResize(),F=p.clone()),_&&this.watermark.clear(),this.watermark.isInExport=!1}[this.joinCss(),...h].forEach(_=>{F.add(Qe(`<style>${_}</style>`))}),c&&u>0&&(F.findOne(".smm-container").translate(0,u),c.width(x.width),c.y(e),F.add(c,0)),f&&d>0&&(f.width(x.width),f.y(x.height-e-d),F.add(f));const T=p.find("defs"),H=F.find("defs");return T.forEach((_,k)=>{const O=H[k];if(!O)return;const N=_.children(),X=O.children();for(let Z=0;Z<N.length;Z++){const W=N[Z],yt=X[Z];W&&yt&&yt.attr("id",W.attr("id"))}}),p.size(v,g),m.transform(b),{svg:F,svgHTML:F.svg(),clipData:C,rect:{...x,ratio:x.width/x.height},origWidth:v,origHeight:g,scaleX:b.scaleX,scaleY:b.scaleY}}addPlugin(t,e){Ue.hasPlugin(t)===-1&&Ue.usePlugin(t,e),this.initPlugin(t)}removePlugin(t){let e=Ue.hasPlugin(t);e!==-1&&(Ue.pluginList.splice(e,1),this[t.instanceName]&&(this[t.instanceName].beforePluginRemove&&this[t.instanceName].beforePluginRemove(),delete this[t.instanceName]))}initPlugin(t){this[t.instanceName]||(this[t.instanceName]=new t({mindMap:this,pluginOpt:t.pluginOpt}))}destroy(){this.emit("beforeDestroy"),this.renderer.textEdit.hideEditTextBox(),this.renderer.textEdit.removeTextEditEl(),[...Ue.pluginList].forEach(t=>{this[t.instanceName]&&this[t.instanceName].beforePluginDestroy&&this[t.instanceName].beforePluginDestroy(),this[t.instanceName]=null}),this.event.unbind(),this.svg.remove(),or.removeBackgroundStyle(this.el),this.el.classList.remove("smm-mind-map-container"),this.el.innerHTML="",this.el=null,this.removeCss(),Ue.instanceCount--}}Ue.pluginList=[],Ue.usePlugin=(r,t={})=>(Ue.hasPlugin(r)!==-1||(r.pluginOpt=t,Ue.pluginList.push(r)),Ue),Ue.hasPlugin=r=>Ue.pluginList.findIndex(t=>t===r),Ue.instanceCount=0,Ue.defineTheme=(r,t={})=>{if(zn[r])return new Error("该主题名称已存在");zn[r]=x0(o0,t)},Ue.removeTheme=r=>{zn[r]&&(zn[r]=null)};const yb=["rgb(255, 213, 73)","rgb(255, 136, 126)","rgb(107, 225, 141)","rgb(151, 171, 255)","rgb(129, 220, 242)","rgb(255, 163, 125)","rgb(152, 132, 234)"];class I0{constructor({mindMap:t}){this.mindMap=t}updateRainLinesConfig(t={}){const e=this.mindMap.opt.rainbowLinesConfig||{};e.open=!!t.open,e.colorsList=Array.isArray(t.colorsList)?t.colorsList:[],this.mindMap.opt.rainbowLinesConfig.open&&this.removeNodeLineColor(),this.mindMap.render()}removeNodeLineColor(){const t=this.mindMap.renderer.renderTree;t&&(ge(t,null,e=>{delete e.data.lineColor},null,!0),this.mindMap.command.addHistory())}getSecondLayerAncestor(t){if(t.layerIndex===0)return null;if(t.layerIndex===1)return t;{let e=null,i=t.parent;for(;i;){if(i.layerIndex===1)return i;i=i.parent}return e}}getColorsList(){const{rainbowLinesConfig:t}=this.mindMap.opt;return t&&Array.isArray(t.colorsList)&&t.colorsList.length>0?t.colorsList:[...yb]}getNodeColor(t){const{rainbowLinesConfig:e}=this.mindMap.opt;if(!e||!e.open)return"";const i=this.getSecondLayerAncestor(t);if(!i)return;const n=bo(i),o=this.getColorsList();return o[n%o.length]}}I0.instanceName="rainbowLines";const bb=r=>{r=Wa(r);const t={},e={};r.forEach(n=>{const o=n.parent;if(o){const s=o.uid;e[s]=o;const a=n.getIndexInBrothers(),l={node:n,index:a};t[s]?t[s].find(h=>h.index===l.index)||t[s].push(l):t[s]=[l]}});const i=[];return Object.keys(t).forEach(n=>{const o=t[n],s=e[n];if(o.length>1){const a=o.map(f=>f.index).sort((f,d)=>f-d),l=a[0],h=a[a.length-1];let c=-1,u=-1;for(let f=l;f<=h;f++)a.includes(f)?(c===-1&&(c=f),u=f):(c!==-1&&u!==-1&&i.push({node:s,range:[c,u]}),c=-1,u=-1);c!==-1&&u!==-1&&i.push({node:s,range:[c,u]})}else i.push({node:s,range:[o[0].index,o[0].index]})}),i},xb=r=>{const t=r.children;if(!t||t.length<=0)return;const e=[],i={};return t.forEach((n,o)=>{const s=n.getData("outerFrame");if(!s)return;const a=s.groupId;a?(i[a]||(i[a]=[]),i[a].push({node:n,index:o})):e.push({nodeList:[n],range:[o,o]})}),Object.keys(i).forEach(n=>{const o=i[n];e.push({nodeList:o.map(s=>s.node),range:[o[0].index,o[o.length-1].index]})}),e},B0={radius:5,strokeWidth:2,strokeColor:"#0984e3",strokeDasharray:"5,5",fill:"rgba(9,132,227,0.05)"};class z0{constructor(t={}){this.mindMap=t.mindMap,this.draw=null,this.createDrawContainer(),this.outerFrameElList=[],this.activeOuterFrame=null,this.bindEvent()}createDrawContainer(){this.draw=this.mindMap.draw.group(),this.draw.addClass("smm-outer-frame-container"),this.draw.back(),this.draw.forward()}bindEvent(){this.renderOuterFrames=this.renderOuterFrames.bind(this),this.mindMap.on("node_tree_render_end",this.renderOuterFrames),this.mindMap.on("data_change",this.renderOuterFrames),this.clearActiveOuterFrame=this.clearActiveOuterFrame.bind(this),this.mindMap.on("draw_click",this.clearActiveOuterFrame),this.mindMap.on("node_click",this.clearActiveOuterFrame),this.addOuterFrame=this.addOuterFrame.bind(this),this.mindMap.command.add("ADD_OUTER_FRAME",this.addOuterFrame),this.removeActiveOuterFrame=this.removeActiveOuterFrame.bind(this),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeActiveOuterFrame)}unBindEvent(){this.mindMap.off("node_tree_render_end",this.renderOuterFrames),this.mindMap.off("data_change",this.renderOuterFrames),this.mindMap.off("draw_click",this.clearActiveOuterFrame),this.mindMap.off("node_click",this.clearActiveOuterFrame),this.mindMap.command.remove("ADD_OUTER_FRAME",this.addOuterFrame),this.mindMap.keyCommand.removeShortcut("Del|Backspace",this.removeActiveOuterFrame)}addOuterFrame(t,e={}){t=Oi(t);const i=this.mindMap.renderer.activeNodeList;if(i.length<=0&&t.length<=0)return;let n=t.length>0?t:i;n=n.filter(s=>!s.isRoot&&!s.isGeneralization),bb(n).forEach(({node:s,range:a})=>{const l=s.children.slice(a[0],a[1]+1),h=Di();l.forEach(c=>{let u=c.getData("outerFrame");u?u={...u,...e,groupId:h}:u={...e,groupId:h},this.mindMap.execCommand("SET_NODE_DATA",c,{outerFrame:u})})})}getActiveOuterFrame(){return this.activeOuterFrame?{...this.activeOuterFrame}:null}removeActiveOuterFrame(){if(!this.activeOuterFrame)return;const{node:t,range:e}=this.activeOuterFrame;this.getRangeNodeList(t,e).forEach(i=>{this.mindMap.execCommand("SET_NODE_DATA",i,{outerFrame:null})}),this.mindMap.emit("outer_frame_delete")}updateActiveOuterFrame(t={}){if(!this.activeOuterFrame)return;const{node:e,range:i}=this.activeOuterFrame;this.getRangeNodeList(e,i).forEach(n=>{const o=n.getData("outerFrame");this.mindMap.execCommand("SET_NODE_DATA",n,{outerFrame:{...o,...t}})})}getRangeNodeList(t,e){return t.children.slice(e[0],e[1]+1).filter(i=>i.getData("outerFrame"))}renderOuterFrames(){this.clearOuterFrameElList();let t=this.mindMap.renderer.root;if(!t)return;const e=this.mindMap.draw.transform(),{outerFramePaddingX:i,outerFramePaddingY:n}=this.mindMap.opt;ge(t,null,o=>{if(!o)return;const s=xb(o);s&&s.length>0&&s.forEach(({nodeList:a,range:l})=>{if(l[0]===-1||l[1]===-1)return;const{left:h,top:c,width:u,height:f}=B6(a);if(!Number.isFinite(h)||!Number.isFinite(c)||!Number.isFinite(u)||!Number.isFinite(f))return;const d=this.createOuterFrameEl((h-i-this.mindMap.elRect.left-e.translateX)/e.scaleX,(c-n-this.mindMap.elRect.top-e.translateY)/e.scaleY,(u+i*2)/e.scaleX,(f+n*2)/e.scaleY,a[0].getData("outerFrame"));d.on("click",p=>{p.stopPropagation(),this.setActiveOuterFrame(d,o,l)})})},()=>{},!0,0)}setActiveOuterFrame(t,e,i){this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.clearActiveOuterFrame(),this.activeOuterFrame={el:t,node:e,range:i},t.stroke({dasharray:"none"}),this.mindMap.emit("outer_frame_active",t,e,i)}clearActiveOuterFrame(){if(!this.activeOuterFrame)return;const{el:t}=this.activeOuterFrame;t.stroke({dasharray:t.cacheStyle.dasharray||B0.strokeDasharray}),this.activeOuterFrame=null}createOuterFrameEl(t,e,i,n,o={}){o={...B0,...o};const s=this.draw.rect().size(i,n).radius(o.radius).stroke({width:o.strokeWidth,color:o.strokeColor,dasharray:o.strokeDasharray}).fill({color:o.fill}).x(t).y(e);return s.cacheStyle={dasharray:o.strokeDasharray},this.outerFrameElList.push(s),s}clearOuterFrameElList(){this.outerFrameElList.forEach(t=>{t.remove()}),this.outerFrameElList=[],this.activeOuterFrame=null}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}z0.instanceName="outerFrame";const wc=(r,t)=>r.getData("associativeLineTargets").findIndex(e=>e===t.getData("uid")),Ka=(r,t,e,i)=>{let o=r+(e-r)/2,s=t,a=o,l=i;return Math.abs(r-e)<=5&&(o=r+(i-t)/2,a=o),Math.abs(t-i)<=5&&(o=r,s=t-(e-r)/2,a=e,l=s),[{x:o,y:s},{x:a,y:l}]},Ec=(r,t,e,i)=>`M ${r.x},${r.y} C ${e.x},${e.y} ${i.x},${i.y} ${t.x},${t.y}`,P0=r=>{let{left:t,top:e,width:i,height:n}=r;return{right:t+i,bottom:e+n,left:t,top:e,width:i,height:n}},wb=(r,t,e,i)=>{let n=Ka(r,t,e,i);return Ec({x:r,y:t},{x:e,y:i},n[0],n[1])},Eb=(r,t)=>{const{left:e,top:i,translateLeft:n,translateTop:o,width:s,height:a}=r,l=t.clientX,h=t.clientY,c=n+s/2,u=o+a/2,f=e+s/2,d=i+a/2,p=Math.atan(a/s),m=l-c,v=u-h,g=Math.atan2(v,m);let b=e+s,y=i+a;if(g<p&&g>=-p){const R=g*(s/2);return(g<p&&g>=0||g>=-p&&g<0)&&(y=d-R),{x:b,y,dir:"right",range:R}}else if(g>=p&&g<Math.PI-p){y=i;let R=0;if(g<Math.PI/2-p&&g>=p){const F=a/2/g;R=-F,b=f+F}else if(g>=Math.PI/2-p&&g<Math.PI-p){const F=(c-l)/(u-h),U=a/2*F;R=U,b=f-U}return{x:b,y,dir:"top",range:R}}else if(g<-p&&g>=p-Math.PI){let R=0;if(g>=p-Math.PI/2&&g<-p){const F=a/2/g;R=F,b=f-F}else if(g<p-Math.PI/2&&g>=p-Math.PI){const F=(c-l)/(u-h),U=a/2*F;R=-U,b=f+U}return{x:b,y,dir:"bottom",range:R}}b=e;const C=(u-h)/(c-l)*(s/2);return(g>=-Math.PI&&g<p-Math.PI||g<Math.PI&&g>=Math.PI-p)&&(y=d-C),{x:b,y,dir:"left",range:C}},Un=(r,t="right",e=0,i=null)=>{let{left:n,top:o,width:s,height:a}=r;if(i)return Eb(r,i);switch(t){case"left":return{x:n,y:o+a/2-e,dir:t};case"right":return{x:n+s,y:o+a/2-e,dir:t};case"top":return{x:n+s/2-e,y:o,dir:t};case"bottom":return{x:n+s/2-e,y:o+a,dir:t}}},U0=(r,t)=>{const e=P0(r),i=P0(t);let n="",o="";switch(F6({x:e.left,y:e.top,width:e.width,height:e.height},{x:i.left,y:i.top,width:i.width,height:i.height})){case"left-top":n="right",o="top";break;case"right-top":n="left",o="top";break;case"right-bottom":n="left",o="bottom";break;case"left-bottom":n="right",o="bottom";break;case"left":n="right",o="left";break;case"right":n="left",o="right";break;case"top":n="right",o="right";break;case"bottom":n="left",o="left";break;case"overlap":n="right",o="right";break}return[Un(r,n),Un(t,o)]},Tb=(r,t,e,i)=>{let n=wc(e,i),o=[],s=e.getData("associativeLineTargetControlOffsets");if(s&&s[n]){let a=s[n];o=[{x:r.x+a[0].x,y:r.y+a[0].y},{x:t.x+a[1].x,y:t.y+a[1].y}]}else o=Ka(r.x,r.y,t.x,t.y);return{path:Ec(r,t,o[0],o[1]),controlPoints:o}},j0=(r,t)=>{let e=Ka(r.x,r.y,t.x,t.y);return[{x:e[0].x-r.x,y:e[0].y-r.y},{x:e[1].x-t.x,y:e[1].y-t.y}]};function Cb(r,t){let{associativeLineActiveColor:e}=this.getStyleConfig(r,t);this.controlLine1=this.associativeLineDraw.line().stroke({color:e,width:2}),this.controlLine2=this.associativeLineDraw.line().stroke({color:e,width:2}),this.controlPoint1=this.createOneControlNode("controlPoint1",r,t),this.controlPoint2=this.createOneControlNode("controlPoint2",r,t)}function Sb(r,t,e){let{associativeLineActiveColor:i}=this.getStyleConfig(t,e);return this.associativeLineDraw.circle(this.controlPointDiameter).stroke({color:i}).fill({color:"#fff"}).click(n=>{n.stopPropagation()}).mousedown(n=>{this.onControlPointMousedown(n,r)})}function Nb(r,t){r.stopPropagation(),r.preventDefault(),this.isControlPointMousedown=!0,this.mousedownControlPointKey=t}function Ab(r){if(!this.isControlPointMousedown||!this.mousedownControlPointKey||!this[this.mousedownControlPointKey])return;r.stopPropagation(),r.preventDefault();let t=this.controlPointDiameter/2,{x:e,y:i}=this.getTransformedEventPos(r);this.controlPointMousemoveState.pos={x:e,y:i},this[this.mousedownControlPointKey].x(e-t).y(i-t);let[,,,n,o]=this.activeLine,s=wc(n,o),{associativeLinePoint:a,associativeLineTargetControlOffsets:l}=n.getData();a=a||[];const h=this.getNodePos(n),c=this.getNodePos(o);let[u,f]=this.updateAllLinesPos(n,o,a[s]);this.controlPointMousemoveState.startPoint=u,this.controlPointMousemoveState.endPoint=f,this.controlPointMousemoveState.targetIndex=s;let d=[];l?d=l[s]:d=j0(u,f);let p=null,m=null;const{x:v,y:g}=this.mindMap.toPos(r.clientX,r.clientY),b={clientX:v,clientY:g};this.mousedownControlPointKey==="controlPoint1"?(u=Un(h,"",0,b),p={x:e,y:i},m={x:f.x+d[1].x,y:f.y+d[1].y},u&&(this.controlPointMousemoveState.startPoint=u,this.controlLine1.plot(u.x,u.y,p.x,p.y))):(f=Un(c,"",0,b),p={x:u.x+d[0].x,y:u.y+d[0].y},m={x:e,y:i},f&&(this.controlPointMousemoveState.endPoint=f,this.controlLine2.plot(f.x,f.y,m.x,m.y))),this.updataAassociativeLine(u,f,p,m,this.activeLine)}function _b(r,t,e,i,n){const[o,s,a]=n,l=Ec(r,t,e,i);o.plot(l),s.plot(l),this.updateTextPos(o,a),this.updateTextEditBoxPos(a)}function kb(r){if(!this.isControlPointMousedown)return;r.stopPropagation(),r.preventDefault();let{pos:t,startPoint:e,endPoint:i,targetIndex:n}=this.controlPointMousemoveState,[,,,o]=this.activeLine,s=[],{associativeLinePoint:a,associativeLineTargetControlOffsets:l}=o.getData();a||(a=[]),a[n]=a[n]||{startPoint:e,endPoint:i},l?s=l:s[n]=j0(e,i);let h=null,c=null;this.mousedownControlPointKey==="controlPoint1"?(h={x:t.x-e.x,y:t.y-e.y},c=s[n][1],a[n].startPoint=e):(h=s[n][0],c={x:t.x-i.x,y:t.y-i.y},a[n].endPoint=i),s[n]=[h,c],this.mindMap.execCommand("SET_NODE_DATA",o,{associativeLineTargetControlOffsets:s,associativeLinePoint:a}),this.isNotRenderAllLines=!0,setTimeout(()=>{this.resetControlPoint()},0)}function Lb(){this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""}}function Mb(r,t,e,i,n,o){if(!this.mindMap.opt.enableAdjustAssociativeLinePoints)return;this.controlLine1||this.createControlNodes(n,o);let s=this.controlPointDiameter/2;this.controlLine1.plot(r.x,r.y,e.x,e.y),this.controlLine2.plot(t.x,t.y,i.x,i.y),this.controlPoint1.x(e.x-s).y(e.y-s),this.controlPoint2.x(i.x-s).y(i.y-s)}function Db(){this.controlLine1&&([this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(r=>{r.remove()}),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null)}function Ob(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(r=>{r.hide()})}function Rb(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(r=>{r.show()})}const q0={createControlNodes:Cb,createOneControlNode:Sb,onControlPointMousedown:Nb,onControlPointMousemove:Ab,onControlPointMouseup:kb,resetControlPoint:Lb,renderControls:Mb,removeControls:Db,hideControls:Ob,showControls:Rb,updataAassociativeLine:_b};function Fb(r){let t=this.associativeLineDraw.group();const e=()=>{(!this.activeLine||this.activeLine[3]!==r.node||this.activeLine[4]!==r.toNode)&&this.setActiveLine({...r,text:t})};return t.click(i=>{i.stopPropagation(),e()}),t.on("dblclick",i=>{i.stopPropagation(),e(),this.activeLine&&this.showEditTextBox(t)}),t}function Ib(r){this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.className="associative-line-text-edit-warp",this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",f=>{f.stopPropagation()}),this.textEditNode.addEventListener("click",f=>{f.stopPropagation()}),(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode));let[,,,t,e]=this.activeLine,{associativeLineTextFontSize:i,associativeLineTextFontFamily:n,associativeLineTextLineHeight:o}=this.getStyleConfig(t,e),{defaultAssociativeLineText:s,nodeTextEditZIndex:a}=this.mindMap.opt,l=this.mindMap.view.scale,h=this.getText(t,e),c=(h||s).split(/\n/gim);this.textEditNode.style.fontFamily=n,this.textEditNode.style.fontSize=i*l+"px",this.textEditNode.style.lineHeight=c.length>1?o:"normal",this.textEditNode.style.zIndex=a,this.textEditNode.innerHTML=c.join("<br>"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(r),this.showTextEdit=!0,h===""||h===s?d0(this.textEditNode):u0(this.textEditNode)}function Bb(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}function zb(){this.hideEditTextBox()}function Pb(r){let t=r.node.getBoundingClientRect();this.textEditNode&&(this.textEditNode.style.minWidth=`${t.width+10}px`,this.textEditNode.style.minHeight=`${t.height+6}px`,this.textEditNode.style.left=`${t.left}px`,this.textEditNode.style.top=`${t.top}px`)}function Ub(){if(!this.showTextEdit)return;let[r,,t,e,i]=this.activeLine,n=a0(this.textEditNode.innerHTML);n=n===this.mindMap.opt.defaultAssociativeLineText?"":n,this.mindMap.execCommand("SET_NODE_DATA",e,{associativeLineText:{...e.getData("associativeLineText")||{},[i.getData("uid")]:n}}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.showTextEdit=!1,this.renderText(n,r,t,e,i),this.mindMap.emit("hide_text_edit")}function jb(r,t){let e=r.getData("associativeLineText");return e&&e[t.getData("uid")]||""}function qb(r,t,e,i,n){if(!r)return;let{associativeLineTextFontSize:o,associativeLineTextLineHeight:s}=this.getStyleConfig(i,n);e.clear(),r.replace(/\n$/g,"").split(/\n/gim).forEach((l,h)=>{l===""&&(l="\uFEFF");let c=new Je().text(l);c.y(o*s*h),this.styleText(c,i,n),e.add(c)}),W0(t,e)}function Wb(r,t,e){let{associativeLineTextColor:i,associativeLineTextFontSize:n,associativeLineTextFontFamily:o}=this.getStyleConfig(t,e);r.fill({color:i}).css({"font-family":o,"font-size":n+"px"})}function W0(r,t){let e=r.length(),i=r.pointAt(e/2),{width:n,height:o}=t.bbox();t.x(i.x-n/2),t.y(i.y-o/2)}const H0={getText:jb,createText:Fb,styleText:Wb,onScale:zb,showEditTextBox:Ib,removeTextEditEl:Bb,hideEditTextBox:Ub,updateTextEditBoxPos:Pb,renderText:qb,updateTextPos:W0},Hb=["associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineDasharray","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily"];class G0{constructor(t={}){this.mindMap=t.mindMap,this.associativeLineDraw=this.mindMap.associativeLineDraw,this.isNotRenderAllLines=!1,this.lineList=[],this.activeLine=null,this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine=null,this.overlapNode=null,this.isNodeDragging=!1,this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null,this.controlPointDiameter=10,this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""},this.checkOverlapNode=vs(this.checkOverlapNode,100,this),Object.keys(q0).forEach(e=>{this[e]=q0[e].bind(this)}),Object.keys(H0).forEach(e=>{this[e]=H0[e].bind(this)}),this.bindEvent()}bindEvent(){this.renderAllLines=this.renderAllLines.bind(this),this.onDrawClick=this.onDrawClick.bind(this),this.onNodeClick=this.onNodeClick.bind(this),this.removeLine=this.removeLine.bind(this),this.addLine=this.addLine.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onNodeDragging=this.onNodeDragging.bind(this),this.onNodeDragend=this.onNodeDragend.bind(this),this.onControlPointMouseup=this.onControlPointMouseup.bind(this),this.onBeforeDestroy=this.onBeforeDestroy.bind(this),this.mindMap.on("node_tree_render_end",this.renderAllLines),this.mindMap.on("data_change",this.renderAllLines),this.mindMap.on("draw_click",this.onDrawClick),this.mindMap.on("node_click",this.onNodeClick),this.mindMap.on("contextmenu",this.onDrawClick),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeLine),this.mindMap.command.add("ADD_ASSOCIATIVE_LINE",this.addLine),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("node_dragging",this.onNodeDragging),this.mindMap.on("node_dragend",this.onNodeDragend),this.mindMap.on("mouseup",this.onControlPointMouseup),this.mindMap.on("scale",this.onScale),this.mindMap.on("beforeDestroy",this.onBeforeDestroy)}unBindEvent(){this.mindMap.off("node_tree_render_end",this.renderAllLines),this.mindMap.off("data_change",this.renderAllLines),this.mindMap.off("draw_click",this.onDrawClick),this.mindMap.off("node_click",this.onNodeClick),this.mindMap.off("contextmenu",this.onDrawClick),this.mindMap.keyCommand.removeShortcut("Del|Backspace",this.removeLine),this.mindMap.command.remove("ADD_ASSOCIATIVE_LINE",this.addLine),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("node_dragging",this.onNodeDragging),this.mindMap.off("node_dragend",this.onNodeDragend),this.mindMap.off("mouseup",this.onControlPointMouseup),this.mindMap.off("scale",this.onScale),this.mindMap.off("beforeDestroy",this.onBeforeDestroy)}getStyleConfig(t,e){let i={};e&&(i=(t.getData("associativeLineStyle")||{})[e.getData("uid")]||{});const n={};return Hb.forEach(o=>{typeof i[o]<"u"?n[o]=i[o]:n[o]=t.getStyle(o)}),n}onBeforeDestroy(){this.hideEditTextBox(),this.removeTextEditEl()}onDrawClick(){this.isCreatingLine&&this.cancelCreateLine(),this.isControlPointMousedown||this.clearActiveLine()}onNodeClick(t){this.isCreatingLine?this.completeCreateLine(t):this.clearActiveLine()}createMarker(t=()=>{}){return this.associativeLineDraw.marker(20,20,e=>{e.ref(12,5),e.size(10,10),e.attr("orient","auto-start-reverse"),t(e.path("M0,0 L2,5 L0,10 L10,5 Z"))})}updateAllLinesPos(t,e,i){i=i||{};let[n,o]=U0(t,e),s=0,a="",l=0,h="";return i.startPoint&&(s=i.startPoint.range||0,a=i.startPoint.dir||"right",n=Un(t,a,s)),i.endPoint&&(l=i.endPoint.range||0,h=i.endPoint.dir||"right",o=Un(e,h,l)),[n,o]}renderAllLines(){if(this.isNotRenderAllLines){this.isNotRenderAllLines=!1;return}this.removeAllLines(),this.removeControls(),this.clearActiveLine();let t=this.mindMap.renderer.root;if(!t)return;let e=new Map,i=new Map;ge(t,null,n=>{if(!n)return;let o=n.getData();o.associativeLineTargets&&o.associativeLineTargets.length>0&&i.set(n,o.associativeLineTargets),o.uid&&e.set(o.uid,n)},()=>{},!0,0),i.forEach((n,o)=>{n.forEach((s,a)=>{let l=e.get(s);if(!o||!l)return;const h=(o.getData("associativeLinePoint")||[])[a],[c,u]=this.updateAllLinesPos(o,l,h);this.drawLine(c,u,o,l)})})}drawLine(t,e,i,n){let{associativeLineWidth:o,associativeLineColor:s,associativeLineActiveWidth:a,associativeLineDasharray:l}=this.getStyleConfig(i,n),h=null;const c=this.createMarker(v=>{h=v});h.stroke({color:s}).fill({color:s});let{path:u,controlPoints:f}=Tb(t,e,i,n),d=this.associativeLineDraw.path();d.stroke({width:o,color:s,dasharray:l||[6,4]}).fill({color:"none"}),d.plot(u),d.marker("end",c);let p=this.associativeLineDraw.path();p.stroke({width:a,color:"transparent"}).fill({color:"none"}),p.plot(u);let m=this.createText({path:d,clickPath:p,markerPath:h,node:i,toNode:n,startPoint:t,endPoint:e,controlPoints:f});p.click(v=>{v.stopPropagation(),this.setActiveLine({path:d,clickPath:p,markerPath:h,text:m,node:i,toNode:n,startPoint:t,endPoint:e,controlPoints:f})}),p.dblclick(()=>{this.activeLine&&this.showEditTextBox(m)}),this.renderText(this.getText(i,n),d,m,i,n),this.lineList.push([d,p,m,i,n])}updateActiveLineStyle(){if(!this.activeLine)return;this.isNotRenderAllLines=!0;const[t,e,i,n,o,s]=this.activeLine,{associativeLineWidth:a,associativeLineColor:l,associativeLineDasharray:h,associativeLineActiveWidth:c,associativeLineActiveColor:u,associativeLineTextColor:f,associativeLineTextFontFamily:d,associativeLineTextFontSize:p}=this.getStyleConfig(n,o);t.stroke({width:a,color:l,dasharray:h||[6,4]}).fill({color:"none"}),e.stroke({width:c,color:u}).fill({color:"none"}),s.stroke({color:l}).fill({color:l}),i.find("text").forEach(m=>{m.fill({color:f}).css({"font-family":d,"font-size":p+"px"})}),this.controlLine1&&this.controlLine1.stroke({color:u}),this.controlLine2&&this.controlLine2.stroke({color:u}),this.controlPoint1&&this.controlPoint1.stroke({color:u}),this.controlPoint2&&this.controlPoint2.stroke({color:u})}setActiveLine({path:t,clickPath:e,markerPath:i,text:n,node:o,toNode:s,startPoint:a,endPoint:l,controlPoints:h}){let{associativeLineActiveColor:c}=this.getStyleConfig(o,s);this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.clearActiveLine(),this.activeLine=[t,e,n,o,s,i],e.stroke({color:c}),this.getText(o,s)||this.renderText(this.mindMap.opt.defaultAssociativeLineText,t,n,o,s),this.renderControls(a,l,h[0],h[1],o,s),this.mindMap.emit("associative_line_click",t,e,o,s),this.front()}removeAllLines(){this.lineList.forEach(t=>{t[0].remove(),t[1].remove(),t[2].remove()}),this.lineList=[]}createLineFromActiveNode(){if(this.mindMap.renderer.activeNodeList.length<=0)return;let t=this.mindMap.renderer.activeNodeList[0];this.createLine(t)}createLine(t){let{associativeLineWidth:e,associativeLineColor:i,associativeLineDasharray:n}=this.getStyleConfig(t);if(this.isCreatingLine||!t)return;this.front(),this.isCreatingLine=!0,this.creatingStartNode=t,this.creatingLine=this.associativeLineDraw.path(),this.creatingLine.stroke({width:e,color:i,dasharray:n||[6,4]}).fill({color:"none"});let o=null;const s=this.createMarker(a=>{o=a});o.stroke({color:i}).fill({color:i}),this.creatingLine.marker("end",s)}cancelCreateLine(){this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine.remove(),this.creatingLine=null,this.overlapNode=null,this.back()}onMousemove(t){this.onControlPointMousemove(t),this.updateCreatingLine(t)}updateCreatingLine(t){if(!this.isCreatingLine)return;let{x:e,y:i}=this.getTransformedEventPos(t),n=Un(this.creatingStartNode),o=e>n.x?-10:10,s=wb(n.x,n.y,e+o,i);this.creatingLine.plot(s),this.checkOverlapNode(e,i)}getTransformedEventPos(t){let{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY),{scaleX:n,scaleY:o,translateX:s,translateY:a}=this.mindMap.draw.transform();return{x:(e-s)/n,y:(i-a)/o}}getNodePos(t){const{scaleX:e,scaleY:i,translateX:n,translateY:o}=this.mindMap.draw.transform(),{left:s,top:a,width:l,height:h}=t;let c=s*e+n,u=a*i+o;return{left:s,top:a,translateLeft:c,translateTop:u,width:l,height:h}}checkOverlapNode(t,e){this.overlapNode=null,Pa(this.mindMap.renderer.root,i=>{if(i.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",i,!1),i.uid===this.creatingStartNode.uid||this.overlapNode)return;let{left:n,top:o,width:s,height:a}=i,l=n+s,h=o+a;t>=n&&t<=l&&e>=o&&e<=h&&(this.overlapNode=i)}),this.overlapNode&&!this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)}completeCreateLine(t){if(this.creatingStartNode.uid===t.uid)return;const{beforeAssociativeLineConnection:e}=this.mindMap.opt;let i=!1;typeof e=="function"&&(i=e(t)),!i&&(this.addLine(this.creatingStartNode,t),this.overlapNode&&this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!1),this.cancelCreateLine())}addLine(t,e){if(!t||!e)return;let i=e.getData("uid");i||(i=Tf(),this.mindMap.execCommand("SET_NODE_DATA",e,{uid:i}));let n=t.getData("associativeLineTargets")||[];if(n.some(f=>f===i))return;n.push(i);let[s,a]=U0(t,e),l=Ka(s.x,s.y,a.x,a.y);const{associativeLineInitPointsPosition:h}=this.mindMap.opt;if(h){const{from:f,to:d}=h;f&&(s.dir=f),d&&(a.dir=d)}let c=t.getData("associativeLineTargetControlOffsets")||[];c[n.length-1]=[{x:l[0].x-s.x,y:l[0].y-s.y},{x:l[1].x-a.x,y:l[1].y-a.y}];let u=t.getData("associativeLinePoint")||[];u[n.length-1]={startPoint:s,endPoint:a},this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:n,associativeLineTargetControlOffsets:c,associativeLinePoint:u})}removeLine(){if(!this.activeLine)return;let[,,,t,e]=this.activeLine;this.removeControls();let{associativeLineTargets:i,associativeLinePoint:n,associativeLineTargetControlOffsets:o,associativeLineText:s,associativeLineStyle:a}=t.getData();n=n||[];let l=wc(t,e),h={};s&&Object.keys(s).forEach(u=>{u!==e.getData("uid")&&(h[u]=s[u])});let c={};a&&Object.keys(a).forEach(u=>{u!==e.getData("uid")&&(c[u]=a[u])}),this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:i.filter((u,f)=>f!==l),associativeLinePoint:n.filter((u,f)=>f!==l),associativeLineTargetControlOffsets:o?o.filter((u,f)=>f!==l):[],associativeLineText:h,associativeLineStyle:c})}clearActiveLine(){if(this.activeLine){let[,t,e,i,n]=this.activeLine;t.stroke({color:"transparent"}),this.hideEditTextBox(),this.getText(i,n)||e.clear(),this.activeLine=null,this.removeControls(),this.back(),this.mindMap.emit("associative_line_deactivate")}}onNodeDragging(){this.isNodeDragging||(this.isNodeDragging=!0,this.lineList.forEach(t=>{t[0].hide(),t[1].hide(),t[2].hide()}),this.hideControls())}onNodeDragend(){this.isNodeDragging&&(this.lineList.forEach(t=>{t[0].show(),t[1].show(),t[2].show()}),this.showControls(),this.isNodeDragging=!1)}front(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||this.associativeLineDraw.front()}back(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||(this.associativeLineDraw.back(),this.associativeLineDraw.forward())}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}G0.instanceName="associativeLine";const Tc=r=>String(r).split(/\s+/).map(e=>{if(/^[\d.]+/.test(e)){let i=/^([\d.]+)(.*)$/.exec(e);return[Number(i[1]),i[2]]}else return e}),Xa=(r,t)=>r*t,Cc=(r,t)=>t/r,V0={left:0,top:0,center:50,bottom:100,right:100},Gb=({backgroundSize:r,drawOpt:t,imageRatio:e,canvasWidth:i,canvasHeight:n,canvasRatio:o})=>{if(r){let s=Tc(r);if(s[0]==="auto"&&s[1]==="auto")return;if(s[0]==="cover"){e>o?(t.height=n,t.width=Xa(e,n)):(t.width=i,t.height=Cc(e,i));return}if(s[0]==="contain"){e>o?(t.width=i,t.height=Cc(e,i)):(t.height=n,t.width=Xa(e,n));return}let a=-1;s[0]&&(Array.isArray(s[0])?s[0][1]==="%"?(t.width=s[0][0]/100*i,a=t.width):(t.width=s[0][0],a=s[0][0]):s[0]==="auto"&&s[1]&&(s[1][1]==="%"?t.width=Xa(e,s[1][0]/100*n):t.width=Xa(e,s[1][0]))),s[1]&&Array.isArray(s[1])?s[1][1]==="%"?t.height=s[1][0]/100*n:t.height=s[1][0]:a!==-1&&(t.height=Cc(e,a))}},Vb=({backgroundPosition:r,drawOpt:t,imgWidth:e,imgHeight:i,canvasWidth:n,canvasHeight:o})=>{if(r){let s=Tc(r);if(s=s.map(a=>typeof a=="string"&&V0[a]!==void 0?[V0[a],"%"]:a),Array.isArray(s[0])){if(s.length===1&&s.push([50,"%"]),s[0][1]==="%"){let a=s[0][0]/100*n,l=s[0][0]/100*e;t.x=a-l}else t.x=s[0][0];if(s[1][1]==="%"){let a=s[1][0]/100*o,l=s[1][0]/100*i;t.y=a-l}else t.y=s[1][0]}}},Kb=({ctx:r,image:t,backgroundRepeat:e,drawOpt:i,imgWidth:n,imgHeight:o,canvasWidth:s,canvasHeight:a})=>{if(e){let l=i.x,h=i.y,c=Math.ceil(l/n),u=Math.ceil(h/o),f=l-c*n,d=h-u*o,p=Tc(e);if(p[0]==="no-repeat"||n>=s&&o>=a)return;if(p[0]==="repeat-x"&&s>n){let m=f;for(;m<s;)Ya(r,t,{...i,x:m}),m+=n;return!0}if(p[0]==="repeat-y"&&a>o){let m=d;for(;m<a;)Ya(r,t,{...i,y:m}),m+=o;return!0}if(p[0]==="repeat"){let m=f;for(;m<s;){if(a>o){let v=d;for(;v<a;)Ya(r,t,{...i,x:m,y:v}),v+=o}m+=n}return!0}}},Ya=(r,t,e)=>{r.drawImage(t,e.sx,e.sy,e.swidth,e.sheight,e.x,e.y,e.width,e.height)},Xb=(r,t,e,i,{backgroundSize:n,backgroundPosition:o,backgroundRepeat:s},a=()=>{})=>{let l=t/e,h=new Image;h.src=i,h.onload=()=>{let c=h.width,u=h.height,f=c/u,d={sx:0,sy:0,swidth:c,sheight:u,x:0,y:0,width:c,height:u};Gb({backgroundSize:n,drawOpt:d,imageRatio:f,canvasWidth:t,canvasHeight:e,canvasRatio:l}),Vb({backgroundPosition:o,drawOpt:d,imgWidth:d.width,imgHeight:d.height,canvasWidth:t,canvasHeight:e}),Kb({ctx:r,image:h,backgroundRepeat:s,drawOpt:d,imgWidth:d.width,imgHeight:d.height,canvasWidth:t,canvasHeight:e})||Ya(r,h,d),a()},h.onerror=c=>{a(c)}},Sc=r=>r.richText?dc(r.text):r.text,Yb=r=>new Array(r).fill("#").join(""),Zb=r=>new Array(r-6).fill("   ").join("")+"*",Jb=r=>{let t="";return ge(r,null,(e,i,n,o)=>{const s=o+1;s<=6?t+=Yb(s):t+=Zb(s),t+=" "+Sc(e.data);const a=e.data.generalization;if(Array.isArray(a))t+=a.map(l=>` [${Sc(l)}]`);else if(a&&a.text){const l=Sc(a);t+=` [${l}]`}t+=`

`,e.data.note&&(t+=e.data.note+`

`)},()=>{},!0),t},Nc=r=>r.richText?dc(r.text):r.text,Qb=r=>new Array(r).fill("   ").join(""),$b=r=>{let t="";return ge(r,null,(e,i,n,o)=>{t+=Qb(o),t+=" "+Nc(e.data);const s=e.data.generalization;Array.isArray(s)?t+=s.map(a=>` [${Nc(a)}]`):s&&s.text&&(t+=` [${Nc(s)}]`),t+=`

`},()=>{},!0),t};class K0{constructor(t){this.mindMap=t.mindMap}async export(t,e=!0,i="思维导图",...n){if(this[t]){const o=await this[t](i,...n);return e&&g6(o,i+"."+t),o}else return null}createTransformImgTaskList(t,e,i,n){return t.find(e).map(async s=>{const a=n(s);if(/^data:/.test(a)||a==="none")return;const l=await uc(a);s.attr(i,l)})}async getSvgData(t){let{exportPaddingX:e,exportPaddingY:i,errorHandler:n,resetCss:o,addContentToHeader:s,addContentToFooter:a,handleBeingExportSvg:l}=this.mindMap.opt,{svg:h,svgHTML:c,clipData:u}=this.mindMap.getSvgData({paddingX:e,paddingY:i,addContentToHeader:s,addContentToFooter:a,node:t});u&&(u.paddingX=e,u.paddingY=i);let f=!1;const d=this.createTransformImgTaskList(h,"image","href",v=>v.attr("href")||v.attr("xlink:href")),p=this.createTransformImgTaskList(h,"img","src",v=>v.attr("src")),m=[...d,...p];try{await Promise.all(m)}catch(v){n(Cn.EXPORT_LOAD_IMAGE_ERROR,v)}if(this.mindMap.richText){const v=h.find("foreignObject");if(v.length>0&&(v[0].add(Qe(`<style>${o}</style>`)),f=!0),this.mindMap.formula&&h.find(".ql-formula").length>0){const b=this.mindMap.formula.getStyleText();if(b){const y=document.createElement("style");y.innerHTML=b,Bn(y),v[0].add(y),f=!0}}}return typeof l=="function"&&(f=!0,h=l(h)),(m.length>0||f)&&(c=h.svg()),{node:h,str:c,clipData:u}}svgToPng(t,e,i=null){const{maxCanvasSize:n,minExportImgCanvasScale:o}=this.mindMap.opt;return new Promise((s,a)=>{const l=new Image;l.setAttribute("crossOrigin","anonymous"),l.onload=async()=>{try{const h=document.createElement("canvas"),c=Math.max(window.devicePixelRatio,o);let u=l.width,f=l.height,d=0,p=0;i&&(d=i.paddingX,p=i.paddingY,u=i.width+d*2,f=i.height+p*2);let m=u*c,v=f*c;if(m>n||v>n){let x=null,C=null;m>n?x=n:v>n&&(C=n);const R=s0(m,v,x,C);m=R[0],v=R[1]}h.width=m,h.height=v;const g=m/c,b=v/c;h.style.width=g+"px",h.style.height=b+"px";const y=h.getContext("2d");y.scale(c,c),e||await this.drawBackgroundToCanvas(y,g,b),i?y.drawImage(l,i.left,i.top,i.width,i.height,d,p,i.width,i.height):y.drawImage(l,0,0,g,b),s(h.toDataURL())}catch(h){a(h)}},l.onerror=h=>{a(h)},l.src=t})}drawBackgroundToCanvas(t,e,i){return new Promise((n,o)=>{const{backgroundColor:s="#fff",backgroundImage:a,backgroundRepeat:l="no-repeat",backgroundPosition:h="center center",backgroundSize:c="cover"}=this.mindMap.themeConfig;t.save(),t.rect(0,0,e,i),t.fillStyle=s,t.fill(),t.restore(),a&&a!=="none"?(t.save(),Xb(t,e,i,a,{backgroundRepeat:l,backgroundPosition:h,backgroundSize:c},u=>{u?o(u):n(),t.restore()})):n()})}drawBackgroundToSvg(t){return new Promise(async e=>{const{backgroundColor:i="#fff",backgroundImage:n,backgroundRepeat:o="repeat"}=this.mindMap.themeConfig;if(t.css("background-color",i),n&&n!=="none"){const s=await uc(n);t.css("background-image",`url(${s})`),t.css("background-repeat",o),e()}else e()})}async png(t,e=!1,i=null){this.handleNodeExport(i);const{str:n,clipData:o}=await this.getSvgData(i),s=await this.fixSvgStrAndToBlob(n);return await this.svgToPng(s,e,o)}handleNodeExport(t){if(t&&t.getData("isActive")){t.deactivate();const{alwaysShowExpandBtn:e,notShowExpandBtn:i}=this.mindMap.opt;!e&&!i&&t.getData("expand")&&t.removeExpandBtn()}}async pdf(t,e=!1){if(!this.mindMap.doExportPDF)throw new Error("请注册ExportPDF插件");const i=await this.png(t,e);return await this.mindMap.doExportPDF.pdf(i)}async xmind(t){if(!this.mindMap.doExportXMind)throw new Error("请注册ExportXMind插件");const e=this.mindMap.getData(),i=await this.mindMap.doExportXMind.xmind(e,t);return await yo(i)}async svg(t){const{node:e}=await this.getSvgData();e.first().before(Qe(`<title>${t}</title>`)),await this.drawBackgroundToSvg(e);const i=e.svg();return await this.fixSvgStrAndToBlob(i)}async fixSvgStrAndToBlob(t){t=w6(t),t=O6(t);const e=new Blob([t],{type:"image/svg+xml"});return await yo(e)}async json(t,e=!0){const i=this.mindMap.getData(e),n=JSON.stringify(i),o=new Blob([n]);return await yo(o)}async smm(t,e){return await this.json(t,e)}async md(){const t=this.mindMap.getData(),e=Jb(t),i=new Blob([e]);return await yo(i)}async txt(){const t=this.mindMap.getData(),e=$b(t),i=new Blob([e]);return await yo(i)}}K0.instanceName="doExport";/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.

  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.

  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */var Ac=function(r,t){return Ac=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Ac(r,t)};function It(r,t){Ac(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var re=function(){return re=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},re.apply(this,arguments)};function tx(r,t){var e={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(e[i[n]]=r[i[n]]);return e}function ae(r,t,e,i){function n(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(c){try{h(i.next(c))}catch(u){s(u)}}function l(c){try{h(i.throw(c))}catch(u){s(u)}}function h(c){c.done?o(c.value):n(c.value).then(a,l)}h((i=i.apply(r,[])).next())})}function le(r,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(h){return function(c){return l([h,c])}}function l(h){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(o=h[0]&2?n.return:h[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,h[1])).done)return o;switch(n=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,n=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){e=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){e.label=h[1];break}if(h[0]===6&&e.label<o[1]){e.label=o[1],o=h;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(h);break}o[2]&&e.ops.pop(),e.trys.pop();continue}h=t.call(r,e)}catch(c){h=[6,c],n=0}finally{i=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function be(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var i=Array(r),n=0,t=0;t<e;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)i[n]=o[s];return i}for(var wo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ws=new Uint8Array(256),Za=0;Za<wo.length;Za++)ws[wo.charCodeAt(Za)]=Za;var ex=function(r){for(var t="",e=r.length,i=0;i<e;i+=3)t+=wo[r[i]>>2],t+=wo[(r[i]&3)<<4|r[i+1]>>4],t+=wo[(r[i+1]&15)<<2|r[i+2]>>6],t+=wo[r[i+2]&63];return e%3===2?t=t.substring(0,t.length-1)+"=":e%3===1&&(t=t.substring(0,t.length-2)+"=="),t},X0=function(r){var t=r.length*.75,e=r.length,i,n=0,o,s,a,l;r[r.length-1]==="="&&(t--,r[r.length-2]==="="&&t--);var h=new Uint8Array(t);for(i=0;i<e;i+=4)o=ws[r.charCodeAt(i)],s=ws[r.charCodeAt(i+1)],a=ws[r.charCodeAt(i+2)],l=ws[r.charCodeAt(i+3)],h[n++]=o<<2|s>>4,h[n++]=(s&15)<<4|a>>2,h[n++]=(a&3)<<6|l&63;return h},ix=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,rx=function(r){var t=r.trim(),e=t.substring(0,100),i=e.match(ix);if(!i)return X0(t);var n=i[0],o=t.substring(n.length);return X0(o)},ie=function(r){return r.charCodeAt(0)},nx=function(r){return r.codePointAt(0)},Es=function(r,t){return sr(r.toString(16),t,"0").toUpperCase()},Ja=function(r){return Es(r,2)},Rr=function(r){return String.fromCharCode(r)},ox=function(r){return Rr(parseInt(r,16))},sr=function(r,t,e){for(var i="",n=0,o=t-r.length;n<o;n++)i+=e;return i+r},li=function(r,t,e){for(var i=r.length,n=0;n<i;n++)t[e++]=r.charCodeAt(n);return i},sx=function(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},Ts=function(r){return r.replace(/\t|\u0085|\u2028|\u2029/g,"    ").replace(/[\b\v]/g,"")},ax=["\\n","\\f","\\r","\\u000B"],Y0=function(r){return/^[\n\f\r\u000B]$/.test(r)},Z0=function(r){return r.split(/[\n\f\r\u000B]/)},J0=function(r){return r.replace(/[\n\f\r\u000B]/g," ")},Q0=function(r,t){var e=r.charCodeAt(t),i,n=t+1,o=1;return e>=55296&&e<=56319&&r.length>n&&(i=r.charCodeAt(n),i>=56320&&i<=57343&&(o=2)),[r.slice(t,t+o),o]},lx=function(r){for(var t=[],e=0,i=r.length;e<i;){var n=Q0(r,e),o=n[0],s=n[1];t.push(o),e+=s}return t},hx=function(r){for(var t=ax.join("|"),e=["$"],i=0,n=r.length;i<n;i++){var o=r[i];if(Y0(o))throw new TypeError("`wordBreak` must not include "+t);e.push(o===""?".":sx(o))}var s=e.join("|");return new RegExp("("+t+")|((.*?)("+s+"))","gm")},cx=function(r,t,e,i){for(var n=hx(t),o=Ts(r).match(n),s="",a=0,l=[],h=function(){s!==""&&l.push(s),s="",a=0},c=0,u=o.length;c<u;c++){var f=o[c];if(Y0(f))h();else{var d=i(f);a+d>e&&h(),s+=f,a+=d}}return h(),l},ux=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,$0=function(r){var t=r.match(ux);if(t){var e=t[1],i=t[2],n=i===void 0?"01":i,o=t[3],s=o===void 0?"01":o,a=t[4],l=a===void 0?"00":a,h=t[5],c=h===void 0?"00":h,u=t[6],f=u===void 0?"00":u,d=t[7],p=d===void 0?"Z":d,m=t[8],v=m===void 0?"00":m,g=t[9],b=g===void 0?"00":g,y=p==="Z"?"Z":""+p+v+":"+b,x=new Date(e+"-"+n+"-"+s+"T"+l+":"+c+":"+f+y);return x}},_c=function(r,t){for(var e,i=0,n;i<r.length;){var o=r.substring(i).match(t);if(!o)return{match:n,pos:i};n=o,i+=((e=o.index)!==null&&e!==void 0?e:0)+o[0].length}return{match:n,pos:i}},Qa=function(r){return r[r.length-1]},kc=function(r){if(r instanceof Uint8Array)return r;for(var t=r.length,e=new Uint8Array(t),i=0;i<t;i++)e[i]=r.charCodeAt(i);return e},dx=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=r.length,i=[],n=0;n<e;n++){var o=r[n];i[n]=o instanceof Uint8Array?o:kc(o)}for(var s=0,n=0;n<e;n++)s+=r[n].length;for(var a=new Uint8Array(s),l=0,h=0;h<e;h++)for(var c=i[h],u=0,f=c.length;u<f;u++)a[l++]=c[u];return a},fx=function(r){for(var t=0,e=0,i=r.length;e<i;e++)t+=r[e].length;for(var n=new Uint8Array(t),o=0,e=0,i=r.length;e<i;e++){var s=r[e];n.set(s,o),o+=s.length}return n},tp=function(r){for(var t="",e=0,i=r.length;e<i;e++)t+=Rr(r[e]);return t},px=function(r,t){return r.id-t.id},gx=function(r,t){for(var e=[],i=0,n=r.length;i<n;i++){var o=r[i],s=r[i-1];(i===0||t(o)!==t(s))&&e.push(o)}return e},Eo=function(r){for(var t=r.length,e=0,i=Math.floor(t/2);e<i;e++){var n=e,o=t-e-1,s=r[e];r[n]=r[o],r[o]=s}return r},mx=function(r){for(var t=0,e=0,i=r.length;e<i;e++)t+=r[e];return t},vx=function(r,t){for(var e=new Array(t-r),i=0,n=e.length;i<n;i++)e[i]=r+i;return e},yx=function(r,t){for(var e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]=r[t[i]];return e},bx=function(r){return r instanceof Uint8Array||r instanceof ArrayBuffer||typeof r=="string"},Cs=function(r){if(typeof r=="string")return rx(r);if(r instanceof ArrayBuffer)return new Uint8Array(r);if(r instanceof Uint8Array)return r;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},To=function(){return new Promise(function(r){setTimeout(function(){return r()},0)})},xx=function(r,t){t===void 0&&(t=!0);var e=[];t&&e.push(65279);for(var i=0,n=r.length;i<n;){var o=r.codePointAt(i);if(o<65536)e.push(o),i+=1;else if(o<1114112)e.push(ep(o),ip(o)),i+=2;else throw new Error("Invalid code point: 0x"+Ja(o))}return new Uint16Array(e)},wx=function(r){return r>=0&&r<=65535},Ex=function(r){return r>=65536&&r<=1114111},ep=function(r){return Math.floor((r-65536)/1024)+55296},ip=function(r){return(r-65536)%1024+56320},en;(function(r){r.BigEndian="BigEndian",r.LittleEndian="LittleEndian"})(en||(en={}));var Ss="�".codePointAt(0),rp=function(r,t){if(t===void 0&&(t=!0),r.length<=1)return String.fromCodePoint(Ss);for(var e=t?Cx(r):en.BigEndian,i=t?2:0,n=[];r.length-i>=2;){var o=op(r[i++],r[i++],e);if(Tx(o))if(r.length-i<2)n.push(Ss);else{var s=op(r[i++],r[i++],e);np(s)?n.push(o,s):n.push(Ss)}else np(o)?(i+=2,n.push(Ss)):n.push(o)}return i<r.length&&n.push(Ss),String.fromCodePoint.apply(String,n)},Tx=function(r){return r>=55296&&r<=56319},np=function(r){return r>=56320&&r<=57343},op=function(r,t,e){if(e===en.LittleEndian)return t<<8|r;if(e===en.BigEndian)return r<<8|t;throw new Error("Invalid byteOrder: "+e)},Cx=function(r){return sp(r)?en.BigEndian:ap(r)?en.LittleEndian:en.BigEndian},sp=function(r){return r[0]===254&&r[1]===255},ap=function(r){return r[0]===255&&r[1]===254},lp=function(r){return sp(r)||ap(r)},Sx=function(r){var t=String(r);if(Math.abs(r)<1){var e=parseInt(r.toString().split("e-")[1]);if(e){var i=r<0;i&&(r*=-1),r*=Math.pow(10,e-1),t="0."+new Array(e).join("0")+r.toString().substring(2),i&&(t="-"+t)}}else{var e=parseInt(r.toString().split("+")[1]);e>20&&(e-=20,r/=Math.pow(10,e),t=r.toString()+new Array(e+1).join("0"))}return t},$a=function(r){return Math.ceil(r.toString(2).length/8)},Co=function(r){for(var t=new Uint8Array($a(r)),e=1;e<=t.length;e++)t[e-1]=r>>(t.length-e)*8;return t},Ns=function(r){throw new Error(r)},Lc={},hp;function rn(){return hp||(hp=1,function(r){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function e(o,s){return Object.prototype.hasOwnProperty.call(o,s)}r.assign=function(o){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var a=s.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var l in a)e(a,l)&&(o[l]=a[l])}}return o},r.shrinkBuf=function(o,s){return o.length===s?o:o.subarray?o.subarray(0,s):(o.length=s,o)};var i={arraySet:function(o,s,a,l,h){if(s.subarray&&o.subarray){o.set(s.subarray(a,a+l),h);return}for(var c=0;c<l;c++)o[h+c]=s[a+c]},flattenChunks:function(o){var s,a,l,h,c,u;for(l=0,s=0,a=o.length;s<a;s++)l+=o[s].length;for(u=new Uint8Array(l),h=0,s=0,a=o.length;s<a;s++)c=o[s],u.set(c,h),h+=c.length;return u}},n={arraySet:function(o,s,a,l,h){for(var c=0;c<l;c++)o[h+c]=s[a+c]},flattenChunks:function(o){return[].concat.apply([],o)}};r.setTyped=function(o){o?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,n))},r.setTyped(t)}(Lc)),Lc}var So={},ar={},jn={},cp;function Nx(){if(cp)return jn;cp=1;var r=rn(),t=4,e=0,i=1,n=2;function o(L){for(var J=L.length;--J>=0;)L[J]=0}var s=0,a=1,l=2,h=3,c=258,u=29,f=256,d=f+1+u,p=30,m=19,v=2*d+1,g=15,b=16,y=7,x=256,C=16,R=17,F=18,U=[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],T=[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],H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=512,O=new Array((d+2)*2);o(O);var N=new Array(p*2);o(N);var X=new Array(k);o(X);var Z=new Array(c-h+1);o(Z);var W=new Array(u);o(W);var yt=new Array(p);o(yt);function st(L,J,it,kt,rt){this.static_tree=L,this.extra_bits=J,this.extra_base=it,this.elems=kt,this.max_length=rt,this.has_stree=L&&L.length}var bt,tt,Q;function Tt(L,J){this.dyn_tree=L,this.max_code=0,this.stat_desc=J}function wt(L){return L<256?X[L]:X[256+(L>>>7)]}function ft(L,J){L.pending_buf[L.pending++]=J&255,L.pending_buf[L.pending++]=J>>>8&255}function Bt(L,J,it){L.bi_valid>b-it?(L.bi_buf|=J<<L.bi_valid&65535,ft(L,L.bi_buf),L.bi_buf=J>>b-L.bi_valid,L.bi_valid+=it-b):(L.bi_buf|=J<<L.bi_valid&65535,L.bi_valid+=it)}function z(L,J,it){Bt(L,it[J*2],it[J*2+1])}function M(L,J){var it=0;do it|=L&1,L>>>=1,it<<=1;while(--J>0);return it>>>1}function lt(L){L.bi_valid===16?(ft(L,L.bi_buf),L.bi_buf=0,L.bi_valid=0):L.bi_valid>=8&&(L.pending_buf[L.pending++]=L.bi_buf&255,L.bi_buf>>=8,L.bi_valid-=8)}function et(L,J){var it=J.dyn_tree,kt=J.max_code,rt=J.stat_desc.static_tree,dt=J.stat_desc.has_stree,I=J.stat_desc.extra_bits,Et=J.stat_desc.extra_base,Gt=J.stat_desc.max_length,E,vt,xt,P,ot,mt,Ht=0;for(P=0;P<=g;P++)L.bl_count[P]=0;for(it[L.heap[L.heap_max]*2+1]=0,E=L.heap_max+1;E<v;E++)vt=L.heap[E],P=it[it[vt*2+1]*2+1]+1,P>Gt&&(P=Gt,Ht++),it[vt*2+1]=P,!(vt>kt)&&(L.bl_count[P]++,ot=0,vt>=Et&&(ot=I[vt-Et]),mt=it[vt*2],L.opt_len+=mt*(P+ot),dt&&(L.static_len+=mt*(rt[vt*2+1]+ot)));if(Ht!==0){do{for(P=Gt-1;L.bl_count[P]===0;)P--;L.bl_count[P]--,L.bl_count[P+1]+=2,L.bl_count[Gt]--,Ht-=2}while(Ht>0);for(P=Gt;P!==0;P--)for(vt=L.bl_count[P];vt!==0;)xt=L.heap[--E],!(xt>kt)&&(it[xt*2+1]!==P&&(L.opt_len+=(P-it[xt*2+1])*it[xt*2],it[xt*2+1]=P),vt--)}}function Ot(L,J,it){var kt=new Array(g+1),rt=0,dt,I;for(dt=1;dt<=g;dt++)kt[dt]=rt=rt+it[dt-1]<<1;for(I=0;I<=J;I++){var Et=L[I*2+1];Et!==0&&(L[I*2]=M(kt[Et]++,Et))}}function Rt(){var L,J,it,kt,rt,dt=new Array(g+1);for(it=0,kt=0;kt<u-1;kt++)for(W[kt]=it,L=0;L<1<<U[kt];L++)Z[it++]=kt;for(Z[it-1]=kt,rt=0,kt=0;kt<16;kt++)for(yt[kt]=rt,L=0;L<1<<T[kt];L++)X[rt++]=kt;for(rt>>=7;kt<p;kt++)for(yt[kt]=rt<<7,L=0;L<1<<T[kt]-7;L++)X[256+rt++]=kt;for(J=0;J<=g;J++)dt[J]=0;for(L=0;L<=143;)O[L*2+1]=8,L++,dt[8]++;for(;L<=255;)O[L*2+1]=9,L++,dt[9]++;for(;L<=279;)O[L*2+1]=7,L++,dt[7]++;for(;L<=287;)O[L*2+1]=8,L++,dt[8]++;for(Ot(O,d+1,dt),L=0;L<p;L++)N[L*2+1]=5,N[L*2]=M(L,5);bt=new st(O,U,f+1,d,g),tt=new st(N,T,0,p,g),Q=new st(new Array(0),H,0,m,y)}function Pt(L){var J;for(J=0;J<d;J++)L.dyn_ltree[J*2]=0;for(J=0;J<p;J++)L.dyn_dtree[J*2]=0;for(J=0;J<m;J++)L.bl_tree[J*2]=0;L.dyn_ltree[x*2]=1,L.opt_len=L.static_len=0,L.last_lit=L.matches=0}function D(L){L.bi_valid>8?ft(L,L.bi_buf):L.bi_valid>0&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0}function gt(L,J,it,kt){D(L),ft(L,it),ft(L,~it),r.arraySet(L.pending_buf,L.window,J,it,L.pending),L.pending+=it}function pt(L,J,it,kt){var rt=J*2,dt=it*2;return L[rt]<L[dt]||L[rt]===L[dt]&&kt[J]<=kt[it]}function V(L,J,it){for(var kt=L.heap[it],rt=it<<1;rt<=L.heap_len&&(rt<L.heap_len&&pt(J,L.heap[rt+1],L.heap[rt],L.depth)&&rt++,!pt(J,kt,L.heap[rt],L.depth));)L.heap[it]=L.heap[rt],it=rt,rt<<=1;L.heap[it]=kt}function q(L,J,it){var kt,rt,dt=0,I,Et;if(L.last_lit!==0)do kt=L.pending_buf[L.d_buf+dt*2]<<8|L.pending_buf[L.d_buf+dt*2+1],rt=L.pending_buf[L.l_buf+dt],dt++,kt===0?z(L,rt,J):(I=Z[rt],z(L,I+f+1,J),Et=U[I],Et!==0&&(rt-=W[I],Bt(L,rt,Et)),kt--,I=wt(kt),z(L,I,it),Et=T[I],Et!==0&&(kt-=yt[I],Bt(L,kt,Et)));while(dt<L.last_lit);z(L,x,J)}function at(L,J){var it=J.dyn_tree,kt=J.stat_desc.static_tree,rt=J.stat_desc.has_stree,dt=J.stat_desc.elems,I,Et,Gt=-1,E;for(L.heap_len=0,L.heap_max=v,I=0;I<dt;I++)it[I*2]!==0?(L.heap[++L.heap_len]=Gt=I,L.depth[I]=0):it[I*2+1]=0;for(;L.heap_len<2;)E=L.heap[++L.heap_len]=Gt<2?++Gt:0,it[E*2]=1,L.depth[E]=0,L.opt_len--,rt&&(L.static_len-=kt[E*2+1]);for(J.max_code=Gt,I=L.heap_len>>1;I>=1;I--)V(L,it,I);E=dt;do I=L.heap[1],L.heap[1]=L.heap[L.heap_len--],V(L,it,1),Et=L.heap[1],L.heap[--L.heap_max]=I,L.heap[--L.heap_max]=Et,it[E*2]=it[I*2]+it[Et*2],L.depth[E]=(L.depth[I]>=L.depth[Et]?L.depth[I]:L.depth[Et])+1,it[I*2+1]=it[Et*2+1]=E,L.heap[1]=E++,V(L,it,1);while(L.heap_len>=2);L.heap[--L.heap_max]=L.heap[1],et(L,J),Ot(it,Gt,L.bl_count)}function At(L,J,it){var kt,rt=-1,dt,I=J[0*2+1],Et=0,Gt=7,E=4;for(I===0&&(Gt=138,E=3),J[(it+1)*2+1]=65535,kt=0;kt<=it;kt++)dt=I,I=J[(kt+1)*2+1],!(++Et<Gt&&dt===I)&&(Et<E?L.bl_tree[dt*2]+=Et:dt!==0?(dt!==rt&&L.bl_tree[dt*2]++,L.bl_tree[C*2]++):Et<=10?L.bl_tree[R*2]++:L.bl_tree[F*2]++,Et=0,rt=dt,I===0?(Gt=138,E=3):dt===I?(Gt=6,E=3):(Gt=7,E=4))}function _t(L,J,it){var kt,rt=-1,dt,I=J[0*2+1],Et=0,Gt=7,E=4;for(I===0&&(Gt=138,E=3),kt=0;kt<=it;kt++)if(dt=I,I=J[(kt+1)*2+1],!(++Et<Gt&&dt===I)){if(Et<E)do z(L,dt,L.bl_tree);while(--Et!==0);else dt!==0?(dt!==rt&&(z(L,dt,L.bl_tree),Et--),z(L,C,L.bl_tree),Bt(L,Et-3,2)):Et<=10?(z(L,R,L.bl_tree),Bt(L,Et-3,3)):(z(L,F,L.bl_tree),Bt(L,Et-11,7));Et=0,rt=dt,I===0?(Gt=138,E=3):dt===I?(Gt=6,E=3):(Gt=7,E=4)}}function ht(L){var J;for(At(L,L.dyn_ltree,L.l_desc.max_code),At(L,L.dyn_dtree,L.d_desc.max_code),at(L,L.bl_desc),J=m-1;J>=3&&L.bl_tree[_[J]*2+1]===0;J--);return L.opt_len+=3*(J+1)+5+5+4,J}function Dt(L,J,it,kt){var rt;for(Bt(L,J-257,5),Bt(L,it-1,5),Bt(L,kt-4,4),rt=0;rt<kt;rt++)Bt(L,L.bl_tree[_[rt]*2+1],3);_t(L,L.dyn_ltree,J-1),_t(L,L.dyn_dtree,it-1)}function zt(L){var J=4093624447,it;for(it=0;it<=31;it++,J>>>=1)if(J&1&&L.dyn_ltree[it*2]!==0)return e;if(L.dyn_ltree[9*2]!==0||L.dyn_ltree[10*2]!==0||L.dyn_ltree[13*2]!==0)return i;for(it=32;it<f;it++)if(L.dyn_ltree[it*2]!==0)return i;return e}var Lt=!1;function Wt(L){Lt||(Rt(),Lt=!0),L.l_desc=new Tt(L.dyn_ltree,bt),L.d_desc=new Tt(L.dyn_dtree,tt),L.bl_desc=new Tt(L.bl_tree,Q),L.bi_buf=0,L.bi_valid=0,Pt(L)}function B(L,J,it,kt){Bt(L,(s<<1)+(kt?1:0),3),gt(L,J,it)}function w(L){Bt(L,a<<1,3),z(L,x,O),lt(L)}function A(L,J,it,kt){var rt,dt,I=0;L.level>0?(L.strm.data_type===n&&(L.strm.data_type=zt(L)),at(L,L.l_desc),at(L,L.d_desc),I=ht(L),rt=L.opt_len+3+7>>>3,dt=L.static_len+3+7>>>3,dt<=rt&&(rt=dt)):rt=dt=it+5,it+4<=rt&&J!==-1?B(L,J,it,kt):L.strategy===t||dt===rt?(Bt(L,(a<<1)+(kt?1:0),3),q(L,O,N)):(Bt(L,(l<<1)+(kt?1:0),3),Dt(L,L.l_desc.max_code+1,L.d_desc.max_code+1,I+1),q(L,L.dyn_ltree,L.dyn_dtree)),Pt(L),kt&&D(L)}function G(L,J,it){return L.pending_buf[L.d_buf+L.last_lit*2]=J>>>8&255,L.pending_buf[L.d_buf+L.last_lit*2+1]=J&255,L.pending_buf[L.l_buf+L.last_lit]=it&255,L.last_lit++,J===0?L.dyn_ltree[it*2]++:(L.matches++,J--,L.dyn_ltree[(Z[it]+f+1)*2]++,L.dyn_dtree[wt(J)*2]++),L.last_lit===L.lit_bufsize-1}return jn._tr_init=Wt,jn._tr_stored_block=B,jn._tr_flush_block=A,jn._tr_tally=G,jn._tr_align=w,jn}var Mc,up;function dp(){if(up)return Mc;up=1;function r(t,e,i,n){for(var o=t&65535|0,s=t>>>16&65535|0,a=0;i!==0;){a=i>2e3?2e3:i,i-=a;do o=o+e[n++]|0,s=s+o|0;while(--a);o%=65521,s%=65521}return o|s<<16|0}return Mc=r,Mc}var Dc,fp;function pp(){if(fp)return Dc;fp=1;function r(){for(var i,n=[],o=0;o<256;o++){i=o;for(var s=0;s<8;s++)i=i&1?3988292384^i>>>1:i>>>1;n[o]=i}return n}var t=r();function e(i,n,o,s){var a=t,l=s+o;i^=-1;for(var h=s;h<l;h++)i=i>>>8^a[(i^n[h])&255];return i^-1}return Dc=e,Dc}var Oc,gp;function Rc(){return gp||(gp=1,Oc={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"}),Oc}var mp;function Ax(){if(mp)return ar;mp=1;var r=rn(),t=Nx(),e=dp(),i=pp(),n=Rc(),o=0,s=1,a=3,l=4,h=5,c=0,u=1,f=-2,d=-3,p=-5,m=-1,v=1,g=2,b=3,y=4,x=0,C=2,R=8,F=9,U=15,T=8,H=29,_=256,k=_+1+H,O=30,N=19,X=2*k+1,Z=15,W=3,yt=258,st=yt+W+1,bt=32,tt=42,Q=69,Tt=73,wt=91,ft=103,Bt=113,z=666,M=1,lt=2,et=3,Ot=4,Rt=3;function Pt(E,vt){return E.msg=n[vt],vt}function D(E){return(E<<1)-(E>4?9:0)}function gt(E){for(var vt=E.length;--vt>=0;)E[vt]=0}function pt(E){var vt=E.state,xt=vt.pending;xt>E.avail_out&&(xt=E.avail_out),xt!==0&&(r.arraySet(E.output,vt.pending_buf,vt.pending_out,xt,E.next_out),E.next_out+=xt,vt.pending_out+=xt,E.total_out+=xt,E.avail_out-=xt,vt.pending-=xt,vt.pending===0&&(vt.pending_out=0))}function V(E,vt){t._tr_flush_block(E,E.block_start>=0?E.block_start:-1,E.strstart-E.block_start,vt),E.block_start=E.strstart,pt(E.strm)}function q(E,vt){E.pending_buf[E.pending++]=vt}function at(E,vt){E.pending_buf[E.pending++]=vt>>>8&255,E.pending_buf[E.pending++]=vt&255}function At(E,vt,xt,P){var ot=E.avail_in;return ot>P&&(ot=P),ot===0?0:(E.avail_in-=ot,r.arraySet(vt,E.input,E.next_in,ot,xt),E.state.wrap===1?E.adler=e(E.adler,vt,ot,xt):E.state.wrap===2&&(E.adler=i(E.adler,vt,ot,xt)),E.next_in+=ot,E.total_in+=ot,ot)}function _t(E,vt){var xt=E.max_chain_length,P=E.strstart,ot,mt,Ht=E.prev_length,Ut=E.nice_match,jt=E.strstart>E.w_size-st?E.strstart-(E.w_size-st):0,de=E.window,ri=E.w_mask,Ie=E.prev,pe=E.strstart+yt,We=de[P+Ht-1],Ve=de[P+Ht];E.prev_length>=E.good_match&&(xt>>=2),Ut>E.lookahead&&(Ut=E.lookahead);do if(ot=vt,!(de[ot+Ht]!==Ve||de[ot+Ht-1]!==We||de[ot]!==de[P]||de[++ot]!==de[P+1])){P+=2,ot++;do;while(de[++P]===de[++ot]&&de[++P]===de[++ot]&&de[++P]===de[++ot]&&de[++P]===de[++ot]&&de[++P]===de[++ot]&&de[++P]===de[++ot]&&de[++P]===de[++ot]&&de[++P]===de[++ot]&&P<pe);if(mt=yt-(pe-P),P=pe-yt,mt>Ht){if(E.match_start=vt,Ht=mt,mt>=Ut)break;We=de[P+Ht-1],Ve=de[P+Ht]}}while((vt=Ie[vt&ri])>jt&&--xt!==0);return Ht<=E.lookahead?Ht:E.lookahead}function ht(E){var vt=E.w_size,xt,P,ot,mt,Ht;do{if(mt=E.window_size-E.lookahead-E.strstart,E.strstart>=vt+(vt-st)){r.arraySet(E.window,E.window,vt,vt,0),E.match_start-=vt,E.strstart-=vt,E.block_start-=vt,P=E.hash_size,xt=P;do ot=E.head[--xt],E.head[xt]=ot>=vt?ot-vt:0;while(--P);P=vt,xt=P;do ot=E.prev[--xt],E.prev[xt]=ot>=vt?ot-vt:0;while(--P);mt+=vt}if(E.strm.avail_in===0)break;if(P=At(E.strm,E.window,E.strstart+E.lookahead,mt),E.lookahead+=P,E.lookahead+E.insert>=W)for(Ht=E.strstart-E.insert,E.ins_h=E.window[Ht],E.ins_h=(E.ins_h<<E.hash_shift^E.window[Ht+1])&E.hash_mask;E.insert&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[Ht+W-1])&E.hash_mask,E.prev[Ht&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=Ht,Ht++,E.insert--,!(E.lookahead+E.insert<W)););}while(E.lookahead<st&&E.strm.avail_in!==0)}function Dt(E,vt){var xt=65535;for(xt>E.pending_buf_size-5&&(xt=E.pending_buf_size-5);;){if(E.lookahead<=1){if(ht(E),E.lookahead===0&&vt===o)return M;if(E.lookahead===0)break}E.strstart+=E.lookahead,E.lookahead=0;var P=E.block_start+xt;if((E.strstart===0||E.strstart>=P)&&(E.lookahead=E.strstart-P,E.strstart=P,V(E,!1),E.strm.avail_out===0)||E.strstart-E.block_start>=E.w_size-st&&(V(E,!1),E.strm.avail_out===0))return M}return E.insert=0,vt===l?(V(E,!0),E.strm.avail_out===0?et:Ot):(E.strstart>E.block_start&&(V(E,!1),E.strm.avail_out===0),M)}function zt(E,vt){for(var xt,P;;){if(E.lookahead<st){if(ht(E),E.lookahead<st&&vt===o)return M;if(E.lookahead===0)break}if(xt=0,E.lookahead>=W&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+W-1])&E.hash_mask,xt=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),xt!==0&&E.strstart-xt<=E.w_size-st&&(E.match_length=_t(E,xt)),E.match_length>=W)if(P=t._tr_tally(E,E.strstart-E.match_start,E.match_length-W),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=W){E.match_length--;do E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+W-1])&E.hash_mask,xt=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart;while(--E.match_length!==0);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 P=t._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(P&&(V(E,!1),E.strm.avail_out===0))return M}return E.insert=E.strstart<W-1?E.strstart:W-1,vt===l?(V(E,!0),E.strm.avail_out===0?et:Ot):E.last_lit&&(V(E,!1),E.strm.avail_out===0)?M:lt}function Lt(E,vt){for(var xt,P,ot;;){if(E.lookahead<st){if(ht(E),E.lookahead<st&&vt===o)return M;if(E.lookahead===0)break}if(xt=0,E.lookahead>=W&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+W-1])&E.hash_mask,xt=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=W-1,xt!==0&&E.prev_length<E.max_lazy_match&&E.strstart-xt<=E.w_size-st&&(E.match_length=_t(E,xt),E.match_length<=5&&(E.strategy===v||E.match_length===W&&E.strstart-E.match_start>4096)&&(E.match_length=W-1)),E.prev_length>=W&&E.match_length<=E.prev_length){ot=E.strstart+E.lookahead-W,P=t._tr_tally(E,E.strstart-1-E.prev_match,E.prev_length-W),E.lookahead-=E.prev_length-1,E.prev_length-=2;do++E.strstart<=ot&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+W-1])&E.hash_mask,xt=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart);while(--E.prev_length!==0);if(E.match_available=0,E.match_length=W-1,E.strstart++,P&&(V(E,!1),E.strm.avail_out===0))return M}else if(E.match_available){if(P=t._tr_tally(E,0,E.window[E.strstart-1]),P&&V(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return M}else E.match_available=1,E.strstart++,E.lookahead--}return E.match_available&&(P=t._tr_tally(E,0,E.window[E.strstart-1]),E.match_available=0),E.insert=E.strstart<W-1?E.strstart:W-1,vt===l?(V(E,!0),E.strm.avail_out===0?et:Ot):E.last_lit&&(V(E,!1),E.strm.avail_out===0)?M:lt}function Wt(E,vt){for(var xt,P,ot,mt,Ht=E.window;;){if(E.lookahead<=yt){if(ht(E),E.lookahead<=yt&&vt===o)return M;if(E.lookahead===0)break}if(E.match_length=0,E.lookahead>=W&&E.strstart>0&&(ot=E.strstart-1,P=Ht[ot],P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot])){mt=E.strstart+yt;do;while(P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot]&&P===Ht[++ot]&&ot<mt);E.match_length=yt-(mt-ot),E.match_length>E.lookahead&&(E.match_length=E.lookahead)}if(E.match_length>=W?(xt=t._tr_tally(E,1,E.match_length-W),E.lookahead-=E.match_length,E.strstart+=E.match_length,E.match_length=0):(xt=t._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++),xt&&(V(E,!1),E.strm.avail_out===0))return M}return E.insert=0,vt===l?(V(E,!0),E.strm.avail_out===0?et:Ot):E.last_lit&&(V(E,!1),E.strm.avail_out===0)?M:lt}function B(E,vt){for(var xt;;){if(E.lookahead===0&&(ht(E),E.lookahead===0)){if(vt===o)return M;break}if(E.match_length=0,xt=t._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++,xt&&(V(E,!1),E.strm.avail_out===0))return M}return E.insert=0,vt===l?(V(E,!0),E.strm.avail_out===0?et:Ot):E.last_lit&&(V(E,!1),E.strm.avail_out===0)?M:lt}function w(E,vt,xt,P,ot){this.good_length=E,this.max_lazy=vt,this.nice_length=xt,this.max_chain=P,this.func=ot}var A;A=[new w(0,0,0,0,Dt),new w(4,4,8,4,zt),new w(4,5,16,8,zt),new w(4,6,32,32,zt),new w(4,4,16,16,Lt),new w(8,16,32,32,Lt),new w(8,16,128,128,Lt),new w(8,32,128,256,Lt),new w(32,128,258,1024,Lt),new w(32,258,258,4096,Lt)];function G(E){E.window_size=2*E.w_size,gt(E.head),E.max_lazy_match=A[E.level].max_lazy,E.good_match=A[E.level].good_length,E.nice_match=A[E.level].nice_length,E.max_chain_length=A[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=W-1,E.match_available=0,E.ins_h=0}function L(){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=R,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 r.Buf16(X*2),this.dyn_dtree=new r.Buf16((2*O+1)*2),this.bl_tree=new r.Buf16((2*N+1)*2),gt(this.dyn_ltree),gt(this.dyn_dtree),gt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(Z+1),this.heap=new r.Buf16(2*k+1),gt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*k+1),gt(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 J(E){var vt;return!E||!E.state?Pt(E,f):(E.total_in=E.total_out=0,E.data_type=C,vt=E.state,vt.pending=0,vt.pending_out=0,vt.wrap<0&&(vt.wrap=-vt.wrap),vt.status=vt.wrap?tt:Bt,E.adler=vt.wrap===2?0:1,vt.last_flush=o,t._tr_init(vt),c)}function it(E){var vt=J(E);return vt===c&&G(E.state),vt}function kt(E,vt){return!E||!E.state||E.state.wrap!==2?f:(E.state.gzhead=vt,c)}function rt(E,vt,xt,P,ot,mt){if(!E)return f;var Ht=1;if(vt===m&&(vt=6),P<0?(Ht=0,P=-P):P>15&&(Ht=2,P-=16),ot<1||ot>F||xt!==R||P<8||P>15||vt<0||vt>9||mt<0||mt>y)return Pt(E,f);P===8&&(P=9);var Ut=new L;return E.state=Ut,Ut.strm=E,Ut.wrap=Ht,Ut.gzhead=null,Ut.w_bits=P,Ut.w_size=1<<Ut.w_bits,Ut.w_mask=Ut.w_size-1,Ut.hash_bits=ot+7,Ut.hash_size=1<<Ut.hash_bits,Ut.hash_mask=Ut.hash_size-1,Ut.hash_shift=~~((Ut.hash_bits+W-1)/W),Ut.window=new r.Buf8(Ut.w_size*2),Ut.head=new r.Buf16(Ut.hash_size),Ut.prev=new r.Buf16(Ut.w_size),Ut.lit_bufsize=1<<ot+6,Ut.pending_buf_size=Ut.lit_bufsize*4,Ut.pending_buf=new r.Buf8(Ut.pending_buf_size),Ut.d_buf=1*Ut.lit_bufsize,Ut.l_buf=3*Ut.lit_bufsize,Ut.level=vt,Ut.strategy=mt,Ut.method=xt,it(E)}function dt(E,vt){return rt(E,vt,R,U,T,x)}function I(E,vt){var xt,P,ot,mt;if(!E||!E.state||vt>h||vt<0)return E?Pt(E,f):f;if(P=E.state,!E.output||!E.input&&E.avail_in!==0||P.status===z&&vt!==l)return Pt(E,E.avail_out===0?p:f);if(P.strm=E,xt=P.last_flush,P.last_flush=vt,P.status===tt)if(P.wrap===2)E.adler=0,q(P,31),q(P,139),q(P,8),P.gzhead?(q(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),q(P,P.gzhead.time&255),q(P,P.gzhead.time>>8&255),q(P,P.gzhead.time>>16&255),q(P,P.gzhead.time>>24&255),q(P,P.level===9?2:P.strategy>=g||P.level<2?4:0),q(P,P.gzhead.os&255),P.gzhead.extra&&P.gzhead.extra.length&&(q(P,P.gzhead.extra.length&255),q(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(E.adler=i(E.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=Q):(q(P,0),q(P,0),q(P,0),q(P,0),q(P,0),q(P,P.level===9?2:P.strategy>=g||P.level<2?4:0),q(P,Rt),P.status=Bt);else{var Ht=R+(P.w_bits-8<<4)<<8,Ut=-1;P.strategy>=g||P.level<2?Ut=0:P.level<6?Ut=1:P.level===6?Ut=2:Ut=3,Ht|=Ut<<6,P.strstart!==0&&(Ht|=bt),Ht+=31-Ht%31,P.status=Bt,at(P,Ht),P.strstart!==0&&(at(P,E.adler>>>16),at(P,E.adler&65535)),E.adler=1}if(P.status===Q)if(P.gzhead.extra){for(ot=P.pending;P.gzindex<(P.gzhead.extra.length&65535)&&!(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>ot&&(E.adler=i(E.adler,P.pending_buf,P.pending-ot,ot)),pt(E),ot=P.pending,P.pending===P.pending_buf_size));)q(P,P.gzhead.extra[P.gzindex]&255),P.gzindex++;P.gzhead.hcrc&&P.pending>ot&&(E.adler=i(E.adler,P.pending_buf,P.pending-ot,ot)),P.gzindex===P.gzhead.extra.length&&(P.gzindex=0,P.status=Tt)}else P.status=Tt;if(P.status===Tt)if(P.gzhead.name){ot=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>ot&&(E.adler=i(E.adler,P.pending_buf,P.pending-ot,ot)),pt(E),ot=P.pending,P.pending===P.pending_buf_size)){mt=1;break}P.gzindex<P.gzhead.name.length?mt=P.gzhead.name.charCodeAt(P.gzindex++)&255:mt=0,q(P,mt)}while(mt!==0);P.gzhead.hcrc&&P.pending>ot&&(E.adler=i(E.adler,P.pending_buf,P.pending-ot,ot)),mt===0&&(P.gzindex=0,P.status=wt)}else P.status=wt;if(P.status===wt)if(P.gzhead.comment){ot=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>ot&&(E.adler=i(E.adler,P.pending_buf,P.pending-ot,ot)),pt(E),ot=P.pending,P.pending===P.pending_buf_size)){mt=1;break}P.gzindex<P.gzhead.comment.length?mt=P.gzhead.comment.charCodeAt(P.gzindex++)&255:mt=0,q(P,mt)}while(mt!==0);P.gzhead.hcrc&&P.pending>ot&&(E.adler=i(E.adler,P.pending_buf,P.pending-ot,ot)),mt===0&&(P.status=ft)}else P.status=ft;if(P.status===ft&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&pt(E),P.pending+2<=P.pending_buf_size&&(q(P,E.adler&255),q(P,E.adler>>8&255),E.adler=0,P.status=Bt)):P.status=Bt),P.pending!==0){if(pt(E),E.avail_out===0)return P.last_flush=-1,c}else if(E.avail_in===0&&D(vt)<=D(xt)&&vt!==l)return Pt(E,p);if(P.status===z&&E.avail_in!==0)return Pt(E,p);if(E.avail_in!==0||P.lookahead!==0||vt!==o&&P.status!==z){var jt=P.strategy===g?B(P,vt):P.strategy===b?Wt(P,vt):A[P.level].func(P,vt);if((jt===et||jt===Ot)&&(P.status=z),jt===M||jt===et)return E.avail_out===0&&(P.last_flush=-1),c;if(jt===lt&&(vt===s?t._tr_align(P):vt!==h&&(t._tr_stored_block(P,0,0,!1),vt===a&&(gt(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),pt(E),E.avail_out===0))return P.last_flush=-1,c}return vt!==l?c:P.wrap<=0?u:(P.wrap===2?(q(P,E.adler&255),q(P,E.adler>>8&255),q(P,E.adler>>16&255),q(P,E.adler>>24&255),q(P,E.total_in&255),q(P,E.total_in>>8&255),q(P,E.total_in>>16&255),q(P,E.total_in>>24&255)):(at(P,E.adler>>>16),at(P,E.adler&65535)),pt(E),P.wrap>0&&(P.wrap=-P.wrap),P.pending!==0?c:u)}function Et(E){var vt;return!E||!E.state?f:(vt=E.state.status,vt!==tt&&vt!==Q&&vt!==Tt&&vt!==wt&&vt!==ft&&vt!==Bt&&vt!==z?Pt(E,f):(E.state=null,vt===Bt?Pt(E,d):c))}function Gt(E,vt){var xt=vt.length,P,ot,mt,Ht,Ut,jt,de,ri;if(!E||!E.state||(P=E.state,Ht=P.wrap,Ht===2||Ht===1&&P.status!==tt||P.lookahead))return f;for(Ht===1&&(E.adler=e(E.adler,vt,xt,0)),P.wrap=0,xt>=P.w_size&&(Ht===0&&(gt(P.head),P.strstart=0,P.block_start=0,P.insert=0),ri=new r.Buf8(P.w_size),r.arraySet(ri,vt,xt-P.w_size,P.w_size,0),vt=ri,xt=P.w_size),Ut=E.avail_in,jt=E.next_in,de=E.input,E.avail_in=xt,E.next_in=0,E.input=vt,ht(P);P.lookahead>=W;){ot=P.strstart,mt=P.lookahead-(W-1);do P.ins_h=(P.ins_h<<P.hash_shift^P.window[ot+W-1])&P.hash_mask,P.prev[ot&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=ot,ot++;while(--mt);P.strstart=ot,P.lookahead=W-1,ht(P)}return P.strstart+=P.lookahead,P.block_start=P.strstart,P.insert=P.lookahead,P.lookahead=0,P.match_length=P.prev_length=W-1,P.match_available=0,E.next_in=jt,E.input=de,E.avail_in=Ut,P.wrap=Ht,c}return ar.deflateInit=dt,ar.deflateInit2=rt,ar.deflateReset=it,ar.deflateResetKeep=J,ar.deflateSetHeader=kt,ar.deflate=I,ar.deflateEnd=Et,ar.deflateSetDictionary=Gt,ar.deflateInfo="pako deflate (from Nodeca project)",ar}var qn={},vp;function yp(){if(vp)return qn;vp=1;var r=rn(),t=!0,e=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}for(var i=new r.Buf8(256),n=0;n<256;n++)i[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;i[254]=i[254]=1,qn.string2buf=function(s){var a,l,h,c,u,f=s.length,d=0;for(c=0;c<f;c++)l=s.charCodeAt(c),(l&64512)===55296&&c+1<f&&(h=s.charCodeAt(c+1),(h&64512)===56320&&(l=65536+(l-55296<<10)+(h-56320),c++)),d+=l<128?1:l<2048?2:l<65536?3:4;for(a=new r.Buf8(d),u=0,c=0;u<d;c++)l=s.charCodeAt(c),(l&64512)===55296&&c+1<f&&(h=s.charCodeAt(c+1),(h&64512)===56320&&(l=65536+(l-55296<<10)+(h-56320),c++)),l<128?a[u++]=l:l<2048?(a[u++]=192|l>>>6,a[u++]=128|l&63):l<65536?(a[u++]=224|l>>>12,a[u++]=128|l>>>6&63,a[u++]=128|l&63):(a[u++]=240|l>>>18,a[u++]=128|l>>>12&63,a[u++]=128|l>>>6&63,a[u++]=128|l&63);return a};function o(s,a){if(a<65534&&(s.subarray&&e||!s.subarray&&t))return String.fromCharCode.apply(null,r.shrinkBuf(s,a));for(var l="",h=0;h<a;h++)l+=String.fromCharCode(s[h]);return l}return qn.buf2binstring=function(s){return o(s,s.length)},qn.binstring2buf=function(s){for(var a=new r.Buf8(s.length),l=0,h=a.length;l<h;l++)a[l]=s.charCodeAt(l);return a},qn.buf2string=function(s,a){var l,h,c,u,f=a||s.length,d=new Array(f*2);for(h=0,l=0;l<f;){if(c=s[l++],c<128){d[h++]=c;continue}if(u=i[c],u>4){d[h++]=65533,l+=u-1;continue}for(c&=u===2?31:u===3?15:7;u>1&&l<f;)c=c<<6|s[l++]&63,u--;if(u>1){d[h++]=65533;continue}c<65536?d[h++]=c:(c-=65536,d[h++]=55296|c>>10&1023,d[h++]=56320|c&1023)}return o(d,h)},qn.utf8border=function(s,a){var l;for(a=a||s.length,a>s.length&&(a=s.length),l=a-1;l>=0&&(s[l]&192)===128;)l--;return l<0||l===0?a:l+i[s[l]]>a?l:a},qn}var Fc,bp;function xp(){if(bp)return Fc;bp=1;function r(){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}return Fc=r,Fc}var wp;function _x(){if(wp)return So;wp=1;var r=Ax(),t=rn(),e=yp(),i=Rc(),n=xp(),o=Object.prototype.toString,s=0,a=4,l=0,h=1,c=2,u=-1,f=0,d=8;function p(b){if(!(this instanceof p))return new p(b);this.options=t.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},b||{});var y=this.options;y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var x=r.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(x!==l)throw new Error(i[x]);if(y.header&&r.deflateSetHeader(this.strm,y.header),y.dictionary){var C;if(typeof y.dictionary=="string"?C=e.string2buf(y.dictionary):o.call(y.dictionary)==="[object ArrayBuffer]"?C=new Uint8Array(y.dictionary):C=y.dictionary,x=r.deflateSetDictionary(this.strm,C),x!==l)throw new Error(i[x]);this._dict_set=!0}}p.prototype.push=function(b,y){var x=this.strm,C=this.options.chunkSize,R,F;if(this.ended)return!1;F=y===~~y?y:y===!0?a:s,typeof b=="string"?x.input=e.string2buf(b):o.call(b)==="[object ArrayBuffer]"?x.input=new Uint8Array(b):x.input=b,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new t.Buf8(C),x.next_out=0,x.avail_out=C),R=r.deflate(x,F),R!==h&&R!==l)return this.onEnd(R),this.ended=!0,!1;(x.avail_out===0||x.avail_in===0&&(F===a||F===c))&&(this.options.to==="string"?this.onData(e.buf2binstring(t.shrinkBuf(x.output,x.next_out))):this.onData(t.shrinkBuf(x.output,x.next_out)))}while((x.avail_in>0||x.avail_out===0)&&R!==h);return F===a?(R=r.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===l):(F===c&&(this.onEnd(l),x.avail_out=0),!0)},p.prototype.onData=function(b){this.chunks.push(b)},p.prototype.onEnd=function(b){b===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg};function m(b,y){var x=new p(y);if(x.push(b,!0),x.err)throw x.msg||i[x.err];return x.result}function v(b,y){return y=y||{},y.raw=!0,m(b,y)}function g(b,y){return y=y||{},y.gzip=!0,m(b,y)}return So.Deflate=p,So.deflate=m,So.deflateRaw=v,So.gzip=g,So}var No={},Hi={},Ic,Ep;function kx(){if(Ep)return Ic;Ep=1;var r=30,t=12;return Ic=function(i,n){var o,s,a,l,h,c,u,f,d,p,m,v,g,b,y,x,C,R,F,U,T,H,_,k,O;o=i.state,s=i.next_in,k=i.input,a=s+(i.avail_in-5),l=i.next_out,O=i.output,h=l-(n-i.avail_out),c=l+(i.avail_out-257),u=o.dmax,f=o.wsize,d=o.whave,p=o.wnext,m=o.window,v=o.hold,g=o.bits,b=o.lencode,y=o.distcode,x=(1<<o.lenbits)-1,C=(1<<o.distbits)-1;t:do{g<15&&(v+=k[s++]<<g,g+=8,v+=k[s++]<<g,g+=8),R=b[v&x];e:for(;;){if(F=R>>>24,v>>>=F,g-=F,F=R>>>16&255,F===0)O[l++]=R&65535;else if(F&16){U=R&65535,F&=15,F&&(g<F&&(v+=k[s++]<<g,g+=8),U+=v&(1<<F)-1,v>>>=F,g-=F),g<15&&(v+=k[s++]<<g,g+=8,v+=k[s++]<<g,g+=8),R=y[v&C];i:for(;;){if(F=R>>>24,v>>>=F,g-=F,F=R>>>16&255,F&16){if(T=R&65535,F&=15,g<F&&(v+=k[s++]<<g,g+=8,g<F&&(v+=k[s++]<<g,g+=8)),T+=v&(1<<F)-1,T>u){i.msg="invalid distance too far back",o.mode=r;break t}if(v>>>=F,g-=F,F=l-h,T>F){if(F=T-F,F>d&&o.sane){i.msg="invalid distance too far back",o.mode=r;break t}if(H=0,_=m,p===0){if(H+=f-F,F<U){U-=F;do O[l++]=m[H++];while(--F);H=l-T,_=O}}else if(p<F){if(H+=f+p-F,F-=p,F<U){U-=F;do O[l++]=m[H++];while(--F);if(H=0,p<U){F=p,U-=F;do O[l++]=m[H++];while(--F);H=l-T,_=O}}}else if(H+=p-F,F<U){U-=F;do O[l++]=m[H++];while(--F);H=l-T,_=O}for(;U>2;)O[l++]=_[H++],O[l++]=_[H++],O[l++]=_[H++],U-=3;U&&(O[l++]=_[H++],U>1&&(O[l++]=_[H++]))}else{H=l-T;do O[l++]=O[H++],O[l++]=O[H++],O[l++]=O[H++],U-=3;while(U>2);U&&(O[l++]=O[H++],U>1&&(O[l++]=O[H++]))}}else if((F&64)===0){R=y[(R&65535)+(v&(1<<F)-1)];continue i}else{i.msg="invalid distance code",o.mode=r;break t}break}}else if((F&64)===0){R=b[(R&65535)+(v&(1<<F)-1)];continue e}else if(F&32){o.mode=t;break t}else{i.msg="invalid literal/length code",o.mode=r;break t}break}}while(s<a&&l<c);U=g>>3,s-=U,g-=U<<3,v&=(1<<g)-1,i.next_in=s,i.next_out=l,i.avail_in=s<a?5+(a-s):5-(s-a),i.avail_out=l<c?257+(c-l):257-(l-c),o.hold=v,o.bits=g},Ic}var Bc,Tp;function Lx(){if(Tp)return Bc;Tp=1;var r=rn(),t=15,e=852,i=592,n=0,o=1,s=2,a=[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],l=[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],h=[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],c=[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];return Bc=function(f,d,p,m,v,g,b,y){var x=y.bits,C=0,R=0,F=0,U=0,T=0,H=0,_=0,k=0,O=0,N=0,X,Z,W,yt,st,bt=null,tt=0,Q,Tt=new r.Buf16(t+1),wt=new r.Buf16(t+1),ft=null,Bt=0,z,M,lt;for(C=0;C<=t;C++)Tt[C]=0;for(R=0;R<m;R++)Tt[d[p+R]]++;for(T=x,U=t;U>=1&&Tt[U]===0;U--);if(T>U&&(T=U),U===0)return v[g++]=1<<24|64<<16|0,v[g++]=1<<24|64<<16|0,y.bits=1,0;for(F=1;F<U&&Tt[F]===0;F++);for(T<F&&(T=F),k=1,C=1;C<=t;C++)if(k<<=1,k-=Tt[C],k<0)return-1;if(k>0&&(f===n||U!==1))return-1;for(wt[1]=0,C=1;C<t;C++)wt[C+1]=wt[C]+Tt[C];for(R=0;R<m;R++)d[p+R]!==0&&(b[wt[d[p+R]]++]=R);if(f===n?(bt=ft=b,Q=19):f===o?(bt=a,tt-=257,ft=l,Bt-=257,Q=256):(bt=h,ft=c,Q=-1),N=0,R=0,C=F,st=g,H=T,_=0,W=-1,O=1<<T,yt=O-1,f===o&&O>e||f===s&&O>i)return 1;for(;;){z=C-_,b[R]<Q?(M=0,lt=b[R]):b[R]>Q?(M=ft[Bt+b[R]],lt=bt[tt+b[R]]):(M=96,lt=0),X=1<<C-_,Z=1<<H,F=Z;do Z-=X,v[st+(N>>_)+Z]=z<<24|M<<16|lt|0;while(Z!==0);for(X=1<<C-1;N&X;)X>>=1;if(X!==0?(N&=X-1,N+=X):N=0,R++,--Tt[C]===0){if(C===U)break;C=d[p+b[R]]}if(C>T&&(N&yt)!==W){for(_===0&&(_=T),st+=F,H=C-_,k=1<<H;H+_<U&&(k-=Tt[H+_],!(k<=0));)H++,k<<=1;if(O+=1<<H,f===o&&O>e||f===s&&O>i)return 1;W=N&yt,v[W]=T<<24|H<<16|st-g|0}}return N!==0&&(v[st+N]=C-_<<24|64<<16|0),y.bits=T,0},Bc}var Cp;function Mx(){if(Cp)return Hi;Cp=1;var r=rn(),t=dp(),e=pp(),i=kx(),n=Lx(),o=0,s=1,a=2,l=4,h=5,c=6,u=0,f=1,d=2,p=-2,m=-3,v=-4,g=-5,b=8,y=1,x=2,C=3,R=4,F=5,U=6,T=7,H=8,_=9,k=10,O=11,N=12,X=13,Z=14,W=15,yt=16,st=17,bt=18,tt=19,Q=20,Tt=21,wt=22,ft=23,Bt=24,z=25,M=26,lt=27,et=28,Ot=29,Rt=30,Pt=31,D=32,gt=852,pt=592,V=15,q=V;function at(rt){return(rt>>>24&255)+(rt>>>8&65280)+((rt&65280)<<8)+((rt&255)<<24)}function At(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _t(rt){var dt;return!rt||!rt.state?p:(dt=rt.state,rt.total_in=rt.total_out=dt.total=0,rt.msg="",dt.wrap&&(rt.adler=dt.wrap&1),dt.mode=y,dt.last=0,dt.havedict=0,dt.dmax=32768,dt.head=null,dt.hold=0,dt.bits=0,dt.lencode=dt.lendyn=new r.Buf32(gt),dt.distcode=dt.distdyn=new r.Buf32(pt),dt.sane=1,dt.back=-1,u)}function ht(rt){var dt;return!rt||!rt.state?p:(dt=rt.state,dt.wsize=0,dt.whave=0,dt.wnext=0,_t(rt))}function Dt(rt,dt){var I,Et;return!rt||!rt.state||(Et=rt.state,dt<0?(I=0,dt=-dt):(I=(dt>>4)+1,dt<48&&(dt&=15)),dt&&(dt<8||dt>15))?p:(Et.window!==null&&Et.wbits!==dt&&(Et.window=null),Et.wrap=I,Et.wbits=dt,ht(rt))}function zt(rt,dt){var I,Et;return rt?(Et=new At,rt.state=Et,Et.window=null,I=Dt(rt,dt),I!==u&&(rt.state=null),I):p}function Lt(rt){return zt(rt,q)}var Wt=!0,B,w;function A(rt){if(Wt){var dt;for(B=new r.Buf32(512),w=new r.Buf32(32),dt=0;dt<144;)rt.lens[dt++]=8;for(;dt<256;)rt.lens[dt++]=9;for(;dt<280;)rt.lens[dt++]=7;for(;dt<288;)rt.lens[dt++]=8;for(n(s,rt.lens,0,288,B,0,rt.work,{bits:9}),dt=0;dt<32;)rt.lens[dt++]=5;n(a,rt.lens,0,32,w,0,rt.work,{bits:5}),Wt=!1}rt.lencode=B,rt.lenbits=9,rt.distcode=w,rt.distbits=5}function G(rt,dt,I,Et){var Gt,E=rt.state;return E.window===null&&(E.wsize=1<<E.wbits,E.wnext=0,E.whave=0,E.window=new r.Buf8(E.wsize)),Et>=E.wsize?(r.arraySet(E.window,dt,I-E.wsize,E.wsize,0),E.wnext=0,E.whave=E.wsize):(Gt=E.wsize-E.wnext,Gt>Et&&(Gt=Et),r.arraySet(E.window,dt,I-Et,Gt,E.wnext),Et-=Gt,Et?(r.arraySet(E.window,dt,I-Et,Et,0),E.wnext=Et,E.whave=E.wsize):(E.wnext+=Gt,E.wnext===E.wsize&&(E.wnext=0),E.whave<E.wsize&&(E.whave+=Gt))),0}function L(rt,dt){var I,Et,Gt,E,vt,xt,P,ot,mt,Ht,Ut,jt,de,ri,Ie=0,pe,We,Ve,Ye,He,xn,je,vi,Ke=new r.Buf8(4),Pi,Re,Zo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!rt||!rt.state||!rt.output||!rt.input&&rt.avail_in!==0)return p;I=rt.state,I.mode===N&&(I.mode=X),vt=rt.next_out,Gt=rt.output,P=rt.avail_out,E=rt.next_in,Et=rt.input,xt=rt.avail_in,ot=I.hold,mt=I.bits,Ht=xt,Ut=P,vi=u;t:for(;;)switch(I.mode){case y:if(I.wrap===0){I.mode=X;break}for(;mt<16;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(I.wrap&2&&ot===35615){I.check=0,Ke[0]=ot&255,Ke[1]=ot>>>8&255,I.check=e(I.check,Ke,2,0),ot=0,mt=0,I.mode=x;break}if(I.flags=0,I.head&&(I.head.done=!1),!(I.wrap&1)||(((ot&255)<<8)+(ot>>8))%31){rt.msg="incorrect header check",I.mode=Rt;break}if((ot&15)!==b){rt.msg="unknown compression method",I.mode=Rt;break}if(ot>>>=4,mt-=4,je=(ot&15)+8,I.wbits===0)I.wbits=je;else if(je>I.wbits){rt.msg="invalid window size",I.mode=Rt;break}I.dmax=1<<je,rt.adler=I.check=1,I.mode=ot&512?k:N,ot=0,mt=0;break;case x:for(;mt<16;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(I.flags=ot,(I.flags&255)!==b){rt.msg="unknown compression method",I.mode=Rt;break}if(I.flags&57344){rt.msg="unknown header flags set",I.mode=Rt;break}I.head&&(I.head.text=ot>>8&1),I.flags&512&&(Ke[0]=ot&255,Ke[1]=ot>>>8&255,I.check=e(I.check,Ke,2,0)),ot=0,mt=0,I.mode=C;case C:for(;mt<32;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}I.head&&(I.head.time=ot),I.flags&512&&(Ke[0]=ot&255,Ke[1]=ot>>>8&255,Ke[2]=ot>>>16&255,Ke[3]=ot>>>24&255,I.check=e(I.check,Ke,4,0)),ot=0,mt=0,I.mode=R;case R:for(;mt<16;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}I.head&&(I.head.xflags=ot&255,I.head.os=ot>>8),I.flags&512&&(Ke[0]=ot&255,Ke[1]=ot>>>8&255,I.check=e(I.check,Ke,2,0)),ot=0,mt=0,I.mode=F;case F:if(I.flags&1024){for(;mt<16;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}I.length=ot,I.head&&(I.head.extra_len=ot),I.flags&512&&(Ke[0]=ot&255,Ke[1]=ot>>>8&255,I.check=e(I.check,Ke,2,0)),ot=0,mt=0}else I.head&&(I.head.extra=null);I.mode=U;case U:if(I.flags&1024&&(jt=I.length,jt>xt&&(jt=xt),jt&&(I.head&&(je=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Array(I.head.extra_len)),r.arraySet(I.head.extra,Et,E,jt,je)),I.flags&512&&(I.check=e(I.check,Et,jt,E)),xt-=jt,E+=jt,I.length-=jt),I.length))break t;I.length=0,I.mode=T;case T:if(I.flags&2048){if(xt===0)break t;jt=0;do je=Et[E+jt++],I.head&&je&&I.length<65536&&(I.head.name+=String.fromCharCode(je));while(je&&jt<xt);if(I.flags&512&&(I.check=e(I.check,Et,jt,E)),xt-=jt,E+=jt,je)break t}else I.head&&(I.head.name=null);I.length=0,I.mode=H;case H:if(I.flags&4096){if(xt===0)break t;jt=0;do je=Et[E+jt++],I.head&&je&&I.length<65536&&(I.head.comment+=String.fromCharCode(je));while(je&&jt<xt);if(I.flags&512&&(I.check=e(I.check,Et,jt,E)),xt-=jt,E+=jt,je)break t}else I.head&&(I.head.comment=null);I.mode=_;case _:if(I.flags&512){for(;mt<16;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(ot!==(I.check&65535)){rt.msg="header crc mismatch",I.mode=Rt;break}ot=0,mt=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),rt.adler=I.check=0,I.mode=N;break;case k:for(;mt<32;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}rt.adler=I.check=at(ot),ot=0,mt=0,I.mode=O;case O:if(I.havedict===0)return rt.next_out=vt,rt.avail_out=P,rt.next_in=E,rt.avail_in=xt,I.hold=ot,I.bits=mt,d;rt.adler=I.check=1,I.mode=N;case N:if(dt===h||dt===c)break t;case X:if(I.last){ot>>>=mt&7,mt-=mt&7,I.mode=lt;break}for(;mt<3;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}switch(I.last=ot&1,ot>>>=1,mt-=1,ot&3){case 0:I.mode=Z;break;case 1:if(A(I),I.mode=Q,dt===c){ot>>>=2,mt-=2;break t}break;case 2:I.mode=st;break;case 3:rt.msg="invalid block type",I.mode=Rt}ot>>>=2,mt-=2;break;case Z:for(ot>>>=mt&7,mt-=mt&7;mt<32;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if((ot&65535)!==(ot>>>16^65535)){rt.msg="invalid stored block lengths",I.mode=Rt;break}if(I.length=ot&65535,ot=0,mt=0,I.mode=W,dt===c)break t;case W:I.mode=yt;case yt:if(jt=I.length,jt){if(jt>xt&&(jt=xt),jt>P&&(jt=P),jt===0)break t;r.arraySet(Gt,Et,E,jt,vt),xt-=jt,E+=jt,P-=jt,vt+=jt,I.length-=jt;break}I.mode=N;break;case st:for(;mt<14;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(I.nlen=(ot&31)+257,ot>>>=5,mt-=5,I.ndist=(ot&31)+1,ot>>>=5,mt-=5,I.ncode=(ot&15)+4,ot>>>=4,mt-=4,I.nlen>286||I.ndist>30){rt.msg="too many length or distance symbols",I.mode=Rt;break}I.have=0,I.mode=bt;case bt:for(;I.have<I.ncode;){for(;mt<3;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}I.lens[Zo[I.have++]]=ot&7,ot>>>=3,mt-=3}for(;I.have<19;)I.lens[Zo[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,Pi={bits:I.lenbits},vi=n(o,I.lens,0,19,I.lencode,0,I.work,Pi),I.lenbits=Pi.bits,vi){rt.msg="invalid code lengths set",I.mode=Rt;break}I.have=0,I.mode=tt;case tt:for(;I.have<I.nlen+I.ndist;){for(;Ie=I.lencode[ot&(1<<I.lenbits)-1],pe=Ie>>>24,We=Ie>>>16&255,Ve=Ie&65535,!(pe<=mt);){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(Ve<16)ot>>>=pe,mt-=pe,I.lens[I.have++]=Ve;else{if(Ve===16){for(Re=pe+2;mt<Re;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(ot>>>=pe,mt-=pe,I.have===0){rt.msg="invalid bit length repeat",I.mode=Rt;break}je=I.lens[I.have-1],jt=3+(ot&3),ot>>>=2,mt-=2}else if(Ve===17){for(Re=pe+3;mt<Re;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}ot>>>=pe,mt-=pe,je=0,jt=3+(ot&7),ot>>>=3,mt-=3}else{for(Re=pe+7;mt<Re;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}ot>>>=pe,mt-=pe,je=0,jt=11+(ot&127),ot>>>=7,mt-=7}if(I.have+jt>I.nlen+I.ndist){rt.msg="invalid bit length repeat",I.mode=Rt;break}for(;jt--;)I.lens[I.have++]=je}}if(I.mode===Rt)break;if(I.lens[256]===0){rt.msg="invalid code -- missing end-of-block",I.mode=Rt;break}if(I.lenbits=9,Pi={bits:I.lenbits},vi=n(s,I.lens,0,I.nlen,I.lencode,0,I.work,Pi),I.lenbits=Pi.bits,vi){rt.msg="invalid literal/lengths set",I.mode=Rt;break}if(I.distbits=6,I.distcode=I.distdyn,Pi={bits:I.distbits},vi=n(a,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,Pi),I.distbits=Pi.bits,vi){rt.msg="invalid distances set",I.mode=Rt;break}if(I.mode=Q,dt===c)break t;case Q:I.mode=Tt;case Tt:if(xt>=6&&P>=258){rt.next_out=vt,rt.avail_out=P,rt.next_in=E,rt.avail_in=xt,I.hold=ot,I.bits=mt,i(rt,Ut),vt=rt.next_out,Gt=rt.output,P=rt.avail_out,E=rt.next_in,Et=rt.input,xt=rt.avail_in,ot=I.hold,mt=I.bits,I.mode===N&&(I.back=-1);break}for(I.back=0;Ie=I.lencode[ot&(1<<I.lenbits)-1],pe=Ie>>>24,We=Ie>>>16&255,Ve=Ie&65535,!(pe<=mt);){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(We&&(We&240)===0){for(Ye=pe,He=We,xn=Ve;Ie=I.lencode[xn+((ot&(1<<Ye+He)-1)>>Ye)],pe=Ie>>>24,We=Ie>>>16&255,Ve=Ie&65535,!(Ye+pe<=mt);){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}ot>>>=Ye,mt-=Ye,I.back+=Ye}if(ot>>>=pe,mt-=pe,I.back+=pe,I.length=Ve,We===0){I.mode=M;break}if(We&32){I.back=-1,I.mode=N;break}if(We&64){rt.msg="invalid literal/length code",I.mode=Rt;break}I.extra=We&15,I.mode=wt;case wt:if(I.extra){for(Re=I.extra;mt<Re;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}I.length+=ot&(1<<I.extra)-1,ot>>>=I.extra,mt-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=ft;case ft:for(;Ie=I.distcode[ot&(1<<I.distbits)-1],pe=Ie>>>24,We=Ie>>>16&255,Ve=Ie&65535,!(pe<=mt);){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if((We&240)===0){for(Ye=pe,He=We,xn=Ve;Ie=I.distcode[xn+((ot&(1<<Ye+He)-1)>>Ye)],pe=Ie>>>24,We=Ie>>>16&255,Ve=Ie&65535,!(Ye+pe<=mt);){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}ot>>>=Ye,mt-=Ye,I.back+=Ye}if(ot>>>=pe,mt-=pe,I.back+=pe,We&64){rt.msg="invalid distance code",I.mode=Rt;break}I.offset=Ve,I.extra=We&15,I.mode=Bt;case Bt:if(I.extra){for(Re=I.extra;mt<Re;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}I.offset+=ot&(1<<I.extra)-1,ot>>>=I.extra,mt-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){rt.msg="invalid distance too far back",I.mode=Rt;break}I.mode=z;case z:if(P===0)break t;if(jt=Ut-P,I.offset>jt){if(jt=I.offset-jt,jt>I.whave&&I.sane){rt.msg="invalid distance too far back",I.mode=Rt;break}jt>I.wnext?(jt-=I.wnext,de=I.wsize-jt):de=I.wnext-jt,jt>I.length&&(jt=I.length),ri=I.window}else ri=Gt,de=vt-I.offset,jt=I.length;jt>P&&(jt=P),P-=jt,I.length-=jt;do Gt[vt++]=ri[de++];while(--jt);I.length===0&&(I.mode=Tt);break;case M:if(P===0)break t;Gt[vt++]=I.length,P--,I.mode=Tt;break;case lt:if(I.wrap){for(;mt<32;){if(xt===0)break t;xt--,ot|=Et[E++]<<mt,mt+=8}if(Ut-=P,rt.total_out+=Ut,I.total+=Ut,Ut&&(rt.adler=I.check=I.flags?e(I.check,Gt,Ut,vt-Ut):t(I.check,Gt,Ut,vt-Ut)),Ut=P,(I.flags?ot:at(ot))!==I.check){rt.msg="incorrect data check",I.mode=Rt;break}ot=0,mt=0}I.mode=et;case et:if(I.wrap&&I.flags){for(;mt<32;){if(xt===0)break t;xt--,ot+=Et[E++]<<mt,mt+=8}if(ot!==(I.total&4294967295)){rt.msg="incorrect length check",I.mode=Rt;break}ot=0,mt=0}I.mode=Ot;case Ot:vi=f;break t;case Rt:vi=m;break t;case Pt:return v;case D:default:return p}return rt.next_out=vt,rt.avail_out=P,rt.next_in=E,rt.avail_in=xt,I.hold=ot,I.bits=mt,(I.wsize||Ut!==rt.avail_out&&I.mode<Rt&&(I.mode<lt||dt!==l))&&G(rt,rt.output,rt.next_out,Ut-rt.avail_out),Ht-=rt.avail_in,Ut-=rt.avail_out,rt.total_in+=Ht,rt.total_out+=Ut,I.total+=Ut,I.wrap&&Ut&&(rt.adler=I.check=I.flags?e(I.check,Gt,Ut,rt.next_out-Ut):t(I.check,Gt,Ut,rt.next_out-Ut)),rt.data_type=I.bits+(I.last?64:0)+(I.mode===N?128:0)+(I.mode===Q||I.mode===W?256:0),(Ht===0&&Ut===0||dt===l)&&vi===u&&(vi=g),vi}function J(rt){if(!rt||!rt.state)return p;var dt=rt.state;return dt.window&&(dt.window=null),rt.state=null,u}function it(rt,dt){var I;return!rt||!rt.state||(I=rt.state,(I.wrap&2)===0)?p:(I.head=dt,dt.done=!1,u)}function kt(rt,dt){var I=dt.length,Et,Gt,E;return!rt||!rt.state||(Et=rt.state,Et.wrap!==0&&Et.mode!==O)?p:Et.mode===O&&(Gt=1,Gt=t(Gt,dt,I,0),Gt!==Et.check)?m:(E=G(rt,dt,I,I),E?(Et.mode=Pt,v):(Et.havedict=1,u))}return Hi.inflateReset=ht,Hi.inflateReset2=Dt,Hi.inflateResetKeep=_t,Hi.inflateInit=Lt,Hi.inflateInit2=zt,Hi.inflate=L,Hi.inflateEnd=J,Hi.inflateGetHeader=it,Hi.inflateSetDictionary=kt,Hi.inflateInfo="pako inflate (from Nodeca project)",Hi}var zc,Sp;function Np(){return Sp||(Sp=1,zc={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}),zc}var Pc,Ap;function Dx(){if(Ap)return Pc;Ap=1;function r(){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}return Pc=r,Pc}var _p;function Ox(){if(_p)return No;_p=1;var r=Mx(),t=rn(),e=yp(),i=Np(),n=Rc(),o=xp(),s=Dx(),a=Object.prototype.toString;function l(u){if(!(this instanceof l))return new l(u);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},u||{});var f=this.options;f.raw&&f.windowBits>=0&&f.windowBits<16&&(f.windowBits=-f.windowBits,f.windowBits===0&&(f.windowBits=-15)),f.windowBits>=0&&f.windowBits<16&&!(u&&u.windowBits)&&(f.windowBits+=32),f.windowBits>15&&f.windowBits<48&&(f.windowBits&15)===0&&(f.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var d=r.inflateInit2(this.strm,f.windowBits);if(d!==i.Z_OK)throw new Error(n[d]);if(this.header=new s,r.inflateGetHeader(this.strm,this.header),f.dictionary&&(typeof f.dictionary=="string"?f.dictionary=e.string2buf(f.dictionary):a.call(f.dictionary)==="[object ArrayBuffer]"&&(f.dictionary=new Uint8Array(f.dictionary)),f.raw&&(d=r.inflateSetDictionary(this.strm,f.dictionary),d!==i.Z_OK)))throw new Error(n[d])}l.prototype.push=function(u,f){var d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,v,g,b,y,x,C=!1;if(this.ended)return!1;g=f===~~f?f:f===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof u=="string"?d.input=e.binstring2buf(u):a.call(u)==="[object ArrayBuffer]"?d.input=new Uint8Array(u):d.input=u,d.next_in=0,d.avail_in=d.input.length;do{if(d.avail_out===0&&(d.output=new t.Buf8(p),d.next_out=0,d.avail_out=p),v=r.inflate(d,i.Z_NO_FLUSH),v===i.Z_NEED_DICT&&m&&(v=r.inflateSetDictionary(this.strm,m)),v===i.Z_BUF_ERROR&&C===!0&&(v=i.Z_OK,C=!1),v!==i.Z_STREAM_END&&v!==i.Z_OK)return this.onEnd(v),this.ended=!0,!1;d.next_out&&(d.avail_out===0||v===i.Z_STREAM_END||d.avail_in===0&&(g===i.Z_FINISH||g===i.Z_SYNC_FLUSH))&&(this.options.to==="string"?(b=e.utf8border(d.output,d.next_out),y=d.next_out-b,x=e.buf2string(d.output,b),d.next_out=y,d.avail_out=p-y,y&&t.arraySet(d.output,d.output,b,y,0),this.onData(x)):this.onData(t.shrinkBuf(d.output,d.next_out))),d.avail_in===0&&d.avail_out===0&&(C=!0)}while((d.avail_in>0||d.avail_out===0)&&v!==i.Z_STREAM_END);return v===i.Z_STREAM_END&&(g=i.Z_FINISH),g===i.Z_FINISH?(v=r.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===i.Z_OK):(g===i.Z_SYNC_FLUSH&&(this.onEnd(i.Z_OK),d.avail_out=0),!0)},l.prototype.onData=function(u){this.chunks.push(u)},l.prototype.onEnd=function(u){u===i.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg};function h(u,f){var d=new l(f);if(d.push(u,!0),d.err)throw d.msg||n[d.err];return d.result}function c(u,f){return f=f||{},f.raw=!0,h(u,f)}return No.Inflate=l,No.inflate=h,No.inflateRaw=c,No.ungzip=h,No}var Uc,kp;function Rx(){if(kp)return Uc;kp=1;var r=rn().assign,t=_x(),e=Ox(),i=Np(),n={};return r(n,t,e,i),Uc=n,Uc}var Fx=Rx();const tl=Sn(Fx);for(var Lp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=new Uint8Array(256),el=0;el<Lp.length;el++)As[Lp.charCodeAt(el)]=el;var Ix=function(r){var t=r.length*.75,e=r.length,i,n=0,o,s,a,l;r[r.length-1]==="="&&(t--,r[r.length-2]==="="&&t--);var h=new Uint8Array(t);for(i=0;i<e;i+=4)o=As[r.charCodeAt(i)],s=As[r.charCodeAt(i+1)],a=As[r.charCodeAt(i+2)],l=As[r.charCodeAt(i+3)],h[n++]=o<<2|s>>4,h[n++]=(s&15)<<4|a>>2,h[n++]=(a&3)<<6|l&63;return h},Bx=function(r){for(var t="",e=0;e<r.length;e++)t+=String.fromCharCode(r[e]);return t},Mp=function(r){return Bx(tl.inflate(Ix(r)))},zx=function(r,t,e){for(var i="",n=0,o=t-r.length;n<o;n++)i+=e;return i+r},Px={Courier:"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndB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w=="},_s;(function(r){r.Courier="Courier",r.CourierBold="Courier-Bold",r.CourierOblique="Courier-Oblique",r.CourierBoldOblique="Courier-BoldOblique",r.Helvetica="Helvetica",r.HelveticaBold="Helvetica-Bold",r.HelveticaOblique="Helvetica-Oblique",r.HelveticaBoldOblique="Helvetica-BoldOblique",r.TimesRoman="Times-Roman",r.TimesRomanBold="Times-Bold",r.TimesRomanItalic="Times-Italic",r.TimesRomanBoldItalic="Times-BoldItalic",r.Symbol="Symbol",r.ZapfDingbats="ZapfDingbats"})(_s||(_s={}));for(var Dp={},Ux=function(){function r(){var t=this;this.getWidthOfGlyph=function(e){return t.CharWidths[e]},this.getXAxisKerningForPair=function(e,i){return(t.KernPairXAmounts[e]||{})[i]}}return r.load=function(t){var e=Dp[t];if(e)return e;var i=Mp(Px[t]),n=Object.assign(new r,JSON.parse(i));return n.CharWidths=n.CharMetrics.reduce(function(o,s){return o[s.N]=s.WX,o},{}),n.KernPairXAmounts=n.KernPairs.reduce(function(o,s){var a=s[0],l=s[1],h=s[2];return o[a]||(o[a]={}),o[a][l]=h,o},{}),Dp[t]=n,n},r}(),jx=Mp("eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71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qPwBkNQo/h2NQxdQQ3bn/dpCxrGrqCW7U8rKZl/mfi0Xytk3Am66ZhYbg4y+KAVslDwbXdNL2d5qU5hnYBlTZaa6hs2t1qWdaeeTptcLco+hl5R7w4H5uOGcQbtEkpT18GusOI2xT9dYcVJf7zCSjmbD+Iud2s1NPRb9E+0UICmizb8ZK/+5JOLOulSqwaw5VJr2vB8dSFn89fvv/8H0oq1dA=="),jc=JSON.parse(jx),qc=function(){function r(t,e){var i=this;this.canEncodeUnicodeCodePoint=function(n){return n in i.unicodeMappings},this.encodeUnicodeCodePoint=function(n){var o=i.unicodeMappings[n];if(!o){var s=String.fromCharCode(n),a="0x"+zx(n.toString(16),4,"0"),l=i.name+' cannot encode "'+s+'" ('+a+")";throw new Error(l)}return{code:o[0],name:o[1]}},this.name=t,this.supportedCodePoints=Object.keys(e).map(Number).sort(function(n,o){return n-o}),this.unicodeMappings=e}return r}(),il={Symbol:new qc("Symbol",jc.symbol),ZapfDingbats:new qc("ZapfDingbats",jc.zapfdingbats),WinAnsi:new qc("WinAnsi",jc.win1252)},rl=function(r){return Object.keys(r).map(function(t){return r[t]})},qx=rl(_s),Op=function(r){return qx.includes(r)},nl=function(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height},$e=function(r){return"`"+r+"`"},Wx=function(r){return"'"+r+"'"},Rp=function(r){var t=typeof r;return t==="string"?Wx(r):t==="undefined"?$e(r):r},Hx=function(r,t,e){for(var i=new Array(e.length),n=0,o=e.length;n<o;n++){var s=e[n];i[n]=Rp(s)}var a=i.join(" or ");return $e(t)+" must be one of "+a+", but was actually "+Rp(r)},nn=function(r,t,e){Array.isArray(e)||(e=rl(e));for(var i=0,n=e.length;i<n;i++)if(r===e[i])return;throw new TypeError(Hx(r,t,e))},Gi=function(r,t,e){Array.isArray(e)||(e=rl(e)),nn(r,t,e.concat(void 0))},Gx=function(r,t,e){Array.isArray(e)||(e=rl(e));for(var i=0,n=r.length;i<n;i++)nn(r[i],t,e)},Vx=function(r){return r===null?"null":r===void 0?"undefined":typeof r=="string"?"string":isNaN(r)?"NaN":typeof r=="number"?"number":typeof r=="boolean"?"boolean":typeof r=="symbol"?"symbol":typeof r=="bigint"?"bigint":r.constructor&&r.constructor.name?r.constructor.name:r.name?r.name:r.constructor?String(r.constructor):String(r)},Kx=function(r,t){return t==="null"?r===null:t==="undefined"?r===void 0:t==="string"?typeof r=="string":t==="number"?typeof r=="number"&&!isNaN(r):t==="boolean"?typeof r=="boolean":t==="symbol"?typeof r=="symbol":t==="bigint"?typeof r=="bigint":t===Date?r instanceof Date:t===Array?r instanceof Array:t===Uint8Array?r instanceof Uint8Array:t===ArrayBuffer?r instanceof ArrayBuffer:t===Function?r instanceof Function:r instanceof t[0]},Xx=function(r,t,e){for(var i=new Array(e.length),n=0,o=e.length;n<o;n++){var s=e[n];s==="null"&&(i[n]=$e("null")),s==="undefined"&&(i[n]=$e("undefined")),s==="string"?i[n]=$e("string"):s==="number"?i[n]=$e("number"):s==="boolean"?i[n]=$e("boolean"):s==="symbol"?i[n]=$e("symbol"):s==="bigint"?i[n]=$e("bigint"):s===Array?i[n]=$e("Array"):s===Uint8Array?i[n]=$e("Uint8Array"):s===ArrayBuffer?i[n]=$e("ArrayBuffer"):i[n]=$e(s[1])}var a=i.join(" or ");return $e(t)+" must be of type "+a+", but was actually of type "+$e(Vx(r))},ct=function(r,t,e){for(var i=0,n=e.length;i<n;i++)if(Kx(r,e[i]))return;throw new TypeError(Xx(r,t,e))},Ft=function(r,t,e){ct(r,t,e.concat("undefined"))},Fp=function(r,t,e){for(var i=0,n=r.length;i<n;i++)ct(r[i],t,e)},Ri=function(r,t,e,i){if(ct(r,t,["number"]),ct(e,"min",["number"]),ct(i,"max",["number"]),i=Math.max(e,i),r<e||r>i)throw new Error($e(t)+" must be at least "+e+" and at most "+i+", but was actually "+r)},lr=function(r,t,e,i){ct(r,t,["number","undefined"]),typeof r=="number"&&Ri(r,t,e,i)},Ip=function(r,t,e){if(ct(r,t,["number"]),r%e!==0)throw new Error($e(t)+" must be a multiple of "+e+", but was actually "+r)},Yx=function(r,t){if(!Number.isInteger(r))throw new Error($e(t)+" must be an integer, but was actually "+r)},ol=function(r,t){if(![1,0].includes(Math.sign(r)))throw new Error($e(t)+" must be a positive number or 0, but was actually "+r)},ne=new Uint16Array(256),sl=0;sl<256;sl++)ne[sl]=sl;ne[22]=ie(""),ne[24]=ie("˘"),ne[25]=ie("ˇ"),ne[26]=ie("ˆ"),ne[27]=ie("˙"),ne[28]=ie("˝"),ne[29]=ie("˛"),ne[30]=ie("˚"),ne[31]=ie("˜"),ne[127]=ie("�"),ne[128]=ie("•"),ne[129]=ie("†"),ne[130]=ie("‡"),ne[131]=ie("…"),ne[132]=ie("—"),ne[133]=ie("–"),ne[134]=ie("ƒ"),ne[135]=ie("⁄"),ne[136]=ie("‹"),ne[137]=ie("›"),ne[138]=ie("−"),ne[139]=ie("‰"),ne[140]=ie("„"),ne[141]=ie("“"),ne[142]=ie("”"),ne[143]=ie("‘"),ne[144]=ie("’"),ne[145]=ie("‚"),ne[146]=ie("™"),ne[147]=ie("fi"),ne[148]=ie("fl"),ne[149]=ie("Ł"),ne[150]=ie("Œ"),ne[151]=ie("Š"),ne[152]=ie("Ÿ"),ne[153]=ie("Ž"),ne[154]=ie("ı"),ne[155]=ie("ł"),ne[156]=ie("œ"),ne[157]=ie("š"),ne[158]=ie("ž"),ne[159]=ie("�"),ne[160]=ie("€"),ne[173]=ie("�");var Bp=function(r){for(var t=new Array(r.length),e=0,i=r.length;e<i;e++)t[e]=ne[r[e]];return String.fromCodePoint.apply(String,t)},Fr=function(){function r(t){this.populate=t,this.value=void 0}return r.prototype.getValue=function(){return this.value},r.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},r.prototype.invalidate=function(){this.value=void 0},r.populatedBy=function(t){return new r(t)},r}(),Vi=function(r){It(t,r);function t(e,i){var n=this,o="Method "+e+"."+i+"() not implemented";return n=r.call(this,o)||this,n}return t}(Error),Wc=function(r){It(t,r);function t(e){var i=this,n="Cannot construct "+e+" - it has a private constructor";return i=r.call(this,n)||this,i}return t}(Error),al=function(r){It(t,r);function t(e,i){var n=this,o=function(l){var h,c;return(h=l==null?void 0:l.name)!==null&&h!==void 0?h:(c=l==null?void 0:l.constructor)===null||c===void 0?void 0:c.name},s=Array.isArray(e)?e.map(o):[o(e)],a="Expected instance of "+s.join(" or ")+", "+("but got instance of "+(i&&o(i)));return n=r.call(this,a)||this,n}return t}(Error),Zx=function(r){It(t,r);function t(e){var i=this,n=e+" stream encoding not supported";return i=r.call(this,n)||this,i}return t}(Error),Hc=function(r){It(t,r);function t(e,i){var n=this,o="Cannot call "+e+"."+i+"() more than once";return n=r.call(this,o)||this,n}return t}(Error);(function(r){It(t,r);function t(e){var i=this,n="Missing catalog (ref="+e+")";return i=r.call(this,n)||this,i}return t})(Error);var Jx=function(r){It(t,r);function t(){var e=this,i="Can't embed page with missing Contents";return e=r.call(this,i)||this,e}return t}(Error),Qx=function(r){It(t,r);function t(e){var i,n,o,s=this,a=(o=(n=(i=e==null?void 0:e.contructor)===null||i===void 0?void 0:i.name)!==null&&n!==void 0?n:e==null?void 0:e.name)!==null&&o!==void 0?o:e,l="Unrecognized stream type: "+a;return s=r.call(this,l)||this,s}return t}(Error),$x=function(r){It(t,r);function t(){var e=this,i="Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.";return e=r.call(this,i)||this,e}return t}(Error),t4=function(r){It(t,r);function t(e){var i=this,n="Attempted to convert PDFArray with "+e+" elements to rectangle, but must have exactly 4 elements.";return i=r.call(this,n)||this,i}return t}(Error),zp=function(r){It(t,r);function t(e){var i=this,n='Attempted to convert "'+e+'" to a date, but it does not match the PDF date string format.';return i=r.call(this,n)||this,i}return t}(Error),Pp=function(r){It(t,r);function t(e,i){var n=this,o="Invalid targetIndex specified: targetIndex="+e+" must be less than Count="+i;return n=r.call(this,o)||this,n}return t}(Error),Up=function(r){It(t,r);function t(e,i){var n=this,o="Failed to "+i+" at targetIndex="+e+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return n=r.call(this,o)||this,n}return t}(Error),ll=function(r){It(t,r);function t(e,i,n){var o=this,s="index should be at least "+i+" and at most "+n+", but was actually "+e;return o=r.call(this,s)||this,o}return t}(Error),Gc=function(r){It(t,r);function t(){var e=this,i="Attempted to set invalid field value";return e=r.call(this,i)||this,e}return t}(Error),e4=function(r){It(t,r);function t(){var e=this,i="Attempted to select multiple values for single-select field";return e=r.call(this,i)||this,e}return t}(Error),i4=function(r){It(t,r);function t(e){var i=this,n="No /DA (default appearance) entry found for field: "+e;return i=r.call(this,n)||this,i}return t}(Error),r4=function(r){It(t,r);function t(e){var i=this,n="No Tf operator found for DA of field: "+e;return i=r.call(this,n)||this,i}return t}(Error),jp=function(r){It(t,r);function t(e,i){var n=this,o="Failed to parse number "+("(line:"+e.line+" col:"+e.column+" offset="+e.offset+'): "'+i+'"');return n=r.call(this,o)||this,n}return t}(Error),on=function(r){It(t,r);function t(e,i){var n=this,o="Failed to parse PDF document "+("(line:"+e.line+" col:"+e.column+" offset="+e.offset+"): "+i);return n=r.call(this,o)||this,n}return t}(Error),n4=function(r){It(t,r);function t(e,i,n){var o=this,s="Expected next byte to be "+i+" but it was actually "+n;return o=r.call(this,e,s)||this,o}return t}(on),o4=function(r){It(t,r);function t(e,i){var n=this,o="Failed to parse PDF object starting with the following byte: "+i;return n=r.call(this,e,o)||this,n}return t}(on),s4=function(r){It(t,r);function t(e){var i=this,n="Failed to parse invalid PDF object";return i=r.call(this,e,n)||this,i}return t}(on),a4=function(r){It(t,r);function t(e){var i=this,n="Failed to parse PDF stream";return i=r.call(this,e,n)||this,i}return t}(on),l4=function(r){It(t,r);function t(e){var i=this,n="Failed to parse PDF literal string due to unbalanced parenthesis";return i=r.call(this,e,n)||this,i}return t}(on),h4=function(r){It(t,r);function t(e){var i=this,n="Parser stalled";return i=r.call(this,e,n)||this,i}return t}(on),c4=function(r){It(t,r);function t(e){var i=this,n="No PDF header found";return i=r.call(this,e,n)||this,i}return t}(on),u4=function(r){It(t,r);function t(e,i){var n=this,o="Did not find expected keyword '"+tp(i)+"'";return n=r.call(this,e,o)||this,n}return t}(on),Vc;(function(r){r[r.Null=0]="Null",r[r.Backspace=8]="Backspace",r[r.Tab=9]="Tab",r[r.Newline=10]="Newline",r[r.FormFeed=12]="FormFeed",r[r.CarriageReturn=13]="CarriageReturn",r[r.Space=32]="Space",r[r.ExclamationPoint=33]="ExclamationPoint",r[r.Hash=35]="Hash",r[r.Percent=37]="Percent",r[r.LeftParen=40]="LeftParen",r[r.RightParen=41]="RightParen",r[r.Plus=43]="Plus",r[r.Minus=45]="Minus",r[r.Dash=45]="Dash",r[r.Period=46]="Period",r[r.ForwardSlash=47]="ForwardSlash",r[r.Zero=48]="Zero",r[r.One=49]="One",r[r.Two=50]="Two",r[r.Three=51]="Three",r[r.Four=52]="Four",r[r.Five=53]="Five",r[r.Six=54]="Six",r[r.Seven=55]="Seven",r[r.Eight=56]="Eight",r[r.Nine=57]="Nine",r[r.LessThan=60]="LessThan",r[r.GreaterThan=62]="GreaterThan",r[r.A=65]="A",r[r.D=68]="D",r[r.E=69]="E",r[r.F=70]="F",r[r.O=79]="O",r[r.P=80]="P",r[r.R=82]="R",r[r.LeftSquareBracket=91]="LeftSquareBracket",r[r.BackSlash=92]="BackSlash",r[r.RightSquareBracket=93]="RightSquareBracket",r[r.a=97]="a",r[r.b=98]="b",r[r.d=100]="d",r[r.e=101]="e",r[r.f=102]="f",r[r.i=105]="i",r[r.j=106]="j",r[r.l=108]="l",r[r.m=109]="m",r[r.n=110]="n",r[r.o=111]="o",r[r.r=114]="r",r[r.s=115]="s",r[r.t=116]="t",r[r.u=117]="u",r[r.x=120]="x",r[r.LeftCurly=123]="LeftCurly",r[r.RightCurly=125]="RightCurly",r[r.Tilde=126]="Tilde"})(Vc||(Vc={}));const Y=Vc;var hl=function(){function r(t,e){this.major=String(t),this.minor=String(e)}return r.prototype.toString=function(){var t=Rr(129);return"%PDF-"+this.major+"."+this.minor+`
%`+t+t+t+t},r.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},r.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=Y.Percent,t[e++]=Y.P,t[e++]=Y.D,t[e++]=Y.F,t[e++]=Y.Dash,e+=li(this.major,t,e),t[e++]=Y.Period,e+=li(this.minor,t,e),t[e++]=Y.Newline,t[e++]=Y.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-i},r.forVersion=function(t,e){return new r(t,e)},r}(),wi=function(){function r(){}return r.prototype.clone=function(t){throw new Vi(this.constructor.name,"clone")},r.prototype.toString=function(){throw new Vi(this.constructor.name,"toString")},r.prototype.sizeInBytes=function(){throw new Vi(this.constructor.name,"sizeInBytes")},r.prototype.copyBytesInto=function(t,e){throw new Vi(this.constructor.name,"copyBytesInto")},r}(),te=function(r){It(t,r);function t(e){var i=r.call(this)||this;return i.numberValue=e,i.stringValue=Sx(e),i}return 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,i){return i+=li(this.stringValue,e,i),this.stringValue.length},t.of=function(e){return new t(e)},t}(wi),Ee=function(r){It(t,r);function t(e){var i=r.call(this)||this;return i.array=[],i.context=e,i}return t.prototype.size=function(){return this.array.length},t.prototype.push=function(e){this.array.push(e)},t.prototype.insert=function(e,i){this.array.splice(e,0,i)},t.prototype.indexOf=function(e){var i=this.array.indexOf(e);return i===-1?void 0:i},t.prototype.remove=function(e){this.array.splice(e,1)},t.prototype.set=function(e,i){this.array[e]=i},t.prototype.get=function(e){return this.array[e]},t.prototype.lookupMaybe=function(e){for(var i,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return(i=this.context).lookupMaybe.apply(i,be([this.get(e)],n))},t.prototype.lookup=function(e){for(var i,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return(i=this.context).lookup.apply(i,be([this.get(e)],n))},t.prototype.asRectangle=function(){if(this.size()!==4)throw new t4(this.size());var e=this.lookup(0,te).asNumber(),i=this.lookup(1,te).asNumber(),n=this.lookup(2,te).asNumber(),o=this.lookup(3,te).asNumber(),s=e,a=i,l=n-e,h=o-i;return{x:s,y:a,width:l,height:h}},t.prototype.asArray=function(){return this.array.slice()},t.prototype.clone=function(e){for(var i=t.withContext(e||this.context),n=0,o=this.size();n<o;n++)i.push(this.array[n]);return i},t.prototype.toString=function(){for(var e="[ ",i=0,n=this.size();i<n;i++)e+=this.get(i).toString(),e+=" ";return e+="]",e},t.prototype.sizeInBytes=function(){for(var e=3,i=0,n=this.size();i<n;i++)e+=this.get(i).sizeInBytes()+1;return e},t.prototype.copyBytesInto=function(e,i){var n=i;e[i++]=Y.LeftSquareBracket,e[i++]=Y.Space;for(var o=0,s=this.size();o<s;o++)i+=this.get(o).copyBytesInto(e,i),e[i++]=Y.Space;return e[i++]=Y.RightSquareBracket,i-n},t.prototype.scalePDFNumbers=function(e,i){for(var n=0,o=this.size();n<o;n++){var s=this.lookup(n);if(s instanceof te){var a=n%2===0?e:i;this.set(n,te.of(s.asNumber()*a))}}},t.withContext=function(e){return new t(e)},t}(wi),Kc={},ks=function(r){It(t,r);function t(e,i){var n=this;if(e!==Kc)throw new Wc("PDFBool");return n=r.call(this)||this,n.value=i,n}return 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,i){return this.value?(e[i++]=Y.t,e[i++]=Y.r,e[i++]=Y.u,e[i++]=Y.e,4):(e[i++]=Y.f,e[i++]=Y.a,e[i++]=Y.l,e[i++]=Y.s,e[i++]=Y.e,5)},t.True=new t(Kc,!0),t.False=new t(Kc,!1),t}(wi),Ki=new Uint8Array(256);Ki[Y.LeftParen]=1,Ki[Y.RightParen]=1,Ki[Y.LessThan]=1,Ki[Y.GreaterThan]=1,Ki[Y.LeftSquareBracket]=1,Ki[Y.RightSquareBracket]=1,Ki[Y.LeftCurly]=1,Ki[Y.RightCurly]=1,Ki[Y.ForwardSlash]=1,Ki[Y.Percent]=1;var Ir=new Uint8Array(256);Ir[Y.Null]=1,Ir[Y.Tab]=1,Ir[Y.Newline]=1,Ir[Y.FormFeed]=1,Ir[Y.CarriageReturn]=1,Ir[Y.Space]=1;for(var Xc=new Uint8Array(256),Ls=0,d4=256;Ls<d4;Ls++)Xc[Ls]=Ir[Ls]||Ki[Ls]?1:0;Xc[Y.Hash]=1;var f4=function(r){return r.replace(/#([\dABCDEF]{2})/g,function(t,e){return ox(e)})},p4=function(r){return r>=Y.ExclamationPoint&&r<=Y.Tilde&&!Xc[r]},qp={},Wp=new Map,K=function(r){It(t,r);function t(e,i){var n=this;if(e!==qp)throw new Wc("PDFName");n=r.call(this)||this;for(var o="/",s=0,a=i.length;s<a;s++){var l=i[s],h=ie(l);o+=p4(h)?l:"#"+Ja(h)}return n.encodedName=o,n}return t.prototype.asBytes=function(){for(var e=[],i="",n=!1,o=function(u){u!==void 0&&e.push(u),n=!1},s=1,a=this.encodedName.length;s<a;s++){var l=this.encodedName[s],h=ie(l),c=this.encodedName[s+1];n?h>=Y.Zero&&h<=Y.Nine||h>=Y.a&&h<=Y.f||h>=Y.A&&h<=Y.F?(i+=l,(i.length===2||!(c>="0"&&c<="9"||c>="a"&&c<="f"||c>="A"&&c<="F"))&&(o(parseInt(i,16)),i="")):o(h):h===Y.Hash?n=!0:o(h)}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,i){return i+=li(this.encodedName,e,i),this.encodedName.length},t.of=function(e){var i=f4(e),n=Wp.get(i);return n||(n=new t(qp,i),Wp.set(i,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}(wi),g4=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,i){return e[i++]=Y.n,e[i++]=Y.u,e[i++]=Y.l,e[i++]=Y.l,4},t}(wi);const Ai=new g4;var se=function(r){It(t,r);function t(e,i){var n=r.call(this)||this;return n.dict=e,n.context=i,n}return 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,i){this.dict.set(e,i)},t.prototype.get=function(e,i){i===void 0&&(i=!1);var n=this.dict.get(e);if(!(n===Ai&&!i))return n},t.prototype.has=function(e){var i=this.dict.get(e);return i!==void 0&&i!==Ai},t.prototype.lookupMaybe=function(e){for(var i,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=n.includes(Ai),a=(i=this.context).lookupMaybe.apply(i,be([this.get(e,s)],n));if(!(a===Ai&&!s))return a},t.prototype.lookup=function(e){for(var i,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=n.includes(Ai),a=(i=this.context).lookup.apply(i,be([this.get(e,s)],n));if(!(a===Ai&&!s))return a},t.prototype.delete=function(e){return this.dict.delete(e)},t.prototype.asMap=function(){return new Map(this.dict)},t.prototype.uniqueKey=function(e){e===void 0&&(e="");for(var i=this.keys(),n=K.of(this.context.addRandomSuffix(e,10));i.includes(n);)n=K.of(this.context.addRandomSuffix(e,10));return n},t.prototype.clone=function(e){for(var i=t.withContext(e||this.context),n=this.entries(),o=0,s=n.length;o<s;o++){var a=n[o],l=a[0],h=a[1];i.set(l,h)}return i},t.prototype.toString=function(){for(var e=`<<
`,i=this.entries(),n=0,o=i.length;n<o;n++){var s=i[n],a=s[0],l=s[1];e+=a.toString()+" "+l.toString()+`
`}return e+=">>",e},t.prototype.sizeInBytes=function(){for(var e=5,i=this.entries(),n=0,o=i.length;n<o;n++){var s=i[n],a=s[0],l=s[1];e+=a.sizeInBytes()+l.sizeInBytes()+2}return e},t.prototype.copyBytesInto=function(e,i){var n=i;e[i++]=Y.LessThan,e[i++]=Y.LessThan,e[i++]=Y.Newline;for(var o=this.entries(),s=0,a=o.length;s<a;s++){var l=o[s],h=l[0],c=l[1];i+=h.copyBytesInto(e,i),e[i++]=Y.Space,i+=c.copyBytesInto(e,i),e[i++]=Y.Newline}return e[i++]=Y.GreaterThan,e[i++]=Y.GreaterThan,i-n},t.withContext=function(e){return new t(new Map,e)},t.fromMapWithContext=function(e,i){return new t(e,i)},t}(wi),Fi=function(r){It(t,r);function t(e){var i=r.call(this)||this;return i.dict=e,i}return t.prototype.clone=function(e){throw new Vi(this.constructor.name,"clone")},t.prototype.getContentsString=function(){throw new Vi(this.constructor.name,"getContentsString")},t.prototype.getContents=function(){throw new Vi(this.constructor.name,"getContents")},t.prototype.getContentsSize=function(){throw new Vi(this.constructor.name,"getContentsSize")},t.prototype.updateDict=function(){var e=this.getContentsSize();this.dict.set(K.Length,te.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+=`
stream
`,e+=this.getContentsString(),e+=`
endstream`,e},t.prototype.copyBytesInto=function(e,i){this.updateDict();var n=i;i+=this.dict.copyBytesInto(e,i),e[i++]=Y.Newline,e[i++]=Y.s,e[i++]=Y.t,e[i++]=Y.r,e[i++]=Y.e,e[i++]=Y.a,e[i++]=Y.m,e[i++]=Y.Newline;for(var o=this.getContents(),s=0,a=o.length;s<a;s++)e[i++]=o[s];return e[i++]=Y.Newline,e[i++]=Y.e,e[i++]=Y.n,e[i++]=Y.d,e[i++]=Y.s,e[i++]=Y.t,e[i++]=Y.r,e[i++]=Y.e,e[i++]=Y.a,e[i++]=Y.m,i-n},t}(wi),Ms=function(r){It(t,r);function t(e,i){var n=r.call(this,e)||this;return n.contents=i,n}return 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 tp(this.contents)},t.prototype.getContents=function(){return this.contents},t.prototype.getContentsSize=function(){return this.contents.length},t.of=function(e,i){return new t(e,i)},t}(Fi),Hp={},Gp=new Map,Ne=function(r){It(t,r);function t(e,i,n){var o=this;if(e!==Hp)throw new Wc("PDFRef");return o=r.call(this)||this,o.objectNumber=i,o.generationNumber=n,o.tag=i+" "+n+" R",o}return 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,i){return i+=li(this.tag,e,i),this.tag.length},t.of=function(e,i){i===void 0&&(i=0);var n=e+" "+i+" R",o=Gp.get(n);return o||(o=new t(Hp,e,i),Gp.set(n,o)),o},t}(wi),me=function(){function r(t,e){this.name=t,this.args=e||[]}return r.prototype.clone=function(t){for(var e=new Array(this.args.length),i=0,n=e.length;i<n;i++){var o=this.args[i];e[i]=o instanceof wi?o.clone(t):o}return r.of(this.name,e)},r.prototype.toString=function(){for(var t="",e=0,i=this.args.length;e<i;e++)t+=String(this.args[e])+" ";return t+=this.name,t},r.prototype.sizeInBytes=function(){for(var t=0,e=0,i=this.args.length;e<i;e++){var n=this.args[e];t+=(n instanceof wi?n.sizeInBytes():n.length)+1}return t+=this.name.length,t},r.prototype.copyBytesInto=function(t,e){for(var i=e,n=0,o=this.args.length;n<o;n++){var s=this.args[n];s instanceof wi?e+=s.copyBytesInto(t,e):e+=li(s,t,e),t[e++]=Y.Space}return e+=li(this.name,t,e),e-i},r.of=function(t,e){return new r(t,e)},r}(),Yc;(function(r){r.NonStrokingColor="sc",r.NonStrokingColorN="scn",r.NonStrokingColorRgb="rg",r.NonStrokingColorGray="g",r.NonStrokingColorCmyk="k",r.NonStrokingColorspace="cs",r.StrokingColor="SC",r.StrokingColorN="SCN",r.StrokingColorRgb="RG",r.StrokingColorGray="G",r.StrokingColorCmyk="K",r.StrokingColorspace="CS",r.BeginMarkedContentSequence="BDC",r.BeginMarkedContent="BMC",r.EndMarkedContent="EMC",r.MarkedContentPointWithProps="DP",r.MarkedContentPoint="MP",r.DrawObject="Do",r.ConcatTransformationMatrix="cm",r.PopGraphicsState="Q",r.PushGraphicsState="q",r.SetFlatness="i",r.SetGraphicsStateParams="gs",r.SetLineCapStyle="J",r.SetLineDashPattern="d",r.SetLineJoinStyle="j",r.SetLineMiterLimit="M",r.SetLineWidth="w",r.SetTextMatrix="Tm",r.SetRenderingIntent="ri",r.AppendRectangle="re",r.BeginInlineImage="BI",r.BeginInlineImageData="ID",r.EndInlineImage="EI",r.ClipEvenOdd="W*",r.ClipNonZero="W",r.CloseAndStroke="s",r.CloseFillEvenOddAndStroke="b*",r.CloseFillNonZeroAndStroke="b",r.ClosePath="h",r.AppendBezierCurve="c",r.CurveToReplicateFinalPoint="y",r.CurveToReplicateInitialPoint="v",r.EndPath="n",r.FillEvenOddAndStroke="B*",r.FillEvenOdd="f*",r.FillNonZeroAndStroke="B",r.FillNonZero="f",r.LegacyFillNonZero="F",r.LineTo="l",r.MoveTo="m",r.ShadingFill="sh",r.StrokePath="S",r.BeginText="BT",r.EndText="ET",r.MoveText="Td",r.MoveTextSetLeading="TD",r.NextLine="T*",r.SetCharacterSpacing="Tc",r.SetFontAndSize="Tf",r.SetTextHorizontalScaling="Tz",r.SetTextLineHeight="TL",r.SetTextRenderingMode="Tr",r.SetTextRise="Ts",r.SetWordSpacing="Tw",r.ShowText="Tj",r.ShowTextAdjusted="TJ",r.ShowTextLine="'",r.ShowTextLineAndSpace='"',r.Type3D0="d0",r.Type3D1="d1",r.BeginCompatibilitySection="BX",r.EndCompatibilitySection="EX"})(Yc||(Yc={}));const xe=Yc;var Zc=function(r){It(t,r);function t(e,i){var n=r.call(this,e)||this;return n.computeContents=function(){var o=n.getUnencodedContents();return n.encode?tl.deflate(o):o},n.encode=i,i&&e.set(K.of("Filter"),K.of("FlateDecode")),n.contentsCache=Fr.populatedBy(n.computeContents),n}return t.prototype.getContents=function(){return this.contentsCache.access()},t.prototype.getContentsSize=function(){return this.contentsCache.access().length},t.prototype.getUnencodedContents=function(){throw new Vi(this.constructor.name,"getUnencodedContents")},t}(Fi),Ds=function(r){It(t,r);function t(e,i,n){n===void 0&&(n=!0);var o=r.call(this,e,n)||this;return o.operators=i,o}return t.prototype.push=function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];(e=this.operators).push.apply(e,i)},t.prototype.clone=function(e){for(var i=new Array(this.operators.length),n=0,o=this.operators.length;n<o;n++)i[n]=this.operators[n].clone(e);var s=this,a=s.dict,l=s.encode;return t.of(a.clone(e),i,l)},t.prototype.getContentsString=function(){for(var e="",i=0,n=this.operators.length;i<n;i++)e+=this.operators[i]+`
`;return e},t.prototype.getUnencodedContents=function(){for(var e=new Uint8Array(this.getUnencodedContentsSize()),i=0,n=0,o=this.operators.length;n<o;n++)i+=this.operators[n].copyBytesInto(e,i),e[i++]=Y.Newline;return e},t.prototype.getUnencodedContentsSize=function(){for(var e=0,i=0,n=this.operators.length;i<n;i++)e+=this.operators[i].sizeInBytes()+1;return e},t.of=function(e,i,n){return n===void 0&&(n=!0),new t(e,i,n)},t}(Zc),m4=function(){function r(t){this.seed=t}return r.prototype.nextInt=function(){var t=Math.sin(this.seed++)*1e4;return t-Math.floor(t)},r.withSeed=function(t){return new r(t)},r}(),v4=function(r,t){var e=r[0],i=t[0];return e.objectNumber-i.objectNumber},Jc=function(){function r(){this.largestObjectNumber=0,this.header=hl.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=m4.withSeed(1)}return r.prototype.assign=function(t,e){this.indirectObjects.set(t,e),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},r.prototype.nextRef=function(){return this.largestObjectNumber+=1,Ne.of(this.largestObjectNumber)},r.prototype.register=function(t){var e=this.nextRef();return this.assign(e,t),e},r.prototype.delete=function(t){return this.indirectObjects.delete(t)},r.prototype.lookupMaybe=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.includes(Ai),o=t instanceof Ne?this.indirectObjects.get(t):t;if(!(!o||o===Ai&&!n)){for(var s=0,a=e.length;s<a;s++){var l=e[s];if(l===Ai){if(o===Ai)return o}else if(o instanceof l)return o}throw new al(e,o)}},r.prototype.lookup=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=t instanceof Ne?this.indirectObjects.get(t):t;if(e.length===0)return n;for(var o=0,s=e.length;o<s;o++){var a=e[o];if(a===Ai){if(n===Ai)return n}else if(n instanceof a)return n}throw new al(e,n)},r.prototype.getObjectRef=function(t){for(var e=Array.from(this.indirectObjects.entries()),i=0,n=e.length;i<n;i++){var o=e[i],s=o[0],a=o[1];if(a===t)return s}},r.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(v4)},r.prototype.obj=function(t){if(t instanceof wi)return t;if(t==null)return Ai;if(typeof t=="string")return K.of(t);if(typeof t=="number")return te.of(t);if(typeof t=="boolean")return t?ks.True:ks.False;if(Array.isArray(t)){for(var e=Ee.withContext(this),i=0,n=t.length;i<n;i++)e.push(this.obj(t[i]));return e}else{for(var o=se.withContext(this),s=Object.keys(t),i=0,n=s.length;i<n;i++){var a=s[i],l=t[a];l!==void 0&&o.set(K.of(a),this.obj(l))}return o}},r.prototype.stream=function(t,e){return e===void 0&&(e={}),Ms.of(this.obj(e),kc(t))},r.prototype.flateStream=function(t,e){return e===void 0&&(e={}),this.stream(tl.deflate(kc(t)),re(re({},e),{Filter:"FlateDecode"}))},r.prototype.contentStream=function(t,e){return e===void 0&&(e={}),Ds.of(this.obj(e),t)},r.prototype.formXObject=function(t,e){return e===void 0&&(e={}),this.contentStream(t,re(re({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},e),{Type:"XObject",Subtype:"Form"}))},r.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),e=me.of(xe.PushGraphicsState),i=Ds.of(t,[e]);return this.pushGraphicsStateContentStreamRef=this.register(i),this.pushGraphicsStateContentStreamRef},r.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),e=me.of(xe.PopGraphicsState),i=Ds.of(t,[e]);return this.popGraphicsStateContentStreamRef=this.register(i),this.popGraphicsStateContentStreamRef},r.prototype.addRandomSuffix=function(t,e){return e===void 0&&(e=4),t+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,e))},r.create=function(){return new r},r}(),Br=function(r){It(t,r);function t(e,i,n){n===void 0&&(n=!0);var o=r.call(this,e,i)||this;return o.normalized=!1,o.autoNormalizeCTM=n,o}return t.prototype.clone=function(e){for(var i=t.fromMapWithContext(new Map,e||this.context,this.autoNormalizeCTM),n=this.entries(),o=0,s=n.length;o<s;o++){var a=n[o],l=a[0],h=a[1];i.set(l,h)}return i},t.prototype.Parent=function(){return this.lookupMaybe(K.Parent,se)},t.prototype.Contents=function(){return this.lookup(K.of("Contents"))},t.prototype.Annots=function(){return this.lookupMaybe(K.Annots,Ee)},t.prototype.BleedBox=function(){return this.lookupMaybe(K.BleedBox,Ee)},t.prototype.TrimBox=function(){return this.lookupMaybe(K.TrimBox,Ee)},t.prototype.ArtBox=function(){return this.lookupMaybe(K.ArtBox,Ee)},t.prototype.Resources=function(){var e=this.getInheritableAttribute(K.Resources);return this.context.lookupMaybe(e,se)},t.prototype.MediaBox=function(){var e=this.getInheritableAttribute(K.MediaBox);return this.context.lookup(e,Ee)},t.prototype.CropBox=function(){var e=this.getInheritableAttribute(K.CropBox);return this.context.lookupMaybe(e,Ee)},t.prototype.Rotate=function(){var e=this.getInheritableAttribute(K.Rotate);return this.context.lookupMaybe(e,te)},t.prototype.getInheritableAttribute=function(e){var i;return this.ascend(function(n){i||(i=n.get(e))}),i},t.prototype.setParent=function(e){this.set(K.Parent,e)},t.prototype.addContentStream=function(e){var i=this.normalizedEntries().Contents||this.context.obj([]);this.set(K.Contents,i),i.push(e)},t.prototype.wrapContentStreams=function(e,i){var n=this.Contents();return n instanceof Ee?(n.insert(0,e),n.push(i),!0):!1},t.prototype.addAnnot=function(e){var i=this.normalizedEntries().Annots;i.push(e)},t.prototype.removeAnnot=function(e){var i=this.normalizedEntries().Annots,n=i.indexOf(e);n!==void 0&&i.remove(n)},t.prototype.setFontDictionary=function(e,i){var n=this.normalizedEntries().Font;n.set(e,i)},t.prototype.newFontDictionaryKey=function(e){var i=this.normalizedEntries().Font;return i.uniqueKey(e)},t.prototype.newFontDictionary=function(e,i){var n=this.newFontDictionaryKey(e);return this.setFontDictionary(n,i),n},t.prototype.setXObject=function(e,i){var n=this.normalizedEntries().XObject;n.set(e,i)},t.prototype.newXObjectKey=function(e){var i=this.normalizedEntries().XObject;return i.uniqueKey(e)},t.prototype.newXObject=function(e,i){var n=this.newXObjectKey(e);return this.setXObject(n,i),n},t.prototype.setExtGState=function(e,i){var n=this.normalizedEntries().ExtGState;n.set(e,i)},t.prototype.newExtGStateKey=function(e){var i=this.normalizedEntries().ExtGState;return i.uniqueKey(e)},t.prototype.newExtGState=function(e,i){var n=this.newExtGStateKey(e);return this.setExtGState(n,i),n},t.prototype.ascend=function(e){e(this);var i=this.Parent();i&&i.ascend(e)},t.prototype.normalize=function(){if(!this.normalized){var e=this.context,i=this.get(K.Contents),n=this.context.lookup(i);n instanceof Fi&&this.set(K.Contents,e.obj([i])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var o=this.getInheritableAttribute(K.Resources),s=e.lookupMaybe(o,se)||e.obj({});this.set(K.Resources,s);var a=s.lookupMaybe(K.Font,se)||e.obj({});s.set(K.Font,a);var l=s.lookupMaybe(K.XObject,se)||e.obj({});s.set(K.XObject,l);var h=s.lookupMaybe(K.ExtGState,se)||e.obj({});s.set(K.ExtGState,h);var c=this.Annots()||e.obj([]);this.set(K.Annots,c),this.normalized=!0}},t.prototype.normalizedEntries=function(){this.normalize();var e=this.Annots(),i=this.Resources(),n=this.Contents();return{Annots:e,Resources:i,Contents:n,Font:i.lookup(K.Font,se),XObject:i.lookup(K.XObject,se),ExtGState:i.lookup(K.ExtGState,se)}},t.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],t.withContextAndParent=function(e,i){var n=new Map;return n.set(K.Type,K.Page),n.set(K.Parent,i),n.set(K.Resources,e.obj({})),n.set(K.MediaBox,e.obj([0,0,612,792])),new t(n,e,!1)},t.fromMapWithContext=function(e,i,n){return n===void 0&&(n=!0),new t(e,i,n)},t}(se),Vp=function(){function r(t,e){var i=this;this.traversedObjects=new Map,this.copy=function(n){return n instanceof Br?i.copyPDFPage(n):n instanceof se?i.copyPDFDict(n):n instanceof Ee?i.copyPDFArray(n):n instanceof Fi?i.copyPDFStream(n):n instanceof Ne?i.copyPDFIndirectObject(n):n.clone()},this.copyPDFPage=function(n){for(var o=n.clone(),s=Br.InheritableEntries,a=0,l=s.length;a<l;a++){var h=K.of(s[a]),c=o.getInheritableAttribute(h);!o.get(h)&&c&&o.set(h,c)}return o.delete(K.of("Parent")),i.copyPDFDict(o)},this.copyPDFDict=function(n){if(i.traversedObjects.has(n))return i.traversedObjects.get(n);var o=n.clone(i.dest);i.traversedObjects.set(n,o);for(var s=n.entries(),a=0,l=s.length;a<l;a++){var h=s[a],c=h[0],u=h[1];o.set(c,i.copy(u))}return o},this.copyPDFArray=function(n){if(i.traversedObjects.has(n))return i.traversedObjects.get(n);var o=n.clone(i.dest);i.traversedObjects.set(n,o);for(var s=0,a=n.size();s<a;s++){var l=n.get(s);o.set(s,i.copy(l))}return o},this.copyPDFStream=function(n){if(i.traversedObjects.has(n))return i.traversedObjects.get(n);var o=n.clone(i.dest);i.traversedObjects.set(n,o);for(var s=n.dict.entries(),a=0,l=s.length;a<l;a++){var h=s[a],c=h[0],u=h[1];o.dict.set(c,i.copy(u))}return o},this.copyPDFIndirectObject=function(n){var o=i.traversedObjects.has(n);if(!o){var s=i.dest.nextRef();i.traversedObjects.set(n,s);var a=i.src.lookup(n);if(a){var l=i.copy(a);i.dest.assign(s,l)}}return i.traversedObjects.get(n)},this.src=t,this.dest=e}return r.for=function(t,e){return new r(t,e)},r}(),Kp=function(){function r(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return r.prototype.addEntry=function(t,e){this.append({ref:t,offset:e,deleted:!1})},r.prototype.addDeletedEntry=function(t,e){this.append({ref:t,offset:e,deleted:!0})},r.prototype.toString=function(){for(var t=`xref
`,e=0,i=this.subsections.length;e<i;e++){var n=this.subsections[e];t+=n[0].ref.objectNumber+" "+n.length+`
`;for(var o=0,s=n.length;o<s;o++){var a=n[o];t+=sr(String(a.offset),10,"0"),t+=" ",t+=sr(String(a.ref.generationNumber),5,"0"),t+=" ",t+=a.deleted?"f":"n",t+=` 
`}}return t},r.prototype.sizeInBytes=function(){for(var t=5,e=0,i=this.subsections.length;e<i;e++){var n=this.subsections[e],o=n.length,s=n[0];t+=2,t+=String(s.ref.objectNumber).length,t+=String(o).length,t+=20*o}return t},r.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=Y.x,t[e++]=Y.r,t[e++]=Y.e,t[e++]=Y.f,t[e++]=Y.Newline,e+=this.copySubsectionsIntoBuffer(this.subsections,t,e),e-i},r.prototype.copySubsectionsIntoBuffer=function(t,e,i){for(var n=i,o=t.length,s=0;s<o;s++){var a=this.subsections[s],l=String(a[0].ref.objectNumber);i+=li(l,e,i),e[i++]=Y.Space;var h=String(a.length);i+=li(h,e,i),e[i++]=Y.Newline,i+=this.copyEntriesIntoBuffer(a,e,i)}return i-n},r.prototype.copyEntriesIntoBuffer=function(t,e,i){for(var n=t.length,o=0;o<n;o++){var s=t[o],a=sr(String(s.offset),10,"0");i+=li(a,e,i),e[i++]=Y.Space;var l=sr(String(s.ref.generationNumber),5,"0");i+=li(l,e,i),e[i++]=Y.Space,e[i++]=s.deleted?Y.f:Y.n,e[i++]=Y.Space,e[i++]=Y.Newline}return 20*n},r.prototype.append=function(t){if(this.chunkLength===0){this.subsections.push([t]),this.chunkIdx=0,this.chunkLength=1;return}var e=this.subsections[this.chunkIdx],i=e[this.chunkLength-1];t.ref.objectNumber-i.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},r.create=function(){return new r({ref:Ne.of(0,65535),offset:0,deleted:!0})},r.createEmpty=function(){return new r},r}(),Qc=function(){function r(t){this.lastXRefOffset=String(t)}return r.prototype.toString=function(){return`startxref
`+this.lastXRefOffset+`
%%EOF`},r.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},r.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=Y.s,t[e++]=Y.t,t[e++]=Y.a,t[e++]=Y.r,t[e++]=Y.t,t[e++]=Y.x,t[e++]=Y.r,t[e++]=Y.e,t[e++]=Y.f,t[e++]=Y.Newline,e+=li(this.lastXRefOffset,t,e),t[e++]=Y.Newline,t[e++]=Y.Percent,t[e++]=Y.Percent,t[e++]=Y.E,t[e++]=Y.O,t[e++]=Y.F,e-i},r.forLastCrossRefSectionOffset=function(t){return new r(t)},r}(),y4=function(){function r(t){this.dict=t}return r.prototype.toString=function(){return`trailer
`+this.dict.toString()},r.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},r.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=Y.t,t[e++]=Y.r,t[e++]=Y.a,t[e++]=Y.i,t[e++]=Y.l,t[e++]=Y.e,t[e++]=Y.r,t[e++]=Y.Newline,e+=this.dict.copyBytesInto(t,e),e-i},r.of=function(t){return new r(t)},r}(),Xp=function(r){It(t,r);function t(e,i,n){n===void 0&&(n=!0);var o=r.call(this,e.obj({}),n)||this;return o.objects=i,o.offsets=o.computeObjectOffsets(),o.offsetsString=o.computeOffsetsString(),o.dict.set(K.of("Type"),K.of("ObjStm")),o.dict.set(K.of("N"),te.of(o.objects.length)),o.dict.set(K.of("First"),te.of(o.offsetsString.length)),o}return 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,i=0,n=this.objects.length;i<n;i++){var o=this.objects[i],s=o[1];e+=s+`
`}return e},t.prototype.getUnencodedContents=function(){for(var e=new Uint8Array(this.getUnencodedContentsSize()),i=li(this.offsetsString,e,0),n=0,o=this.objects.length;n<o;n++){var s=this.objects[n],a=s[1];i+=a.copyBytesInto(e,i),e[i++]=Y.Newline}return e},t.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+Qa(this.offsets)[1]+Qa(this.objects)[1].sizeInBytes()+1},t.prototype.computeOffsetsString=function(){for(var e="",i=0,n=this.offsets.length;i<n;i++){var o=this.offsets[i],s=o[0],a=o[1];e+=s+" "+a+" "}return e},t.prototype.computeObjectOffsets=function(){for(var e=0,i=new Array(this.objects.length),n=0,o=this.objects.length;n<o;n++){var s=this.objects[n],a=s[0],l=s[1];i[n]=[a.objectNumber,e],e+=l.sizeInBytes()+1}return i},t.withContextAndObjects=function(e,i,n){return n===void 0&&(n=!0),new t(e,i,n)},t}(Zc),Yp=function(){function r(t,e){var i=this;this.parsedObjects=0,this.shouldWaitForTick=function(n){return i.parsedObjects+=n,i.parsedObjects%i.objectsPerTick===0},this.context=t,this.objectsPerTick=e}return r.prototype.serializeToBuffer=function(){return ae(this,void 0,void 0,function(){var t,e,i,n,o,s,a,l,h,c,u,f,d,p,m,v,g;return le(this,function(b){switch(b.label){case 0:return[4,this.computeBufferSize()];case 1:t=b.sent(),e=t.size,i=t.header,n=t.indirectObjects,o=t.xref,s=t.trailerDict,a=t.trailer,l=0,h=new Uint8Array(e),l+=i.copyBytesInto(h,l),h[l++]=Y.Newline,h[l++]=Y.Newline,c=0,u=n.length,b.label=2;case 2:return c<u?(f=n[c],d=f[0],p=f[1],m=String(d.objectNumber),l+=li(m,h,l),h[l++]=Y.Space,v=String(d.generationNumber),l+=li(v,h,l),h[l++]=Y.Space,h[l++]=Y.o,h[l++]=Y.b,h[l++]=Y.j,h[l++]=Y.Newline,l+=p.copyBytesInto(h,l),h[l++]=Y.Newline,h[l++]=Y.e,h[l++]=Y.n,h[l++]=Y.d,h[l++]=Y.o,h[l++]=Y.b,h[l++]=Y.j,h[l++]=Y.Newline,h[l++]=Y.Newline,g=p instanceof Xp?p.getObjectsCount():1,this.shouldWaitForTick(g)?[4,To()]:[3,4]):[3,5];case 3:b.sent(),b.label=4;case 4:return c++,[3,2];case 5:return o&&(l+=o.copyBytesInto(h,l),h[l++]=Y.Newline),s&&(l+=s.copyBytesInto(h,l),h[l++]=Y.Newline,h[l++]=Y.Newline),l+=a.copyBytesInto(h,l),[2,h]}})})},r.prototype.computeIndirectObjectSize=function(t){var e=t[0],i=t[1],n=e.sizeInBytes()+3,o=i.sizeInBytes()+9;return n+o},r.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})},r.prototype.computeBufferSize=function(){return ae(this,void 0,void 0,function(){var t,e,i,n,o,s,a,l,h,c,u;return le(this,function(f){switch(f.label){case 0:t=hl.forVersion(1,7),e=t.sizeInBytes()+2,i=Kp.create(),n=this.context.enumerateIndirectObjects(),o=0,s=n.length,f.label=1;case 1:return o<s?(a=n[o],l=a[0],i.addEntry(l,e),e+=this.computeIndirectObjectSize(a),this.shouldWaitForTick(1)?[4,To()]:[3,3]):[3,4];case 2:f.sent(),f.label=3;case 3:return o++,[3,1];case 4:return h=e,e+=i.sizeInBytes()+1,c=y4.of(this.createTrailerDict()),e+=c.sizeInBytes()+2,u=Qc.forLastCrossRefSectionOffset(h),e+=u.sizeInBytes(),[2,{size:e,header:t,indirectObjects:n,xref:i,trailerDict:c,trailer:u}]}})})},r.forContext=function(t,e){return new r(t,e)},r}(),Zp=function(r){It(t,r);function t(e){var i=r.call(this)||this;return i.data=e,i}return 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,i){for(var n=this.data.length,o=0;o<n;o++)e[i++]=this.data[o];return n},t.of=function(e){return new t(e)},t}(wi),sn;(function(r){r[r.Deleted=0]="Deleted",r[r.Uncompressed=1]="Uncompressed",r[r.Compressed=2]="Compressed"})(sn||(sn={}));var b4=function(r){It(t,r);function t(e,i,n){n===void 0&&(n=!0);var o=r.call(this,e,n)||this;return o.computeIndex=function(){for(var s=[],a=0,l=0,h=o.entries.length;l<h;l++){var c=o.entries[l],u=o.entries[l-1];l===0?s.push(c.ref.objectNumber):c.ref.objectNumber-u.ref.objectNumber>1&&(s.push(a),s.push(c.ref.objectNumber),a=0),a+=1}return s.push(a),s},o.computeEntryTuples=function(){for(var s=new Array(o.entries.length),a=0,l=o.entries.length;a<l;a++){var h=o.entries[a];if(h.type===sn.Deleted){var c=h.type,u=h.nextFreeObjectNumber,f=h.ref;s[a]=[c,u,f.generationNumber]}if(h.type===sn.Uncompressed){var c=h.type,d=h.offset,f=h.ref;s[a]=[c,d,f.generationNumber]}if(h.type===sn.Compressed){var c=h.type,p=h.objectStreamRef,m=h.index;s[a]=[c,p.objectNumber,m]}}return s},o.computeMaxEntryByteWidths=function(){for(var s=o.entryTuplesCache.access(),a=[0,0,0],l=0,h=s.length;l<h;l++){var c=s[l],u=c[0],f=c[1],d=c[2],p=$a(u),m=$a(f),v=$a(d);p>a[0]&&(a[0]=p),m>a[1]&&(a[1]=m),v>a[2]&&(a[2]=v)}return a},o.entries=i||[],o.entryTuplesCache=Fr.populatedBy(o.computeEntryTuples),o.maxByteWidthsCache=Fr.populatedBy(o.computeMaxEntryByteWidths),o.indexCache=Fr.populatedBy(o.computeIndex),e.set(K.of("Type"),K.of("XRef")),o}return t.prototype.addDeletedEntry=function(e,i){var n=sn.Deleted;this.entries.push({type:n,ref:e,nextFreeObjectNumber:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addUncompressedEntry=function(e,i){var n=sn.Uncompressed;this.entries.push({type:n,ref:e,offset:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addCompressedEntry=function(e,i,n){var o=sn.Compressed;this.entries.push({type:o,ref:e,objectStreamRef:i,index:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.clone=function(e){var i=this,n=i.dict,o=i.entries,s=i.encode;return t.of(n.clone(e),o.slice(),s)},t.prototype.getContentsString=function(){for(var e=this.entryTuplesCache.access(),i=this.maxByteWidthsCache.access(),n="",o=0,s=e.length;o<s;o++){for(var a=e[o],l=a[0],h=a[1],c=a[2],u=Eo(Co(l)),f=Eo(Co(h)),d=Eo(Co(c)),p=i[0]-1;p>=0;p--)n+=(u[p]||0).toString(2);for(var p=i[1]-1;p>=0;p--)n+=(f[p]||0).toString(2);for(var p=i[2]-1;p>=0;p--)n+=(d[p]||0).toString(2)}return n},t.prototype.getUnencodedContents=function(){for(var e=this.entryTuplesCache.access(),i=this.maxByteWidthsCache.access(),n=new Uint8Array(this.getUnencodedContentsSize()),o=0,s=0,a=e.length;s<a;s++){for(var l=e[s],h=l[0],c=l[1],u=l[2],f=Eo(Co(h)),d=Eo(Co(c)),p=Eo(Co(u)),m=i[0]-1;m>=0;m--)n[o++]=f[m]||0;for(var m=i[1]-1;m>=0;m--)n[o++]=d[m]||0;for(var m=i[2]-1;m>=0;m--)n[o++]=p[m]||0}return n},t.prototype.getUnencodedContentsSize=function(){var e=this.maxByteWidthsCache.access(),i=mx(e);return i*this.entries.length},t.prototype.updateDict=function(){r.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),i=this.indexCache.access(),n=this.dict.context;this.dict.set(K.of("W"),n.obj(e)),this.dict.set(K.of("Index"),n.obj(i))},t.create=function(e,i){i===void 0&&(i=!0);var n=new t(e,[],i);return n.addDeletedEntry(Ne.of(0,65535),0),n},t.of=function(e,i,n){return n===void 0&&(n=!0),new t(e,i,n)},t}(Zc),x4=function(r){It(t,r);function t(e,i,n,o){var s=r.call(this,e,i)||this;return s.encodeStreams=n,s.objectsPerStream=o,s}return t.prototype.computeBufferSize=function(){return ae(this,void 0,void 0,function(){var e,i,n,o,s,a,l,h,p,m,c,g,u,f,v,d,p,m,v,g,b,y,x,C;return le(this,function(R){switch(R.label){case 0:e=this.context.largestObjectNumber+1,i=hl.forVersion(1,7),n=i.sizeInBytes()+2,o=b4.create(this.createTrailerDict(),this.encodeStreams),s=[],a=[],l=[],h=this.context.enumerateIndirectObjects(),p=0,m=h.length,R.label=1;case 1:return p<m?(c=h[p],g=c[0],u=c[1],f=g===this.context.trailerInfo.Encrypt||u instanceof Fi||u instanceof Zp||g.generationNumber!==0,f?(s.push(c),o.addUncompressedEntry(g,n),n+=this.computeIndirectObjectSize(c),this.shouldWaitForTick(1)?[4,To()]:[3,3]):[3,4]):[3,6];case 2:R.sent(),R.label=3;case 3:return[3,5];case 4:v=Qa(a),d=Qa(l),(!v||v.length%this.objectsPerStream===0)&&(v=[],a.push(v),d=Ne.of(e++),l.push(d)),o.addCompressedEntry(g,d,v.length),v.push(c),R.label=5;case 5:return p++,[3,1];case 6:p=0,m=a.length,R.label=7;case 7:return p<m?(v=a[p],g=l[p],b=Xp.withContextAndObjects(this.context,v,this.encodeStreams),o.addUncompressedEntry(g,n),n+=this.computeIndirectObjectSize([g,b]),s.push([g,b]),this.shouldWaitForTick(v.length)?[4,To()]:[3,9]):[3,10];case 8:R.sent(),R.label=9;case 9:return p++,[3,7];case 10:return y=Ne.of(e++),o.dict.set(K.of("Size"),te.of(e)),o.addUncompressedEntry(y,n),x=n,n+=this.computeIndirectObjectSize([y,o]),s.push([y,o]),C=Qc.forLastCrossRefSectionOffset(x),n+=C.sizeInBytes(),[2,{size:n,header:i,indirectObjects:s,trailer:C}]}})})},t.forContext=function(e,i,n,o){return n===void 0&&(n=!0),o===void 0&&(o=50),new t(e,i,n,o)},t}(Yp),Qt=function(r){It(t,r);function t(e){var i=r.call(this)||this;return i.value=e,i}return t.prototype.asBytes=function(){for(var e=this.value+(this.value.length%2===1?"0":""),i=e.length,n=new Uint8Array(e.length/2),o=0,s=0;o<i;){var a=parseInt(e.substring(o,o+2),16);n[s]=a,o+=2,s+=1}return n},t.prototype.decodeText=function(){var e=this.asBytes();return lp(e)?rp(e):Bp(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),i=$0(e);if(!i)throw new zp(e);return i},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,i){return e[i++]=Y.LessThan,i+=li(this.value,e,i),e[i++]=Y.GreaterThan,this.value.length+2},t.of=function(e){return new t(e)},t.fromText=function(e){for(var i=xx(e),n="",o=0,s=i.length;o<s;o++)n+=Es(i[o],4);return new t(n)},t}(wi),cl=function(){function r(t,e){this.encoding=t===_s.ZapfDingbats?il.ZapfDingbats:t===_s.Symbol?il.Symbol:il.WinAnsi,this.font=Ux.load(t),this.fontName=this.font.FontName,this.customName=e}return r.prototype.encodeText=function(t){for(var e=this.encodeTextAsGlyphs(t),i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]=Ja(e[n].code);return Qt.of(i.join(""))},r.prototype.widthOfTextAtSize=function(t,e){for(var i=this.encodeTextAsGlyphs(t),n=0,o=0,s=i.length;o<s;o++){var a=i[o].name,l=(i[o+1]||{}).name,h=this.font.getXAxisKerningForPair(a,l)||0;n+=this.widthOfGlyph(a)+h}var c=e/1e3;return n*c},r.prototype.heightOfFontAtSize=function(t,e){e===void 0&&(e={});var i=e.descender,n=i===void 0?!0:i,o=this.font,s=o.Ascender,a=o.Descender,l=o.FontBBox,h=s||l[3],c=a||l[1],u=h-c;return n||(u+=a||0),u/1e3*t},r.prototype.sizeOfFontAtHeight=function(t){var e=this.font,i=e.Ascender,n=e.Descender,o=e.FontBBox,s=i||o[3],a=n||o[1];return 1e3*t/(s-a)},r.prototype.embedIntoContext=function(t,e){var i=t.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===il.WinAnsi?"WinAnsiEncoding":void 0});return e?(t.assign(e,i),e):t.register(i)},r.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},r.prototype.encodeTextAsGlyphs=function(t){for(var e=Array.from(t),i=new Array(e.length),n=0,o=e.length;n<o;n++){var s=nx(e[n]);i[n]=this.encoding.encodeUnicodeCodePoint(s)}return i},r.for=function(t,e){return new r(t,e)},r}(),w4=function(r,t){for(var e=new Array(r.length),i=0,n=r.length;i<n;i++){var o=r[i],s=Jp(ul(t(o))),a=Jp.apply(void 0,o.codePoints.map(T4));e[i]=[s,a]}return E4(e)},E4=function(r){return`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange
`+r.length+` beginbfchar
`+r.map(function(t){var e=t[0],i=t[1];return e+" "+i}).join(`
`)+`
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end`},Jp=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return"<"+r.join("")+">"},ul=function(r){return Es(r,4)},T4=function(r){if(wx(r))return ul(r);if(Ex(r)){var t=ep(r),e=ip(r);return""+ul(t)+ul(e)}var i=Ja(r),n="0x"+i+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(n)},C4=function(r){var t=0,e=function(i){t|=1<<i-1};return r.fixedPitch&&e(1),r.serif&&e(2),e(3),r.script&&e(4),r.nonsymbolic&&e(6),r.italic&&e(7),r.allCap&&e(17),r.smallCap&&e(18),r.forceBold&&e(19),t},S4=function(r){var t=r["OS/2"]?r["OS/2"].sFamilyClass:0,e=C4({fixedPitch:r.post.isFixedPitch,serif:1<=t&&t<=7,script:t===10,italic:r.head.macStyle.italic});return e},Ae=function(r){It(t,r);function t(e){var i=r.call(this)||this;return i.value=e,i}return t.prototype.asBytes=function(){for(var e=[],i="",n=!1,o=function(u){u!==void 0&&e.push(u),n=!1},s=0,a=this.value.length;s<a;s++){var l=this.value[s],h=ie(l),c=this.value[s+1];n?h===Y.Newline||h===Y.CarriageReturn?o():h===Y.n?o(Y.Newline):h===Y.r?o(Y.CarriageReturn):h===Y.t?o(Y.Tab):h===Y.b?o(Y.Backspace):h===Y.f?o(Y.FormFeed):h===Y.LeftParen?o(Y.LeftParen):h===Y.RightParen?o(Y.RightParen):h===Y.Backspace?o(Y.BackSlash):h>=Y.Zero&&h<=Y.Seven?(i+=l,(i.length===3||!(c>="0"&&c<="7"))&&(o(parseInt(i,8)),i="")):o(h):h===Y.BackSlash?n=!0:o(h)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return lp(e)?rp(e):Bp(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),i=$0(e);if(!i)throw new zp(e);return i},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,i){return e[i++]=Y.LeftParen,i+=li(this.value,e,i),e[i++]=Y.RightParen,this.value.length+2},t.of=function(e){return new t(e)},t.fromDate=function(e){var i=sr(String(e.getUTCFullYear()),4,"0"),n=sr(String(e.getUTCMonth()+1),2,"0"),o=sr(String(e.getUTCDate()),2,"0"),s=sr(String(e.getUTCHours()),2,"0"),a=sr(String(e.getUTCMinutes()),2,"0"),l=sr(String(e.getUTCSeconds()),2,"0");return new t("D:"+i+n+o+s+a+l+"Z")},t}(wi),$c=function(){function r(t,e,i,n){var o=this;this.allGlyphsInFontSortedById=function(){for(var s=new Array(o.font.characterSet.length),a=0,l=s.length;a<l;a++){var h=o.font.characterSet[a];s[a]=o.font.glyphForCodePoint(h)}return gx(s.sort(px),function(c){return c.id})},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=e,this.fontName=this.font.postscriptName||"Font",this.customName=i,this.fontFeatures=n,this.baseFontName="",this.glyphCache=Fr.populatedBy(this.allGlyphsInFontSortedById)}return r.for=function(t,e,i,n){return ae(this,void 0,void 0,function(){var o;return le(this,function(s){switch(s.label){case 0:return[4,t.create(e)];case 1:return o=s.sent(),[2,new r(o,e,i,n)]}})})},r.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]=Es(e[n].id,4);return Qt.of(i.join(""))},r.prototype.widthOfTextAtSize=function(t,e){for(var i=this.font.layout(t,this.fontFeatures).glyphs,n=0,o=0,s=i.length;o<s;o++)n+=i[o].advanceWidth*this.scale;var a=e/1e3;return n*a},r.prototype.heightOfFontAtSize=function(t,e){e===void 0&&(e={});var i=e.descender,n=i===void 0?!0:i,o=this.font,s=o.ascent,a=o.descent,l=o.bbox,h=(s||l.maxY)*this.scale,c=(a||l.minY)*this.scale,u=h-c;return n||(u-=Math.abs(a)||0),u/1e3*t},r.prototype.sizeOfFontAtHeight=function(t){var e=this.font,i=e.ascent,n=e.descent,o=e.bbox,s=(i||o.maxY)*this.scale,a=(n||o.minY)*this.scale;return 1e3*t/(s-a)},r.prototype.embedIntoContext=function(t,e){return this.baseFontName=this.customName||t.addRandomSuffix(this.fontName),this.embedFontDict(t,e)},r.prototype.embedFontDict=function(t,e){return ae(this,void 0,void 0,function(){var i,n,o;return le(this,function(s){switch(s.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:return i=s.sent(),n=this.embedUnicodeCmap(t),o=t.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[i],ToUnicode:n}),e?(t.assign(e,o),[2,e]):[2,t.register(o)]}})})},r.prototype.isCFF=function(){return this.font.cff},r.prototype.embedCIDFontDict=function(t){return ae(this,void 0,void 0,function(){var e,i;return le(this,function(n){switch(n.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return e=n.sent(),i=t.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:Ae.of("Adobe"),Ordering:Ae.of("Identity"),Supplement:0},FontDescriptor:e,W:this.computeWidths()}),[2,t.register(i)]}})})},r.prototype.embedFontDescriptor=function(t){return ae(this,void 0,void 0,function(){var e,i,n,o,s,a,l,h,c,u,f,d,p,m,v;return le(this,function(g){switch(g.label){case 0:return[4,this.embedFontStream(t)];case 1:return e=g.sent(),i=this.scale,n=this.font,o=n.italicAngle,s=n.ascent,a=n.descent,l=n.capHeight,h=n.xHeight,c=this.font.bbox,u=c.minX,f=c.minY,d=c.maxX,p=c.maxY,m=t.obj((v={Type:"FontDescriptor",FontName:this.baseFontName,Flags:S4(this.font),FontBBox:[u*i,f*i,d*i,p*i],ItalicAngle:o,Ascent:s*i,Descent:a*i,CapHeight:(l||s)*i,XHeight:(h||0)*i,StemV:0},v[this.isCFF()?"FontFile3":"FontFile2"]=e,v)),[2,t.register(m)]}})})},r.prototype.serializeFont=function(){return ae(this,void 0,void 0,function(){return le(this,function(t){return[2,this.fontData]})})},r.prototype.embedFontStream=function(t){return ae(this,void 0,void 0,function(){var e,i,n;return le(this,function(o){switch(o.label){case 0:return n=(i=t).flateStream,[4,this.serializeFont()];case 1:return e=n.apply(i,[o.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,t.register(e)]}})})},r.prototype.embedUnicodeCmap=function(t){var e=w4(this.glyphCache.access(),this.glyphId.bind(this)),i=t.flateStream(e);return t.register(i)},r.prototype.glyphId=function(t){return t?t.id:-1},r.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),e=[],i=[],n=0,o=t.length;n<o;n++){var s=t[n],a=t[n-1],l=this.glyphId(s),h=this.glyphId(a);n===0?e.push(l):l-h!==1&&(e.push(i),e.push(l),i=[]),i.push(s.advanceWidth*this.scale)}return e.push(i),e},r}(),N4=function(r){It(t,r);function t(e,i,n,o){var s=r.call(this,e,i,n,o)||this;return s.subset=s.font.createSubset(),s.glyphs=[],s.glyphCache=Fr.populatedBy(function(){return s.glyphs}),s.glyphIdMap=new Map,s}return t.for=function(e,i,n,o){return ae(this,void 0,void 0,function(){var s;return le(this,function(a){switch(a.label){case 0:return[4,e.create(i)];case 1:return s=a.sent(),[2,new t(s,i,n,o)]}})})},t.prototype.encodeText=function(e){for(var i=this.font.layout(e,this.fontFeatures).glyphs,n=new Array(i.length),o=0,s=i.length;o<s;o++){var a=i[o],l=this.subset.includeGlyph(a);this.glyphs[l-1]=a,this.glyphIdMap.set(a.id,l),n[o]=Es(l,4)}return this.glyphCache.invalidate(),Qt.of(n.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(i,n){var o=[];e.subset.encodeStream().on("data",function(s){return o.push(s)}).on("end",function(){return i(fx(o))}).on("error",function(s){return n(s)})})},t}($c),tu;(function(r){r.Source="Source",r.Data="Data",r.Alternative="Alternative",r.Supplement="Supplement",r.EncryptedPayload="EncryptedPayload",r.FormData="EncryptedPayload",r.Schema="Schema",r.Unspecified="Unspecified"})(tu||(tu={}));var A4=function(){function r(t,e,i){i===void 0&&(i={}),this.fileData=t,this.fileName=e,this.options=i}return r.for=function(t,e,i){return i===void 0&&(i={}),new r(t,e,i)},r.prototype.embedIntoContext=function(t,e){return ae(this,void 0,void 0,function(){var i,n,o,s,a,l,h,c,u;return le(this,function(f){return i=this.options,n=i.mimeType,o=i.description,s=i.creationDate,a=i.modificationDate,l=i.afRelationship,h=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:n??void 0,Params:{Size:this.fileData.length,CreationDate:s?Ae.fromDate(s):void 0,ModDate:a?Ae.fromDate(a):void 0}}),c=t.register(h),u=t.obj({Type:"Filespec",F:Ae.of(this.fileName),UF:Qt.fromText(this.fileName),EF:{F:c},Desc:o?Qt.fromText(o):void 0,AFRelationship:l??void 0}),e?(t.assign(e,u),[2,e]):[2,t.register(u)]})})},r}(),Qp=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],Ao;(function(r){r.DeviceGray="DeviceGray",r.DeviceRGB="DeviceRGB",r.DeviceCMYK="DeviceCMYK"})(Ao||(Ao={}));var _4={1:Ao.DeviceGray,3:Ao.DeviceRGB,4:Ao.DeviceCMYK},$p=function(){function r(t,e,i,n,o){this.imageData=t,this.bitsPerComponent=e,this.width=i,this.height=n,this.colorSpace=o}return r.for=function(t){return ae(this,void 0,void 0,function(){var e,i,n,o,s,a,l,h,c,u;return le(this,function(f){if(e=new DataView(t.buffer),i=e.getUint16(0),i!==65496)throw new Error("SOI not found in JPEG");for(n=2;n<e.byteLength&&(o=e.getUint16(n),n+=2,!Qp.includes(o));)n+=e.getUint16(n);if(!Qp.includes(o))throw new Error("Invalid JPEG");if(n+=2,s=e.getUint8(n++),a=e.getUint16(n),n+=2,l=e.getUint16(n),n+=2,h=e.getUint8(n++),c=_4[h],!c)throw new Error("Unknown JPEG channel.");return u=c,[2,new r(t,s,l,a,u)]})})},r.prototype.embedIntoContext=function(t,e){return ae(this,void 0,void 0,function(){var i;return le(this,function(n){return i=t.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===Ao.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),e?(t.assign(e,i),[2,e]):[2,t.register(i)]})})},r}(),Mt={};Mt.toRGBA8=function(r){var t=r.width,e=r.height;if(r.tabs.acTL==null)return[Mt.toRGBA8.decodeImage(r.data,t,e,r).buffer];var i=[];r.frames[0].data==null&&(r.frames[0].data=r.data);for(var n=t*e*4,o=new Uint8Array(n),s=new Uint8Array(n),a=new Uint8Array(n),l=0;l<r.frames.length;l++){var h=r.frames[l],c=h.rect.x,u=h.rect.y,f=h.rect.width,d=h.rect.height,p=Mt.toRGBA8.decodeImage(h.data,f,d,r);if(l!=0)for(var m=0;m<n;m++)a[m]=o[m];if(h.blend==0?Mt._copyTile(p,f,d,o,t,e,c,u,0):h.blend==1&&Mt._copyTile(p,f,d,o,t,e,c,u,1),i.push(o.buffer.slice(0)),h.dispose!=0){if(h.dispose==1)Mt._copyTile(s,f,d,o,t,e,c,u,0);else if(h.dispose==2)for(var m=0;m<n;m++)o[m]=a[m]}}return i},Mt.toRGBA8.decodeImage=function(r,t,e,i){var n=t*e,o=Mt.decode._getBPP(i),s=Math.ceil(t*o/8),a=new Uint8Array(n*4),l=new Uint32Array(a.buffer),h=i.ctype,c=i.depth,u=Mt._bin.readUshort;if(h==6){var f=n<<2;if(c==8)for(var d=0;d<f;d+=4)a[d]=r[d],a[d+1]=r[d+1],a[d+2]=r[d+2],a[d+3]=r[d+3];if(c==16)for(var d=0;d<f;d++)a[d]=r[d<<1]}else if(h==2){var p=i.tabs.tRNS;if(p==null){if(c==8)for(var d=0;d<n;d++){var m=d*3;l[d]=255<<24|r[m+2]<<16|r[m+1]<<8|r[m]}if(c==16)for(var d=0;d<n;d++){var m=d*6;l[d]=255<<24|r[m+4]<<16|r[m+2]<<8|r[m]}}else{var v=p[0],g=p[1],b=p[2];if(c==8)for(var d=0;d<n;d++){var y=d<<2,m=d*3;l[d]=255<<24|r[m+2]<<16|r[m+1]<<8|r[m],r[m]==v&&r[m+1]==g&&r[m+2]==b&&(a[y+3]=0)}if(c==16)for(var d=0;d<n;d++){var y=d<<2,m=d*6;l[d]=255<<24|r[m+4]<<16|r[m+2]<<8|r[m],u(r,m)==v&&u(r,m+2)==g&&u(r,m+4)==b&&(a[y+3]=0)}}}else if(h==3){var x=i.tabs.PLTE,C=i.tabs.tRNS,R=C?C.length:0;if(c==1)for(var F=0;F<e;F++)for(var U=F*s,T=F*t,d=0;d<t;d++){var y=T+d<<2,H=r[U+(d>>3)]>>7-((d&7)<<0)&1,_=3*H;a[y]=x[_],a[y+1]=x[_+1],a[y+2]=x[_+2],a[y+3]=H<R?C[H]:255}if(c==2)for(var F=0;F<e;F++)for(var U=F*s,T=F*t,d=0;d<t;d++){var y=T+d<<2,H=r[U+(d>>2)]>>6-((d&3)<<1)&3,_=3*H;a[y]=x[_],a[y+1]=x[_+1],a[y+2]=x[_+2],a[y+3]=H<R?C[H]:255}if(c==4)for(var F=0;F<e;F++)for(var U=F*s,T=F*t,d=0;d<t;d++){var y=T+d<<2,H=r[U+(d>>1)]>>4-((d&1)<<2)&15,_=3*H;a[y]=x[_],a[y+1]=x[_+1],a[y+2]=x[_+2],a[y+3]=H<R?C[H]:255}if(c==8)for(var d=0;d<n;d++){var y=d<<2,H=r[d],_=3*H;a[y]=x[_],a[y+1]=x[_+1],a[y+2]=x[_+2],a[y+3]=H<R?C[H]:255}}else if(h==4){if(c==8)for(var d=0;d<n;d++){var y=d<<2,k=d<<1,O=r[k];a[y]=O,a[y+1]=O,a[y+2]=O,a[y+3]=r[k+1]}if(c==16)for(var d=0;d<n;d++){var y=d<<2,k=d<<2,O=r[k];a[y]=O,a[y+1]=O,a[y+2]=O,a[y+3]=r[k+2]}}else if(h==0)for(var v=i.tabs.tRNS?i.tabs.tRNS:-1,F=0;F<e;F++){var N=F*s,X=F*t;if(c==1)for(var Z=0;Z<t;Z++){var O=255*(r[N+(Z>>>3)]>>>7-(Z&7)&1),W=O==v*255?0:255;l[X+Z]=W<<24|O<<16|O<<8|O}else if(c==2)for(var Z=0;Z<t;Z++){var O=85*(r[N+(Z>>>2)]>>>6-((Z&3)<<1)&3),W=O==v*85?0:255;l[X+Z]=W<<24|O<<16|O<<8|O}else if(c==4)for(var Z=0;Z<t;Z++){var O=17*(r[N+(Z>>>1)]>>>4-((Z&1)<<2)&15),W=O==v*17?0:255;l[X+Z]=W<<24|O<<16|O<<8|O}else if(c==8)for(var Z=0;Z<t;Z++){var O=r[N+Z],W=O==v?0:255;l[X+Z]=W<<24|O<<16|O<<8|O}else if(c==16)for(var Z=0;Z<t;Z++){var O=r[N+(Z<<1)],W=u(r,N+(Z<<d))==v?0:255;l[X+Z]=W<<24|O<<16|O<<8|O}}return a},Mt.decode=function(r){for(var t=new Uint8Array(r),e=8,i=Mt._bin,n=i.readUshort,o=i.readUint,s={tabs:{},frames:[]},a=new Uint8Array(t.length),l=0,h,c=0,u=[137,80,78,71,13,10,26,10],f=0;f<8;f++)if(t[f]!=u[f])throw"The input is not a PNG file!";for(;e<t.length;){var d=i.readUint(t,e);e+=4;var p=i.readASCII(t,e,4);if(e+=4,p=="IHDR")Mt.decode._IHDR(t,e,s);else if(p=="IDAT"){for(var f=0;f<d;f++)a[l+f]=t[e+f];l+=d}else if(p=="acTL")s.tabs[p]={num_frames:o(t,e),num_plays:o(t,e+4)},h=new Uint8Array(t.length);else if(p=="fcTL"){if(c!=0){var m=s.frames[s.frames.length-1];m.data=Mt.decode._decompress(s,h.slice(0,c),m.rect.width,m.rect.height),c=0}var v={x:o(t,e+12),y:o(t,e+16),width:o(t,e+4),height:o(t,e+8)},g=n(t,e+22);g=n(t,e+20)/(g==0?100:g);var b={rect:v,delay:Math.round(g*1e3),dispose:t[e+24],blend:t[e+25]};s.frames.push(b)}else if(p=="fdAT"){for(var f=0;f<d-4;f++)h[c+f]=t[e+f+4];c+=d-4}else if(p=="pHYs")s.tabs[p]=[i.readUint(t,e),i.readUint(t,e+4),t[e+8]];else if(p=="cHRM"){s.tabs[p]=[];for(var f=0;f<8;f++)s.tabs[p].push(i.readUint(t,e+f*4))}else if(p=="tEXt"){s.tabs[p]==null&&(s.tabs[p]={});var y=i.nextZero(t,e),x=i.readASCII(t,e,y-e),C=i.readASCII(t,y+1,e+d-y-1);s.tabs[p][x]=C}else if(p=="iTXt"){s.tabs[p]==null&&(s.tabs[p]={});var y=0,R=e;y=i.nextZero(t,R);var x=i.readASCII(t,R,y-R);R=y+1,t[R],t[R+1],R+=2,y=i.nextZero(t,R),i.readASCII(t,R,y-R),R=y+1,y=i.nextZero(t,R),i.readUTF8(t,R,y-R),R=y+1;var C=i.readUTF8(t,R,d-(R-e));s.tabs[p][x]=C}else if(p=="PLTE")s.tabs[p]=i.readBytes(t,e,d);else if(p=="hIST"){var F=s.tabs.PLTE.length/3;s.tabs[p]=[];for(var f=0;f<F;f++)s.tabs[p].push(n(t,e+f*2))}else if(p=="tRNS")s.ctype==3?s.tabs[p]=i.readBytes(t,e,d):s.ctype==0?s.tabs[p]=n(t,e):s.ctype==2&&(s.tabs[p]=[n(t,e),n(t,e+2),n(t,e+4)]);else if(p=="gAMA")s.tabs[p]=i.readUint(t,e)/1e5;else if(p=="sRGB")s.tabs[p]=t[e];else if(p=="bKGD")s.ctype==0||s.ctype==4?s.tabs[p]=[n(t,e)]:s.ctype==2||s.ctype==6?s.tabs[p]=[n(t,e),n(t,e+2),n(t,e+4)]:s.ctype==3&&(s.tabs[p]=t[e]);else if(p=="IEND")break;e+=d,i.readUint(t,e),e+=4}if(c!=0){var m=s.frames[s.frames.length-1];m.data=Mt.decode._decompress(s,h.slice(0,c),m.rect.width,m.rect.height),c=0}return s.data=Mt.decode._decompress(s,a,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},Mt.decode._decompress=function(r,t,e,i){var n=Mt.decode._getBPP(r),o=Math.ceil(e*n/8),s=new Uint8Array((o+1+r.interlace)*i);return t=Mt.decode._inflate(t,s),r.interlace==0?t=Mt.decode._filterZero(t,r,0,e,i):r.interlace==1&&(t=Mt.decode._readInterlace(t,r)),t},Mt.decode._inflate=function(r,t){var e=Mt.inflateRaw(new Uint8Array(r.buffer,2,r.length-6),t);return e},Mt.inflateRaw=function(){var r={};return r.H={},r.H.N=function(t,e){var i=Uint8Array,n=0,o=0,s=0,a=0,l=0,h=0,c=0,u=0,f=0,d,p;if(t[0]==3&&t[1]==0)return e||new i(0);var m=r.H,v=m.b,g=m.e,b=m.R,y=m.n,x=m.A,C=m.Z,R=m.m,F=e==null;for(F&&(e=new i(t.length>>>2<<3));n==0;){if(n=v(t,f,1),o=v(t,f+1,2),f+=3,o==0){(f&7)!=0&&(f+=8-(f&7));var U=(f>>>3)+4,T=t[U-4]|t[U-3]<<8;F&&(e=r.H.W(e,u+T)),e.set(new i(t.buffer,t.byteOffset+U,T),u),f=U+T<<3,u+=T;continue}if(F&&(e=r.H.W(e,u+(1<<17))),o==1&&(d=R.J,p=R.h,h=511,c=31),o==2){s=g(t,f,5)+257,a=g(t,f+5,5)+1,l=g(t,f+10,4)+4,f+=14;for(var H=1,_=0;_<38;_+=2)R.Q[_]=0,R.Q[_+1]=0;for(var _=0;_<l;_++){var k=g(t,f+_*3,3);R.Q[(R.X[_]<<1)+1]=k,k>H&&(H=k)}f+=3*l,y(R.Q,H),x(R.Q,H,R.u),d=R.w,p=R.d,f=b(R.u,(1<<H)-1,s+a,t,f,R.v);var O=m.V(R.v,0,s,R.C);h=(1<<O)-1;var N=m.V(R.v,s,a,R.D);c=(1<<N)-1,y(R.C,O),x(R.C,O,d),y(R.D,N),x(R.D,N,p)}for(;;){var X=d[C(t,f)&h];f+=X&15;var Z=X>>>4;if(!(Z>>>8))e[u++]=Z;else{if(Z==256)break;var W=u+Z-254;if(Z>264){var yt=R.q[Z-257];W=u+(yt>>>3)+g(t,f,yt&7),f+=yt&7}var st=p[C(t,f)&c];f+=st&15;var bt=st>>>4,tt=R.c[bt],Q=(tt>>>4)+v(t,f,tt&15);for(f+=tt&15;u<W;)e[u]=e[u++-Q],e[u]=e[u++-Q],e[u]=e[u++-Q],e[u]=e[u++-Q];u=W}}}return e.length==u?e:e.slice(0,u)},r.H.W=function(t,e){var i=t.length;if(e<=i)return t;var n=new Uint8Array(i<<1);return n.set(t,0),n},r.H.R=function(t,e,i,n,o,s){for(var a=r.H.e,l=r.H.Z,h=0;h<i;){var c=t[l(n,o)&e];o+=c&15;var u=c>>>4;if(u<=15)s[h]=u,h++;else{var f=0,d=0;u==16?(d=3+a(n,o,2),o+=2,f=s[h-1]):u==17?(d=3+a(n,o,3),o+=3):u==18&&(d=11+a(n,o,7),o+=7);for(var p=h+d;h<p;)s[h]=f,h++}}return o},r.H.V=function(t,e,i,n){for(var o=0,s=0,a=n.length>>>1;s<i;){var l=t[s+e];n[s<<1]=0,n[(s<<1)+1]=l,l>o&&(o=l),s++}for(;s<a;)n[s<<1]=0,n[(s<<1)+1]=0,s++;return o},r.H.n=function(t,e){for(var i=r.H.m,n=t.length,o,s,a,l,h,c=i.j,l=0;l<=e;l++)c[l]=0;for(l=1;l<n;l+=2)c[t[l]]++;var u=i.K;for(o=0,c[0]=0,s=1;s<=e;s++)o=o+c[s-1]<<1,u[s]=o;for(a=0;a<n;a+=2)h=t[a+1],h!=0&&(t[a]=u[h],u[h]++)},r.H.A=function(t,e,i){for(var n=t.length,o=r.H.m,s=o.r,a=0;a<n;a+=2)if(t[a+1]!=0)for(var l=a>>1,h=t[a+1],c=l<<4|h,u=e-h,f=t[a]<<u,d=f+(1<<u);f!=d;){var p=s[f]>>>15-e;i[p]=c,f++}},r.H.l=function(t,e){for(var i=r.H.m.r,n=15-e,o=0;o<t.length;o+=2){var s=t[o]<<e-t[o+1];t[o]=i[s]>>>n}},r.H.M=function(t,e,i){i=i<<(e&7);var n=e>>>3;t[n]|=i,t[n+1]|=i>>>8},r.H.I=function(t,e,i){i=i<<(e&7);var n=e>>>3;t[n]|=i,t[n+1]|=i>>>8,t[n+2]|=i>>>16},r.H.e=function(t,e,i){return(t[e>>>3]|t[(e>>>3)+1]<<8)>>>(e&7)&(1<<i)-1},r.H.b=function(t,e,i){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(e&7)&(1<<i)-1},r.H.Z=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(e&7)},r.H.i=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16|t[(e>>>3)+3]<<24)>>>(e&7)},r.H.m=function(){var t=Uint16Array,e=Uint32Array;return{K:new t(16),j:new t(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 t(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 e(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new e(286),Y:new e(30),a:new e(19),t:new e(15e3),k:new t(65536),g:new t(32768)}}(),function(){for(var t=r.H.m,e=32768,i=0;i<e;i++){var n=i;n=(n&2863311530)>>>1|(n&1431655765)<<1,n=(n&3435973836)>>>2|(n&858993459)<<2,n=(n&4042322160)>>>4|(n&252645135)<<4,n=(n&4278255360)>>>8|(n&16711935)<<8,t.r[i]=(n>>>16|n<<16)>>>17}function o(s,a,l){for(;a--!=0;)s.push(0,l)}for(var i=0;i<32;i++)t.q[i]=t.S[i]<<3|t.T[i],t.c[i]=t.p[i]<<4|t.z[i];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),r.H.n(t._,9),r.H.A(t._,9,t.J),r.H.l(t._,9),o(t.$,32,5),r.H.n(t.$,5),r.H.A(t.$,5,t.h),r.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),r.H.N}(),Mt.decode._readInterlace=function(r,t){for(var e=t.width,i=t.height,n=Mt.decode._getBPP(t),o=n>>3,s=Math.ceil(e*n/8),a=new Uint8Array(i*s),l=0,h=[0,0,4,0,2,0,1],c=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1],d=0;d<7;){for(var p=u[d],m=f[d],v=0,g=0,b=h[d];b<i;)b+=p,g++;for(var y=c[d];y<e;)y+=m,v++;var x=Math.ceil(v*n/8);Mt.decode._filterZero(r,t,l,v,g);for(var C=0,R=h[d];R<i;){for(var F=c[d],U=l+C*x<<3;F<e;){if(n==1){var T=r[U>>3];T=T>>7-(U&7)&1,a[R*s+(F>>3)]|=T<<7-((F&7)<<0)}if(n==2){var T=r[U>>3];T=T>>6-(U&7)&3,a[R*s+(F>>2)]|=T<<6-((F&3)<<1)}if(n==4){var T=r[U>>3];T=T>>4-(U&7)&15,a[R*s+(F>>1)]|=T<<4-((F&1)<<2)}if(n>=8)for(var H=R*s+F*o,_=0;_<o;_++)a[H+_]=r[(U>>3)+_];U+=n,F+=m}C++,R+=p}v*g!=0&&(l+=g*(1+x)),d=d+1}return a},Mt.decode._getBPP=function(r){var t=[1,null,3,1,2,null,4][r.ctype];return t*r.depth},Mt.decode._filterZero=function(r,t,e,i,n){var o=Mt.decode._getBPP(t),s=Math.ceil(i*o/8),a=Mt.decode._paeth;o=Math.ceil(o/8);var l=0,h=1,c=r[e],u=0;if(c>1&&(r[e]=[0,0,1][c-2]),c==3)for(u=o;u<s;u++)r[u+1]=r[u+1]+(r[u+1-o]>>>1)&255;for(var f=0;f<n;f++)if(l=e+f*s,h=l+f+1,c=r[h-1],u=0,c==0)for(;u<s;u++)r[l+u]=r[h+u];else if(c==1){for(;u<o;u++)r[l+u]=r[h+u];for(;u<s;u++)r[l+u]=r[h+u]+r[l+u-o]}else if(c==2)for(;u<s;u++)r[l+u]=r[h+u]+r[l+u-s];else if(c==3){for(;u<o;u++)r[l+u]=r[h+u]+(r[l+u-s]>>>1);for(;u<s;u++)r[l+u]=r[h+u]+(r[l+u-s]+r[l+u-o]>>>1)}else{for(;u<o;u++)r[l+u]=r[h+u]+a(0,r[l+u-s],0);for(;u<s;u++)r[l+u]=r[h+u]+a(r[l+u-o],r[l+u-s],r[l+u-o-s])}return r},Mt.decode._paeth=function(r,t,e){var i=r+t-e,n=i-r,o=i-t,s=i-e;return n*n<=o*o&&n*n<=s*s?r:o*o<=s*s?t:e},Mt.decode._IHDR=function(r,t,e){var i=Mt._bin;e.width=i.readUint(r,t),t+=4,e.height=i.readUint(r,t),t+=4,e.depth=r[t],t++,e.ctype=r[t],t++,e.compress=r[t],t++,e.filter=r[t],t++,e.interlace=r[t],t++},Mt._bin={nextZero:function(r,t){for(;r[t]!=0;)t++;return t},readUshort:function(r,t){return r[t]<<8|r[t+1]},writeUshort:function(r,t,e){r[t]=e>>8&255,r[t+1]=e&255},readUint:function(r,t){return r[t]*(256*256*256)+(r[t+1]<<16|r[t+2]<<8|r[t+3])},writeUint:function(r,t,e){r[t]=e>>24&255,r[t+1]=e>>16&255,r[t+2]=e>>8&255,r[t+3]=e&255},readASCII:function(r,t,e){for(var i="",n=0;n<e;n++)i+=String.fromCharCode(r[t+n]);return i},writeASCII:function(r,t,e){for(var i=0;i<e.length;i++)r[t+i]=e.charCodeAt(i)},readBytes:function(r,t,e){for(var i=[],n=0;n<e;n++)i.push(r[t+n]);return i},pad:function(r){return r.length<2?"0"+r:r},readUTF8:function(r,t,e){for(var i="",n,o=0;o<e;o++)i+="%"+Mt._bin.pad(r[t+o].toString(16));try{n=decodeURIComponent(i)}catch{return Mt._bin.readASCII(r,t,e)}return n}},Mt._copyTile=function(r,t,e,i,n,o,s,a,l){for(var h=Math.min(t,n),c=Math.min(e,o),u=0,f=0,d=0;d<c;d++)for(var p=0;p<h;p++)if(s>=0&&a>=0?(u=d*t+p<<2,f=(a+d)*n+s+p<<2):(u=(-a+d)*t-s+p<<2,f=d*n+p<<2),l==0)i[f]=r[u],i[f+1]=r[u+1],i[f+2]=r[u+2],i[f+3]=r[u+3];else if(l==1){var m=r[u+3]*.00392156862745098,v=r[u]*m,g=r[u+1]*m,b=r[u+2]*m,y=i[f+3]*(1/255),x=i[f]*y,C=i[f+1]*y,R=i[f+2]*y,F=1-m,U=m+y*F,T=U==0?0:1/U;i[f+3]=255*U,i[f+0]=(v+x*F)*T,i[f+1]=(g+C*F)*T,i[f+2]=(b+R*F)*T}else if(l==2){var m=r[u+3],v=r[u],g=r[u+1],b=r[u+2],y=i[f+3],x=i[f],C=i[f+1],R=i[f+2];m==y&&v==x&&g==C&&b==R?(i[f]=0,i[f+1]=0,i[f+2]=0,i[f+3]=0):(i[f]=v,i[f+1]=g,i[f+2]=b,i[f+3]=m)}else if(l==3){var m=r[u+3],v=r[u],g=r[u+1],b=r[u+2],y=i[f+3],x=i[f],C=i[f+1],R=i[f+2];if(m==y&&v==x&&g==C&&b==R)continue;if(m<220&&y>20)return!1}return!0},Mt.encode=function(r,t,e,i,n,o,s){i==null&&(i=0),s==null&&(s=!1);var a=Mt.encode.compress(r,t,e,i,[!1,!1,!1,0,s]);return Mt.encode.compressPNG(a,-1),Mt.encode._main(a,t,e,n,o)},Mt.encodeLL=function(r,t,e,i,n,o,s,a){for(var l={ctype:0+(i==1?0:2)+(n==0?0:4),depth:o,frames:[]},h=(i+n)*o,c=h*t,u=0;u<r.length;u++)l.frames.push({rect:{x:0,y:0,width:t,height:e},img:new Uint8Array(r[u]),blend:0,dispose:1,bpp:Math.ceil(h/8),bpl:Math.ceil(c/8)});Mt.encode.compressPNG(l,0,!0);var f=Mt.encode._main(l,t,e,s,a);return f},Mt.encode._main=function(r,t,e,i,n){n==null&&(n={});var o=Mt.crc.crc,s=Mt._bin.writeUint,a=Mt._bin.writeUshort,l=Mt._bin.writeASCII,h=8,c=r.frames.length>1,u=!1,f=33+(c?20:0);if(n.sRGB!=null&&(f+=13),n.pHYs!=null&&(f+=21),r.ctype==3){for(var d=r.plte.length,p=0;p<d;p++)r.plte[p]>>>24!=255&&(u=!0);f+=8+d*3+4+(u?8+d*1+4:0)}for(var m=0;m<r.frames.length;m++){var v=r.frames[m];c&&(f+=38),f+=v.cimg.length+12,m!=0&&(f+=4)}f+=12;for(var g=new Uint8Array(f),b=[137,80,78,71,13,10,26,10],p=0;p<8;p++)g[p]=b[p];if(s(g,h,13),h+=4,l(g,h,"IHDR"),h+=4,s(g,h,t),h+=4,s(g,h,e),h+=4,g[h]=r.depth,h++,g[h]=r.ctype,h++,g[h]=0,h++,g[h]=0,h++,g[h]=0,h++,s(g,h,o(g,h-17,17)),h+=4,n.sRGB!=null&&(s(g,h,1),h+=4,l(g,h,"sRGB"),h+=4,g[h]=n.sRGB,h++,s(g,h,o(g,h-5,5)),h+=4),n.pHYs!=null&&(s(g,h,9),h+=4,l(g,h,"pHYs"),h+=4,s(g,h,n.pHYs[0]),h+=4,s(g,h,n.pHYs[1]),h+=4,g[h]=n.pHYs[2],h++,s(g,h,o(g,h-13,13)),h+=4),c&&(s(g,h,8),h+=4,l(g,h,"acTL"),h+=4,s(g,h,r.frames.length),h+=4,s(g,h,n.loop!=null?n.loop:0),h+=4,s(g,h,o(g,h-12,12)),h+=4),r.ctype==3){var d=r.plte.length;s(g,h,d*3),h+=4,l(g,h,"PLTE"),h+=4;for(var p=0;p<d;p++){var y=p*3,x=r.plte[p],C=x&255,R=x>>>8&255,F=x>>>16&255;g[h+y+0]=C,g[h+y+1]=R,g[h+y+2]=F}if(h+=d*3,s(g,h,o(g,h-d*3-4,d*3+4)),h+=4,u){s(g,h,d),h+=4,l(g,h,"tRNS"),h+=4;for(var p=0;p<d;p++)g[h+p]=r.plte[p]>>>24&255;h+=d,s(g,h,o(g,h-d-4,d+4)),h+=4}}for(var U=0,m=0;m<r.frames.length;m++){var v=r.frames[m];c&&(s(g,h,26),h+=4,l(g,h,"fcTL"),h+=4,s(g,h,U++),h+=4,s(g,h,v.rect.width),h+=4,s(g,h,v.rect.height),h+=4,s(g,h,v.rect.x),h+=4,s(g,h,v.rect.y),h+=4,a(g,h,i[m]),h+=2,a(g,h,1e3),h+=2,g[h]=v.dispose,h++,g[h]=v.blend,h++,s(g,h,o(g,h-30,30)),h+=4);var T=v.cimg,d=T.length;s(g,h,d+(m==0?0:4)),h+=4;var H=h;l(g,h,m==0?"IDAT":"fdAT"),h+=4,m!=0&&(s(g,h,U++),h+=4),g.set(T,h),h+=d,s(g,h,o(g,H,h-H)),h+=4}return s(g,h,0),h+=4,l(g,h,"IEND"),h+=4,s(g,h,o(g,h-4,4)),h+=4,g.buffer},Mt.encode.compressPNG=function(r,t,e){for(var i=0;i<r.frames.length;i++){var n=r.frames[i];n.rect.width;var o=n.rect.height,s=new Uint8Array(o*n.bpl+o);n.cimg=Mt.encode._filterZero(n.img,o,n.bpp,n.bpl,s,t,e)}},Mt.encode.compress=function(r,t,e,i,n){for(var o=n[0],s=n[1],a=n[2],l=n[3],h=n[4],c=6,u=8,f=255,d=0;d<r.length;d++)for(var p=new Uint8Array(r[d]),m=p.length,v=0;v<m;v+=4)f&=p[v+3];var g=f!=255,b=Mt.encode.framize(r,t,e,o,s,a),y={},x=[],C=[];if(i!=0){for(var R=[],v=0;v<b.length;v++)R.push(b[v].img.buffer);for(var F=Mt.encode.concatRGBA(R),U=Mt.quantize(F,i),T=0,H=new Uint8Array(U.abuf),v=0;v<b.length;v++){var _=b[v].img,k=_.length;C.push(new Uint8Array(U.inds.buffer,T>>2,k>>2));for(var d=0;d<k;d+=4)_[d]=H[T+d],_[d+1]=H[T+d+1],_[d+2]=H[T+d+2],_[d+3]=H[T+d+3];T+=k}for(var v=0;v<U.plte.length;v++)x.push(U.plte[v].est.rgba)}else for(var d=0;d<b.length;d++){var O=b[d],N=new Uint32Array(O.img.buffer),X=O.rect.width,m=N.length,Z=new Uint8Array(m);C.push(Z);for(var v=0;v<m;v++){var W=N[v];if(v!=0&&W==N[v-1])Z[v]=Z[v-1];else if(v>X&&W==N[v-X])Z[v]=Z[v-X];else{var yt=y[W];if(yt==null&&(y[W]=yt=x.length,x.push(W),x.length>=300))break;Z[v]=yt}}}var st=x.length;st<=256&&h==!1&&(st<=2?u=1:st<=4?u=2:st<=16?u=4:u=8,u=Math.max(u,l));for(var d=0;d<b.length;d++){var O=b[d];O.rect.x,O.rect.y;var X=O.rect.width,bt=O.rect.height,tt=O.img;new Uint32Array(tt.buffer);var Q=4*X,Tt=4;if(st<=256&&h==!1){Q=Math.ceil(u*X/8);for(var wt=new Uint8Array(Q*bt),ft=C[d],Bt=0;Bt<bt;Bt++){var v=Bt*Q,z=Bt*X;if(u==8)for(var M=0;M<X;M++)wt[v+M]=ft[z+M];else if(u==4)for(var M=0;M<X;M++)wt[v+(M>>1)]|=ft[z+M]<<4-(M&1)*4;else if(u==2)for(var M=0;M<X;M++)wt[v+(M>>2)]|=ft[z+M]<<6-(M&3)*2;else if(u==1)for(var M=0;M<X;M++)wt[v+(M>>3)]|=ft[z+M]<<7-(M&7)*1}tt=wt,c=3,Tt=1}else if(g==!1&&b.length==1){for(var wt=new Uint8Array(X*bt*3),lt=X*bt,v=0;v<lt;v++){var _=v*3,et=v*4;wt[_]=tt[et],wt[_+1]=tt[et+1],wt[_+2]=tt[et+2]}tt=wt,c=2,Tt=3,Q=3*X}O.img=tt,O.bpl=Q,O.bpp=Tt}return{ctype:c,depth:u,plte:x,frames:b}},Mt.encode.framize=function(r,t,e,i,n,o){for(var s=[],a=0;a<r.length;a++){var l=new Uint8Array(r[a]),h=new Uint32Array(l.buffer),c,u=0,f=0,d=t,p=e,m=i?1:0;if(a!=0){for(var v=o||i||a==1||s[a-2].dispose!=0?1:2,g=0,b=1e9,y=0;y<v;y++){for(var O=new Uint8Array(r[a-1-y]),x=new Uint32Array(r[a-1-y]),C=t,R=e,F=-1,U=-1,T=0;T<e;T++)for(var H=0;H<t;H++){var _=T*t+H;h[_]!=x[_]&&(H<C&&(C=H),H>F&&(F=H),T<R&&(R=T),T>U&&(U=T))}F==-1&&(C=R=F=U=0),n&&((C&1)==1&&C--,(R&1)==1&&R--);var k=(F-C+1)*(U-R+1);k<b&&(b=k,g=y,u=C,f=R,d=F-C+1,p=U-R+1)}var O=new Uint8Array(r[a-1-g]);g==1&&(s[a-1].dispose=2),c=new Uint8Array(d*p*4),Mt._copyTile(O,t,e,c,d,p,-u,-f,0),m=Mt._copyTile(l,t,e,c,d,p,-u,-f,3)?1:0,m==1?Mt.encode._prepareDiff(l,t,e,c,{x:u,y:f,width:d,height:p}):Mt._copyTile(l,t,e,c,d,p,-u,-f,0)}else c=l.slice(0);s.push({rect:{x:u,y:f,width:d,height:p},img:c,blend:m,dispose:0})}if(i)for(var a=0;a<s.length;a++){var N=s[a];if(N.blend!=1){var X=N.rect,Z=s[a-1].rect,W=Math.min(X.x,Z.x),yt=Math.min(X.y,Z.y),st=Math.max(X.x+X.width,Z.x+Z.width),bt=Math.max(X.y+X.height,Z.y+Z.height),tt={x:W,y:yt,width:st-W,height:bt-yt};s[a-1].dispose=1,a-1!=0&&Mt.encode._updateFrame(r,t,e,s,a-1,tt,n),Mt.encode._updateFrame(r,t,e,s,a,tt,n)}}var Q=0;if(r.length!=1)for(var _=0;_<s.length;_++){var N=s[_];Q+=N.rect.width*N.rect.height}return s},Mt.encode._updateFrame=function(r,t,e,i,n,o,s){for(var a=Uint8Array,l=Uint32Array,h=new a(r[n-1]),c=new l(r[n-1]),u=n+1<r.length?new a(r[n+1]):null,f=new a(r[n]),d=new l(f.buffer),p=t,m=e,v=-1,g=-1,b=0;b<o.height;b++)for(var y=0;y<o.width;y++){var x=o.x+y,C=o.y+b,R=C*t+x,F=d[R];F==0||i[n-1].dispose==0&&c[R]==F&&(u==null||u[R*4+3]!=0)||(x<p&&(p=x),x>v&&(v=x),C<m&&(m=C),C>g&&(g=C))}v==-1&&(p=m=v=g=0),s&&((p&1)==1&&p--,(m&1)==1&&m--),o={x:p,y:m,width:v-p+1,height:g-m+1};var U=i[n];U.rect=o,U.blend=1,U.img=new Uint8Array(o.width*o.height*4),i[n-1].dispose==0?(Mt._copyTile(h,t,e,U.img,o.width,o.height,-o.x,-o.y,0),Mt.encode._prepareDiff(f,t,e,U.img,o)):Mt._copyTile(f,t,e,U.img,o.width,o.height,-o.x,-o.y,0)},Mt.encode._prepareDiff=function(r,t,e,i,n){Mt._copyTile(r,t,e,i,n.width,n.height,-n.x,-n.y,2)},Mt.encode._filterZero=function(r,t,e,i,n,o,s){var a=[],l=[0,1,2,3,4];o!=-1?l=[o]:(t*i>5e5||e==1)&&(l=[0]);var h;s&&(h={level:0});for(var c=s&&UZIP!=null?UZIP:tl,u=0;u<l.length;u++){for(var f=0;f<t;f++)Mt.encode._filterLine(n,r,f,i,e,l[u]);a.push(c.deflate(n,h))}for(var d,p=1e9,u=0;u<a.length;u++)a[u].length<p&&(d=u,p=a[u].length);return a[d]},Mt.encode._filterLine=function(r,t,e,i,n,o){var s=e*i,a=s+e,l=Mt.decode._paeth;if(r[a]=o,a++,o==0)if(i<500)for(var h=0;h<i;h++)r[a+h]=t[s+h];else r.set(new Uint8Array(t.buffer,s,i),a);else if(o==1){for(var h=0;h<n;h++)r[a+h]=t[s+h];for(var h=n;h<i;h++)r[a+h]=t[s+h]-t[s+h-n]+256&255}else if(e==0){for(var h=0;h<n;h++)r[a+h]=t[s+h];if(o==2)for(var h=n;h<i;h++)r[a+h]=t[s+h];if(o==3)for(var h=n;h<i;h++)r[a+h]=t[s+h]-(t[s+h-n]>>1)+256&255;if(o==4)for(var h=n;h<i;h++)r[a+h]=t[s+h]-l(t[s+h-n],0,0)+256&255}else{if(o==2)for(var h=0;h<i;h++)r[a+h]=t[s+h]+256-t[s+h-i]&255;if(o==3){for(var h=0;h<n;h++)r[a+h]=t[s+h]+256-(t[s+h-i]>>1)&255;for(var h=n;h<i;h++)r[a+h]=t[s+h]+256-(t[s+h-i]+t[s+h-n]>>1)&255}if(o==4){for(var h=0;h<n;h++)r[a+h]=t[s+h]+256-l(0,t[s+h-i],0)&255;for(var h=n;h<i;h++)r[a+h]=t[s+h]+256-l(t[s+h-n],t[s+h-i],t[s+h-n-i])&255}}},Mt.crc={table:function(){for(var r=new Uint32Array(256),t=0;t<256;t++){for(var e=t,i=0;i<8;i++)e&1?e=3988292384^e>>>1:e=e>>>1;r[t]=e}return r}(),update:function(r,t,e,i){for(var n=0;n<i;n++)r=Mt.crc.table[(r^t[e+n])&255]^r>>>8;return r},crc:function(r,t,e){return Mt.crc.update(4294967295,r,t,e)^4294967295}},Mt.quantize=function(r,t){var e=new Uint8Array(r),i=e.slice(0),n=new Uint32Array(i.buffer),o=Mt.quantize.getKDtree(i,t),s=o[0],a=o[1];Mt.quantize.planeDst;for(var l=e,h=n,c=l.length,u=new Uint8Array(e.length>>2),f=0;f<c;f+=4){var d=l[f]*.00392156862745098,p=l[f+1]*(1/255),m=l[f+2]*(1/255),v=l[f+3]*(1/255),g=Mt.quantize.getNearest(s,d,p,m,v);u[f>>2]=g.ind,h[f>>2]=g.est.rgba}return{abuf:i.buffer,inds:u,plte:a}},Mt.quantize.getKDtree=function(r,t,e){e==null&&(e=1e-4);var i=new Uint32Array(r.buffer),n={i0:0,i1:r.length,bst:null,est:null,tdst:0,left:null,right:null};n.bst=Mt.quantize.stats(r,n.i0,n.i1),n.est=Mt.quantize.estats(n.bst);for(var o=[n];o.length<t;){for(var s=0,a=0,l=0;l<o.length;l++)o[l].est.L>s&&(s=o[l].est.L,a=l);if(s<e)break;var h=o[a],c=Mt.quantize.splitPixels(r,i,h.i0,h.i1,h.est.e,h.est.eMq255),u=h.i0>=c||h.i1<=c;if(u){h.est.L=0;continue}var f={i0:h.i0,i1:c,bst:null,est:null,tdst:0,left:null,right:null};f.bst=Mt.quantize.stats(r,f.i0,f.i1),f.est=Mt.quantize.estats(f.bst);var d={i0:c,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:h.bst.N-f.bst.N};for(var l=0;l<16;l++)d.bst.R[l]=h.bst.R[l]-f.bst.R[l];for(var l=0;l<4;l++)d.bst.m[l]=h.bst.m[l]-f.bst.m[l];d.est=Mt.quantize.estats(d.bst),h.left=f,h.right=d,o[a]=f,o.push(d)}o.sort(function(p,m){return m.bst.N-p.bst.N});for(var l=0;l<o.length;l++)o[l].ind=l;return[n,o]},Mt.quantize.getNearest=function(r,t,e,i,n){if(r.left==null)return r.tdst=Mt.quantize.dist(r.est.q,t,e,i,n),r;var o=Mt.quantize.planeDst(r.est,t,e,i,n),s=r.left,a=r.right;o>0&&(s=r.right,a=r.left);var l=Mt.quantize.getNearest(s,t,e,i,n);if(l.tdst<=o*o)return l;var h=Mt.quantize.getNearest(a,t,e,i,n);return h.tdst<l.tdst?h:l},Mt.quantize.planeDst=function(r,t,e,i,n){var o=r.e;return o[0]*t+o[1]*e+o[2]*i+o[3]*n-r.eMq},Mt.quantize.dist=function(r,t,e,i,n){var o=t-r[0],s=e-r[1],a=i-r[2],l=n-r[3];return o*o+s*s+a*a+l*l},Mt.quantize.splitPixels=function(r,t,e,i,n,o){var s=Mt.quantize.vecDot;for(i-=4;e<i;){for(;s(r,e,n)<=o;)e+=4;for(;s(r,i,n)>o;)i-=4;if(e>=i)break;var a=t[e>>2];t[e>>2]=t[i>>2],t[i>>2]=a,e+=4,i-=4}for(;s(r,e,n)>o;)e-=4;return e+4},Mt.quantize.vecDot=function(r,t,e){return r[t]*e[0]+r[t+1]*e[1]+r[t+2]*e[2]+r[t+3]*e[3]},Mt.quantize.stats=function(r,t,e){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=[0,0,0,0],o=e-t>>2,s=t;s<e;s+=4){var a=r[s]*.00392156862745098,l=r[s+1]*(1/255),h=r[s+2]*(1/255),c=r[s+3]*(1/255);n[0]+=a,n[1]+=l,n[2]+=h,n[3]+=c,i[0]+=a*a,i[1]+=a*l,i[2]+=a*h,i[3]+=a*c,i[5]+=l*l,i[6]+=l*h,i[7]+=l*c,i[10]+=h*h,i[11]+=h*c,i[15]+=c*c}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:n,N:o}},Mt.quantize.estats=function(r){var t=r.R,e=r.m,i=r.N,n=e[0],o=e[1],s=e[2],a=e[3],l=i==0?0:1/i,h=[t[0]-n*n*l,t[1]-n*o*l,t[2]-n*s*l,t[3]-n*a*l,t[4]-o*n*l,t[5]-o*o*l,t[6]-o*s*l,t[7]-o*a*l,t[8]-s*n*l,t[9]-s*o*l,t[10]-s*s*l,t[11]-s*a*l,t[12]-a*n*l,t[13]-a*o*l,t[14]-a*s*l,t[15]-a*a*l],c=h,u=Mt.M4,f=[.5,.5,.5,.5],d=0,p=0;if(i!=0)for(var m=0;m<10&&(f=u.multVec(c,f),p=Math.sqrt(u.dot(f,f)),f=u.sml(1/p,f),!(Math.abs(p-d)<1e-9));m++)d=p;var v=[n*l,o*l,s*l,a*l],g=u.dot(u.sml(255,v),f);return{Cov:h,q:v,e:f,L:d,eMq255:g,eMq:u.dot(f,v),rgba:(Math.round(255*v[3])<<24|Math.round(255*v[2])<<16|Math.round(255*v[1])<<8|Math.round(255*v[0])<<0)>>>0}},Mt.M4={multVec:function(r,t){return[r[0]*t[0]+r[1]*t[1]+r[2]*t[2]+r[3]*t[3],r[4]*t[0]+r[5]*t[1]+r[6]*t[2]+r[7]*t[3],r[8]*t[0]+r[9]*t[1]+r[10]*t[2]+r[11]*t[3],r[12]*t[0]+r[13]*t[1]+r[14]*t[2]+r[15]*t[3]]},dot:function(r,t){return r[0]*t[0]+r[1]*t[1]+r[2]*t[2]+r[3]*t[3]},sml:function(r,t){return[r*t[0],r*t[1],r*t[2],r*t[3]]}},Mt.encode.concatRGBA=function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e].byteLength;for(var i=new Uint8Array(t),n=0,e=0;e<r.length;e++){for(var o=new Uint8Array(r[e]),s=o.length,a=0;a<s;a+=4){var l=o[a],h=o[a+1],c=o[a+2],u=o[a+3];u==0&&(l=h=c=0),i[n+a]=l,i[n+a+1]=h,i[n+a+2]=c,i[n+a+3]=u}n+=s}return i.buffer};var k4=function(r){if(r===0)return Wn.Greyscale;if(r===2)return Wn.Truecolour;if(r===3)return Wn.IndexedColour;if(r===4)return Wn.GreyscaleWithAlpha;if(r===6)return Wn.TruecolourWithAlpha;throw new Error("Unknown color type: "+r)},L4=function(r){for(var t=Math.floor(r.length/4),e=new Uint8Array(t*3),i=new Uint8Array(t*1),n=0,o=0,s=0;n<r.length;)e[o++]=r[n++],e[o++]=r[n++],e[o++]=r[n++],i[s++]=r[n++];return{rgbChannel:e,alphaChannel:i}},Wn;(function(r){r.Greyscale="Greyscale",r.Truecolour="Truecolour",r.IndexedColour="IndexedColour",r.GreyscaleWithAlpha="GreyscaleWithAlpha",r.TruecolourWithAlpha="TruecolourWithAlpha"})(Wn||(Wn={}));var M4=function(){function r(t){var e=Mt.decode(t),i=Mt.toRGBA8(e);if(i.length>1)throw new Error("Animated PNGs are not supported");var n=new Uint8Array(i[0]),o=L4(n),s=o.rgbChannel,a=o.alphaChannel;this.rgbChannel=s;var l=a.some(function(h){return h<255});l&&(this.alphaChannel=a),this.type=k4(e.ctype),this.width=e.width,this.height=e.height,this.bitsPerComponent=8}return r.load=function(t){return new r(t)},r}(),t1=function(){function r(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace="DeviceRGB"}return r.for=function(t){return ae(this,void 0,void 0,function(){var e;return le(this,function(i){return e=M4.load(t),[2,new r(e)]})})},r.prototype.embedIntoContext=function(t,e){return ae(this,void 0,void 0,function(){var i,n;return le(this,function(o){return i=this.embedAlphaChannel(t),n=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:i}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]})})},r.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var e=t.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 t.register(e)}},r}(),e1=function(){function r(t,e,i){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&i?e+i:this.bytes.length}return Object.defineProperty(r.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),r.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},r.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return t===-1||e===-1?-1:(t<<8)+e},r.prototype.getInt32=function(){var t=this.getByte(),e=this.getByte(),i=this.getByte(),n=this.getByte();return(t<<24)+(e<<16)+(i<<8)+n},r.prototype.getBytes=function(t,e){e===void 0&&(e=!1);var i=this.bytes,n=this.pos,o=this.end;if(t){var a=n+t;a>o&&(a=o),this.pos=a;var s=i.subarray(n,a);return e?new Uint8ClampedArray(s):s}else{var s=i.subarray(n,o);return e?new Uint8ClampedArray(s):s}},r.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},r.prototype.peekBytes=function(t,e){e===void 0&&(e=!1);var i=this.getBytes(t,e);return this.pos-=i.length,i},r.prototype.skip=function(t){t||(t=1),this.pos+=t},r.prototype.reset=function(){this.pos=this.start},r.prototype.moveStart=function(){this.start=this.pos},r.prototype.makeSubStream=function(t,e){return new r(this.bytes,t,e)},r.prototype.decode=function(){return this.bytes},r}(),D4=new Uint8Array(0),Os=function(){function r(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=D4,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(r.prototype,"isEmpty",{get:function(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},enumerable:!1,configurable:!0}),r.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},r.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return t===-1||e===-1?-1:(t<<8)+e},r.prototype.getInt32=function(){var t=this.getByte(),e=this.getByte(),i=this.getByte(),n=this.getByte();return(t<<24)+(e<<16)+(i<<8)+n},r.prototype.getBytes=function(t,e){e===void 0&&(e=!1);var i,n=this.pos;if(t){for(this.ensureBuffer(n+t),i=n+t;!this.eof&&this.bufferLength<i;)this.readBlock();var o=this.bufferLength;i>o&&(i=o)}else{for(;!this.eof;)this.readBlock();i=this.bufferLength}this.pos=i;var s=this.buffer.subarray(n,i);return e&&!(s instanceof Uint8ClampedArray)?new Uint8ClampedArray(s):s},r.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},r.prototype.peekBytes=function(t,e){e===void 0&&(e=!1);var i=this.getBytes(t,e);return this.pos-=i.length,i},r.prototype.skip=function(t){t||(t=1),this.pos+=t},r.prototype.reset=function(){this.pos=0},r.prototype.makeSubStream=function(t,e){for(var i=t+e;this.bufferLength<=i&&!this.eof;)this.readBlock();return new e1(this.buffer,t,e)},r.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},r.prototype.readBlock=function(){throw new Vi(this.constructor.name,"readBlock")},r.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var i=this.minBufferLength;i<t;)i*=2;var n=new Uint8Array(i);return n.set(e),this.buffer=n},r}(),i1=function(r){return r===32||r===9||r===13||r===10},O4=function(r){It(t,r);function t(e,i){var n=r.call(this,i)||this;return n.stream=e,n.input=new Uint8Array(5),i&&(i=.8*i),n}return t.prototype.readBlock=function(){for(var e=126,i=122,n=-1,o=this.stream,s=o.getByte();i1(s);)s=o.getByte();if(s===n||s===e){this.eof=!0;return}var a=this.bufferLength,l,h;if(s===i){for(l=this.ensureBuffer(a+4),h=0;h<4;++h)l[a+h]=0;this.bufferLength+=4}else{var c=this.input;for(c[0]=s,h=1;h<5;++h){for(s=o.getByte();i1(s);)s=o.getByte();if(c[h]=s,s===n||s===e)break}if(l=this.ensureBuffer(a+h-1),this.bufferLength+=h-1,h<5){for(;h<5;++h)c[h]=117;this.eof=!0}var u=0;for(h=0;h<5;++h)u=u*85+(c[h]-33);for(h=3;h>=0;--h)l[a+h]=u&255,u>>=8}},t}(Os),R4=function(r){It(t,r);function t(e,i){var n=r.call(this,i)||this;return n.stream=e,n.firstDigit=-1,i&&(i=.5*i),n}return t.prototype.readBlock=function(){var e=8e3,i=this.stream.getBytes(e);if(!i.length){this.eof=!0;return}for(var n=i.length+1>>1,o=this.ensureBuffer(this.bufferLength+n),s=this.bufferLength,a=this.firstDigit,l=0,h=i.length;l<h;l++){var c=i[l],u=void 0;if(c>=48&&c<=57)u=c&15;else if(c>=65&&c<=70||c>=97&&c<=102)u=(c&15)+9;else if(c===62){this.eof=!0;break}else continue;a<0?a=u:(o[s++]=a<<4|u,a=-1)}a>=0&&this.eof&&(o[s++]=a<<4,a=-1),this.firstDigit=a,this.bufferLength=s},t}(Os),r1=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),F4=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]),I4=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]),B4=[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],z4=[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],P4=function(r){It(t,r);function t(e,i){var n=r.call(this,i)||this;n.stream=e;var o=e.getByte(),s=e.getByte();if(o===-1||s===-1)throw new Error("Invalid header in flate stream: "+o+", "+s);if((o&15)!==8)throw new Error("Unknown compression method in flate stream: "+o+", "+s);if(((o<<8)+s)%31!==0)throw new Error("Bad FCHECK in flate stream: "+o+", "+s);if(s&32)throw new Error("FDICT bit set in flate stream: "+o+", "+s);return n.codeSize=0,n.codeBuf=0,n}return t.prototype.readBlock=function(){var e,i,n=this.stream,o=this.getBits(3);if(o&1&&(this.eof=!0),o>>=1,o===0){var s=void 0;if((s=n.getByte())===-1)throw new Error("Bad block header in flate stream");var a=s;if((s=n.getByte())===-1)throw new Error("Bad block header in flate stream");if(a|=s<<8,(s=n.getByte())===-1)throw new Error("Bad block header in flate stream");var l=s;if((s=n.getByte())===-1)throw new Error("Bad block header in flate stream");if(l|=s<<8,l!==(~a&65535)&&(a!==0||l!==0))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var h=this.bufferLength;e=this.ensureBuffer(h+a);var c=h+a;if(this.bufferLength=c,a===0)n.peekByte()===-1&&(this.eof=!0);else for(var u=h;u<c;++u){if((s=n.getByte())===-1){this.eof=!0;break}e[u]=s}return}var f,d;if(o===1)f=B4,d=z4;else if(o===2){var p=this.getBits(5)+257,m=this.getBits(5)+1,v=this.getBits(4)+4,g=new Uint8Array(r1.length),b=void 0;for(b=0;b<v;++b)g[r1[b]]=this.getBits(3);var y=this.generateHuffmanTable(g);i=0,b=0;for(var x=p+m,C=new Uint8Array(x),R=void 0,F=void 0,U=void 0;b<x;){var T=this.getCode(y);if(T===16)R=2,F=3,U=i;else if(T===17)R=3,F=3,U=i=0;else if(T===18)R=7,F=11,U=i=0;else{C[b++]=i=T;continue}for(var H=this.getBits(R)+F;H-- >0;)C[b++]=U}f=this.generateHuffmanTable(C.subarray(0,p)),d=this.generateHuffmanTable(C.subarray(p,x))}else throw new Error("Unknown block type in flate stream");e=this.buffer;for(var _=e?e.length:0,k=this.bufferLength;;){var O=this.getCode(f);if(O<256){k+1>=_&&(e=this.ensureBuffer(k+1),_=e.length),e[k++]=O;continue}if(O===256){this.bufferLength=k;return}O-=257,O=F4[O];var N=O>>16;N>0&&(N=this.getBits(N)),i=(O&65535)+N,O=this.getCode(d),O=I4[O],N=O>>16,N>0&&(N=this.getBits(N));var X=(O&65535)+N;k+i>=_&&(e=this.ensureBuffer(k+i),_=e.length);for(var Z=0;Z<i;++Z,++k)e[k]=e[k-X]}},t.prototype.getBits=function(e){for(var i=this.stream,n=this.codeSize,o=this.codeBuf,s;n<e;){if((s=i.getByte())===-1)throw new Error("Bad encoding in flate stream");o|=s<<n,n+=8}return s=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=n-=e,s},t.prototype.getCode=function(e){for(var i=this.stream,n=e[0],o=e[1],s=this.codeSize,a=this.codeBuf,l;s<o&&(l=i.getByte())!==-1;)a|=l<<s,s+=8;var h=n[a&(1<<o)-1];typeof n=="number"&&console.log("FLATE:",h);var c=h>>16,u=h&65535;if(c<1||s<c)throw new Error("Bad encoding in flate stream");return this.codeBuf=a>>c,this.codeSize=s-c,u},t.prototype.generateHuffmanTable=function(e){var i=e.length,n=0,o;for(o=0;o<i;++o)e[o]>n&&(n=e[o]);for(var s=1<<n,a=new Int32Array(s),l=1,h=0,c=2;l<=n;++l,h<<=1,c<<=1)for(var u=0;u<i;++u)if(e[u]===l){var f=0,d=h;for(o=0;o<l;++o)f=f<<1|d&1,d>>=1;for(o=f;o<s;o+=c)a[o]=l<<16|u;++h}return[a,n]},t}(Os),U4=function(r){It(t,r);function t(e,i,n){var o=r.call(this,i)||this;o.stream=e,o.cachedData=0,o.bitsCached=0;for(var s=4096,a={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(s),dictionaryLengths:new Uint16Array(s),dictionaryPrevCodes:new Uint16Array(s),currentSequence:new Uint8Array(s),currentSequenceLength:0},l=0;l<256;++l)a.dictionaryValues[l]=l,a.dictionaryLengths[l]=1;return o.lzwState=a,o}return t.prototype.readBlock=function(){var e=512,i=e*2,n=e,o,s,a,l=this.lzwState;if(l){var h=l.earlyChange,c=l.nextCode,u=l.dictionaryValues,f=l.dictionaryLengths,d=l.dictionaryPrevCodes,p=l.codeLength,m=l.prevCode,v=l.currentSequence,g=l.currentSequenceLength,b=0,y=this.bufferLength,x=this.ensureBuffer(this.bufferLength+i);for(o=0;o<e;o++){var C=this.readBits(p),R=g>0;if(!C||C<256)v[0]=C,g=1;else if(C>=258)if(C<c)for(g=f[C],s=g-1,a=C;s>=0;s--)v[s]=u[a],a=d[a];else v[g++]=v[0];else if(C===256){p=9,c=258,g=0;continue}else{this.eof=!0,delete this.lzwState;break}if(R&&(d[c]=m,f[c]=f[m]+1,u[c]=v[0],c++,p=c+h&c+h-1?p:Math.min(Math.log(c+h)/.6931471805599453+1,12)|0),m=C,b+=g,i<b){do i+=n;while(i<b);x=this.ensureBuffer(this.bufferLength+i)}for(s=0;s<g;s++)x[y++]=v[s]}l.nextCode=c,l.codeLength=p,l.prevCode=m,l.currentSequenceLength=g,this.bufferLength=y}},t.prototype.readBits=function(e){for(var i=this.bitsCached,n=this.cachedData;i<e;){var o=this.stream.getByte();if(o===-1)return this.eof=!0,null;n=n<<8|o,i+=8}return this.bitsCached=i-=e,this.cachedData=n,n>>>i&(1<<e)-1},t}(Os),j4=function(r){It(t,r);function t(e,i){var n=r.call(this,i)||this;return n.stream=e,n}return t.prototype.readBlock=function(){var e=this.stream.getBytes(2);if(!e||e.length<2||e[0]===128){this.eof=!0;return}var i,n=this.bufferLength,o=e[0];if(o<128){if(i=this.ensureBuffer(n+o+1),i[n++]=e[1],o>0){var s=this.stream.getBytes(o);i.set(s,n),n+=o}}else{o=257-o;var a=e[1];i=this.ensureBuffer(n+o+1);for(var l=0;l<o;l++)i[n++]=a}this.bufferLength=n},t}(Os),n1=function(r,t,e){if(t===K.of("FlateDecode"))return new P4(r);if(t===K.of("LZWDecode")){var i=1;if(e instanceof se){var n=e.lookup(K.of("EarlyChange"));n instanceof te&&(i=n.asNumber())}return new U4(r,void 0,i)}if(t===K.of("ASCII85Decode"))return new O4(r);if(t===K.of("ASCIIHexDecode"))return new R4(r);if(t===K.of("RunLengthDecode"))return new j4(r);throw new Zx(t.asString())},o1=function(r){var t=r.dict,e=r.contents,i=new e1(e),n=t.lookup(K.of("Filter")),o=t.lookup(K.of("DecodeParms"));if(n instanceof K)i=n1(i,n,o);else if(n instanceof Ee)for(var s=0,a=n.size();s<a;s++)i=n1(i,n.lookup(s,K),o&&o.lookupMaybe(s,se));else if(n)throw new al([K,Ee],n);return i},q4=function(r){var t=r.MediaBox(),e=t.lookup(2,te).asNumber()-t.lookup(0,te).asNumber(),i=t.lookup(3,te).asNumber()-t.lookup(1,te).asNumber();return{left:0,bottom:0,right:e,top:i}},W4=function(r){return[1,0,0,1,-r.left,-r.bottom]},s1=function(){function r(t,e,i){this.page=t;var n=e??q4(t);this.width=n.right-n.left,this.height=n.top-n.bottom,this.boundingBox=n,this.transformationMatrix=i??W4(n)}return r.for=function(t,e,i){return ae(this,void 0,void 0,function(){return le(this,function(n){return[2,new r(t,e,i)]})})},r.prototype.embedIntoContext=function(t,e){return ae(this,void 0,void 0,function(){var i,n,o,s,a,l,h,c,u,f;return le(this,function(d){if(i=this.page.normalizedEntries(),n=i.Contents,o=i.Resources,!n)throw new Jx;return s=this.decodeContents(n),a=this.boundingBox,l=a.left,h=a.bottom,c=a.right,u=a.top,f=t.flateStream(s,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[l,h,c,u],Matrix:this.transformationMatrix,Resources:o}),e?(t.assign(e,f),[2,e]):[2,t.register(f)]})})},r.prototype.decodeContents=function(t){for(var e=Uint8Array.of(Y.Newline),i=[],n=0,o=t.size();n<o;n++){var s=t.lookup(n,Fi),a=void 0;if(s instanceof Ms)a=o1(s).decode();else if(s instanceof Ds)a=s.getUnencodedContents();else throw new Qx(s);i.push(a,e)}return dx.apply(void 0,i)},r}(),dl=function(r,t){if(r!==void 0)return t[r]},Rs;(function(r){r.UseNone="UseNone",r.UseOutlines="UseOutlines",r.UseThumbs="UseThumbs",r.UseOC="UseOC"})(Rs||(Rs={}));var Fs;(function(r){r.L2R="L2R",r.R2L="R2L"})(Fs||(Fs={}));var Is;(function(r){r.None="None",r.AppDefault="AppDefault"})(Is||(Is={}));var fl;(function(r){r.Simplex="Simplex",r.DuplexFlipShortEdge="DuplexFlipShortEdge",r.DuplexFlipLongEdge="DuplexFlipLongEdge"})(fl||(fl={}));var a1=function(){function r(t){this.dict=t}return r.prototype.lookupBool=function(t){var e=this.dict.lookup(K.of(t));if(e instanceof ks)return e},r.prototype.lookupName=function(t){var e=this.dict.lookup(K.of(t));if(e instanceof K)return e},r.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},r.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},r.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},r.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},r.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},r.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},r.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},r.prototype.Direction=function(){return this.lookupName("Direction")},r.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},r.prototype.Duplex=function(){return this.lookupName("Duplex")},r.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},r.prototype.PrintPageRange=function(){var t=this.dict.lookup(K.of("PrintPageRange"));if(t instanceof Ee)return t},r.prototype.NumCopies=function(){var t=this.dict.lookup(K.of("NumCopies"));if(t instanceof te)return t},r.prototype.getHideToolbar=function(){var t,e;return(e=(t=this.HideToolbar())===null||t===void 0?void 0:t.asBoolean())!==null&&e!==void 0?e:!1},r.prototype.getHideMenubar=function(){var t,e;return(e=(t=this.HideMenubar())===null||t===void 0?void 0:t.asBoolean())!==null&&e!==void 0?e:!1},r.prototype.getHideWindowUI=function(){var t,e;return(e=(t=this.HideWindowUI())===null||t===void 0?void 0:t.asBoolean())!==null&&e!==void 0?e:!1},r.prototype.getFitWindow=function(){var t,e;return(e=(t=this.FitWindow())===null||t===void 0?void 0:t.asBoolean())!==null&&e!==void 0?e:!1},r.prototype.getCenterWindow=function(){var t,e;return(e=(t=this.CenterWindow())===null||t===void 0?void 0:t.asBoolean())!==null&&e!==void 0?e:!1},r.prototype.getDisplayDocTitle=function(){var t,e;return(e=(t=this.DisplayDocTitle())===null||t===void 0?void 0:t.asBoolean())!==null&&e!==void 0?e:!1},r.prototype.getNonFullScreenPageMode=function(){var t,e,i=(t=this.NonFullScreenPageMode())===null||t===void 0?void 0:t.decodeText();return(e=dl(i,Rs))!==null&&e!==void 0?e:Rs.UseNone},r.prototype.getReadingDirection=function(){var t,e,i=(t=this.Direction())===null||t===void 0?void 0:t.decodeText();return(e=dl(i,Fs))!==null&&e!==void 0?e:Fs.L2R},r.prototype.getPrintScaling=function(){var t,e,i=(t=this.PrintScaling())===null||t===void 0?void 0:t.decodeText();return(e=dl(i,Is))!==null&&e!==void 0?e:Is.AppDefault},r.prototype.getDuplex=function(){var t,e=(t=this.Duplex())===null||t===void 0?void 0:t.decodeText();return dl(e,fl)},r.prototype.getPickTrayByPDFSize=function(){var t;return(t=this.PickTrayByPDFSize())===null||t===void 0?void 0:t.asBoolean()},r.prototype.getPrintPageRange=function(){var t=this.PrintPageRange();if(!t)return[];for(var e=[],i=0;i<t.size();i+=2){var n=t.lookup(i,te).asNumber(),o=t.lookup(i+1,te).asNumber();e.push({start:n,end:o})}return e},r.prototype.getNumCopies=function(){var t,e;return(e=(t=this.NumCopies())===null||t===void 0?void 0:t.asNumber())!==null&&e!==void 0?e:1},r.prototype.setHideToolbar=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("HideToolbar"),e)},r.prototype.setHideMenubar=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("HideMenubar"),e)},r.prototype.setHideWindowUI=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("HideWindowUI"),e)},r.prototype.setFitWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("FitWindow"),e)},r.prototype.setCenterWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("CenterWindow"),e)},r.prototype.setDisplayDocTitle=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("DisplayDocTitle"),e)},r.prototype.setNonFullScreenPageMode=function(t){nn(t,"nonFullScreenPageMode",Rs);var e=K.of(t);this.dict.set(K.of("NonFullScreenPageMode"),e)},r.prototype.setReadingDirection=function(t){nn(t,"readingDirection",Fs);var e=K.of(t);this.dict.set(K.of("Direction"),e)},r.prototype.setPrintScaling=function(t){nn(t,"printScaling",Is);var e=K.of(t);this.dict.set(K.of("PrintScaling"),e)},r.prototype.setDuplex=function(t){nn(t,"duplex",fl);var e=K.of(t);this.dict.set(K.of("Duplex"),e)},r.prototype.setPickTrayByPDFSize=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("PickTrayByPDFSize"),e)},r.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0,n=t.length;i<n;i++)e.push(t[i].start),e.push(t[i].end);Fp(e,"printPageRange",["number"]);var o=this.dict.context.obj(e);this.dict.set(K.of("PrintPageRange"),o)},r.prototype.setNumCopies=function(t){Ri(t,"numCopies",1,Number.MAX_VALUE),Yx(t,"numCopies");var e=this.dict.context.obj(t);this.dict.set(K.of("NumCopies"),e)},r.fromDict=function(t){return new r(t)},r.create=function(t){var e=t.obj({});return new r(e)},r}(),H4=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,l1=function(){function r(t,e){this.dict=t,this.ref=e}return r.prototype.T=function(){return this.dict.lookupMaybe(K.of("T"),Ae,Qt)},r.prototype.Ff=function(){var t=this.getInheritableAttribute(K.of("Ff"));return this.dict.context.lookupMaybe(t,te)},r.prototype.V=function(){var t=this.getInheritableAttribute(K.of("V"));return this.dict.context.lookup(t)},r.prototype.Kids=function(){return this.dict.lookupMaybe(K.of("Kids"),Ee)},r.prototype.DA=function(){var t=this.dict.lookup(K.of("DA"));if(t instanceof Ae||t instanceof Qt)return t},r.prototype.setKids=function(t){this.dict.set(K.of("Kids"),this.dict.context.obj(t))},r.prototype.getParent=function(){var t=this.dict.get(K.of("Parent"));if(t instanceof Ne){var e=this.dict.lookup(K.of("Parent"),se);return new r(e,t)}},r.prototype.setParent=function(t){t?this.dict.set(K.of("Parent"),t):this.dict.delete(K.of("Parent"))},r.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},r.prototype.getPartialName=function(){var t;return(t=this.T())===null||t===void 0?void 0:t.decodeText()},r.prototype.setPartialName=function(t){t?this.dict.set(K.of("T"),Qt.fromText(t)):this.dict.delete(K.of("T"))},r.prototype.setDefaultAppearance=function(t){this.dict.set(K.of("DA"),Ae.of(t))},r.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof Qt?t.decodeText():t==null?void 0:t.asString()},r.prototype.setFontSize=function(t){var e,i=(e=this.getFullyQualifiedName())!==null&&e!==void 0?e:"",n=this.getDefaultAppearance();if(!n)throw new i4(i);var o=_c(n,H4);if(!o.match)throw new r4(i);var s=n.slice(0,o.pos-o.match[0].length),a=o.pos<=n.length?n.slice(o.pos):"",l=o.match[1],h=s+" /"+l+" "+t+" Tf "+a;this.setDefaultAppearance(h)},r.prototype.getFlags=function(){var t,e;return(e=(t=this.Ff())===null||t===void 0?void 0:t.asNumber())!==null&&e!==void 0?e:0},r.prototype.setFlags=function(t){this.dict.set(K.of("Ff"),te.of(t))},r.prototype.hasFlag=function(t){var e=this.getFlags();return(e&t)!==0},r.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},r.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},r.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},r.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(i){e||(e=i.dict.get(t))}),e},r.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},r}(),eu=function(){function r(t){this.dict=t}return r.prototype.W=function(){var t=this.dict.lookup(K.of("W"));if(t instanceof te)return t},r.prototype.getWidth=function(){var t,e;return(e=(t=this.W())===null||t===void 0?void 0:t.asNumber())!==null&&e!==void 0?e:1},r.prototype.setWidth=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("W"),e)},r.fromDict=function(t){return new r(t)},r}(),G4=function(){function r(t){this.dict=t}return r.prototype.Rect=function(){return this.dict.lookup(K.of("Rect"),Ee)},r.prototype.AP=function(){return this.dict.lookupMaybe(K.of("AP"),se)},r.prototype.F=function(){var t=this.dict.lookup(K.of("F"));return this.dict.context.lookupMaybe(t,te)},r.prototype.getRectangle=function(){var t,e=this.Rect();return(t=e==null?void 0:e.asRectangle())!==null&&t!==void 0?t:{x:0,y:0,width:0,height:0}},r.prototype.setRectangle=function(t){var e=t.x,i=t.y,n=t.width,o=t.height,s=this.dict.context.obj([e,i,e+n,i+o]);this.dict.set(K.of("Rect"),s)},r.prototype.getAppearanceState=function(){var t=this.dict.lookup(K.of("AS"));if(t instanceof K)return t},r.prototype.setAppearanceState=function(t){this.dict.set(K.of("AS"),t)},r.prototype.setAppearances=function(t){this.dict.set(K.of("AP"),t)},r.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(K.of("AP"),t)),t},r.prototype.getNormalAppearance=function(){var t=this.ensureAP(),e=t.get(K.of("N"));if(e instanceof Ne||e instanceof se)return e;throw new Error("Unexpected N type: "+(e==null?void 0:e.constructor.name))},r.prototype.setNormalAppearance=function(t){var e=this.ensureAP();e.set(K.of("N"),t)},r.prototype.setRolloverAppearance=function(t){var e=this.ensureAP();e.set(K.of("R"),t)},r.prototype.setDownAppearance=function(t){var e=this.ensureAP();e.set(K.of("D"),t)},r.prototype.removeRolloverAppearance=function(){var t=this.AP();t==null||t.delete(K.of("R"))},r.prototype.removeDownAppearance=function(){var t=this.AP();t==null||t.delete(K.of("D"))},r.prototype.getAppearances=function(){var t=this.AP();if(t){var e=t.lookup(K.of("N"),se,Fi),i=t.lookupMaybe(K.of("R"),se,Fi),n=t.lookupMaybe(K.of("D"),se,Fi);return{normal:e,rollover:i,down:n}}},r.prototype.getFlags=function(){var t,e;return(e=(t=this.F())===null||t===void 0?void 0:t.asNumber())!==null&&e!==void 0?e:0},r.prototype.setFlags=function(t){this.dict.set(K.of("F"),te.of(t))},r.prototype.hasFlag=function(t){var e=this.getFlags();return(e&t)!==0},r.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},r.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},r.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},r.fromDict=function(t){return new r(t)},r}(),iu=function(){function r(t){this.dict=t}return r.prototype.R=function(){var t=this.dict.lookup(K.of("R"));if(t instanceof te)return t},r.prototype.BC=function(){var t=this.dict.lookup(K.of("BC"));if(t instanceof Ee)return t},r.prototype.BG=function(){var t=this.dict.lookup(K.of("BG"));if(t instanceof Ee)return t},r.prototype.CA=function(){var t=this.dict.lookup(K.of("CA"));if(t instanceof Qt||t instanceof Ae)return t},r.prototype.RC=function(){var t=this.dict.lookup(K.of("RC"));if(t instanceof Qt||t instanceof Ae)return t},r.prototype.AC=function(){var t=this.dict.lookup(K.of("AC"));if(t instanceof Qt||t instanceof Ae)return t},r.prototype.getRotation=function(){var t;return(t=this.R())===null||t===void 0?void 0:t.asNumber()},r.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var e=[],i=0,n=t==null?void 0:t.size();i<n;i++){var o=t.get(i);o instanceof te&&e.push(o.asNumber())}return e}},r.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var e=[],i=0,n=t==null?void 0:t.size();i<n;i++){var o=t.get(i);o instanceof te&&e.push(o.asNumber())}return e}},r.prototype.getCaptions=function(){var t=this.CA(),e=this.RC(),i=this.AC();return{normal:t==null?void 0:t.decodeText(),rollover:e==null?void 0:e.decodeText(),down:i==null?void 0:i.decodeText()}},r.prototype.setRotation=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("R"),e)},r.prototype.setBorderColor=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("BC"),e)},r.prototype.setBackgroundColor=function(t){var e=this.dict.context.obj(t);this.dict.set(K.of("BG"),e)},r.prototype.setCaptions=function(t){var e=Qt.fromText(t.normal);if(this.dict.set(K.of("CA"),e),t.rollover){var i=Qt.fromText(t.rollover);this.dict.set(K.of("RC"),i)}else this.dict.delete(K.of("RC"));if(t.down){var n=Qt.fromText(t.down);this.dict.set(K.of("AC"),n)}else this.dict.delete(K.of("AC"))},r.fromDict=function(t){return new r(t)},r}(),ru=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.MK=function(){var e=this.dict.lookup(K.of("MK"));if(e instanceof se)return e},t.prototype.BS=function(){var e=this.dict.lookup(K.of("BS"));if(e instanceof se)return e},t.prototype.DA=function(){var e=this.dict.lookup(K.of("DA"));if(e instanceof Ae||e instanceof Qt)return e},t.prototype.P=function(){var e=this.dict.get(K.of("P"));if(e instanceof Ne)return e},t.prototype.setP=function(e){this.dict.set(K.of("P"),e)},t.prototype.setDefaultAppearance=function(e){this.dict.set(K.of("DA"),Ae.of(e))},t.prototype.getDefaultAppearance=function(){var e=this.DA();return e instanceof Qt?e.decodeText():e==null?void 0:e.asString()},t.prototype.getAppearanceCharacteristics=function(){var e=this.MK();if(e)return iu.fromDict(e)},t.prototype.getOrCreateAppearanceCharacteristics=function(){var e=this.MK();if(e)return iu.fromDict(e);var i=iu.fromDict(this.dict.context.obj({}));return this.dict.set(K.of("MK"),i.dict),i},t.prototype.getBorderStyle=function(){var e=this.BS();if(e)return eu.fromDict(e)},t.prototype.getOrCreateBorderStyle=function(){var e=this.BS();if(e)return eu.fromDict(e);var i=eu.fromDict(this.dict.context.obj({}));return this.dict.set(K.of("BS"),i.dict),i},t.prototype.getOnValue=function(){var e,i=(e=this.getAppearances())===null||e===void 0?void 0:e.normal;if(i instanceof se)for(var n=i.keys(),o=0,s=n.length;o<s;o++){var a=n[o];if(a!==K.of("Off"))return a}},t.fromDict=function(e){return new t(e)},t.create=function(e,i){var n=e.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:i});return new t(n)},t}(G4),_o=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.FT=function(){var e=this.getInheritableAttribute(K.of("FT"));return this.dict.context.lookup(e,K)},t.prototype.getWidgets=function(){var e=this.Kids();if(!e)return[ru.fromDict(this.dict)];for(var i=new Array(e.size()),n=0,o=e.size();n<o;n++){var s=e.lookup(n,se);i[n]=ru.fromDict(s)}return i},t.prototype.addWidget=function(e){var i=this.normalizedEntries().Kids;i.push(e)},t.prototype.removeWidget=function(e){var i=this.Kids();if(i){if(e<0||e>i.size())throw new ll(e,0,i.size());i.remove(e)}else{if(e!==0)throw new ll(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(K.of("Kids"),e)),{Kids:e}},t.fromDict=function(e,i){return new t(e,i)},t}(l1),nu=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.Opt=function(){return this.dict.lookupMaybe(K.of("Opt"),Ae,Qt,Ee)},t.prototype.setOpt=function(e){this.dict.set(K.of("Opt"),this.dict.context.obj(e))},t.prototype.getExportValues=function(){var e=this.Opt();if(e){if(e instanceof Ae||e instanceof Qt)return[e];for(var i=[],n=0,o=e.size();n<o;n++){var s=e.lookup(n);(s instanceof Ae||s instanceof Qt)&&i.push(s)}return i}},t.prototype.removeExportValue=function(e){var i=this.Opt();if(i)if(i instanceof Ae||i instanceof Qt){if(e!==0)throw new ll(e,0,0);this.setOpt([])}else{if(e<0||e>i.size())throw new ll(e,0,i.size());i.remove(e)}},t.prototype.normalizeExportValues=function(){for(var e,i,n,o,s=(e=this.getExportValues())!==null&&e!==void 0?e:[],a=[],l=this.getWidgets(),h=0,c=l.length;h<c;h++){var u=l[h],f=(i=s[h])!==null&&i!==void 0?i:Qt.fromText((o=(n=u.getOnValue())===null||n===void 0?void 0:n.decodeText())!==null&&o!==void 0?o:"");a.push(f)}this.setOpt(a)},t.prototype.addOpt=function(e,i){var n;this.normalizeExportValues();var o=e.decodeText(),s;if(i)for(var a=(n=this.getExportValues())!==null&&n!==void 0?n:[],l=0,h=a.length;l<h;l++){var c=a[l];c.decodeText()===o&&(s=l)}var u=this.Opt();return u.push(e),s??u.size()-1},t.prototype.addWidgetWithOpt=function(e,i,n){var o=this.addOpt(i,n),s=K.of(String(o));return this.addWidget(e),s},t}(_o),pl=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.setValue=function(e){var i,n=(i=this.getOnValue())!==null&&i!==void 0?i:K.of("Yes");if(e!==n&&e!==K.of("Off"))throw new Gc;this.dict.set(K.of("V"),e);for(var o=this.getWidgets(),s=0,a=o.length;s<a;s++){var l=o[s],h=l.getOnValue()===e?e:K.of("Off");l.setAppearanceState(h)}},t.prototype.getValue=function(){var e=this.V();return e instanceof K?e:K.of("Off")},t.prototype.getOnValue=function(){var e=this.getWidgets()[0];return e==null?void 0:e.getOnValue()},t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({FT:"Btn",Kids:[]}),n=e.register(i);return new t(i,n)},t}(nu),Xe=function(r){return 1<<r},hr;(function(r){r[r.ReadOnly=Xe(0)]="ReadOnly",r[r.Required=Xe(1)]="Required",r[r.NoExport=Xe(2)]="NoExport"})(hr||(hr={}));var Xi;(function(r){r[r.NoToggleToOff=Xe(14)]="NoToggleToOff",r[r.Radio=Xe(15)]="Radio",r[r.PushButton=Xe(16)]="PushButton",r[r.RadiosInUnison=Xe(25)]="RadiosInUnison"})(Xi||(Xi={}));var qe;(function(r){r[r.Multiline=Xe(12)]="Multiline",r[r.Password=Xe(13)]="Password",r[r.FileSelect=Xe(20)]="FileSelect",r[r.DoNotSpellCheck=Xe(22)]="DoNotSpellCheck",r[r.DoNotScroll=Xe(23)]="DoNotScroll",r[r.Comb=Xe(24)]="Comb",r[r.RichText=Xe(25)]="RichText"})(qe||(qe={}));var _e;(function(r){r[r.Combo=Xe(17)]="Combo",r[r.Edit=Xe(18)]="Edit",r[r.Sort=Xe(19)]="Sort",r[r.MultiSelect=Xe(21)]="MultiSelect",r[r.DoNotSpellCheck=Xe(22)]="DoNotSpellCheck",r[r.CommitOnSelChange=Xe(26)]="CommitOnSelChange"})(_e||(_e={}));var h1=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.setValues=function(e){if(this.hasFlag(_e.Combo)&&!this.hasFlag(_e.Edit)&&!this.valuesAreValid(e))throw new Gc;if(e.length===0&&this.dict.delete(K.of("V")),e.length===1&&this.dict.set(K.of("V"),e[0]),e.length>1){if(!this.hasFlag(_e.MultiSelect))throw new e4;this.dict.set(K.of("V"),this.dict.context.obj(e))}this.updateSelectedIndices(e)},t.prototype.valuesAreValid=function(e){for(var i=this.getOptions(),n=function(l,h){var c=e[l].decodeText();if(!i.find(function(u){return c===(u.display||u.value).decodeText()}))return{value:!1}},o=0,s=e.length;o<s;o++){var a=n(o);if(typeof a=="object")return a.value}return!0},t.prototype.updateSelectedIndices=function(e){if(e.length>1){for(var i=new Array(e.length),n=this.getOptions(),o=function(l,h){var c=e[l].decodeText();i[l]=n.findIndex(function(u){return c===(u.display||u.value).decodeText()})},s=0,a=e.length;s<a;s++)o(s,a);this.dict.set(K.of("I"),this.dict.context.obj(i.sort()))}else this.dict.delete(K.of("I"))},t.prototype.getValues=function(){var e=this.V();if(e instanceof Ae||e instanceof Qt)return[e];if(e instanceof Ee){for(var i=[],n=0,o=e.size();n<o;n++){var s=e.lookup(n);(s instanceof Ae||s instanceof Qt)&&i.push(s)}return i}return[]},t.prototype.Opt=function(){return this.dict.lookupMaybe(K.of("Opt"),Ae,Qt,Ee)},t.prototype.setOptions=function(e){for(var i=new Array(e.length),n=0,o=e.length;n<o;n++){var s=e[n],a=s.value,l=s.display;i[n]=this.dict.context.obj([a,l||a])}this.dict.set(K.of("Opt"),this.dict.context.obj(i))},t.prototype.getOptions=function(){var e=this.Opt();if(e instanceof Ae||e instanceof Qt)return[{value:e,display:e}];if(e instanceof Ee){for(var i=[],n=0,o=e.size();n<o;n++){var s=e.lookup(n);if((s instanceof Ae||s instanceof Qt)&&i.push({value:s,display:s}),s instanceof Ee&&s.size()>0){var a=s.lookup(0,Ae,Qt),l=s.lookupMaybe(1,Ae,Qt);i.push({value:a,display:l||a})}}return i}return[]},t}(_o),gl=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({FT:"Ch",Ff:_e.Combo,Kids:[]}),n=e.register(i);return new t(i,n)},t}(h1),ml=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.addField=function(e){var i=this.normalizedEntries().Kids;i==null||i.push(e)},t.prototype.normalizedEntries=function(){var e=this.Kids();return e||(e=this.dict.context.obj([]),this.dict.set(K.of("Kids"),e)),{Kids:e}},t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({}),n=e.register(i);return new t(i,n)},t}(l1),ou=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.fromDict=function(e,i){return new t(e,i)},t}(_o),vl=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.MaxLen=function(){var e=this.dict.lookup(K.of("MaxLen"));if(e instanceof te)return e},t.prototype.Q=function(){var e=this.dict.lookup(K.of("Q"));if(e instanceof te)return e},t.prototype.setMaxLength=function(e){this.dict.set(K.of("MaxLen"),te.of(e))},t.prototype.removeMaxLength=function(){this.dict.delete(K.of("MaxLen"))},t.prototype.getMaxLength=function(){var e;return(e=this.MaxLen())===null||e===void 0?void 0:e.asNumber()},t.prototype.setQuadding=function(e){this.dict.set(K.of("Q"),te.of(e))},t.prototype.getQuadding=function(){var e;return(e=this.Q())===null||e===void 0?void 0:e.asNumber()},t.prototype.setValue=function(e){this.dict.set(K.of("V"),e)},t.prototype.removeValue=function(){this.dict.delete(K.of("V"))},t.prototype.getValue=function(){var e=this.V();if(e instanceof Ae||e instanceof Qt)return e},t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({FT:"Tx",Kids:[]}),n=e.register(i);return new t(i,n)},t}(_o),yl=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({FT:"Btn",Ff:Xi.PushButton,Kids:[]}),n=e.register(i);return new t(i,n)},t}(nu),bl=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.setValue=function(e){var i=this.getOnValues();if(!i.includes(e)&&e!==K.of("Off"))throw new Gc;this.dict.set(K.of("V"),e);for(var n=this.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o],l=a.getOnValue()===e?e:K.of("Off");a.setAppearanceState(l)}},t.prototype.getValue=function(){var e=this.V();return e instanceof K?e:K.of("Off")},t.prototype.getOnValues=function(){for(var e=this.getWidgets(),i=[],n=0,o=e.length;n<o;n++){var s=e[n].getOnValue();s&&i.push(s)}return i},t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({FT:"Btn",Ff:Xi.Radio,Kids:[]}),n=e.register(i);return new t(i,n)},t}(nu),xl=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.fromDict=function(e,i){return new t(e,i)},t.create=function(e){var i=e.obj({FT:"Ch",Kids:[]}),n=e.register(i);return new t(i,n)},t}(h1),su=function(r){if(!r)return[];for(var t=[],e=0,i=r.size();e<i;e++){var n=r.get(e),o=r.lookup(e);n instanceof Ne&&o instanceof se&&t.push([c1(o,n),n])}return t},c1=function(r,t){var e=V4(r);return e?ml.fromDict(r,t):K4(r,t)},V4=function(r){var t=r.lookup(K.of("Kids"));if(t instanceof Ee)for(var e=0,i=t.size();e<i;e++){var n=t.lookup(e),o=n instanceof se&&n.has(K.of("T"));if(o)return!0}return!1},K4=function(r,t){var e=lu(r,K.of("FT")),i=r.context.lookup(e,K);return i===K.of("Btn")?X4(r,t):i===K.of("Ch")?Y4(r,t):i===K.of("Tx")?vl.fromDict(r,t):i===K.of("Sig")?ou.fromDict(r,t):_o.fromDict(r,t)},X4=function(r,t){var e,i=lu(r,K.of("Ff")),n=r.context.lookupMaybe(i,te),o=(e=n==null?void 0:n.asNumber())!==null&&e!==void 0?e:0;return au(o,Xi.PushButton)?yl.fromDict(r,t):au(o,Xi.Radio)?bl.fromDict(r,t):pl.fromDict(r,t)},Y4=function(r,t){var e,i=lu(r,K.of("Ff")),n=r.context.lookupMaybe(i,te),o=(e=n==null?void 0:n.asNumber())!==null&&e!==void 0?e:0;return au(o,_e.Combo)?gl.fromDict(r,t):xl.fromDict(r,t)},au=function(r,t){return(r&t)!==0},lu=function(r,t){var e;return u1(r,function(i){e||(e=i.get(t))}),e},u1=function(r,t){t(r);var e=r.lookupMaybe(K.of("Parent"),se);e&&u1(e,t)},wl=function(){function r(t){this.dict=t}return r.prototype.Fields=function(){var t=this.dict.lookup(K.of("Fields"));if(t instanceof Ee)return t},r.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,e=new Array(t.size()),i=0,n=t.size();i<n;i++){var o=t.get(i),s=t.lookup(i,se);e[i]=[c1(s,o),o]}return e},r.prototype.getAllFields=function(){var t=[],e=function(i){if(i)for(var n=0,o=i.length;n<o;n++){var s=i[n];t.push(s);var a=s[0];a instanceof ml&&e(su(a.Kids()))}};return e(this.getFields()),t},r.prototype.addField=function(t){var e=this.normalizedEntries().Fields;e==null||e.push(t)},r.prototype.removeField=function(t){var e=t.getParent(),i=e===void 0?this.normalizedEntries().Fields:e.Kids(),n=i==null?void 0:i.indexOf(t.ref);if(i===void 0||n===void 0)throw new Error("Tried to remove inexistent field "+t.getFullyQualifiedName());i.remove(n),e!==void 0&&i.size()===0&&this.removeField(e)},r.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(K.of("Fields"),t)),{Fields:t}},r.fromDict=function(t){return new r(t)},r.create=function(t){var e=t.obj({Fields:[]});return new r(e)},r}(),d1=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.Pages=function(){return this.lookup(K.of("Pages"),se)},t.prototype.AcroForm=function(){return this.lookupMaybe(K.of("AcroForm"),se)},t.prototype.getAcroForm=function(){var e=this.AcroForm();if(e)return wl.fromDict(e)},t.prototype.getOrCreateAcroForm=function(){var e=this.getAcroForm();if(!e){e=wl.create(this.context);var i=this.context.register(e.dict);this.set(K.of("AcroForm"),i)}return e},t.prototype.ViewerPreferences=function(){return this.lookupMaybe(K.of("ViewerPreferences"),se)},t.prototype.getViewerPreferences=function(){var e=this.ViewerPreferences();if(e)return a1.fromDict(e)},t.prototype.getOrCreateViewerPreferences=function(){var e=this.getViewerPreferences();if(!e){e=a1.create(this.context);var i=this.context.register(e.dict);this.set(K.of("ViewerPreferences"),i)}return e},t.prototype.insertLeafNode=function(e,i){var n=this.get(K.of("Pages")),o=this.Pages().insertLeafNode(e,i);return o||n},t.prototype.removeLeafNode=function(e){this.Pages().removeLeafNode(e)},t.withContextAndPages=function(e,i){var n=new Map;return n.set(K.of("Type"),K.of("Catalog")),n.set(K.of("Pages"),i),new t(n,e)},t.fromMapWithContext=function(e,i){return new t(e,i)},t}(se),f1=function(r){It(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.Parent=function(){return this.lookup(K.of("Parent"))},t.prototype.Kids=function(){return this.lookup(K.of("Kids"),Ee)},t.prototype.Count=function(){return this.lookup(K.of("Count"),te)},t.prototype.pushTreeNode=function(e){var i=this.Kids();i.push(e)},t.prototype.pushLeafNode=function(e){var i=this.Kids();this.insertLeafKid(i.size(),e)},t.prototype.insertLeafNode=function(e,i){var n=this.Kids(),o=this.Count().asNumber();if(i>o)throw new Pp(i,o);for(var s=i,a=0,l=n.size();a<l;a++){if(s===0){this.insertLeafKid(a,e);return}var h=n.get(a),c=this.context.lookup(h);if(c instanceof t){if(c.Count().asNumber()>s)return c.insertLeafNode(e,s)||h;s-=c.Count().asNumber()}c instanceof Br&&(s-=1)}if(s===0){this.insertLeafKid(n.size(),e);return}throw new Up(i,"insertLeafNode")},t.prototype.removeLeafNode=function(e,i){i===void 0&&(i=!0);var n=this.Kids(),o=this.Count().asNumber();if(e>=o)throw new Pp(e,o);for(var s=e,a=0,l=n.size();a<l;a++){var h=n.get(a),c=this.context.lookup(h);if(c instanceof t)if(c.Count().asNumber()>s){c.removeLeafNode(s,i),i&&c.Kids().size()===0&&n.remove(a);return}else s-=c.Count().asNumber();if(c instanceof Br)if(s===0){this.removeKid(a);return}else s-=1}throw new Up(e,"removeLeafNode")},t.prototype.ascend=function(e){e(this);var i=this.Parent();i&&i.ascend(e)},t.prototype.traverse=function(e){for(var i=this.Kids(),n=0,o=i.size();n<o;n++){var s=i.get(n),a=this.context.lookup(s);a instanceof t&&a.traverse(e),e(a,s)}},t.prototype.insertLeafKid=function(e,i){var n=this.Kids();this.ascend(function(o){var s=o.Count().asNumber()+1;o.set(K.of("Count"),te.of(s))}),n.insert(e,i)},t.prototype.removeKid=function(e){var i=this.Kids(),n=i.lookup(e);n instanceof Br&&this.ascend(function(o){var s=o.Count().asNumber()-1;o.set(K.of("Count"),te.of(s))}),i.remove(e)},t.withContext=function(e,i){var n=new Map;return n.set(K.of("Type"),K.of("Pages")),n.set(K.of("Kids"),e.obj([])),n.set(K.of("Count"),e.obj(0)),i&&n.set(K.of("Parent"),i),new t(n,e)},t.fromMapWithContext=function(e,i){return new t(e,i)},t}(se),pi=new Uint8Array(256);pi[Y.Zero]=1,pi[Y.One]=1,pi[Y.Two]=1,pi[Y.Three]=1,pi[Y.Four]=1,pi[Y.Five]=1,pi[Y.Six]=1,pi[Y.Seven]=1,pi[Y.Eight]=1,pi[Y.Nine]=1;var El=new Uint8Array(256);El[Y.Period]=1,El[Y.Plus]=1,El[Y.Minus]=1;for(var hu=new Uint8Array(256),Bs=0,Z4=256;Bs<Z4;Bs++)hu[Bs]=pi[Bs]||El[Bs]?1:0;var p1=Y.Newline,g1=Y.CarriageReturn,J4=function(){function r(t,e){e===void 0&&(e=!1),this.bytes=t,this.capNumbers=e}return r.prototype.parseRawInt=function(){for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(!pi[e])break;t+=Rr(this.bytes.next())}var i=Number(t);if(!t||!isFinite(i))throw new jp(this.bytes.position(),t);return i},r.prototype.parseRawNumber=function(){for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(!hu[e]||(t+=Rr(this.bytes.next()),e===Y.Period))break}for(;!this.bytes.done();){var e=this.bytes.peek();if(!pi[e])break;t+=Rr(this.bytes.next())}var i=Number(t);if(!t||!isFinite(i))throw new jp(this.bytes.position(),t);if(i>Number.MAX_SAFE_INTEGER)if(this.capNumbers){var n="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(n),Number.MAX_SAFE_INTEGER}else{var n="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(n)}return i},r.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&Ir[this.bytes.peek()];)this.bytes.next()},r.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===p1||t===g1)return;this.bytes.next()}},r.prototype.skipComment=function(){if(this.bytes.peek()!==Y.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===p1||t===g1)return!0;this.bytes.next()}return!0},r.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},r.prototype.matchKeyword=function(t){for(var e=this.bytes.offset(),i=0,n=t.length;i<n;i++)if(this.bytes.done()||this.bytes.next()!==t[i])return this.bytes.moveTo(e),!1;return!0},r}(),Tl=function(){function r(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return r.prototype.moveTo=function(t){this.idx=t},r.prototype.next=function(){var t=this.bytes[this.idx++];return t===Y.Newline?(this.line+=1,this.column=0):this.column+=1,t},r.prototype.assertNext=function(t){if(this.peek()!==t)throw new n4(this.position(),t,this.peek());return this.next()},r.prototype.peek=function(){return this.bytes[this.idx]},r.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},r.prototype.peekAt=function(t){return this.bytes[t]},r.prototype.done=function(){return this.idx>=this.length},r.prototype.offset=function(){return this.idx},r.prototype.slice=function(t,e){return this.bytes.slice(t,e)},r.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},r.of=function(t){return new r(t)},r.fromPDFRawStream=function(t){return r.of(o1(t).decode())},r}(),Q4=Y.Space,zs=Y.CarriageReturn,Ps=Y.Newline,Us=[Y.s,Y.t,Y.r,Y.e,Y.a,Y.m],Cl=[Y.e,Y.n,Y.d,Y.s,Y.t,Y.r,Y.e,Y.a,Y.m],Oe={header:[Y.Percent,Y.P,Y.D,Y.F,Y.Dash],eof:[Y.Percent,Y.Percent,Y.E,Y.O,Y.F],obj:[Y.o,Y.b,Y.j],endobj:[Y.e,Y.n,Y.d,Y.o,Y.b,Y.j],xref:[Y.x,Y.r,Y.e,Y.f],trailer:[Y.t,Y.r,Y.a,Y.i,Y.l,Y.e,Y.r],startxref:[Y.s,Y.t,Y.a,Y.r,Y.t,Y.x,Y.r,Y.e,Y.f],true:[Y.t,Y.r,Y.u,Y.e],false:[Y.f,Y.a,Y.l,Y.s,Y.e],null:[Y.n,Y.u,Y.l,Y.l],stream:Us,streamEOF1:be(Us,[Q4,zs,Ps]),streamEOF2:be(Us,[zs,Ps]),streamEOF3:be(Us,[zs]),streamEOF4:be(Us,[Ps]),endstream:Cl,EOF1endstream:be([zs,Ps],Cl),EOF2endstream:be([zs],Cl),EOF3endstream:be([Ps],Cl)},m1=function(r){It(t,r);function t(e,i,n){n===void 0&&(n=!1);var o=r.call(this,e,n)||this;return o.context=i,o}return t.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Oe.true))return ks.True;if(this.matchKeyword(Oe.false))return ks.False;if(this.matchKeyword(Oe.null))return Ai;var e=this.bytes.peek();if(e===Y.LessThan&&this.bytes.peekAhead(1)===Y.LessThan)return this.parseDictOrStream();if(e===Y.LessThan)return this.parseHexString();if(e===Y.LeftParen)return this.parseString();if(e===Y.ForwardSlash)return this.parseName();if(e===Y.LeftSquareBracket)return this.parseArray();if(hu[e])return this.parseNumberOrRef();throw new o4(this.bytes.position(),e)},t.prototype.parseNumberOrRef=function(){var e=this.parseRawNumber();this.skipWhitespaceAndComments();var i=this.bytes.offset();if(pi[this.bytes.peek()]){var n=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===Y.R)return this.bytes.assertNext(Y.R),Ne.of(e,n)}return this.bytes.moveTo(i),te.of(e)},t.prototype.parseHexString=function(){var e="";for(this.bytes.assertNext(Y.LessThan);!this.bytes.done()&&this.bytes.peek()!==Y.GreaterThan;)e+=Rr(this.bytes.next());return this.bytes.assertNext(Y.GreaterThan),Qt.of(e)},t.prototype.parseString=function(){for(var e=0,i=!1,n="";!this.bytes.done();){var o=this.bytes.next();if(n+=Rr(o),i||(o===Y.LeftParen&&(e+=1),o===Y.RightParen&&(e-=1)),o===Y.BackSlash?i=!i:i&&(i=!1),e===0)return Ae.of(n.substring(1,n.length-1))}throw new l4(this.bytes.position())},t.prototype.parseName=function(){this.bytes.assertNext(Y.ForwardSlash);for(var e="";!this.bytes.done();){var i=this.bytes.peek();if(Ir[i]||Ki[i])break;e+=Rr(i),this.bytes.next()}return K.of(e)},t.prototype.parseArray=function(){this.bytes.assertNext(Y.LeftSquareBracket),this.skipWhitespaceAndComments();for(var e=Ee.withContext(this.context);this.bytes.peek()!==Y.RightSquareBracket;){var i=this.parseObject();e.push(i),this.skipWhitespaceAndComments()}return this.bytes.assertNext(Y.RightSquareBracket),e},t.prototype.parseDict=function(){this.bytes.assertNext(Y.LessThan),this.bytes.assertNext(Y.LessThan),this.skipWhitespaceAndComments();for(var e=new Map;!this.bytes.done()&&this.bytes.peek()!==Y.GreaterThan&&this.bytes.peekAhead(1)!==Y.GreaterThan;){var i=this.parseName(),n=this.parseObject();e.set(i,n),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(Y.GreaterThan),this.bytes.assertNext(Y.GreaterThan);var o=e.get(K.of("Type"));return o===K.of("Catalog")?d1.fromMapWithContext(e,this.context):o===K.of("Pages")?f1.fromMapWithContext(e,this.context):o===K.of("Page")?Br.fromMapWithContext(e,this.context):se.fromMapWithContext(e,this.context)},t.prototype.parseDictOrStream=function(){var e=this.bytes.position(),i=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Oe.streamEOF1)&&!this.matchKeyword(Oe.streamEOF2)&&!this.matchKeyword(Oe.streamEOF3)&&!this.matchKeyword(Oe.streamEOF4)&&!this.matchKeyword(Oe.stream))return i;var n=this.bytes.offset(),o,s=i.get(K.of("Length"));s instanceof te?(o=n+s.asNumber(),this.bytes.moveTo(o),this.skipWhitespaceAndComments(),this.matchKeyword(Oe.endstream)||(this.bytes.moveTo(n),o=this.findEndOfStreamFallback(e))):o=this.findEndOfStreamFallback(e);var a=this.bytes.slice(n,o);return Ms.of(i,a)},t.prototype.findEndOfStreamFallback=function(e){for(var i=1,n=this.bytes.offset();!this.bytes.done()&&(n=this.bytes.offset(),this.matchKeyword(Oe.stream)?i+=1:this.matchKeyword(Oe.EOF1endstream)||this.matchKeyword(Oe.EOF2endstream)||this.matchKeyword(Oe.EOF3endstream)||this.matchKeyword(Oe.endstream)?i-=1:this.bytes.next(),i!==0););if(i!==0)throw new a4(e);return n},t.forBytes=function(e,i,n){return new t(Tl.of(e),i,n)},t.forByteStream=function(e,i,n){return n===void 0&&(n=!1),new t(e,i,n)},t}(J4),$4=function(r){It(t,r);function t(e,i){var n=r.call(this,Tl.fromPDFRawStream(e),e.dict.context)||this,o=e.dict;return n.alreadyParsed=!1,n.shouldWaitForTick=i||function(){return!1},n.firstOffset=o.lookup(K.of("First"),te).asNumber(),n.objectCount=o.lookup(K.of("N"),te).asNumber(),n}return t.prototype.parseIntoContext=function(){return ae(this,void 0,void 0,function(){var e,i,n,o,s,a,l,h;return le(this,function(c){switch(c.label){case 0:if(this.alreadyParsed)throw new Hc("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,e=this.parseOffsetsAndObjectNumbers(),i=0,n=e.length,c.label=1;case 1:return i<n?(o=e[i],s=o.objectNumber,a=o.offset,this.bytes.moveTo(this.firstOffset+a),l=this.parseObject(),h=Ne.of(s,0),this.context.assign(h,l),this.shouldWaitForTick()?[4,To()]:[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.parseOffsetsAndObjectNumbers=function(){for(var e=[],i=0,n=this.objectCount;i<n;i++){this.skipWhitespaceAndComments();var o=this.parseRawInt();this.skipWhitespaceAndComments();var s=this.parseRawInt();e.push({objectNumber:o,offset:s})}return e},t.forStream=function(e,i){return new t(e,i)},t}(m1),t5=function(){function r(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=Tl.fromPDFRawStream(t),this.context=this.dict.context;var e=this.dict.lookup(K.of("Size"),te),i=this.dict.lookup(K.of("Index"));if(i instanceof Ee){this.subsections=[];for(var n=0,o=i.size();n<o;n+=2){var s=i.lookup(n+0,te).asNumber(),a=i.lookup(n+1,te).asNumber();this.subsections.push({firstObjectNumber:s,length:a})}}else this.subsections=[{firstObjectNumber:0,length:e.asNumber()}];var l=this.dict.lookup(K.of("W"),Ee);this.byteWidths=[-1,-1,-1];for(var n=0,o=l.size();n<o;n++)this.byteWidths[n]=l.lookup(n,te).asNumber()}return r.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new Hc("PDFXRefStreamParser","parseIntoContext");this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(K.of("Root")),Encrypt:this.dict.get(K.of("Encrypt")),Info:this.dict.get(K.of("Info")),ID:this.dict.get(K.of("ID"))};var t=this.parseEntries();return t},r.prototype.parseEntries=function(){for(var t=[],e=this.byteWidths,i=e[0],n=e[1],o=e[2],s=0,a=this.subsections.length;s<a;s++)for(var l=this.subsections[s],h=l.firstObjectNumber,c=l.length,u=0;u<c;u++){for(var f=0,d=0,p=i;d<p;d++)f=f<<8|this.bytes.next();for(var m=0,d=0,p=n;d<p;d++)m=m<<8|this.bytes.next();for(var v=0,d=0,p=o;d<p;d++)v=v<<8|this.bytes.next();i===0&&(f=1);var g=h+u,b={ref:Ne.of(g,v),offset:m,deleted:f===0,inObjectStream:f===2};t.push(b)}return t},r.forStream=function(t){return new r(t)},r}(),e5=function(r){It(t,r);function t(e,i,n,o){i===void 0&&(i=1/0),n===void 0&&(n=!1),o===void 0&&(o=!1);var s=r.call(this,Tl.of(e),Jc.create(),o)||this;return s.alreadyParsed=!1,s.parsedObjects=0,s.shouldWaitForTick=function(){return s.parsedObjects+=1,s.parsedObjects%s.objectsPerTick===0},s.objectsPerTick=i,s.throwOnInvalidObject=n,s}return t.prototype.parseDocument=function(){return ae(this,void 0,void 0,function(){var e,i;return le(this,function(n){switch(n.label){case 0:if(this.alreadyParsed)throw new Hc("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),n.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(n.sent(),i=this.bytes.offset(),i===e)throw new h4(this.bytes.position());return e=i,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(Ne.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(Ne.of(0))),[2,this.context]}})})},t.prototype.maybeRecoverRoot=function(){var e=function(c){return c instanceof se&&c.lookup(K.of("Type"))===K.of("Catalog")},i=this.context.lookup(this.context.trailerInfo.Root);if(!e(i))for(var n=this.context.enumerateIndirectObjects(),o=0,s=n.length;o<s;o++){var a=n[o],l=a[0],h=a[1];e(h)&&(this.context.trailerInfo.Root=l)}},t.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(Oe.header)){var e=this.parseRawInt();this.bytes.assertNext(Y.Period);var i=this.parseRawInt(),n=hl.forVersion(e,i);return this.skipBinaryHeaderComment(),n}this.bytes.next()}throw new c4(this.bytes.position())},t.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var e=this.parseRawInt();this.skipWhitespaceAndComments();var i=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Oe.obj))throw new u4(this.bytes.position(),Oe.obj);return Ne.of(e,i)},t.prototype.matchIndirectObjectHeader=function(){var e=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch{return this.bytes.moveTo(e),!1}},t.prototype.parseIndirectObject=function(){return ae(this,void 0,void 0,function(){var e,i;return le(this,function(n){switch(n.label){case 0:return e=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),i=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(Oe.endobj),i instanceof Ms&&i.dict.lookup(K.of("Type"))===K.of("ObjStm")?[4,$4.forStream(i,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return n.sent(),[3,3];case 2:i instanceof Ms&&i.dict.lookup(K.of("Type"))===K.of("XRef")?t5.forStream(i).parseIntoContext():this.context.assign(e,i),n.label=3;case 3:return[2,e]}})})},t.prototype.tryToParseInvalidIndirectObject=function(){var e=this.bytes.position(),i="Trying to parse invalid object: "+JSON.stringify(e)+")";if(this.throwOnInvalidObject)throw new Error(i);console.warn(i);var n=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+n),this.skipWhitespaceAndComments();for(var o=this.bytes.offset(),s=!0;!this.bytes.done()&&(this.matchKeyword(Oe.endobj)&&(s=!1),!!s);)this.bytes.next();if(s)throw new s4(e);var a=this.bytes.offset()-Oe.endobj.length,l=Zp.of(this.bytes.slice(o,a));return this.context.assign(n,l),n},t.prototype.parseIndirectObjects=function(){return ae(this,void 0,void 0,function(){var e;return le(this,function(i){switch(i.label){case 0:this.skipWhitespaceAndComments(),i.label=1;case 1:if(!(!this.bytes.done()&&pi[this.bytes.peek()]))return[3,8];e=this.bytes.offset(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return i.sent(),[3,5];case 4:return i.sent(),this.bytes.moveTo(e),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,To()]:[3,7];case 6:i.sent(),i.label=7;case 7:return[3,1];case 8:return[2]}})})},t.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(Oe.xref)){this.skipWhitespaceAndComments();for(var e=-1,i=Kp.createEmpty();!this.bytes.done()&&pi[this.bytes.peek()];){var n=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.parseRawInt();this.skipWhitespaceAndComments();var s=this.bytes.peek();if(s===Y.n||s===Y.f){var a=Ne.of(e,o);this.bytes.next()===Y.n?i.addEntry(a,n):i.addDeletedEntry(a,n),e+=1}else e=n;this.skipWhitespaceAndComments()}return i}},t.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(Oe.trailer)){this.skipWhitespaceAndComments();var e=this.parseDict(),i=this.context;i.trailerInfo={Root:e.get(K.of("Root"))||i.trailerInfo.Root,Encrypt:e.get(K.of("Encrypt"))||i.trailerInfo.Encrypt,Info:e.get(K.of("Info"))||i.trailerInfo.Info,ID:e.get(K.of("ID"))||i.trailerInfo.ID}}},t.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(Oe.startxref)){this.skipWhitespaceAndComments();var e=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(Oe.eof),this.skipWhitespaceAndComments(),this.matchKeyword(Oe.eof),this.skipWhitespaceAndComments(),Qc.forLastCrossRefSectionOffset(e)}},t.prototype.parseDocumentSection=function(){return ae(this,void 0,void 0,function(){return le(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(),i=this.bytes.peek(),n=i>=Y.Space&&i<=Y.Tilde;if(n&&(this.matchKeyword(Oe.xref)||this.matchKeyword(Oe.trailer)||this.matchKeyword(Oe.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{this.bytes.next(),this.skipWhitespaceAndComments()}},t.forBytesWithOptions=function(e,i,n,o){return new t(e,i,n,o)},t}(m1),Er=function(r){return 1<<r},js;(function(r){r[r.Invisible=Er(0)]="Invisible",r[r.Hidden=Er(1)]="Hidden",r[r.Print=Er(2)]="Print",r[r.NoZoom=Er(3)]="NoZoom",r[r.NoRotate=Er(4)]="NoRotate",r[r.NoView=Er(5)]="NoView",r[r.ReadOnly=Er(6)]="ReadOnly",r[r.Locked=Er(7)]="Locked",r[r.ToggleNoView=Er(8)]="ToggleNoView",r[r.LockedContents=Er(9)]="LockedContents"})(js||(js={}));var Sl=function(r){return r instanceof K?r:K.of(r)},ee=function(r){return r instanceof te?r:te.of(r)},he=function(r){return r instanceof te?r.asNumber():r},qs;(function(r){r.Degrees="degrees",r.Radians="radians"})(qs||(qs={}));var $t=function(r){return ct(r,"degreeAngle",["number"]),{type:qs.Degrees,angle:r}},v1=qs.Radians,y1=qs.Degrees,b1=function(r){return r*Math.PI/180},i5=function(r){return r*180/Math.PI},hi=function(r){return r.type===v1?r.angle:r.type===y1?b1(r.angle):Ns("Invalid rotation: "+JSON.stringify(r))},x1=function(r){return r.type===v1?i5(r.angle):r.type===y1?r.angle:Ns("Invalid rotation: "+JSON.stringify(r))},zr=function(r){r===void 0&&(r=0);var t=r/90%4;return t===0?0:t===1?90:t===2?180:t===3?270:0},Hn=function(r,t){t===void 0&&(t=0);var e=zr(t);return e===90||e===270?{width:r.height,height:r.width}:{width:r.width,height:r.height}},r5=function(r,t,e){t===void 0&&(t=0),e===void 0&&(e=0);var i=r.x,n=r.y,o=r.width,s=r.height,a=zr(e),l=t/2;return a===0?{x:i-l,y:n-l,width:o,height:s}:a===90?{x:i-s+l,y:n-l,width:s,height:o}:a===180?{x:i-o+l,y:n-s+l,width:o,height:s}:a===270?{x:i-l,y:n-o+l,width:s,height:o}:{x:i-l,y:n-l,width:o,height:s}},w1=function(){return me.of(xe.ClipNonZero)},Nl=Math.cos,Al=Math.sin,_l=Math.tan,kl=function(r,t,e,i,n,o){return me.of(xe.ConcatTransformationMatrix,[ee(r),ee(t),ee(e),ee(i),ee(n),ee(o)])},Yi=function(r,t){return kl(1,0,0,1,r,t)},Ws=function(r,t){return kl(r,0,0,t,0,0)},ko=function(r){return kl(Nl(he(r)),Al(he(r)),-Al(he(r)),Nl(he(r)),0,0)},Ll=function(r){return ko(b1(he(r)))},cu=function(r,t){return kl(1,_l(he(r)),_l(he(t)),1,0,0)},Ml=function(r,t){return me.of(xe.SetLineDashPattern,["["+r.map(ee).join(" ")+"]",ee(t)])},Lo;(function(r){r[r.Butt=0]="Butt",r[r.Round=1]="Round",r[r.Projecting=2]="Projecting"})(Lo||(Lo={}));var Dl=function(r){return me.of(xe.SetLineCapStyle,[ee(r)])},E1;(function(r){r[r.Miter=0]="Miter",r[r.Round=1]="Round",r[r.Bevel=2]="Bevel"})(E1||(E1={}));var Gn=function(r){return me.of(xe.SetGraphicsStateParams,[Sl(r)])},ti=function(){return me.of(xe.PushGraphicsState)},ei=function(){return me.of(xe.PopGraphicsState)},Hs=function(r){return me.of(xe.SetLineWidth,[ee(r)])},Ii=function(r,t,e,i,n,o){return me.of(xe.AppendBezierCurve,[ee(r),ee(t),ee(e),ee(i),ee(n),ee(o)])},Ol=function(r,t,e,i){return me.of(xe.CurveToReplicateInitialPoint,[ee(r),ee(t),ee(e),ee(i)])},an=function(){return me.of(xe.ClosePath)},Tr=function(r,t){return me.of(xe.MoveTo,[ee(r),ee(t)])},si=function(r,t){return me.of(xe.LineTo,[ee(r),ee(t)])},Gs=function(){return me.of(xe.StrokePath)},uu=function(){return me.of(xe.FillNonZero)},du=function(){return me.of(xe.FillNonZeroAndStroke)},T1=function(){return me.of(xe.EndPath)},n5=function(){return me.of(xe.NextLine)},C1=function(r){return me.of(xe.ShowText,[r])},S1=function(){return me.of(xe.BeginText)},N1=function(){return me.of(xe.EndText)},fu=function(r,t){return me.of(xe.SetFontAndSize,[Sl(r),ee(t)])},o5=function(r){return me.of(xe.SetTextLineHeight,[ee(r)])},A1;(function(r){r[r.Fill=0]="Fill",r[r.Outline=1]="Outline",r[r.FillAndOutline=2]="FillAndOutline",r[r.Invisible=3]="Invisible",r[r.FillAndClip=4]="FillAndClip",r[r.OutlineAndClip=5]="OutlineAndClip",r[r.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",r[r.Clip=7]="Clip"})(A1||(A1={}));var s5=function(r,t,e,i,n,o){return me.of(xe.SetTextMatrix,[ee(r),ee(t),ee(e),ee(i),ee(n),ee(o)])},_1=function(r,t,e,i,n){return s5(Nl(he(r)),Al(he(r))+_l(he(t)),-Al(he(r))+_l(he(e)),Nl(he(r)),i,n)},pu=function(r){return me.of(xe.DrawObject,[Sl(r)])},a5=function(r){return me.of(xe.NonStrokingColorGray,[ee(r)])},l5=function(r){return me.of(xe.StrokingColorGray,[ee(r)])},h5=function(r,t,e){return me.of(xe.NonStrokingColorRgb,[ee(r),ee(t),ee(e)])},c5=function(r,t,e){return me.of(xe.StrokingColorRgb,[ee(r),ee(t),ee(e)])},u5=function(r,t,e,i){return me.of(xe.NonStrokingColorCmyk,[ee(r),ee(t),ee(e),ee(i)])},d5=function(r,t,e,i){return me.of(xe.StrokingColorCmyk,[ee(r),ee(t),ee(e),ee(i)])},k1=function(r){return me.of(xe.BeginMarkedContent,[Sl(r)])},L1=function(){return me.of(xe.EndMarkedContent)},ln;(function(r){r.Grayscale="Grayscale",r.RGB="RGB",r.CMYK="CMYK"})(ln||(ln={}));var M1=function(r){return Ri(r,"gray",0,1),{type:ln.Grayscale,gray:r}},ke=function(r,t,e){return Ri(r,"red",0,1),Ri(t,"green",0,1),Ri(e,"blue",0,1),{type:ln.RGB,red:r,green:t,blue:e}},D1=function(r,t,e,i){return Ri(r,"cyan",0,1),Ri(t,"magenta",0,1),Ri(e,"yellow",0,1),Ri(i,"key",0,1),{type:ln.CMYK,cyan:r,magenta:t,yellow:e,key:i}},gu=ln.Grayscale,mu=ln.RGB,vu=ln.CMYK,Vn=function(r){return r.type===gu?a5(r.gray):r.type===mu?h5(r.red,r.green,r.blue):r.type===vu?u5(r.cyan,r.magenta,r.yellow,r.key):Ns("Invalid color: "+JSON.stringify(r))},Vs=function(r){return r.type===gu?l5(r.gray):r.type===mu?c5(r.red,r.green,r.blue):r.type===vu?d5(r.cyan,r.magenta,r.yellow,r.key):Ns("Invalid color: "+JSON.stringify(r))},Ei=function(r,t){return t===void 0&&(t=1),(r==null?void 0:r.length)===1?M1(r[0]*t):(r==null?void 0:r.length)===3?ke(r[0]*t,r[1]*t,r[2]*t):(r==null?void 0:r.length)===4?D1(r[0]*t,r[1]*t,r[2]*t,r[3]*t):void 0},O1=function(r){return r.type===gu?[r.gray]:r.type===mu?[r.red,r.green,r.blue]:r.type===vu?[r.cyan,r.magenta,r.yellow,r.key]:Ns("Invalid color: "+JSON.stringify(r))},Xt=0,Yt=0,ve=0,ye=0,Ks=0,Xs=0,R1=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]]),f5=function(r){for(var t,e=[],i=[],n="",o=!1,s=0,a=0,l=r;a<l.length;a++){var h=l[a];if(R1.has(h))s=R1.get(h),t&&(n.length>0&&(i[i.length]=+n),e[e.length]={cmd:t,args:i},i=[],n="",o=!1),t=h;else if([" ",","].includes(h)||h==="-"&&n.length>0&&n[n.length-1]!=="e"||h==="."&&o){if(n.length===0)continue;i.length===s?(e[e.length]={cmd:t,args:i},i=[+n],t==="M"&&(t="L"),t==="m"&&(t="l")):i[i.length]=+n,o=h===".",n=["-","."].includes(h)?h:""}else n+=h,h==="."&&(o=!0)}return n.length>0&&(i.length===s?(e[e.length]={cmd:t,args:i},i=[+n],t==="M"&&(t="L"),t==="m"&&(t="l")):i[i.length]=+n),e[e.length]={cmd:t,args:i},e},p5=function(r){Xt=Yt=ve=ye=Ks=Xs=0;for(var t=[],e=0;e<r.length;e++){var i=r[e];if(i.cmd&&typeof F1[i.cmd]=="function"){var n=F1[i.cmd](i.args);Array.isArray(n)?t=t.concat(n):t.push(n)}}return t},F1={M:function(r){return Xt=r[0],Yt=r[1],ve=ye=null,Ks=Xt,Xs=Yt,Tr(Xt,Yt)},m:function(r){return Xt+=r[0],Yt+=r[1],ve=ye=null,Ks=Xt,Xs=Yt,Tr(Xt,Yt)},C:function(r){return Xt=r[4],Yt=r[5],ve=r[2],ye=r[3],Ii(r[0],r[1],r[2],r[3],r[4],r[5])},c:function(r){var t=Ii(r[0]+Xt,r[1]+Yt,r[2]+Xt,r[3]+Yt,r[4]+Xt,r[5]+Yt);return ve=Xt+r[2],ye=Yt+r[3],Xt+=r[4],Yt+=r[5],t},S:function(r){(ve===null||ye===null)&&(ve=Xt,ye=Yt);var t=Ii(Xt-(ve-Xt),Yt-(ye-Yt),r[0],r[1],r[2],r[3]);return ve=r[0],ye=r[1],Xt=r[2],Yt=r[3],t},s:function(r){(ve===null||ye===null)&&(ve=Xt,ye=Yt);var t=Ii(Xt-(ve-Xt),Yt-(ye-Yt),Xt+r[0],Yt+r[1],Xt+r[2],Yt+r[3]);return ve=Xt+r[0],ye=Yt+r[1],Xt+=r[2],Yt+=r[3],t},Q:function(r){return ve=r[0],ye=r[1],Xt=r[2],Yt=r[3],Ol(r[0],r[1],Xt,Yt)},q:function(r){var t=Ol(r[0]+Xt,r[1]+Yt,r[2]+Xt,r[3]+Yt);return ve=Xt+r[0],ye=Yt+r[1],Xt+=r[2],Yt+=r[3],t},T:function(r){ve===null||ye===null?(ve=Xt,ye=Yt):(ve=Xt-(ve-Xt),ye=Yt-(ye-Yt));var t=Ol(ve,ye,r[0],r[1]);return ve=Xt-(ve-Xt),ye=Yt-(ye-Yt),Xt=r[0],Yt=r[1],t},t:function(r){ve===null||ye===null?(ve=Xt,ye=Yt):(ve=Xt-(ve-Xt),ye=Yt-(ye-Yt));var t=Ol(ve,ye,Xt+r[0],Yt+r[1]);return Xt+=r[0],Yt+=r[1],t},A:function(r){var t=I1(Xt,Yt,r);return Xt=r[5],Yt=r[6],t},a:function(r){r[5]+=Xt,r[6]+=Yt;var t=I1(Xt,Yt,r);return Xt=r[5],Yt=r[6],t},L:function(r){return Xt=r[0],Yt=r[1],ve=ye=null,si(Xt,Yt)},l:function(r){return Xt+=r[0],Yt+=r[1],ve=ye=null,si(Xt,Yt)},H:function(r){return Xt=r[0],ve=ye=null,si(Xt,Yt)},h:function(r){return Xt+=r[0],ve=ye=null,si(Xt,Yt)},V:function(r){return Yt=r[0],ve=ye=null,si(Xt,Yt)},v:function(r){return Yt+=r[0],ve=ye=null,si(Xt,Yt)},Z:function(){var r=an();return Xt=Ks,Yt=Xs,r},z:function(){var r=an();return Xt=Ks,Yt=Xs,r}},I1=function(r,t,e){for(var i=e[0],n=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],c=g5(l,h,i,n,s,a,o,r,t),u=[],f=0,d=c;f<d.length;f++){var p=d[f],m=m5.apply(void 0,p);u.push(Ii.apply(void 0,m))}return u},g5=function(r,t,e,i,n,o,s,a,l){var h=s*(Math.PI/180),c=Math.sin(h),u=Math.cos(h);e=Math.abs(e),i=Math.abs(i),ve=u*(a-r)*.5+c*(l-t)*.5,ye=u*(l-t)*.5-c*(a-r)*.5;var f=ve*ve/(e*e)+ye*ye/(i*i);f>1&&(f=Math.sqrt(f),e*=f,i*=f);var d=u/e,p=c/e,m=-c/i,v=u/i,g=d*a+p*l,b=m*a+v*l,y=d*r+p*t,x=m*r+v*t,C=(y-g)*(y-g)+(x-b)*(x-b),R=1/C-.25;R<0&&(R=0);var F=Math.sqrt(R);o===n&&(F=-F);var U=.5*(g+y)-F*(x-b),T=.5*(b+x)+F*(y-g),H=Math.atan2(b-T,g-U),_=Math.atan2(x-T,y-U),k=_-H;k<0&&o===1?k+=2*Math.PI:k>0&&o===0&&(k-=2*Math.PI);for(var O=Math.ceil(Math.abs(k/(Math.PI*.5+.001))),N=[],X=0;X<O;X++){var Z=H+X*k/O,W=H+(X+1)*k/O;N[X]=[U,T,Z,W,e,i,c,u]}return N},m5=function(r,t,e,i,n,o,s,a){var l=a*n,h=-s*o,c=s*n,u=a*o,f=.5*(i-e),d=8/3*Math.sin(f*.5)*Math.sin(f*.5)/Math.sin(f),p=r+Math.cos(e)-d*Math.sin(e),m=t+Math.sin(e)+d*Math.cos(e),v=r+Math.cos(i),g=t+Math.sin(i),b=v+d*Math.sin(i),y=g-d*Math.cos(i),x=[l*p+h*m,c*p+u*m,l*b+h*y,c*b+u*y,l*v+h*g,c*v+u*g];return x},v5=function(r){return p5(f5(r))},y5=function(r,t){for(var e=[ti(),t.graphicsState&&Gn(t.graphicsState),S1(),Vn(t.color),fu(t.font,t.size),o5(t.lineHeight),_1(hi(t.rotate),hi(t.xSkew),hi(t.ySkew),t.x,t.y)].filter(Boolean),i=0,n=r.length;i<n;i++)e.push(C1(r[i]),n5());return e.push(N1(),ei()),e},B1=function(r,t){return[ti(),t.graphicsState&&Gn(t.graphicsState),Yi(t.x,t.y),ko(hi(t.rotate)),Ws(t.width,t.height),cu(hi(t.xSkew),hi(t.ySkew)),pu(r),ei()].filter(Boolean)},b5=function(r,t){return[ti(),t.graphicsState&&Gn(t.graphicsState),Yi(t.x,t.y),ko(hi(t.rotate)),Ws(t.xScale,t.yScale),cu(hi(t.xSkew),hi(t.ySkew)),pu(r),ei()].filter(Boolean)},x5=function(r){var t,e;return[ti(),r.graphicsState&&Gn(r.graphicsState),r.color&&Vs(r.color),Hs(r.thickness),Ml((t=r.dashArray)!==null&&t!==void 0?t:[],(e=r.dashPhase)!==null&&e!==void 0?e:0),Tr(r.start.x,r.start.y),r.lineCap&&Dl(r.lineCap),Tr(r.start.x,r.start.y),si(r.end.x,r.end.y),Gs(),ei()].filter(Boolean)},Mo=function(r){var t,e;return[ti(),r.graphicsState&&Gn(r.graphicsState),r.color&&Vn(r.color),r.borderColor&&Vs(r.borderColor),Hs(r.borderWidth),r.borderLineCap&&Dl(r.borderLineCap),Ml((t=r.borderDashArray)!==null&&t!==void 0?t:[],(e=r.borderDashPhase)!==null&&e!==void 0?e:0),Yi(r.x,r.y),ko(hi(r.rotate)),cu(hi(r.xSkew),hi(r.ySkew)),Tr(0,0),si(0,r.height),si(r.width,r.height),si(r.width,0),an(),r.color&&r.borderWidth?du():r.color?uu():r.borderColor?Gs():an(),ei()].filter(Boolean)},Rl=4*((Math.sqrt(2)-1)/3),w5=function(r){var t=he(r.x),e=he(r.y),i=he(r.xScale),n=he(r.yScale);t-=i,e-=n;var o=i*Rl,s=n*Rl,a=t+i*2,l=e+n*2,h=t+i,c=e+n;return[ti(),Tr(t,c),Ii(t,c-s,h-o,e,h,e),Ii(h+o,e,a,c-s,a,c),Ii(a,c+s,h+o,l,h,l),Ii(h-o,l,t,c+s,t,c),ei()]},E5=function(r){var t=he(r.x),e=he(r.y),i=he(r.xScale),n=he(r.yScale),o=-i,s=-n,a=i*Rl,l=n*Rl,h=o+i*2,c=s+n*2,u=o+i,f=s+n;return[Yi(t,e),ko(hi(r.rotate)),Tr(o,f),Ii(o,f-l,u-a,s,u,s),Ii(u+a,s,h,f-l,h,f),Ii(h,f+l,u+a,c,u,c),Ii(u-a,c,o,f+l,o,f)]},yu=function(r){var t,e,i;return be([ti(),r.graphicsState&&Gn(r.graphicsState),r.color&&Vn(r.color),r.borderColor&&Vs(r.borderColor),Hs(r.borderWidth),r.borderLineCap&&Dl(r.borderLineCap),Ml((t=r.borderDashArray)!==null&&t!==void 0?t:[],(e=r.borderDashPhase)!==null&&e!==void 0?e:0)],r.rotate===void 0?w5({x:r.x,y:r.y,xScale:r.xScale,yScale:r.yScale}):E5({x:r.x,y:r.y,xScale:r.xScale,yScale:r.yScale,rotate:(i=r.rotate)!==null&&i!==void 0?i:$t(0)}),[r.color&&r.borderWidth?du():r.color?uu():r.borderColor?Gs():an(),ei()]).filter(Boolean)},T5=function(r,t){var e,i,n;return be([ti(),t.graphicsState&&Gn(t.graphicsState),Yi(t.x,t.y),ko(hi((e=t.rotate)!==null&&e!==void 0?e:$t(0))),t.scale?Ws(t.scale,-t.scale):Ws(1,-1),t.color&&Vn(t.color),t.borderColor&&Vs(t.borderColor),t.borderWidth&&Hs(t.borderWidth),t.borderLineCap&&Dl(t.borderLineCap),Ml((i=t.borderDashArray)!==null&&i!==void 0?i:[],(n=t.borderDashPhase)!==null&&n!==void 0?n:0)],v5(r),[t.color&&t.borderWidth?du():t.color?uu():t.borderColor?Gs():an(),ei()]).filter(Boolean)},C5=function(r){var t=he(r.size),e=-1+.75,i=-1+.51,n=1-.525,o=1-.31,s=-1+.325,a=.3995/(n-i)+i;return[ti(),r.color&&Vs(r.color),Hs(r.thickness),Yi(r.x,r.y),Tr(s*t,a*t),si(e*t,i*t),si(o*t,n*t),Gs(),ei()].filter(Boolean)},hn=function(r){return r.rotation===0?[Yi(0,0),Ll(0)]:r.rotation===90?[Yi(r.width,0),Ll(90)]:r.rotation===180?[Yi(r.width,r.height),Ll(180)]:r.rotation===270?[Yi(0,r.height),Ll(270)]:[]},Fl=function(r){var t=Mo({x:r.x,y:r.y,width:r.width,height:r.height,borderWidth:r.borderWidth,color:r.color,borderColor:r.borderColor,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)});if(!r.filled)return t;var e=he(r.width),i=he(r.height),n=Math.min(e,i)/2,o=C5({x:e/2,y:i/2,size:n,thickness:r.thickness,color:r.markColor});return be([ti()],t,o,[ei()])},Il=function(r){var t=he(r.width),e=he(r.height),i=Math.min(t,e)/2,n=yu({x:r.x,y:r.y,xScale:i,yScale:i,color:r.color,borderColor:r.borderColor,borderWidth:r.borderWidth});if(!r.filled)return n;var o=yu({x:r.x,y:r.y,xScale:i*.45,yScale:i*.45,color:r.dotColor,borderColor:void 0,borderWidth:0});return be([ti()],n,o,[ei()])},z1=function(r){var t=he(r.x),e=he(r.y),i=he(r.width),n=he(r.height),o=Mo({x:t,y:e,width:i,height:n,borderWidth:r.borderWidth,color:r.color,borderColor:r.borderColor,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)}),s=bu(r.textLines,{color:r.textColor,font:r.font,size:r.fontSize,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)});return be([ti()],o,s,[ei()])},bu=function(r,t){for(var e=[S1(),Vn(t.color),fu(t.font,t.size)],i=0,n=r.length;i<n;i++){var o=r[i],s=o.encoded,a=o.x,l=o.y;e.push(_1(hi(t.rotate),hi(t.xSkew),hi(t.ySkew),a,l),C1(s))}return e.push(N1()),e},P1=function(r){var t=he(r.x),e=he(r.y),i=he(r.width),n=he(r.height),o=he(r.borderWidth),s=he(r.padding),a=t+o/2+s,l=e+o/2+s,h=i-(o/2+s)*2,c=n-(o/2+s)*2,u=[Tr(a,l),si(a,l+c),si(a+h,l+c),si(a+h,l),an(),w1(),T1()],f=Mo({x:t,y:e,width:i,height:n,borderWidth:r.borderWidth,color:r.color,borderColor:r.borderColor,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)}),d=bu(r.textLines,{color:r.textColor,font:r.font,size:r.fontSize,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)}),p=be([k1("Tx"),ti()],d,[ei(),L1()]);return be([ti()],f,u,p,[ei()])},S5=function(r){for(var t=he(r.x),e=he(r.y),i=he(r.width),n=he(r.height),o=he(r.lineHeight),s=he(r.borderWidth),a=he(r.padding),l=t+s/2+a,h=e+s/2+a,c=i-(s/2+a)*2,u=n-(s/2+a)*2,f=[Tr(l,h),si(l,h+u),si(l+c,h+u),si(l+c,h),an(),w1(),T1()],d=Mo({x:t,y:e,width:i,height:n,borderWidth:r.borderWidth,color:r.color,borderColor:r.borderColor,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)}),p=[],m=0,v=r.selectedLines.length;m<v;m++){var g=r.textLines[r.selectedLines[m]];p.push.apply(p,Mo({x:g.x-a,y:g.y-(o-g.height)/2,width:i-s,height:g.height+(o-g.height)/2,borderWidth:0,color:r.selectedColor,borderColor:void 0,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)}))}var b=bu(r.textLines,{color:r.textColor,font:r.font,size:r.fontSize,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)}),y=be([k1("Tx"),ti()],b,[ei(),L1()]);return be([ti()],d,p,f,y,[ei()])},N5=function(r){It(t,r);function t(){var e=this,i="Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.";return e=r.call(this,i)||this,e}return t}(Error),A5=function(r){It(t,r);function t(){var e=this,i="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.";return e=r.call(this,i)||this,e}return t}(Error),_5=function(r){It(t,r);function t(){var e=this,i="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.";return e=r.call(this,i)||this,e}return t}(Error),k5=function(r){It(t,r);function t(){var e=this,i="PDFDocument has no pages so `PDFDocument.removePage` cannot be called";return e=r.call(this,i)||this,e}return t}(Error),L5=function(r){It(t,r);function t(e){var i=this,n='PDFDocument has no form field with the name "'+e+'"';return i=r.call(this,n)||this,i}return t}(Error),Kn=function(r){It(t,r);function t(e,i,n){var o,s,a=this,l=i==null?void 0:i.name,h=(s=(o=n==null?void 0:n.constructor)===null||o===void 0?void 0:o.name)!==null&&s!==void 0?s:n,c='Expected field "'+e+'" to be of type '+l+", "+("but it is actually of type "+h);return a=r.call(this,c)||this,a}return t}(Error);(function(r){It(t,r);function t(e){var i=this,n='Failed to select check box due to missing onValue: "'+e+'"';return i=r.call(this,n)||this,i}return t})(Error);var U1=function(r){It(t,r);function t(e){var i=this,n='A field already exists with the specified name: "'+e+'"';return i=r.call(this,n)||this,i}return t}(Error),M5=function(r){It(t,r);function t(e){var i=this,n='Field name contains invalid component: "'+e+'"';return i=r.call(this,n)||this,i}return t}(Error);(function(r){It(t,r);function t(e){var i=this,n='A non-terminal field already exists with the specified name: "'+e+'"';return i=r.call(this,n)||this,i}return t})(Error);var D5=function(r){It(t,r);function t(e){var i=this,n="Reading rich text fields is not supported: Attempted to read rich text field: "+e;return i=r.call(this,n)||this,i}return t}(Error),O5=function(r){It(t,r);function t(e,i){var n=this,o="Failed to layout combed text as lineLength="+e+" is greater than cellCount="+i;return n=r.call(this,o)||this,n}return t}(Error),R5=function(r){It(t,r);function t(e,i,n){var o=this,s="Attempted to set text with length="+e+" for TextField with maxLength="+i+" and name="+n;return o=r.call(this,s)||this,o}return t}(Error),F5=function(r){It(t,r);function t(e,i,n){var o=this,s="Attempted to set maxLength="+i+", which is less than "+e+", the length of this field's current value (name="+n+")";return o=r.call(this,s)||this,o}return t}(Error),ii;(function(r){r[r.Left=0]="Left",r[r.Center=1]="Center",r[r.Right=2]="Right"})(ii||(ii={}));var j1=4,q1=500,W1=function(r,t,e,i){i===void 0&&(i=!1);for(var n=j1;n<q1;){for(var o=0,s=0,a=r.length;s<a;s++){o+=1;for(var l=r[s],h=l.split(" "),c=e.width,u=0,f=h.length;u<f;u++){var d=u===f-1,p=d?h[u]:h[u]+" ",m=t.widthOfTextAtSize(p,n);c-=m,c<=0&&(o+=1,c=e.width-m)}}if(!i&&o>r.length)return n-1;var v=t.heightAtSize(n),g=v+v*.2,b=g*o;if(b>Math.abs(e.height))return n-1;n+=1}return n},I5=function(r,t,e,i){for(var n=e.width/i,o=e.height,s=j1,a=lx(r);s<q1;){for(var l=0,h=a.length;l<h;l++){var c=a[l],u=t.widthOfTextAtSize(c,s)>n*.75;if(u)return s-1}var f=t.heightAtSize(s,{descender:!1});if(f>o)return s-1;s+=1}return s},B5=function(r){for(var t=r.length;t>0;t--)if(/\s/.test(r[t]))return t},z5=function(r,t,e,i){for(var n,o=r.length;o>0;){var s=r.substring(0,o),a=e.encodeText(s),l=e.widthOfTextAtSize(s,i);if(l<t){var h=r.substring(o)||void 0;return{line:s,encoded:a,width:l,remainder:h}}o=(n=B5(s))!==null&&n!==void 0?n:0}return{line:r,encoded:e.encodeText(r),width:e.widthOfTextAtSize(r,i),remainder:void 0}},H1=function(r,t){var e=t.alignment,i=t.fontSize,n=t.font,o=t.bounds,s=Z0(Ts(r));(i===void 0||i===0)&&(i=W1(s,n,o,!0));for(var a=n.heightAtSize(i),l=a+a*.2,h=[],c=o.x,u=o.y,f=o.x+o.width,d=o.y+o.height,p=o.y+o.height,m=0,v=s.length;m<v;m++)for(var g=s[m];g!==void 0;){var b=z5(g,o.width,n,i),y=b.line,x=b.encoded,C=b.width,R=b.remainder,F=e===ii.Left?o.x:e===ii.Center?o.x+o.width/2-C/2:e===ii.Right?o.x+o.width-C:o.x;p-=l,F<c&&(c=F),p<u&&(u=p),F+C>f&&(f=F+C),p+a>d&&(d=p+a),h.push({text:y,encoded:x,width:C,height:a,x:F,y:p}),g=R==null?void 0:R.trim()}return{fontSize:i,lineHeight:l,lines:h,bounds:{x:c,y:u,width:f-c,height:d-u}}},P5=function(r,t){var e=t.fontSize,i=t.font,n=t.bounds,o=t.cellCount,s=J0(Ts(r));if(s.length>o)throw new O5(s.length,o);(e===void 0||e===0)&&(e=I5(s,i,n,o));for(var a=n.width/o,l=i.heightAtSize(e,{descender:!1}),h=n.y+(n.height/2-l/2),c=[],u=n.x,f=n.y,d=n.x+n.width,p=n.y+n.height,m=0,v=0;m<o;){var g=Q0(s,v),b=g[0],y=g[1],x=i.encodeText(b),C=i.widthOfTextAtSize(b,e),R=n.x+(a*m+a/2),F=R-C/2;F<u&&(u=F),h<f&&(f=h),F+C>d&&(d=F+C),h+l>p&&(p=h+l),c.push({text:s,encoded:x,width:C,height:l,x:F,y:h}),m+=1,v+=y}return{fontSize:e,cells:c,bounds:{x:u,y:f,width:d-u,height:p-f}}},Bl=function(r,t){var e=t.alignment,i=t.fontSize,n=t.font,o=t.bounds,s=J0(Ts(r));(i===void 0||i===0)&&(i=W1([s],n,o));var a=n.encodeText(s),l=n.widthOfTextAtSize(s,i),h=n.heightAtSize(i,{descender:!1}),c=e===ii.Left?o.x:e===ii.Center?o.x+o.width/2-l/2:e===ii.Right?o.x+o.width-l:o.x,u=o.y+(o.height/2-h/2);return{fontSize:i,line:{text:s,encoded:a,width:l,height:h,x:c,y:u},bounds:{x:c,y:u,width:l,height:h}}},Do=function(r){return"normal"in r?r:{normal:r}},U5=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,cn=function(r){var t,e,i=(t=r.getDefaultAppearance())!==null&&t!==void 0?t:"",n=(e=_c(i,U5).match)!==null&&e!==void 0?e:[],o=Number(n[2]);return isFinite(o)?o:void 0},j5=/(\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)/,Zi=function(r){var t,e=(t=r.getDefaultAppearance())!==null&&t!==void 0?t:"",i=_c(e,j5).match,n=i??[],o=n[1],s=n[2],a=n[3],l=n[4],h=n[5];if(h==="g"&&o)return M1(Number(o));if(h==="rg"&&o&&s&&a)return ke(Number(o),Number(s),Number(a));if(h==="k"&&o&&s&&a&&l)return D1(Number(o),Number(s),Number(a),Number(l))},Ji=function(r,t,e,i){var n;i===void 0&&(i=0);var o=[Vn(t).toString(),fu((n=e==null?void 0:e.name)!==null&&n!==void 0?n:"dummy__noop",i).toString()].join(`
`);r.setDefaultAppearance(o)},q5=function(r,t){var e,i,n,o=Zi(t),s=Zi(r.acroField),a=t.getRectangle(),l=t.getAppearanceCharacteristics(),h=t.getBorderStyle(),c=(e=h==null?void 0:h.getWidth())!==null&&e!==void 0?e:0,u=zr(l==null?void 0:l.getRotation()),f=Hn(a,u),d=f.width,p=f.height,m=hn(re(re({},a),{rotation:u})),v=ke(0,0,0),g=(i=Ei(l==null?void 0:l.getBorderColor()))!==null&&i!==void 0?i:v,b=Ei(l==null?void 0:l.getBackgroundColor()),y=Ei(l==null?void 0:l.getBackgroundColor(),.8),x=(n=o??s)!==null&&n!==void 0?n:v;Ji(o?t:r.acroField,x);var C={x:0+c/2,y:0+c/2,width:d-c,height:p-c,thickness:1.5,borderWidth:c,borderColor:g,markColor:x};return{normal:{on:be(m,Fl(re(re({},C),{color:b,filled:!0}))),off:be(m,Fl(re(re({},C),{color:b,filled:!1})))},down:{on:be(m,Fl(re(re({},C),{color:y,filled:!0}))),off:be(m,Fl(re(re({},C),{color:y,filled:!1})))}}},W5=function(r,t){var e,i,n,o=Zi(t),s=Zi(r.acroField),a=t.getRectangle(),l=t.getAppearanceCharacteristics(),h=t.getBorderStyle(),c=(e=h==null?void 0:h.getWidth())!==null&&e!==void 0?e:0,u=zr(l==null?void 0:l.getRotation()),f=Hn(a,u),d=f.width,p=f.height,m=hn(re(re({},a),{rotation:u})),v=ke(0,0,0),g=(i=Ei(l==null?void 0:l.getBorderColor()))!==null&&i!==void 0?i:v,b=Ei(l==null?void 0:l.getBackgroundColor()),y=Ei(l==null?void 0:l.getBackgroundColor(),.8),x=(n=o??s)!==null&&n!==void 0?n:v;Ji(o?t:r.acroField,x);var C={x:d/2,y:p/2,width:d-c,height:p-c,borderWidth:c,borderColor:g,dotColor:x};return{normal:{on:be(m,Il(re(re({},C),{color:b,filled:!0}))),off:be(m,Il(re(re({},C),{color:b,filled:!1})))},down:{on:be(m,Il(re(re({},C),{color:y,filled:!0}))),off:be(m,Il(re(re({},C),{color:y,filled:!1})))}}},H5=function(r,t,e){var i,n,o,s,a,l=Zi(t),h=Zi(r.acroField),c=cn(t),u=cn(r.acroField),f=t.getRectangle(),d=t.getAppearanceCharacteristics(),p=t.getBorderStyle(),m=d==null?void 0:d.getCaptions(),v=(i=m==null?void 0:m.normal)!==null&&i!==void 0?i:"",g=(o=(n=m==null?void 0:m.down)!==null&&n!==void 0?n:v)!==null&&o!==void 0?o:"",b=(s=p==null?void 0:p.getWidth())!==null&&s!==void 0?s:0,y=zr(d==null?void 0:d.getRotation()),x=Hn(f,y),C=x.width,R=x.height,F=hn(re(re({},f),{rotation:y})),U=ke(0,0,0),T=Ei(d==null?void 0:d.getBorderColor()),H=Ei(d==null?void 0:d.getBackgroundColor()),_=Ei(d==null?void 0:d.getBackgroundColor(),.8),k={x:b,y:b,width:C-b*2,height:R-b*2},O=Bl(v,{alignment:ii.Center,fontSize:c??u,font:e,bounds:k}),N=Bl(g,{alignment:ii.Center,fontSize:c??u,font:e,bounds:k}),X=Math.min(O.fontSize,N.fontSize),Z=(a=l??h)!==null&&a!==void 0?a:U;Ji(l||c!==void 0?t:r.acroField,Z,e,X);var W={x:0+b/2,y:0+b/2,width:C-b,height:R-b,borderWidth:b,borderColor:T,textColor:Z,font:e.name,fontSize:X};return{normal:be(F,z1(re(re({},W),{color:H,textLines:[O.line]}))),down:be(F,z1(re(re({},W),{color:_,textLines:[N.line]})))}},G5=function(r,t,e){var i,n,o,s,a=Zi(t),l=Zi(r.acroField),h=cn(t),c=cn(r.acroField),u=t.getRectangle(),f=t.getAppearanceCharacteristics(),d=t.getBorderStyle(),p=(i=r.getText())!==null&&i!==void 0?i:"",m=(n=d==null?void 0:d.getWidth())!==null&&n!==void 0?n:0,v=zr(f==null?void 0:f.getRotation()),g=Hn(u,v),b=g.width,y=g.height,x=hn(re(re({},u),{rotation:v})),C=ke(0,0,0),R=Ei(f==null?void 0:f.getBorderColor()),F=Ei(f==null?void 0:f.getBackgroundColor()),U,T,H=r.isCombed()?0:1,_={x:m+H,y:m+H,width:b-(m+H)*2,height:y-(m+H)*2};if(r.isMultiline()){var k=H1(p,{alignment:r.getAlignment(),fontSize:h??c,font:e,bounds:_});U=k.lines,T=k.fontSize}else if(r.isCombed()){var k=P5(p,{fontSize:h??c,font:e,bounds:_,cellCount:(o=r.getMaxLength())!==null&&o!==void 0?o:0});U=k.cells,T=k.fontSize}else{var k=Bl(p,{alignment:r.getAlignment(),fontSize:h??c,font:e,bounds:_});U=[k.line],T=k.fontSize}var O=(s=a??l)!==null&&s!==void 0?s:C;Ji(a||h!==void 0?t:r.acroField,O,e,T);var N={x:0+m/2,y:0+m/2,width:b-m,height:y-m,borderWidth:m??0,borderColor:R,textColor:O,font:e.name,fontSize:T,color:F,textLines:U,padding:H};return be(x,P1(N))},V5=function(r,t,e){var i,n,o,s=Zi(t),a=Zi(r.acroField),l=cn(t),h=cn(r.acroField),c=t.getRectangle(),u=t.getAppearanceCharacteristics(),f=t.getBorderStyle(),d=(i=r.getSelected()[0])!==null&&i!==void 0?i:"",p=(n=f==null?void 0:f.getWidth())!==null&&n!==void 0?n:0,m=zr(u==null?void 0:u.getRotation()),v=Hn(c,m),g=v.width,b=v.height,y=hn(re(re({},c),{rotation:m})),x=ke(0,0,0),C=Ei(u==null?void 0:u.getBorderColor()),R=Ei(u==null?void 0:u.getBackgroundColor()),F=1,U={x:p+F,y:p+F,width:g-(p+F)*2,height:b-(p+F)*2},T=Bl(d,{alignment:ii.Left,fontSize:l??h,font:e,bounds:U}),H=T.line,_=T.fontSize,k=(o=s??a)!==null&&o!==void 0?o:x;Ji(s||l!==void 0?t:r.acroField,k,e,_);var O={x:0+p/2,y:0+p/2,width:g-p,height:b-p,borderWidth:p??0,borderColor:C,textColor:k,font:e.name,fontSize:_,color:R,textLines:[H],padding:F};return be(y,P1(O))},K5=function(r,t,e){var i,n,o=Zi(t),s=Zi(r.acroField),a=cn(t),l=cn(r.acroField),h=t.getRectangle(),c=t.getAppearanceCharacteristics(),u=t.getBorderStyle(),f=(i=u==null?void 0:u.getWidth())!==null&&i!==void 0?i:0,d=zr(c==null?void 0:c.getRotation()),p=Hn(h,d),m=p.width,v=p.height,g=hn(re(re({},h),{rotation:d})),b=ke(0,0,0),y=Ei(c==null?void 0:c.getBorderColor()),x=Ei(c==null?void 0:c.getBackgroundColor()),C=r.getOptions(),R=r.getSelected();r.isSorted()&&C.sort();for(var F="",U=0,T=C.length;U<T;U++)F+=C[U],U<T-1&&(F+=`
`);for(var H=1,_={x:f+H,y:f+H,width:m-(f+H)*2,height:v-(f+H)*2},k=H1(F,{alignment:ii.Left,fontSize:a??l,font:e,bounds:_}),O=k.lines,N=k.fontSize,X=k.lineHeight,Z=[],U=0,T=O.length;U<T;U++){var W=O[U];R.includes(W.text)&&Z.push(U)}var yt=ke(153/255,193/255,218/255),st=(n=o??s)!==null&&n!==void 0?n:b;return Ji(o||a!==void 0?t:r.acroField,st,e,N),be(g,S5({x:0+f/2,y:0+f/2,width:m-f,height:v-f,borderWidth:f??0,borderColor:y,textColor:st,font:e.name,fontSize:N,color:x,textLines:O,lineHeight:X,selectedColor:yt,selectedLines:Z,padding:H}))},G1=function(){function r(t,e,i){this.alreadyEmbedded=!1,ct(t,"ref",[[Ne,"PDFRef"]]),ct(e,"doc",[[dn,"PDFDocument"]]),ct(i,"embedder",[[s1,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=i.width,this.height=i.height,this.embedder=i}return r.prototype.scale=function(t){return ct(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},r.prototype.size=function(){return this.scale(1)},r.prototype.embed=function(){return ae(this,void 0,void 0,function(){return le(this,function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}})})},r.of=function(t,e,i){return new r(t,e,i)},r}(),Bi=function(){function r(t,e,i){this.modified=!0,ct(t,"ref",[[Ne,"PDFRef"]]),ct(e,"doc",[[dn,"PDFDocument"]]),ct(i,"embedder",[[$c,"CustomFontEmbedder"],[cl,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=i.fontName,this.embedder=i}return r.prototype.encodeText=function(t){return ct(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},r.prototype.widthOfTextAtSize=function(t,e){return ct(t,"text",["string"]),ct(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)},r.prototype.heightAtSize=function(t,e){var i;return ct(t,"size",["number"]),Ft(e==null?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:(i=e==null?void 0:e.descender)!==null&&i!==void 0?i:!0})},r.prototype.sizeAtHeight=function(t){return ct(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},r.prototype.getCharacterSet=function(){return this.embedder instanceof cl?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},r.prototype.embed=function(){return ae(this,void 0,void 0,function(){return le(this,function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},r.of=function(t,e,i){return new r(t,e,i)},r}(),xu=function(){function r(t,e,i){ct(t,"ref",[[Ne,"PDFRef"]]),ct(e,"doc",[[dn,"PDFDocument"]]),ct(i,"embedder",[[$p,"JpegEmbedder"],[t1,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=i.width,this.height=i.height,this.embedder=i}return r.prototype.scale=function(t){return ct(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},r.prototype.scaleToFit=function(t,e){ct(t,"width",["number"]),ct(e,"height",["number"]);var i=t/this.width,n=e/this.height,o=Math.min(i,n);return this.scale(o)},r.prototype.size=function(){return this.scale(1)},r.prototype.embed=function(){return ae(this,void 0,void 0,function(){var t,e,i;return le(this,function(n){switch(n.label){case 0:return this.embedder?(this.embedTask||(t=this,e=t.doc,i=t.ref,this.embedTask=this.embedder.embedIntoContext(e.context,i)),[4,this.embedTask]):[2];case 1:return n.sent(),this.embedder=void 0,[2]}})})},r.of=function(t,e,i){return new r(t,e,i)},r}(),un;(function(r){r[r.Left=0]="Left",r[r.Center=1]="Center",r[r.Right=2]="Right"})(un||(un={}));var Oo=function(r){Ft(r==null?void 0:r.x,"options.x",["number"]),Ft(r==null?void 0:r.y,"options.y",["number"]),Ft(r==null?void 0:r.width,"options.width",["number"]),Ft(r==null?void 0:r.height,"options.height",["number"]),Ft(r==null?void 0:r.textColor,"options.textColor",[[Object,"Color"]]),Ft(r==null?void 0:r.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Ft(r==null?void 0:r.borderColor,"options.borderColor",[[Object,"Color"]]),Ft(r==null?void 0:r.borderWidth,"options.borderWidth",["number"]),Ft(r==null?void 0:r.rotate,"options.rotate",[[Object,"Rotation"]])},Xn=function(){function r(t,e,i){ct(t,"acroField",[[_o,"PDFAcroTerminal"]]),ct(e,"ref",[[Ne,"PDFRef"]]),ct(i,"doc",[[dn,"PDFDocument"]]),this.acroField=t,this.ref=e,this.doc=i}return r.prototype.getName=function(){var t;return(t=this.acroField.getFullyQualifiedName())!==null&&t!==void 0?t:""},r.prototype.isReadOnly=function(){return this.acroField.hasFlag(hr.ReadOnly)},r.prototype.enableReadOnly=function(){this.acroField.setFlagTo(hr.ReadOnly,!0)},r.prototype.disableReadOnly=function(){this.acroField.setFlagTo(hr.ReadOnly,!1)},r.prototype.isRequired=function(){return this.acroField.hasFlag(hr.Required)},r.prototype.enableRequired=function(){this.acroField.setFlagTo(hr.Required,!0)},r.prototype.disableRequired=function(){this.acroField.setFlagTo(hr.Required,!1)},r.prototype.isExported=function(){return!this.acroField.hasFlag(hr.NoExport)},r.prototype.enableExporting=function(){this.acroField.setFlagTo(hr.NoExport,!1)},r.prototype.disableExporting=function(){this.acroField.setFlagTo(hr.NoExport,!0)},r.prototype.needsAppearancesUpdate=function(){throw new Vi(this.constructor.name,"needsAppearancesUpdate")},r.prototype.defaultUpdateAppearances=function(t){throw new Vi(this.constructor.name,"defaultUpdateAppearances")},r.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},r.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},r.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},r.prototype.createWidget=function(t){var e,i=t.textColor,n=t.backgroundColor,o=t.borderColor,s=t.borderWidth,a=x1(t.rotate),l=t.caption,h=t.x,c=t.y,u=t.width+s,f=t.height+s,d=!!t.hidden,p=t.page;Ip(a,"degreesAngle",90);var m=ru.create(this.doc.context,this.ref),v=r5({x:h,y:c,width:u,height:f},s,a);m.setRectangle(v),p&&m.setP(p);var g=m.getOrCreateAppearanceCharacteristics();n&&g.setBackgroundColor(O1(n)),g.setRotation(a),l&&g.setCaptions({normal:l}),o&&g.setBorderColor(O1(o));var b=m.getOrCreateBorderStyle();if(s!==void 0&&b.setWidth(s),m.setFlagTo(js.Print,!0),m.setFlagTo(js.Hidden,d),m.setFlagTo(js.Invisible,!1),i){var y=(e=this.acroField.getDefaultAppearance())!==null&&e!==void 0?e:"",x=y+`
`+Vn(i).toString();this.acroField.setDefaultAppearance(x)}return m},r.prototype.updateWidgetAppearanceWithFont=function(t,e,i){var n=i.normal,o=i.rollover,s=i.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,n,e),rollover:o&&this.createAppearanceStream(t,o,e),down:s&&this.createAppearanceStream(t,s,e)})},r.prototype.updateOnOffWidgetAppearance=function(t,e,i){var n=i.normal,o=i.rollover,s=i.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,n,e),rollover:o&&this.createAppearanceDict(t,o,e),down:s&&this.createAppearanceDict(t,s,e)})},r.prototype.updateWidgetAppearances=function(t,e){var i=e.normal,n=e.rollover,o=e.down;t.setNormalAppearance(i),n?t.setRolloverAppearance(n):t.removeRolloverAppearance(),o?t.setDownAppearance(o):t.removeDownAppearance()},r.prototype.createAppearanceStream=function(t,e,i){var n,o=this.acroField.dict.context,s=t.getRectangle(),a=s.width,l=s.height,h=i&&{Font:(n={},n[i.name]=i.ref,n)},c=o.formXObject(e,{Resources:h,BBox:o.obj([0,0,a,l]),Matrix:o.obj([1,0,0,1,0,0])}),u=o.register(c);return u},r.prototype.createImageAppearanceStream=function(t,e,i){var n,o,s=this.acroField.dict.context,a=t.getRectangle(),l=t.getAppearanceCharacteristics(),h=t.getBorderStyle(),c=(o=h==null?void 0:h.getWidth())!==null&&o!==void 0?o:0,u=zr(l==null?void 0:l.getRotation()),f=hn(re(re({},a),{rotation:u})),d=Hn(a,u),p=e.scaleToFit(d.width-c*2,d.height-c*2),m={x:c,y:c,width:p.width,height:p.height,rotate:$t(0),xSkew:$t(0),ySkew:$t(0)};i===un.Center?(m.x+=(d.width-c*2)/2-p.width/2,m.y+=(d.height-c*2)/2-p.height/2):i===un.Right&&(m.x=d.width-c-p.width,m.y=d.height-c-p.height);var v=this.doc.context.addRandomSuffix("Image",10),g=be(f,B1(v,m)),b={XObject:(n={},n[v]=e.ref,n)},y=s.formXObject(g,{Resources:b,BBox:s.obj([0,0,a.width,a.height]),Matrix:s.obj([1,0,0,1,0,0])});return s.register(y)},r.prototype.createAppearanceDict=function(t,e,i){var n=this.acroField.dict.context,o=this.createAppearanceStream(t,e.on),s=this.createAppearanceStream(t,e.off),a=n.obj({});return a.set(i,o),a.set(K.of("Off"),s),a},r}(),Ys=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroCheckBox",[[pl,"PDFAcroCheckBox"]]),o.acroField=e,o}return t.prototype.check=function(){var e,i=(e=this.acroField.getOnValue())!==null&&e!==void 0?e:K.of("Yes");this.markAsDirty(),this.acroField.setValue(i)},t.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(K.of("Off"))},t.prototype.isChecked=function(){var e=this.acroField.getOnValue();return!!e&&e===this.acroField.getValue()},t.prototype.addToPage=function(e,i){var n,o,s,a,l,h;ct(e,"page",[[Qi,"PDFPage"]]),Oo(i),i||(i={}),"textColor"in i||(i.textColor=ke(0,0,0)),"backgroundColor"in i||(i.backgroundColor=ke(1,1,1)),"borderColor"in i||(i.borderColor=ke(0,0,0)),"borderWidth"in i||(i.borderWidth=1);var c=this.createWidget({x:(n=i.x)!==null&&n!==void 0?n:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:(s=i.width)!==null&&s!==void 0?s:50,height:(a=i.height)!==null&&a!==void 0?a:50,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:(l=i.borderWidth)!==null&&l!==void 0?l:0,rotate:(h=i.rotate)!==null&&h!==void 0?h:$t(0),hidden:i.hidden,page:e.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u),c.setAppearanceState(K.of("Off")),this.updateWidgetAppearance(c,K.of("Yes")),e.node.addAnnot(u)},t.prototype.needsAppearancesUpdate=function(){for(var e,i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=s.getAppearanceState(),l=(e=s.getAppearances())===null||e===void 0?void 0:e.normal;if(!(l instanceof se)||a&&!l.has(a))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(e){var i;Ft(e,"provider",[Function]);for(var n=this.acroField.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o],l=(i=a.getOnValue())!==null&&i!==void 0?i:K.of("Yes");l&&this.updateWidgetAppearance(a,l,e)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,i,n){var o=n??q5,s=Do(o(this,e));this.updateOnOffWidgetAppearance(e,i,s)},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn),zl=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroComboBox",[[gl,"PDFAcroComboBox"]]),o.acroField=e,o}return t.prototype.getOptions=function(){for(var e=this.acroField.getOptions(),i=new Array(e.length),n=0,o=i.length;n<o;n++){var s=e[n],a=s.display,l=s.value;i[n]=(a??l).decodeText()}return i},t.prototype.getSelected=function(){for(var e=this.acroField.getValues(),i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]=e[n].decodeText();return i},t.prototype.setOptions=function(e){ct(e,"options",[Array]);for(var i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]={value:Qt.fromText(e[n])};this.acroField.setOptions(i)},t.prototype.addOptions=function(e){ct(e,"options",["string",Array]);for(var i=Array.isArray(e)?e:[e],n=this.acroField.getOptions(),o=new Array(i.length),s=0,a=i.length;s<a;s++)o[s]={value:Qt.fromText(i[s])};this.acroField.setOptions(n.concat(o))},t.prototype.select=function(e,i){i===void 0&&(i=!1),ct(e,"options",["string",Array]),ct(i,"merge",["boolean"]);var n=Array.isArray(e)?e:[e],o=this.getOptions(),s=n.find(function(u){return!o.includes(u)});s&&this.enableEditing(),this.markAsDirty(),(n.length>1||n.length===1&&i)&&this.enableMultiselect();for(var a=new Array(n.length),l=0,h=n.length;l<h;l++)a[l]=Qt.fromText(n[l]);if(i){var c=this.acroField.getValues();this.acroField.setValues(c.concat(a))}else this.acroField.setValues(a)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(e){ol(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.isEditable=function(){return this.acroField.hasFlag(_e.Edit)},t.prototype.enableEditing=function(){this.acroField.setFlagTo(_e.Edit,!0)},t.prototype.disableEditing=function(){this.acroField.setFlagTo(_e.Edit,!1)},t.prototype.isSorted=function(){return this.acroField.hasFlag(_e.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo(_e.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo(_e.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag(_e.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo(_e.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo(_e.MultiSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(_e.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(_e.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(_e.DoNotSpellCheck,!0)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(_e.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(_e.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(_e.CommitOnSelChange,!1)},t.prototype.addToPage=function(e,i){var n,o,s,a,l,h,c;ct(e,"page",[[Qi,"PDFPage"]]),Oo(i),i||(i={}),"textColor"in i||(i.textColor=ke(0,0,0)),"backgroundColor"in i||(i.backgroundColor=ke(1,1,1)),"borderColor"in i||(i.borderColor=ke(0,0,0)),"borderWidth"in i||(i.borderWidth=1);var u=this.createWidget({x:(n=i.x)!==null&&n!==void 0?n:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:(s=i.width)!==null&&s!==void 0?s:200,height:(a=i.height)!==null&&a!==void 0?a:50,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:(l=i.borderWidth)!==null&&l!==void 0?l:0,rotate:(h=i.rotate)!==null&&h!==void 0?h:$t(0),hidden:i.hidden,page:e.ref}),f=this.doc.context.register(u.dict);this.acroField.addWidget(f);var d=(c=i.font)!==null&&c!==void 0?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(u,d),e.node.addAnnot(f)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=((e=s.getAppearances())===null||e===void 0?void 0:e.normal)instanceof Fi;if(!a)return!0}return!1},t.prototype.defaultUpdateAppearances=function(e){ct(e,"font",[[Bi,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,i){ct(e,"font",[[Bi,"PDFFont"]]),Ft(i,"provider",[Function]);for(var n=this.acroField.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o];this.updateWidgetAppearance(a,e,i)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,i,n){var o=n??V5,s=Do(o(this,e,i));this.updateWidgetAppearanceWithFont(e,i,s)},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn),Pl=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroListBox",[[xl,"PDFAcroListBox"]]),o.acroField=e,o}return t.prototype.getOptions=function(){for(var e=this.acroField.getOptions(),i=new Array(e.length),n=0,o=i.length;n<o;n++){var s=e[n],a=s.display,l=s.value;i[n]=(a??l).decodeText()}return i},t.prototype.getSelected=function(){for(var e=this.acroField.getValues(),i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]=e[n].decodeText();return i},t.prototype.setOptions=function(e){ct(e,"options",[Array]),this.markAsDirty();for(var i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]={value:Qt.fromText(e[n])};this.acroField.setOptions(i)},t.prototype.addOptions=function(e){ct(e,"options",["string",Array]),this.markAsDirty();for(var i=Array.isArray(e)?e:[e],n=this.acroField.getOptions(),o=new Array(i.length),s=0,a=i.length;s<a;s++)o[s]={value:Qt.fromText(i[s])};this.acroField.setOptions(n.concat(o))},t.prototype.select=function(e,i){i===void 0&&(i=!1),ct(e,"options",["string",Array]),ct(i,"merge",["boolean"]);var n=Array.isArray(e)?e:[e],o=this.getOptions();Gx(n,"option",o),this.markAsDirty(),(n.length>1||n.length===1&&i)&&this.enableMultiselect();for(var s=new Array(n.length),a=0,l=n.length;a<l;a++)s[a]=Qt.fromText(n[a]);if(i){var h=this.acroField.getValues();this.acroField.setValues(h.concat(s))}else this.acroField.setValues(s)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(e){ol(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.isSorted=function(){return this.acroField.hasFlag(_e.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo(_e.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo(_e.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag(_e.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo(_e.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo(_e.MultiSelect,!1)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(_e.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(_e.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(_e.CommitOnSelChange,!1)},t.prototype.addToPage=function(e,i){var n,o,s,a,l,h,c;ct(e,"page",[[Qi,"PDFPage"]]),Oo(i),i||(i={}),"textColor"in i||(i.textColor=ke(0,0,0)),"backgroundColor"in i||(i.backgroundColor=ke(1,1,1)),"borderColor"in i||(i.borderColor=ke(0,0,0)),"borderWidth"in i||(i.borderWidth=1);var u=this.createWidget({x:(n=i.x)!==null&&n!==void 0?n:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:(s=i.width)!==null&&s!==void 0?s:200,height:(a=i.height)!==null&&a!==void 0?a:100,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:(l=i.borderWidth)!==null&&l!==void 0?l:0,rotate:(h=i.rotate)!==null&&h!==void 0?h:$t(0),hidden:i.hidden,page:e.ref}),f=this.doc.context.register(u.dict);this.acroField.addWidget(f);var d=(c=i.font)!==null&&c!==void 0?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(u,d),e.node.addAnnot(f)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=((e=s.getAppearances())===null||e===void 0?void 0:e.normal)instanceof Fi;if(!a)return!0}return!1},t.prototype.defaultUpdateAppearances=function(e){ct(e,"font",[[Bi,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,i){ct(e,"font",[[Bi,"PDFFont"]]),Ft(i,"provider",[Function]);for(var n=this.acroField.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o];this.updateWidgetAppearance(a,e,i)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,i,n){var o=n??K5,s=Do(o(this,e,i));this.updateWidgetAppearanceWithFont(e,i,s)},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn),Zs=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroRadioButton",[[bl,"PDFAcroRadioButton"]]),o.acroField=e,o}return t.prototype.getOptions=function(){var e=this.acroField.getExportValues();if(e){for(var i=new Array(e.length),n=0,o=e.length;n<o;n++)i[n]=e[n].decodeText();return i}for(var s=this.acroField.getOnValues(),a=new Array(s.length),n=0,o=a.length;n<o;n++)a[n]=s[n].decodeText();return a},t.prototype.getSelected=function(){var e=this.acroField.getValue();if(e!==K.of("Off")){var i=this.acroField.getExportValues();if(i){for(var n=this.acroField.getOnValues(),o=0,s=n.length;o<s;o++)if(n[o]===e)return i[o].decodeText()}return e.decodeText()}},t.prototype.select=function(e){ct(e,"option",["string"]);var i=this.getOptions();nn(e,"option",i),this.markAsDirty();var n=this.acroField.getOnValues(),o=this.acroField.getExportValues();if(o)for(var s=0,a=o.length;s<a;s++)o[s].decodeText()===e&&this.acroField.setValue(n[s]);else for(var s=0,a=n.length;s<a;s++){var l=n[s];l.decodeText()===e&&this.acroField.setValue(l)}},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(K.of("Off"))},t.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(Xi.NoToggleToOff)},t.prototype.enableOffToggling=function(){this.acroField.setFlagTo(Xi.NoToggleToOff,!1)},t.prototype.disableOffToggling=function(){this.acroField.setFlagTo(Xi.NoToggleToOff,!0)},t.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(Xi.RadiosInUnison)},t.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(Xi.RadiosInUnison,!1)},t.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(Xi.RadiosInUnison,!0)},t.prototype.addOptionToPage=function(e,i,n){var o,s,a,l,h,c,u,f,d;ct(e,"option",["string"]),ct(i,"page",[[Qi,"PDFPage"]]),Oo(n);var p=this.createWidget({x:(o=n==null?void 0:n.x)!==null&&o!==void 0?o:0,y:(s=n==null?void 0:n.y)!==null&&s!==void 0?s:0,width:(a=n==null?void 0:n.width)!==null&&a!==void 0?a:50,height:(l=n==null?void 0:n.height)!==null&&l!==void 0?l:50,textColor:(h=n==null?void 0:n.textColor)!==null&&h!==void 0?h:ke(0,0,0),backgroundColor:(c=n==null?void 0:n.backgroundColor)!==null&&c!==void 0?c:ke(1,1,1),borderColor:(u=n==null?void 0:n.borderColor)!==null&&u!==void 0?u:ke(0,0,0),borderWidth:(f=n==null?void 0:n.borderWidth)!==null&&f!==void 0?f:1,rotate:(d=n==null?void 0:n.rotate)!==null&&d!==void 0?d:$t(0),hidden:n==null?void 0:n.hidden,page:i.ref}),m=this.doc.context.register(p.dict),v=this.acroField.addWidgetWithOpt(m,Qt.fromText(e),!this.isMutuallyExclusive());p.setAppearanceState(K.of("Off")),this.updateWidgetAppearance(p,v),i.node.addAnnot(m)},t.prototype.needsAppearancesUpdate=function(){for(var e,i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=s.getAppearanceState(),l=(e=s.getAppearances())===null||e===void 0?void 0:e.normal;if(!(l instanceof se)||a&&!l.has(a))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(e){Ft(e,"provider",[Function]);for(var i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=s.getOnValue();a&&this.updateWidgetAppearance(s,a,e)}},t.prototype.updateWidgetAppearance=function(e,i,n){var o=n??W5,s=Do(o(this,e));this.updateOnOffWidgetAppearance(e,i,s)},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn),wu=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroSignature",[[ou,"PDFAcroSignature"]]),o.acroField=e,o}return t.prototype.needsAppearancesUpdate=function(){return!1},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn),Ul=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroText",[[vl,"PDFAcroText"]]),o.acroField=e,o}return t.prototype.getText=function(){var e=this.acroField.getValue();if(!e&&this.isRichFormatted())throw new D5(this.getName());return e==null?void 0:e.decodeText()},t.prototype.setText=function(e){Ft(e,"text",["string"]);var i=this.getMaxLength();if(i!==void 0&&e&&e.length>i)throw new R5(e.length,i,this.getName());this.markAsDirty(),this.disableRichFormatting(),e?this.acroField.setValue(Qt.fromText(e)):this.acroField.removeValue()},t.prototype.getAlignment=function(){var e=this.acroField.getQuadding();return e===0?ii.Left:e===1?ii.Center:e===2?ii.Right:ii.Left},t.prototype.setAlignment=function(e){nn(e,"alignment",ii),this.markAsDirty(),this.acroField.setQuadding(e)},t.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},t.prototype.setMaxLength=function(e){if(lr(e,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),e===void 0)this.acroField.removeMaxLength();else{var i=this.getText();if(i&&i.length>e)throw new F5(i.length,e,this.getName());this.acroField.setMaxLength(e)}},t.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},t.prototype.setImage=function(e){for(var i=this.getAlignment(),n=i===ii.Center?un.Center:i===ii.Right?un.Right:un.Left,o=this.acroField.getWidgets(),s=0,a=o.length;s<a;s++){var l=o[s],h=this.createImageAppearanceStream(l,e,n);this.updateWidgetAppearances(l,{normal:h})}this.markAsClean()},t.prototype.setFontSize=function(e){ol(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.isMultiline=function(){return this.acroField.hasFlag(qe.Multiline)},t.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(qe.Multiline,!0)},t.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(qe.Multiline,!1)},t.prototype.isPassword=function(){return this.acroField.hasFlag(qe.Password)},t.prototype.enablePassword=function(){this.acroField.setFlagTo(qe.Password,!0)},t.prototype.disablePassword=function(){this.acroField.setFlagTo(qe.Password,!1)},t.prototype.isFileSelector=function(){return this.acroField.hasFlag(qe.FileSelect)},t.prototype.enableFileSelection=function(){this.acroField.setFlagTo(qe.FileSelect,!0)},t.prototype.disableFileSelection=function(){this.acroField.setFlagTo(qe.FileSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(qe.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(qe.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(qe.DoNotSpellCheck,!0)},t.prototype.isScrollable=function(){return!this.acroField.hasFlag(qe.DoNotScroll)},t.prototype.enableScrolling=function(){this.acroField.setFlagTo(qe.DoNotScroll,!1)},t.prototype.disableScrolling=function(){this.acroField.setFlagTo(qe.DoNotScroll,!0)},t.prototype.isCombed=function(){return this.acroField.hasFlag(qe.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&this.getMaxLength()!==void 0},t.prototype.enableCombing=function(){if(this.getMaxLength()===void 0){var e="PDFTextFields must have a max length in order to be combed";console.warn(e)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(qe.Comb,!0)},t.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(qe.Comb,!1)},t.prototype.isRichFormatted=function(){return this.acroField.hasFlag(qe.RichText)},t.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(qe.RichText,!0)},t.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(qe.RichText,!1)},t.prototype.addToPage=function(e,i){var n,o,s,a,l,h,c;ct(e,"page",[[Qi,"PDFPage"]]),Oo(i),i||(i={}),"textColor"in i||(i.textColor=ke(0,0,0)),"backgroundColor"in i||(i.backgroundColor=ke(1,1,1)),"borderColor"in i||(i.borderColor=ke(0,0,0)),"borderWidth"in i||(i.borderWidth=1);var u=this.createWidget({x:(n=i.x)!==null&&n!==void 0?n:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:(s=i.width)!==null&&s!==void 0?s:200,height:(a=i.height)!==null&&a!==void 0?a:50,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:(l=i.borderWidth)!==null&&l!==void 0?l:0,rotate:(h=i.rotate)!==null&&h!==void 0?h:$t(0),hidden:i.hidden,page:e.ref}),f=this.doc.context.register(u.dict);this.acroField.addWidget(f);var d=(c=i.font)!==null&&c!==void 0?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(u,d),e.node.addAnnot(f)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=((e=s.getAppearances())===null||e===void 0?void 0:e.normal)instanceof Fi;if(!a)return!0}return!1},t.prototype.defaultUpdateAppearances=function(e){ct(e,"font",[[Bi,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,i){ct(e,"font",[[Bi,"PDFFont"]]),Ft(i,"provider",[Function]);for(var n=this.acroField.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o];this.updateWidgetAppearance(a,e,i)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(e,i,n){var o=n??G5,s=Do(o(this,e,i));this.updateWidgetAppearanceWithFont(e,i,s)},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn),jl;(function(r){r.Courier="Courier",r.CourierBold="Courier-Bold",r.CourierOblique="Courier-Oblique",r.CourierBoldOblique="Courier-BoldOblique",r.Helvetica="Helvetica",r.HelveticaBold="Helvetica-Bold",r.HelveticaOblique="Helvetica-Oblique",r.HelveticaBoldOblique="Helvetica-BoldOblique",r.TimesRoman="Times-Roman",r.TimesRomanBold="Times-Bold",r.TimesRomanItalic="Times-Italic",r.TimesRomanBoldItalic="Times-BoldItalic",r.Symbol="Symbol",r.ZapfDingbats="ZapfDingbats"})(jl||(jl={}));var X5=function(){function r(t,e){var i=this;this.embedDefaultFont=function(){return i.doc.embedStandardFont(jl.Helvetica)},ct(t,"acroForm",[[wl,"PDFAcroForm"]]),ct(e,"doc",[[dn,"PDFDocument"]]),this.acroForm=t,this.doc=e,this.dirtyFields=new Set,this.defaultFontCache=Fr.populatedBy(this.embedDefaultFont)}return r.prototype.hasXFA=function(){return this.acroForm.dict.has(K.of("XFA"))},r.prototype.deleteXFA=function(){this.acroForm.dict.delete(K.of("XFA"))},r.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),e=[],i=0,n=t.length;i<n;i++){var o=t[i],s=o[0],a=o[1],l=Y5(s,a,this.doc);l&&e.push(l)}return e},r.prototype.getFieldMaybe=function(t){ct(t,"name",["string"]);for(var e=this.getFields(),i=0,n=e.length;i<n;i++){var o=e[i];if(o.getName()===t)return o}},r.prototype.getField=function(t){ct(t,"name",["string"]);var e=this.getFieldMaybe(t);if(e)return e;throw new L5(t)},r.prototype.getButton=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof ql)return e;throw new Kn(t,ql,e)},r.prototype.getCheckBox=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof Ys)return e;throw new Kn(t,Ys,e)},r.prototype.getDropdown=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof zl)return e;throw new Kn(t,zl,e)},r.prototype.getOptionList=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof Pl)return e;throw new Kn(t,Pl,e)},r.prototype.getRadioGroup=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof Zs)return e;throw new Kn(t,Zs,e)},r.prototype.getSignature=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof wu)return e;throw new Kn(t,wu,e)},r.prototype.getTextField=function(t){ct(t,"name",["string"]);var e=this.getField(t);if(e instanceof Ul)return e;throw new Kn(t,Ul,e)},r.prototype.createButton=function(t){ct(t,"name",["string"]);var e=Ro(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=yl.create(this.doc.context);return n.setPartialName(e.terminal),Fo(i,[n,n.ref],e.terminal),ql.of(n,n.ref,this.doc)},r.prototype.createCheckBox=function(t){ct(t,"name",["string"]);var e=Ro(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=pl.create(this.doc.context);return n.setPartialName(e.terminal),Fo(i,[n,n.ref],e.terminal),Ys.of(n,n.ref,this.doc)},r.prototype.createDropdown=function(t){ct(t,"name",["string"]);var e=Ro(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=gl.create(this.doc.context);return n.setPartialName(e.terminal),Fo(i,[n,n.ref],e.terminal),zl.of(n,n.ref,this.doc)},r.prototype.createOptionList=function(t){ct(t,"name",["string"]);var e=Ro(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=xl.create(this.doc.context);return n.setPartialName(e.terminal),Fo(i,[n,n.ref],e.terminal),Pl.of(n,n.ref,this.doc)},r.prototype.createRadioGroup=function(t){ct(t,"name",["string"]);var e=Ro(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=bl.create(this.doc.context);return n.setPartialName(e.terminal),Fo(i,[n,n.ref],e.terminal),Zs.of(n,n.ref,this.doc)},r.prototype.createTextField=function(t){ct(t,"name",["string"]);var e=Ro(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=vl.create(this.doc.context);return n.setPartialName(e.terminal),Fo(i,[n,n.ref],e.terminal),Ul.of(n,n.ref,this.doc)},r.prototype.flatten=function(t){t===void 0&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var e=this.getFields(),i=0,n=e.length;i<n;i++){for(var o=e[i],s=o.acroField.getWidgets(),a=0,l=s.length;a<l;a++){var h=s[a],c=this.findWidgetPage(h),u=this.findWidgetAppearanceRef(o,h),f=c.node.newXObject("FlatWidget",u),d=h.getRectangle(),p=be([ti(),Yi(d.x,d.y)],hn(re(re({},d),{rotation:0})),[pu(f),ei()]).filter(Boolean);c.pushOperators.apply(c,p)}this.removeField(o)}},r.prototype.removeField=function(t){for(var e=t.acroField.getWidgets(),i=new Set,n=0,o=e.length;n<o;n++){var s=e[n],a=this.findWidgetAppearanceRef(t,s),l=this.findWidgetPage(s);i.add(l),l.node.removeAnnot(a)}i.forEach(function(d){return d.node.removeAnnot(t.ref)}),this.acroForm.removeField(t.acroField);for(var h=t.acroField.normalizedEntries().Kids,c=h.size(),u=0;u<c;u++){var f=h.get(u);f instanceof Ne&&this.doc.context.delete(f)}this.doc.context.delete(t.ref)},r.prototype.updateFieldAppearances=function(t){Ft(t,"font",[[Bi,"PDFFont"]]),t=t??this.getDefaultFont();for(var e=this.getFields(),i=0,n=e.length;i<n;i++){var o=e[i];o.needsAppearancesUpdate()&&o.defaultUpdateAppearances(t)}},r.prototype.markFieldAsDirty=function(t){Ft(t,"fieldRef",[[Ne,"PDFRef"]]),this.dirtyFields.add(t)},r.prototype.markFieldAsClean=function(t){Ft(t,"fieldRef",[[Ne,"PDFRef"]]),this.dirtyFields.delete(t)},r.prototype.fieldIsDirty=function(t){return Ft(t,"fieldRef",[[Ne,"PDFRef"]]),this.dirtyFields.has(t)},r.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},r.prototype.findWidgetPage=function(t){var e=t.P(),i=this.doc.getPages().find(function(o){return o.ref===e});if(i===void 0){var n=this.doc.context.getObjectRef(t.dict);if(n===void 0)throw new Error("Could not find PDFRef for PDFObject");if(i=this.doc.findPageForAnnotationRef(n),i===void 0)throw new Error("Could not find page for PDFRef "+n)}return i},r.prototype.findWidgetAppearanceRef=function(t,e){var i,n=e.getNormalAppearance();if(n instanceof se&&(t instanceof Ys||t instanceof Zs)){var o=t.acroField.getValue(),s=(i=n.get(o))!==null&&i!==void 0?i:n.get(K.of("Off"));s instanceof Ne&&(n=s)}if(!(n instanceof Ne)){var a=t.getName();throw new Error("Failed to extract appearance ref for: "+a)}return n},r.prototype.findOrCreateNonTerminals=function(t){for(var e=[this.acroForm],i=0,n=t.length;i<n;i++){var o=t[i];if(!o)throw new M5(o);var s=e[0],a=e[1],l=this.findNonTerminal(o,s);if(l)e=l;else{var h=ml.create(this.doc.context);h.setPartialName(o),h.setParent(a);var c=this.doc.context.register(h.dict);s.addField(c),e=[h,c]}}return e},r.prototype.findNonTerminal=function(t,e){for(var i=e instanceof wl?this.acroForm.getFields():su(e.Kids()),n=0,o=i.length;n<o;n++){var s=i[n],a=s[0],l=s[1];if(a.getPartialName()===t){if(a instanceof ml)return[a,l];throw new U1(t)}}},r.of=function(t,e){return new r(t,e)},r}(),Y5=function(r,t,e){if(r instanceof yl)return ql.of(r,t,e);if(r instanceof pl)return Ys.of(r,t,e);if(r instanceof gl)return zl.of(r,t,e);if(r instanceof xl)return Pl.of(r,t,e);if(r instanceof vl)return Ul.of(r,t,e);if(r instanceof bl)return Zs.of(r,t,e);if(r instanceof ou)return wu.of(r,t,e)},Ro=function(r){if(r.length===0)throw new Error("PDF field names must not be empty strings");for(var t=r.split("."),e=0,i=t.length;e<i;e++)if(t[e]==="")throw new Error('Periods in PDF field names must be separated by at least one character: "'+r+'"');return t.length===1?{nonTerminal:[],terminal:t[0]}:{nonTerminal:t.slice(0,t.length-1),terminal:t[t.length-1]}},Fo=function(r,t,e){for(var i=r[0],n=r[1],o=t[0],s=t[1],a=i.normalizedEntries(),l=su("Kids"in a?a.Kids:a.Fields),h=0,c=l.length;h<c;h++)if(l[h][0].getPartialName()===e)throw new U1(e);i.addField(s),o.setParent(n)},Z5={A4:[595.28,841.89]},Eu;(function(r){r[r.Fastest=1/0]="Fastest",r[r.Fast=1500]="Fast",r[r.Medium=500]="Medium",r[r.Slow=100]="Slow"})(Eu||(Eu={}));var J5=function(){function r(t,e,i){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=i}return r.prototype.embed=function(){return ae(this,void 0,void 0,function(){var t,e,i,n,o;return le(this,function(s){switch(s.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=s.sent(),this.doc.catalog.has(K.of("Names"))||this.doc.catalog.set(K.of("Names"),this.doc.context.obj({})),e=this.doc.catalog.lookup(K.of("Names"),se),e.has(K.of("EmbeddedFiles"))||e.set(K.of("EmbeddedFiles"),this.doc.context.obj({})),i=e.lookup(K.of("EmbeddedFiles"),se),i.has(K.of("Names"))||i.set(K.of("Names"),this.doc.context.obj([])),n=i.lookup(K.of("Names"),Ee),n.push(Qt.fromText(this.embedder.fileName)),n.push(t),this.doc.catalog.has(K.of("AF"))||this.doc.catalog.set(K.of("AF"),this.doc.context.obj([])),o=this.doc.catalog.lookup(K.of("AF"),Ee),o.push(t),this.alreadyEmbedded=!0,s.label=2;case 2:return[2]}})})},r.of=function(t,e,i){return new r(t,e,i)},r}(),Q5=function(){function r(t,e,i){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=i}return r.prototype.embed=function(){return ae(this,void 0,void 0,function(){var t,e,i,n,o,s,a;return le(this,function(l){switch(l.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,e=t.catalog,i=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:n=l.sent(),e.has(K.of("Names"))||e.set(K.of("Names"),i.obj({})),o=e.lookup(K.of("Names"),se),o.has(K.of("JavaScript"))||o.set(K.of("JavaScript"),i.obj({})),s=o.lookup(K.of("JavaScript"),se),s.has(K.of("Names"))||s.set(K.of("Names"),i.obj([])),a=s.lookup(K.of("Names"),Ee),a.push(Qt.fromText(this.embedder.scriptName)),a.push(n),this.alreadyEmbedded=!0,l.label=2;case 2:return[2]}})})},r.of=function(t,e,i){return new r(t,e,i)},r}(),$5=function(){function r(t,e){this.script=t,this.scriptName=e}return r.for=function(t,e){return new r(t,e)},r.prototype.embedIntoContext=function(t,e){return ae(this,void 0,void 0,function(){var i;return le(this,function(n){return i=t.obj({Type:"Action",S:"JavaScript",JS:Qt.fromText(this.script)}),e?(t.assign(e,i),[2,e]):[2,t.register(i)]})})},r}(),dn=function(){function r(t,e,i){var n=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var o=[];return n.catalog.Pages().traverse(function(s,a){if(s instanceof Br){var l=n.pageMap.get(s);l||(l=Qi.of(s,a,n),n.pageMap.set(s,l)),o.push(l)}}),o},this.getOrCreateForm=function(){var o=n.catalog.getOrCreateAcroForm();return X5.of(o,n)},ct(t,"context",[[Jc,"PDFContext"]]),ct(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=Fr.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=Fr.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new N5;i&&this.updateInfoDict()}return r.load=function(t,e){return e===void 0&&(e={}),ae(this,void 0,void 0,function(){var i,n,o,s,a,l,h,c,u,f,d,p;return le(this,function(m){switch(m.label){case 0:return i=e.ignoreEncryption,n=i===void 0?!1:i,o=e.parseSpeed,s=o===void 0?Eu.Slow:o,a=e.throwOnInvalidObject,l=a===void 0?!1:a,h=e.updateMetadata,c=h===void 0?!0:h,u=e.capNumbers,f=u===void 0?!1:u,ct(t,"pdf",["string",Uint8Array,ArrayBuffer]),ct(n,"ignoreEncryption",["boolean"]),ct(s,"parseSpeed",["number"]),ct(l,"throwOnInvalidObject",["boolean"]),d=Cs(t),[4,e5.forBytesWithOptions(d,s,l,f).parseDocument()];case 1:return p=m.sent(),[2,new r(p,n,c)]}})})},r.create=function(t){return t===void 0&&(t={}),ae(this,void 0,void 0,function(){var e,i,n,o,s,a;return le(this,function(l){return e=t.updateMetadata,i=e===void 0?!0:e,n=Jc.create(),o=f1.withContext(n),s=n.register(o),a=d1.withContextAndPages(n,s),n.trailerInfo.Root=n.register(a),[2,new r(n,!1,i)]})})},r.prototype.registerFontkit=function(t){this.fontkit=t},r.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t},r.prototype.getTitle=function(){var t=this.getInfoDict().lookup(K.Title);if(t)return fn(t),t.decodeText()},r.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(K.Author);if(t)return fn(t),t.decodeText()},r.prototype.getSubject=function(){var t=this.getInfoDict().lookup(K.Subject);if(t)return fn(t),t.decodeText()},r.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(K.Keywords);if(t)return fn(t),t.decodeText()},r.prototype.getCreator=function(){var t=this.getInfoDict().lookup(K.Creator);if(t)return fn(t),t.decodeText()},r.prototype.getProducer=function(){var t=this.getInfoDict().lookup(K.Producer);if(t)return fn(t),t.decodeText()},r.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(K.CreationDate);if(t)return fn(t),t.decodeDate()},r.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(K.ModDate);if(t)return fn(t),t.decodeDate()},r.prototype.setTitle=function(t,e){ct(t,"title",["string"]);var i=K.of("Title");if(this.getInfoDict().set(i,Qt.fromText(t)),e!=null&&e.showInWindowTitleBar){var n=this.catalog.getOrCreateViewerPreferences();n.setDisplayDocTitle(!0)}},r.prototype.setAuthor=function(t){ct(t,"author",["string"]);var e=K.of("Author");this.getInfoDict().set(e,Qt.fromText(t))},r.prototype.setSubject=function(t){ct(t,"author",["string"]);var e=K.of("Subject");this.getInfoDict().set(e,Qt.fromText(t))},r.prototype.setKeywords=function(t){ct(t,"keywords",[Array]);var e=K.of("Keywords");this.getInfoDict().set(e,Qt.fromText(t.join(" ")))},r.prototype.setCreator=function(t){ct(t,"creator",["string"]);var e=K.of("Creator");this.getInfoDict().set(e,Qt.fromText(t))},r.prototype.setProducer=function(t){ct(t,"creator",["string"]);var e=K.of("Producer");this.getInfoDict().set(e,Qt.fromText(t))},r.prototype.setLanguage=function(t){ct(t,"language",["string"]);var e=K.of("Lang");this.catalog.set(e,Ae.of(t))},r.prototype.setCreationDate=function(t){ct(t,"creationDate",[[Date,"Date"]]);var e=K.of("CreationDate");this.getInfoDict().set(e,Ae.fromDate(t))},r.prototype.setModificationDate=function(t){ct(t,"modificationDate",[[Date,"Date"]]);var e=K.of("ModDate");this.getInfoDict().set(e,Ae.fromDate(t))},r.prototype.getPageCount=function(){return this.pageCount===void 0&&(this.pageCount=this.getPages().length),this.pageCount},r.prototype.getPages=function(){return this.pageCache.access()},r.prototype.getPage=function(t){var e=this.getPages();return Ri(t,"index",0,e.length-1),e[t]},r.prototype.getPageIndices=function(){return vx(0,this.getPageCount())},r.prototype.removePage=function(t){var e=this.getPageCount();if(this.pageCount===0)throw new k5;Ri(t,"index",0,e-1),this.catalog.removeLeafNode(t),this.pageCount=e-1},r.prototype.addPage=function(t){return ct(t,"page",["undefined",[Qi,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},r.prototype.insertPage=function(t,e){var i=this.getPageCount();if(Ri(t,"index",0,i),ct(e,"page",["undefined",[Qi,"PDFPage"],Array]),!e||Array.isArray(e)){var n=Array.isArray(e)?e:Z5.A4;e=Qi.create(this),e.setSize.apply(e,n)}else if(e.doc!==this)throw new _5;var o=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(o),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=i+1,e},r.prototype.copyPages=function(t,e){return ae(this,void 0,void 0,function(){var i,n,o,s,a,l,h,c;return le(this,function(u){switch(u.label){case 0:return ct(t,"srcDoc",[[r,"PDFDocument"]]),ct(e,"indices",[Array]),[4,t.flush()];case 1:for(u.sent(),i=Vp.for(t.context,this.context),n=t.getPages(),o=new Array(e.length),s=0,a=e.length;s<a;s++)l=n[e[s]],h=i.copy(l.node),c=this.context.register(h),o[s]=Qi.of(h,c,this);return[2,o]}})})},r.prototype.copy=function(){return ae(this,void 0,void 0,function(){var t,e,i,n;return le(this,function(o){switch(o.label){case 0:return[4,r.create()];case 1:return t=o.sent(),[4,t.copyPages(this,this.getPageIndices())];case 2:for(e=o.sent(),i=0,n=e.length;i<n;i++)t.addPage(e[i]);return this.getAuthor()!==void 0&&t.setAuthor(this.getAuthor()),this.getCreationDate()!==void 0&&t.setCreationDate(this.getCreationDate()),this.getCreator()!==void 0&&t.setCreator(this.getCreator()),this.getModificationDate()!==void 0&&t.setModificationDate(this.getModificationDate()),this.getProducer()!==void 0&&t.setProducer(this.getProducer()),this.getSubject()!==void 0&&t.setSubject(this.getSubject()),this.getTitle()!==void 0&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,[2,t]}})})},r.prototype.addJavaScript=function(t,e){ct(t,"name",["string"]),ct(e,"script",["string"]);var i=$5.for(e,t),n=this.context.nextRef(),o=Q5.of(n,this,i);this.javaScripts.push(o)},r.prototype.attach=function(t,e,i){return i===void 0&&(i={}),ae(this,void 0,void 0,function(){var n,o,s,a;return le(this,function(l){return ct(t,"attachment",["string",Uint8Array,ArrayBuffer]),ct(e,"name",["string"]),Ft(i.mimeType,"mimeType",["string"]),Ft(i.description,"description",["string"]),Ft(i.creationDate,"options.creationDate",[Date]),Ft(i.modificationDate,"options.modificationDate",[Date]),Gi(i.afRelationship,"options.afRelationship",tu),n=Cs(t),o=A4.for(n,e,i),s=this.context.nextRef(),a=J5.of(s,this,o),this.embeddedFiles.push(a),[2]})})},r.prototype.embedFont=function(t,e){return e===void 0&&(e={}),ae(this,void 0,void 0,function(){var i,n,o,s,a,l,h,c,u,f;return le(this,function(d){switch(d.label){case 0:return i=e.subset,n=i===void 0?!1:i,o=e.customName,s=e.features,ct(t,"font",["string",Uint8Array,ArrayBuffer]),ct(n,"subset",["boolean"]),Op(t)?(a=cl.for(t,o),[3,7]):[3,1];case 1:return bx(t)?(l=Cs(t),h=this.assertFontkit(),n?[4,N4.for(h,l,o,s)]:[3,3]):[3,6];case 2:return c=d.sent(),[3,5];case 3:return[4,$c.for(h,l,o,s)];case 4:c=d.sent(),d.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(),f=Bi.of(u,this,a),this.fonts.push(f),[2,f]}})})},r.prototype.embedStandardFont=function(t,e){if(ct(t,"font",["string"]),!Op(t))throw new TypeError("`font` must be one of type `StandardFonts`");var i=cl.for(t,e),n=this.context.nextRef(),o=Bi.of(n,this,i);return this.fonts.push(o),o},r.prototype.embedJpg=function(t){return ae(this,void 0,void 0,function(){var e,i,n,o;return le(this,function(s){switch(s.label){case 0:return ct(t,"jpg",["string",Uint8Array,ArrayBuffer]),e=Cs(t),[4,$p.for(e)];case 1:return i=s.sent(),n=this.context.nextRef(),o=xu.of(n,this,i),this.images.push(o),[2,o]}})})},r.prototype.embedPng=function(t){return ae(this,void 0,void 0,function(){var e,i,n,o;return le(this,function(s){switch(s.label){case 0:return ct(t,"png",["string",Uint8Array,ArrayBuffer]),e=Cs(t),[4,t1.for(e)];case 1:return i=s.sent(),n=this.context.nextRef(),o=xu.of(n,this,i),this.images.push(o),[2,o]}})})},r.prototype.embedPdf=function(t,e){return e===void 0&&(e=[0]),ae(this,void 0,void 0,function(){var i,n,o;return le(this,function(s){switch(s.label){case 0:return ct(t,"pdf",["string",Uint8Array,ArrayBuffer,[r,"PDFDocument"]]),ct(e,"indices",[Array]),t instanceof r?(n=t,[3,3]):[3,1];case 1:return[4,r.load(t)];case 2:n=s.sent(),s.label=3;case 3:return i=n,o=yx(i.getPages(),e),[2,this.embedPages(o)]}})})},r.prototype.embedPage=function(t,e,i){return ae(this,void 0,void 0,function(){var n;return le(this,function(o){switch(o.label){case 0:return ct(t,"page",[[Qi,"PDFPage"]]),[4,this.embedPages([t],[e],[i])];case 1:return n=o.sent()[0],[2,n]}})})},r.prototype.embedPages=function(t,e,i){return e===void 0&&(e=[]),i===void 0&&(i=[]),ae(this,void 0,void 0,function(){var h,c,n,o,s,a,l,h,c,u,f,d,p,m,v;return le(this,function(g){switch(g.label){case 0:if(t.length===0)return[2,[]];for(h=0,c=t.length-1;h<c;h++)if(n=t[h],o=t[h+1],n.node.context!==o.node.context)throw new $x;s=t[0].node.context,a=s===this.context?function(b){return b}:Vp.for(s,this.context).copy,l=new Array(t.length),h=0,c=t.length,g.label=1;case 1:return h<c?(u=a(t[h].node),f=e[h],d=i[h],[4,s1.for(u,f,d)]):[3,4];case 2:p=g.sent(),m=this.context.nextRef(),l[h]=G1.of(m,this,p),g.label=3;case 3:return h++,[3,1];case 4:return(v=this.embeddedPages).push.apply(v,l),[2,l]}})})},r.prototype.flush=function(){return ae(this,void 0,void 0,function(){return le(this,function(t){switch(t.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return t.sent(),[4,this.embedAll(this.images)];case 2:return t.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return t.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return t.sent(),[4,this.embedAll(this.javaScripts)];case 5:return t.sent(),[2]}})})},r.prototype.save=function(t){return t===void 0&&(t={}),ae(this,void 0,void 0,function(){var e,i,n,o,s,a,l,h,c,u;return le(this,function(f){switch(f.label){case 0:return e=t.useObjectStreams,i=e===void 0?!0:e,n=t.addDefaultPage,o=n===void 0?!0:n,s=t.objectsPerTick,a=s===void 0?50:s,l=t.updateFieldAppearances,h=l===void 0?!0:l,ct(i,"useObjectStreams",["boolean"]),ct(o,"addDefaultPage",["boolean"]),ct(a,"objectsPerTick",["number"]),ct(h,"updateFieldAppearances",["boolean"]),o&&this.getPageCount()===0&&this.addPage(),h&&(c=this.formCache.getValue(),c&&c.updateFieldAppearances()),[4,this.flush()];case 1:return f.sent(),u=i?x4:Yp,[2,u.forContext(this.context,a).serializeToBuffer()]}})})},r.prototype.saveAsBase64=function(t){return t===void 0&&(t={}),ae(this,void 0,void 0,function(){var e,i,n,o,s;return le(this,function(a){switch(a.label){case 0:return e=t.dataUri,i=e===void 0?!1:e,n=tx(t,["dataUri"]),ct(i,"dataUri",["boolean"]),[4,this.save(n)];case 1:return o=a.sent(),s=ex(o),[2,i?"data:application/pdf;base64,"+s:s]}})})},r.prototype.findPageForAnnotationRef=function(t){for(var e=this.getPages(),i=0,n=e.length;i<n;i++){var o=e[i],s=o.node.Annots();if((s==null?void 0:s.indexOf(t))!==void 0)return o}},r.prototype.embedAll=function(t){return ae(this,void 0,void 0,function(){var e,i;return le(this,function(n){switch(n.label){case 0:e=0,i=t.length,n.label=1;case 1:return e<i?[4,t[e].embed()]:[3,4];case 2:n.sent(),n.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},r.prototype.updateInfoDict=function(){var t="pdf-lib (https://github.com/Hopding/pdf-lib)",e=new Date,i=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),i.get(K.of("Creator"))||this.setCreator(t),i.get(K.of("CreationDate"))||this.setCreationDate(e)},r.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof se)return t;var e=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(e),e},r.prototype.assertFontkit=function(){if(!this.fontkit)throw new A5;return this.fontkit},r}();function fn(r){if(!(r instanceof Qt)&&!(r instanceof Ae))throw new al([Qt,Ae],r)}var Pr;(function(r){r.Normal="Normal",r.Multiply="Multiply",r.Screen="Screen",r.Overlay="Overlay",r.Darken="Darken",r.Lighten="Lighten",r.ColorDodge="ColorDodge",r.ColorBurn="ColorBurn",r.HardLight="HardLight",r.SoftLight="SoftLight",r.Difference="Difference",r.Exclusion="Exclusion"})(Pr||(Pr={}));var Qi=function(){function r(t,e,i){this.fontSize=24,this.fontColor=ke(0,0,0),this.lineHeight=24,this.x=0,this.y=0,ct(t,"leafNode",[[Br,"PDFPageLeaf"]]),ct(e,"ref",[[Ne,"PDFRef"]]),ct(i,"doc",[[dn,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=i}return r.prototype.setRotation=function(t){var e=x1(t);Ip(e,"degreesAngle",90),this.node.set(K.of("Rotate"),this.doc.context.obj(e))},r.prototype.getRotation=function(){var t=this.node.Rotate();return $t(t?t.asNumber():0)},r.prototype.setSize=function(t,e){ct(t,"width",["number"]),ct(e,"height",["number"]);var i=this.getMediaBox();this.setMediaBox(i.x,i.y,t,e);var n=this.getCropBox(),o=this.getBleedBox(),s=this.getTrimBox(),a=this.getArtBox(),l=this.node.CropBox(),h=this.node.BleedBox(),c=this.node.TrimBox(),u=this.node.ArtBox();l&&nl(n,i)&&this.setCropBox(i.x,i.y,t,e),h&&nl(o,i)&&this.setBleedBox(i.x,i.y,t,e),c&&nl(s,i)&&this.setTrimBox(i.x,i.y,t,e),u&&nl(a,i)&&this.setArtBox(i.x,i.y,t,e)},r.prototype.setWidth=function(t){ct(t,"width",["number"]),this.setSize(t,this.getSize().height)},r.prototype.setHeight=function(t){ct(t,"height",["number"]),this.setSize(this.getSize().width,t)},r.prototype.setMediaBox=function(t,e,i,n){ct(t,"x",["number"]),ct(e,"y",["number"]),ct(i,"width",["number"]),ct(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(K.MediaBox,o)},r.prototype.setCropBox=function(t,e,i,n){ct(t,"x",["number"]),ct(e,"y",["number"]),ct(i,"width",["number"]),ct(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(K.CropBox,o)},r.prototype.setBleedBox=function(t,e,i,n){ct(t,"x",["number"]),ct(e,"y",["number"]),ct(i,"width",["number"]),ct(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(K.BleedBox,o)},r.prototype.setTrimBox=function(t,e,i,n){ct(t,"x",["number"]),ct(e,"y",["number"]),ct(i,"width",["number"]),ct(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(K.TrimBox,o)},r.prototype.setArtBox=function(t,e,i,n){ct(t,"x",["number"]),ct(e,"y",["number"]),ct(i,"width",["number"]),ct(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(K.ArtBox,o)},r.prototype.getSize=function(){var t=this.getMediaBox(),e=t.width,i=t.height;return{width:e,height:i}},r.prototype.getWidth=function(){return this.getSize().width},r.prototype.getHeight=function(){return this.getSize().height},r.prototype.getMediaBox=function(){var t=this.node.MediaBox();return t.asRectangle()},r.prototype.getCropBox=function(){var t,e=this.node.CropBox();return(t=e==null?void 0:e.asRectangle())!==null&&t!==void 0?t:this.getMediaBox()},r.prototype.getBleedBox=function(){var t,e=this.node.BleedBox();return(t=e==null?void 0:e.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},r.prototype.getTrimBox=function(){var t,e=this.node.TrimBox();return(t=e==null?void 0:e.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},r.prototype.getArtBox=function(){var t,e=this.node.ArtBox();return(t=e==null?void 0:e.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},r.prototype.translateContent=function(t,e){ct(t,"x",["number"]),ct(e,"y",["number"]),this.node.normalize(),this.getContentStream();var i=this.createContentStream(ti(),Yi(t,e)),n=this.doc.context.register(i),o=this.createContentStream(ei()),s=this.doc.context.register(o);this.node.wrapContentStreams(n,s)},r.prototype.scale=function(t,e){ct(t,"x",["number"]),ct(e,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)},r.prototype.scaleContent=function(t,e){ct(t,"x",["number"]),ct(e,"y",["number"]),this.node.normalize(),this.getContentStream();var i=this.createContentStream(ti(),Ws(t,e)),n=this.doc.context.register(i),o=this.createContentStream(ei()),s=this.doc.context.register(o);this.node.wrapContentStreams(n,s)},r.prototype.scaleAnnotations=function(t,e){ct(t,"x",["number"]),ct(e,"y",["number"]);var i=this.node.Annots();if(i)for(var n=0;n<i.size();n++){var o=i.lookup(n);o instanceof se&&this.scaleAnnot(o,t,e)}},r.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},r.prototype.setFont=function(t){ct(t,"font",[[Bi,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},r.prototype.setFontSize=function(t){ct(t,"fontSize",["number"]),this.fontSize=t},r.prototype.setFontColor=function(t){ct(t,"fontColor",[[Object,"Color"]]),this.fontColor=t},r.prototype.setLineHeight=function(t){ct(t,"lineHeight",["number"]),this.lineHeight=t},r.prototype.getPosition=function(){return{x:this.x,y:this.y}},r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.moveTo=function(t,e){ct(t,"x",["number"]),ct(e,"y",["number"]),this.x=t,this.y=e},r.prototype.moveDown=function(t){ct(t,"yDecrease",["number"]),this.y-=t},r.prototype.moveUp=function(t){ct(t,"yIncrease",["number"]),this.y+=t},r.prototype.moveLeft=function(t){ct(t,"xDecrease",["number"]),this.x-=t},r.prototype.moveRight=function(t){ct(t,"xIncrease",["number"]),this.x+=t},r.prototype.pushOperators=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Fp(t,"operator",[[me,"PDFOperator"]]);var i=this.getContentStream();i.push.apply(i,t)},r.prototype.drawText=function(t,e){var i,n,o,s,a,l,h;e===void 0&&(e={}),ct(t,"text",["string"]),Ft(e.color,"options.color",[[Object,"Color"]]),lr(e.opacity,"opacity.opacity",0,1),Ft(e.font,"options.font",[[Bi,"PDFFont"]]),Ft(e.size,"options.size",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.lineHeight,"options.lineHeight",["number"]),Ft(e.maxWidth,"options.maxWidth",["number"]),Ft(e.wordBreaks,"options.wordBreaks",[Array]),Gi(e.blendMode,"options.blendMode",Pr);for(var c=this.setOrEmbedFont(e.font),u=c.oldFont,f=c.newFont,d=c.newFontKey,p=e.size||this.fontSize,m=e.wordBreaks||this.doc.defaultWordBreaks,v=function(F){return f.widthOfTextAtSize(F,p)},g=e.maxWidth===void 0?Z0(Ts(t)):cx(t,m,e.maxWidth,v),b=new Array(g.length),y=0,x=g.length;y<x;y++)b[y]=f.encodeText(g[y]);var C=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),R=this.getContentStream();R.push.apply(R,y5(b,{color:(i=e.color)!==null&&i!==void 0?i:this.fontColor,font:d,size:p,rotate:(n=e.rotate)!==null&&n!==void 0?n:$t(0),xSkew:(o=e.xSkew)!==null&&o!==void 0?o:$t(0),ySkew:(s=e.ySkew)!==null&&s!==void 0?s:$t(0),x:(a=e.x)!==null&&a!==void 0?a:this.x,y:(l=e.y)!==null&&l!==void 0?l:this.y,lineHeight:(h=e.lineHeight)!==null&&h!==void 0?h:this.lineHeight,graphicsState:C})),e.font&&(u?this.setFont(u):this.resetFont())},r.prototype.drawImage=function(t,e){var i,n,o,s,a,l,h;e===void 0&&(e={}),ct(t,"image",[[xu,"PDFImage"]]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.width,"options.width",["number"]),Ft(e.height,"options.height",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),lr(e.opacity,"opacity.opacity",0,1),Gi(e.blendMode,"options.blendMode",Pr);var c=this.node.newXObject("Image",t.ref),u=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),f=this.getContentStream();f.push.apply(f,B1(c,{x:(i=e.x)!==null&&i!==void 0?i:this.x,y:(n=e.y)!==null&&n!==void 0?n:this.y,width:(o=e.width)!==null&&o!==void 0?o:t.size().width,height:(s=e.height)!==null&&s!==void 0?s:t.size().height,rotate:(a=e.rotate)!==null&&a!==void 0?a:$t(0),xSkew:(l=e.xSkew)!==null&&l!==void 0?l:$t(0),ySkew:(h=e.ySkew)!==null&&h!==void 0?h:$t(0),graphicsState:u}))},r.prototype.drawPage=function(t,e){var i,n,o,s,a;e===void 0&&(e={}),ct(t,"embeddedPage",[[G1,"PDFEmbeddedPage"]]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.xScale,"options.xScale",["number"]),Ft(e.yScale,"options.yScale",["number"]),Ft(e.width,"options.width",["number"]),Ft(e.height,"options.height",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),lr(e.opacity,"opacity.opacity",0,1),Gi(e.blendMode,"options.blendMode",Pr);var l=this.node.newXObject("EmbeddedPdfPage",t.ref),h=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),c=e.width!==void 0?e.width/t.width:e.xScale!==void 0?e.xScale:1,u=e.height!==void 0?e.height/t.height:e.yScale!==void 0?e.yScale:1,f=this.getContentStream();f.push.apply(f,b5(l,{x:(i=e.x)!==null&&i!==void 0?i:this.x,y:(n=e.y)!==null&&n!==void 0?n:this.y,xScale:c,yScale:u,rotate:(o=e.rotate)!==null&&o!==void 0?o:$t(0),xSkew:(s=e.xSkew)!==null&&s!==void 0?s:$t(0),ySkew:(a=e.ySkew)!==null&&a!==void 0?a:$t(0),graphicsState:h}))},r.prototype.drawSvgPath=function(t,e){var i,n,o,s,a,l,h,c,u;e===void 0&&(e={}),ct(t,"path",["string"]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.scale,"options.scale",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.borderWidth,"options.borderWidth",["number"]),Ft(e.color,"options.color",[[Object,"Color"]]),lr(e.opacity,"opacity.opacity",0,1),Ft(e.borderColor,"options.borderColor",[[Object,"Color"]]),Ft(e.borderDashArray,"options.borderDashArray",[Array]),Ft(e.borderDashPhase,"options.borderDashPhase",["number"]),Gi(e.borderLineCap,"options.borderLineCap",Lo),lr(e.borderOpacity,"options.borderOpacity",0,1),Gi(e.blendMode,"options.blendMode",Pr);var f=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});!("color"in e)&&!("borderColor"in e)&&(e.borderColor=ke(0,0,0));var d=this.getContentStream();d.push.apply(d,T5(t,{x:(i=e.x)!==null&&i!==void 0?i:this.x,y:(n=e.y)!==null&&n!==void 0?n:this.y,scale:e.scale,rotate:(o=e.rotate)!==null&&o!==void 0?o:$t(0),color:(s=e.color)!==null&&s!==void 0?s:void 0,borderColor:(a=e.borderColor)!==null&&a!==void 0?a:void 0,borderWidth:(l=e.borderWidth)!==null&&l!==void 0?l:0,borderDashArray:(h=e.borderDashArray)!==null&&h!==void 0?h:void 0,borderDashPhase:(c=e.borderDashPhase)!==null&&c!==void 0?c:void 0,borderLineCap:(u=e.borderLineCap)!==null&&u!==void 0?u:void 0,graphicsState:f}))},r.prototype.drawLine=function(t){var e,i,n,o,s;ct(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),ct(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),ct(t.start.x,"options.start.x",["number"]),ct(t.start.y,"options.start.y",["number"]),ct(t.end.x,"options.end.x",["number"]),ct(t.end.y,"options.end.y",["number"]),Ft(t.thickness,"options.thickness",["number"]),Ft(t.color,"options.color",[[Object,"Color"]]),Ft(t.dashArray,"options.dashArray",[Array]),Ft(t.dashPhase,"options.dashPhase",["number"]),Gi(t.lineCap,"options.lineCap",Lo),lr(t.opacity,"opacity.opacity",0,1),Gi(t.blendMode,"options.blendMode",Pr);var a=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=ke(0,0,0));var l=this.getContentStream();l.push.apply(l,x5({start:t.start,end:t.end,thickness:(e=t.thickness)!==null&&e!==void 0?e:1,color:(i=t.color)!==null&&i!==void 0?i:void 0,dashArray:(n=t.dashArray)!==null&&n!==void 0?n:void 0,dashPhase:(o=t.dashPhase)!==null&&o!==void 0?o:void 0,lineCap:(s=t.lineCap)!==null&&s!==void 0?s:void 0,graphicsState:a}))},r.prototype.drawRectangle=function(t){var e,i,n,o,s,a,l,h,c,u,f,d,p;t===void 0&&(t={}),Ft(t.x,"options.x",["number"]),Ft(t.y,"options.y",["number"]),Ft(t.width,"options.width",["number"]),Ft(t.height,"options.height",["number"]),Ft(t.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Ft(t.borderWidth,"options.borderWidth",["number"]),Ft(t.color,"options.color",[[Object,"Color"]]),lr(t.opacity,"opacity.opacity",0,1),Ft(t.borderColor,"options.borderColor",[[Object,"Color"]]),Ft(t.borderDashArray,"options.borderDashArray",[Array]),Ft(t.borderDashPhase,"options.borderDashPhase",["number"]),Gi(t.borderLineCap,"options.borderLineCap",Lo),lr(t.borderOpacity,"options.borderOpacity",0,1),Gi(t.blendMode,"options.blendMode",Pr);var m=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});!("color"in t)&&!("borderColor"in t)&&(t.color=ke(0,0,0));var v=this.getContentStream();v.push.apply(v,Mo({x:(e=t.x)!==null&&e!==void 0?e:this.x,y:(i=t.y)!==null&&i!==void 0?i:this.y,width:(n=t.width)!==null&&n!==void 0?n:150,height:(o=t.height)!==null&&o!==void 0?o:100,rotate:(s=t.rotate)!==null&&s!==void 0?s:$t(0),xSkew:(a=t.xSkew)!==null&&a!==void 0?a:$t(0),ySkew:(l=t.ySkew)!==null&&l!==void 0?l:$t(0),borderWidth:(h=t.borderWidth)!==null&&h!==void 0?h:0,color:(c=t.color)!==null&&c!==void 0?c:void 0,borderColor:(u=t.borderColor)!==null&&u!==void 0?u:void 0,borderDashArray:(f=t.borderDashArray)!==null&&f!==void 0?f:void 0,borderDashPhase:(d=t.borderDashPhase)!==null&&d!==void 0?d:void 0,graphicsState:m,borderLineCap:(p=t.borderLineCap)!==null&&p!==void 0?p:void 0}))},r.prototype.drawSquare=function(t){t===void 0&&(t={});var e=t.size;Ft(e,"size",["number"]),this.drawRectangle(re(re({},t),{width:e,height:e}))},r.prototype.drawEllipse=function(t){var e,i,n,o,s,a,l,h,c,u,f;t===void 0&&(t={}),Ft(t.x,"options.x",["number"]),Ft(t.y,"options.y",["number"]),Ft(t.xScale,"options.xScale",["number"]),Ft(t.yScale,"options.yScale",["number"]),Ft(t.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(t.color,"options.color",[[Object,"Color"]]),lr(t.opacity,"opacity.opacity",0,1),Ft(t.borderColor,"options.borderColor",[[Object,"Color"]]),lr(t.borderOpacity,"options.borderOpacity",0,1),Ft(t.borderWidth,"options.borderWidth",["number"]),Ft(t.borderDashArray,"options.borderDashArray",[Array]),Ft(t.borderDashPhase,"options.borderDashPhase",["number"]),Gi(t.borderLineCap,"options.borderLineCap",Lo),Gi(t.blendMode,"options.blendMode",Pr);var d=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});!("color"in t)&&!("borderColor"in t)&&(t.color=ke(0,0,0));var p=this.getContentStream();p.push.apply(p,yu({x:(e=t.x)!==null&&e!==void 0?e:this.x,y:(i=t.y)!==null&&i!==void 0?i:this.y,xScale:(n=t.xScale)!==null&&n!==void 0?n:100,yScale:(o=t.yScale)!==null&&o!==void 0?o:100,rotate:(s=t.rotate)!==null&&s!==void 0?s:void 0,color:(a=t.color)!==null&&a!==void 0?a:void 0,borderColor:(l=t.borderColor)!==null&&l!==void 0?l:void 0,borderWidth:(h=t.borderWidth)!==null&&h!==void 0?h:0,borderDashArray:(c=t.borderDashArray)!==null&&c!==void 0?c:void 0,borderDashPhase:(u=t.borderDashPhase)!==null&&u!==void 0?u:void 0,borderLineCap:(f=t.borderLineCap)!==null&&f!==void 0?f:void 0,graphicsState:d}))},r.prototype.drawCircle=function(t){t===void 0&&(t={});var e=t.size,i=e===void 0?100:e;Ft(i,"size",["number"]),this.drawEllipse(re(re({},t),{xScale:i,yScale:i}))},r.prototype.setOrEmbedFont=function(t){var e=this.font,i=this.fontKey;t?this.setFont(t):this.getFont();var n=this.font,o=this.fontKey;return{oldFont:e,oldFontKey:i,newFont:n,newFontKey:o}},r.prototype.getFont=function(){if(!this.font||!this.fontKey){var t=this.doc.embedStandardFont(jl.Helvetica);this.setFont(t)}return[this.font,this.fontKey]},r.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},r.prototype.getContentStream=function(t){return t===void 0&&(t=!0),t&&this.contentStream?this.contentStream:(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef),this.contentStream)},r.prototype.createContentStream=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.doc.context.obj({}),n=Ds.of(i,t);return n},r.prototype.maybeEmbedGraphicsState=function(t){var e=t.opacity,i=t.borderOpacity,n=t.blendMode;if(!(e===void 0&&i===void 0&&n===void 0)){var o=this.doc.context.obj({Type:"ExtGState",ca:e,CA:i,BM:n}),s=this.node.newExtGState("GS",o);return s}},r.prototype.scaleAnnot=function(t,e,i){for(var n=["RD","CL","Vertices","QuadPoints","L","Rect"],o=0,s=n.length;o<s;o++){var a=t.lookup(K.of(n[o]));a instanceof Ee&&a.scalePDFNumbers(e,i)}var l=t.lookup(K.of("InkList"));if(l instanceof Ee)for(var o=0,s=l.size();o<s;o++){var h=l.lookup(o);h instanceof Ee&&h.scalePDFNumbers(e,i)}},r.of=function(t,e,i){return new r(t,e,i)},r.create=function(t){ct(t,"doc",[[dn,"PDFDocument"]]);var e=Ne.of(-1),i=Br.withContextAndParent(t.context,e),n=t.context.register(i);return new r(i,n,t)},r}(),ql=function(r){It(t,r);function t(e,i,n){var o=r.call(this,e,i,n)||this;return ct(e,"acroButton",[[yl,"PDFAcroPushButton"]]),o.acroField=e,o}return t.prototype.setImage=function(e,i){i===void 0&&(i=un.Center);for(var n=this.acroField.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o],l=this.createImageAppearanceStream(a,e,i);this.updateWidgetAppearances(a,{normal:l})}this.markAsClean()},t.prototype.setFontSize=function(e){ol(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()},t.prototype.addToPage=function(e,i,n){var o,s,a,l,h,c,u,f,d,p,m;Ft(e,"text",["string"]),Ft(i,"page",[[Qi,"PDFPage"]]),Oo(n);var v=this.createWidget({x:((o=n==null?void 0:n.x)!==null&&o!==void 0?o:0)-((s=n==null?void 0:n.borderWidth)!==null&&s!==void 0?s:0)/2,y:((a=n==null?void 0:n.y)!==null&&a!==void 0?a:0)-((l=n==null?void 0:n.borderWidth)!==null&&l!==void 0?l:0)/2,width:(h=n==null?void 0:n.width)!==null&&h!==void 0?h:100,height:(c=n==null?void 0:n.height)!==null&&c!==void 0?c:50,textColor:(u=n==null?void 0:n.textColor)!==null&&u!==void 0?u:ke(0,0,0),backgroundColor:(f=n==null?void 0:n.backgroundColor)!==null&&f!==void 0?f:ke(.75,.75,.75),borderColor:n==null?void 0:n.borderColor,borderWidth:(d=n==null?void 0:n.borderWidth)!==null&&d!==void 0?d:0,rotate:(p=n==null?void 0:n.rotate)!==null&&p!==void 0?p:$t(0),caption:e,hidden:n==null?void 0:n.hidden,page:i.ref}),g=this.doc.context.register(v.dict);this.acroField.addWidget(g);var b=(m=n==null?void 0:n.font)!==null&&m!==void 0?m:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(v,b),i.node.addAnnot(g)},t.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var i=this.acroField.getWidgets(),n=0,o=i.length;n<o;n++){var s=i[n],a=((e=s.getAppearances())===null||e===void 0?void 0:e.normal)instanceof Fi;if(!a)return!0}return!1},t.prototype.defaultUpdateAppearances=function(e){ct(e,"font",[[Bi,"PDFFont"]]),this.updateAppearances(e)},t.prototype.updateAppearances=function(e,i){ct(e,"font",[[Bi,"PDFFont"]]),Ft(i,"provider",[Function]);for(var n=this.acroField.getWidgets(),o=0,s=n.length;o<s;o++){var a=n[o];this.updateWidgetAppearance(a,e,i)}},t.prototype.updateWidgetAppearance=function(e,i,n){var o=n??H5,s=Do(o(this,e,i));this.updateWidgetAppearanceWithFont(e,i,s)},t.of=function(e,i,n){return new t(e,i,n)},t}(Xn);class V1{constructor(t){this.mindMap=t.mindMap}async pdf(t){return new Promise((e,i)=>{const n=new Image;n.onload=async()=>{const o=n.width,s=n.height,a=await dn.create(),l=a.addPage();l.setSize(o,s);const h=await a.embedPng(t);l.drawImage(h,{x:0,y:0,width:o,height:s});const c=await a.save(),u=new Blob([c]),f=await yo(u);e(f)},n.onerror=o=>{i(o)},n.src=t})}}V1.instanceName="doExportPDF";function Wl(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tu={exports:{}};/*!

  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
  <http://stuartk.com/jszip>

  (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

  JSZip uses the library pako released under the MIT license :
  https://github.com/nodeca/pako/blob/main/LICENSE
  */var K1;function tw(){return K1||(K1=1,function(r,t){(function(e){r.exports=e()})(function(){return function e(i,n,o){function s(h,c){if(!n[h]){if(!i[h]){var u=typeof Wl=="function"&&Wl;if(!c&&u)return u(h,!0);if(a)return a(h,!0);var f=new Error("Cannot find module '"+h+"'");throw f.code="MODULE_NOT_FOUND",f}var d=n[h]={exports:{}};i[h][0].call(d.exports,function(p){var m=i[h][1][p];return s(m||p)},d,d.exports,e,i,n,o)}return n[h].exports}for(var a=typeof Wl=="function"&&Wl,l=0;l<o.length;l++)s(o[l]);return s}({1:[function(e,i,n){var o=e("./utils"),s=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(l){for(var h,c,u,f,d,p,m,v=[],g=0,b=l.length,y=b,x=o.getTypeOf(l)!=="string";g<l.length;)y=b-g,u=x?(h=l[g++],c=g<b?l[g++]:0,g<b?l[g++]:0):(h=l.charCodeAt(g++),c=g<b?l.charCodeAt(g++):0,g<b?l.charCodeAt(g++):0),f=h>>2,d=(3&h)<<4|c>>4,p=1<y?(15&c)<<2|u>>6:64,m=2<y?63&u:64,v.push(a.charAt(f)+a.charAt(d)+a.charAt(p)+a.charAt(m));return v.join("")},n.decode=function(l){var h,c,u,f,d,p,m=0,v=0,g="data:";if(l.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var b,y=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===a.charAt(64)&&y--,l.charAt(l.length-2)===a.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=s.uint8array?new Uint8Array(0|y):new Array(0|y);m<l.length;)h=a.indexOf(l.charAt(m++))<<2|(f=a.indexOf(l.charAt(m++)))>>4,c=(15&f)<<4|(d=a.indexOf(l.charAt(m++)))>>2,u=(3&d)<<6|(p=a.indexOf(l.charAt(m++))),b[v++]=h,d!==64&&(b[v++]=c),p!==64&&(b[v++]=u);return b}},{"./support":30,"./utils":32}],2:[function(e,i,n){var o=e("./external"),s=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),l=e("./stream/DataLengthProbe");function h(c,u,f,d,p){this.compressedSize=c,this.uncompressedSize=u,this.crc32=f,this.compression=d,this.compressedContent=p}h.prototype={getContentWorker:function(){var c=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),u=this;return c.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(c,u,f){return c.pipe(new a).pipe(new l("uncompressedSize")).pipe(u.compressWorker(f)).pipe(new l("compressedSize")).withStreamInfo("compression",u)},i.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,i,n){var o=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,i,n){var o=e("./utils"),s=function(){for(var a,l=[],h=0;h<256;h++){a=h;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;l[h]=a}return l}();i.exports=function(a,l){return a!==void 0&&a.length?o.getTypeOf(a)!=="string"?function(h,c,u,f){var d=s,p=f+u;h^=-1;for(var m=f;m<p;m++)h=h>>>8^d[255&(h^c[m])];return-1^h}(0|l,a,a.length,0):function(h,c,u,f){var d=s,p=f+u;h^=-1;for(var m=f;m<p;m++)h=h>>>8^d[255&(h^c.charCodeAt(m))];return-1^h}(0|l,a,a.length,0):0}},{"./utils":32}],5:[function(e,i,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,i,n){var o=null;o=typeof Promise<"u"?Promise:e("lie"),i.exports={Promise:o}},{lie:37}],7:[function(e,i,n){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=e("pako"),a=e("./utils"),l=e("./stream/GenericWorker"),h=o?"uint8array":"array";function c(u,f){l.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=f,this.meta={}}n.magic="\b\0",a.inherits(c,l),c.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(h,u.data),!1)},c.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(f){u.push({data:f,meta:u.meta})}},n.compressWorker=function(u){return new c("Deflate",u)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,i,n){function o(d,p){var m,v="";for(m=0;m<p;m++)v+=String.fromCharCode(255&d),d>>>=8;return v}function s(d,p,m,v,g,b){var y,x,C=d.file,R=d.compression,F=b!==h.utf8encode,U=a.transformTo("string",b(C.name)),T=a.transformTo("string",h.utf8encode(C.name)),H=C.comment,_=a.transformTo("string",b(H)),k=a.transformTo("string",h.utf8encode(H)),O=T.length!==C.name.length,N=k.length!==H.length,X="",Z="",W="",yt=C.dir,st=C.date,bt={crc32:0,compressedSize:0,uncompressedSize:0};p&&!m||(bt.crc32=d.crc32,bt.compressedSize=d.compressedSize,bt.uncompressedSize=d.uncompressedSize);var tt=0;p&&(tt|=8),F||!O&&!N||(tt|=2048);var Q=0,Tt=0;yt&&(Q|=16),g==="UNIX"?(Tt=798,Q|=function(ft,Bt){var z=ft;return ft||(z=Bt?16893:33204),(65535&z)<<16}(C.unixPermissions,yt)):(Tt=20,Q|=function(ft){return 63&(ft||0)}(C.dosPermissions)),y=st.getUTCHours(),y<<=6,y|=st.getUTCMinutes(),y<<=5,y|=st.getUTCSeconds()/2,x=st.getUTCFullYear()-1980,x<<=4,x|=st.getUTCMonth()+1,x<<=5,x|=st.getUTCDate(),O&&(Z=o(1,1)+o(c(U),4)+T,X+="up"+o(Z.length,2)+Z),N&&(W=o(1,1)+o(c(_),4)+k,X+="uc"+o(W.length,2)+W);var wt="";return wt+=`
\0`,wt+=o(tt,2),wt+=R.magic,wt+=o(y,2),wt+=o(x,2),wt+=o(bt.crc32,4),wt+=o(bt.compressedSize,4),wt+=o(bt.uncompressedSize,4),wt+=o(U.length,2),wt+=o(X.length,2),{fileRecord:u.LOCAL_FILE_HEADER+wt+U+X,dirRecord:u.CENTRAL_FILE_HEADER+o(Tt,2)+wt+o(_.length,2)+"\0\0\0\0"+o(Q,4)+o(v,4)+U+X+_}}var a=e("../utils"),l=e("../stream/GenericWorker"),h=e("../utf8"),c=e("../crc32"),u=e("../signature");function f(d,p,m,v){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=m,this.encodeFileName=v,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(f,l),f.prototype.push=function(d){var p=d.meta.percent||0,m=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,l.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:m?(p+100*(m-v-1))/m:100}}))},f.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var p=this.streamFiles&&!d.file.dir;if(p){var m=s(d,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(d){this.accumulate=!1;var p=this.streamFiles&&!d.file.dir,m=s(d,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),p)this.push({data:function(v){return u.DATA_DESCRIPTOR+o(v.crc32,4)+o(v.compressedSize,4)+o(v.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var d=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var m=this.bytesWritten-d,v=function(g,b,y,x,C){var R=a.transformTo("string",C(x));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(g,2)+o(g,2)+o(b,4)+o(y,4)+o(R.length,2)+R}(this.dirRecords.length,m,d,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(d){this._sources.push(d);var p=this;return d.on("data",function(m){p.processChunk(m)}),d.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),d.on("error",function(m){p.error(m)}),this},f.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(d){var p=this._sources;if(!l.prototype.error.call(this,d))return!1;for(var m=0;m<p.length;m++)try{p[m].error(d)}catch{}return!0},f.prototype.lock=function(){l.prototype.lock.call(this);for(var d=this._sources,p=0;p<d.length;p++)d[p].lock()},i.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,i,n){var o=e("../compressions"),s=e("./ZipFileWorker");n.generateWorker=function(a,l,h){var c=new s(l.streamFiles,h,l.platform,l.encodeFileName),u=0;try{a.forEach(function(f,d){u++;var p=function(b,y){var x=b||y,C=o[x];if(!C)throw new Error(x+" is not a valid compression method !");return C}(d.options.compression,l.compression),m=d.options.compressionOptions||l.compressionOptions||{},v=d.dir,g=d.date;d._compressWorker(p,m).withStreamInfo("file",{name:f,dir:v,date:g,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(c)}),c.entriesCount=u}catch(f){c.error(f)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,i,n){function o(){if(!(this instanceof o))return new o;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 s=new o;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(o.prototype=e("./object")).loadAsync=e("./load"),o.support=e("./support"),o.defaults=e("./defaults"),o.version="3.10.1",o.loadAsync=function(s,a){return new o().loadAsync(s,a)},o.external=e("./external"),i.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,i,n){var o=e("./utils"),s=e("./external"),a=e("./utf8"),l=e("./zipEntries"),h=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(f){return new s.Promise(function(d,p){var m=f.decompressed.getContentWorker().pipe(new h);m.on("error",function(v){p(v)}).on("end",function(){m.streamInfo.crc32!==f.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}i.exports=function(f,d){var p=this;return d=o.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(f)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",f,!0,d.optimizedBinaryString,d.base64).then(function(m){var v=new l(d);return v.load(m),v}).then(function(m){var v=[s.Promise.resolve(m)],g=m.files;if(d.checkCRC32)for(var b=0;b<g.length;b++)v.push(u(g[b]));return s.Promise.all(v)}).then(function(m){for(var v=m.shift(),g=v.files,b=0;b<g.length;b++){var y=g[b],x=y.fileNameStr,C=o.resolve(y.fileNameStr);p.file(C,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:d.createFolders}),y.dir||(p.file(C).unsafeOriginalName=x)}return v.zipComment.length&&(p.comment=v.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,i,n){var o=e("../utils"),s=e("../stream/GenericWorker");function a(l,h){s.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(h)}o.inherits(a,s),a.prototype._bindStream=function(l){var h=this;(this._stream=l).pause(),l.on("data",function(c){h.push({data:c,meta:{percent:0}})}).on("error",function(c){h.isPaused?this.generatedError=c:h.error(c)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,i,n){var o=e("readable-stream").Readable;function s(a,l,h){o.call(this,l),this._helper=a;var c=this;a.on("data",function(u,f){c.push(u)||c._helper.pause(),h&&h(f)}).on("error",function(u){c.emit("error",u)}).on("end",function(){c.push(null)})}e("../utils").inherits(s,o),s.prototype._read=function(){this._helper.resume()},i.exports=s},{"../utils":32,"readable-stream":16}],14:[function(e,i,n){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,s);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,s)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var s=new Buffer(o);return s.fill(0),s},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(e,i,n){function o(C,R,F){var U,T=a.getTypeOf(R),H=a.extend(F||{},c);H.date=H.date||new Date,H.compression!==null&&(H.compression=H.compression.toUpperCase()),typeof H.unixPermissions=="string"&&(H.unixPermissions=parseInt(H.unixPermissions,8)),H.unixPermissions&&16384&H.unixPermissions&&(H.dir=!0),H.dosPermissions&&16&H.dosPermissions&&(H.dir=!0),H.dir&&(C=g(C)),H.createFolders&&(U=v(C))&&b.call(this,U,!0);var _=T==="string"&&H.binary===!1&&H.base64===!1;F&&F.binary!==void 0||(H.binary=!_),(R instanceof u&&R.uncompressedSize===0||H.dir||!R||R.length===0)&&(H.base64=!1,H.binary=!0,R="",H.compression="STORE",T="string");var k=null;k=R instanceof u||R instanceof l?R:p.isNode&&p.isStream(R)?new m(C,R):a.prepareContent(C,R,H.binary,H.optimizedBinaryString,H.base64);var O=new f(C,k,H);this.files[C]=O}var s=e("./utf8"),a=e("./utils"),l=e("./stream/GenericWorker"),h=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),f=e("./zipObject"),d=e("./generate"),p=e("./nodejsUtils"),m=e("./nodejs/NodejsStreamInputAdapter"),v=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var R=C.lastIndexOf("/");return 0<R?C.substring(0,R):""},g=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},b=function(C,R){return R=R!==void 0?R:c.createFolders,C=g(C),this.files[C]||o.call(this,C,null,{dir:!0,createFolders:R}),this.files[C]};function y(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var R,F,U;for(R in this.files)U=this.files[R],(F=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&C(F,U)},filter:function(C){var R=[];return this.forEach(function(F,U){C(F,U)&&R.push(U)}),R},file:function(C,R,F){if(arguments.length!==1)return C=this.root+C,o.call(this,C,R,F),this;if(y(C)){var U=C;return this.filter(function(H,_){return!_.dir&&U.test(H)})}var T=this.files[this.root+C];return T&&!T.dir?T:null},folder:function(C){if(!C)return this;if(y(C))return this.filter(function(T,H){return H.dir&&C.test(T)});var R=this.root+C,F=b.call(this,R),U=this.clone();return U.root=F.name,U},remove:function(C){C=this.root+C;var R=this.files[C];if(R||(C.slice(-1)!=="/"&&(C+="/"),R=this.files[C]),R&&!R.dir)delete this.files[C];else for(var F=this.filter(function(T,H){return H.name.slice(0,C.length)===C}),U=0;U<F.length;U++)delete this.files[F[U].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var R,F={};try{if((F=a.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");a.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var U=F.comment||this.comment||"";R=d.generateWorker(this,F,U)}catch(T){(R=new l("error")).error(T)}return new h(R,F.type||"string",F.mimeType)},generateAsync:function(C,R){return this.generateInternalStream(C).accumulate(R)},generateNodeStream:function(C,R){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(R)}};i.exports=x},{"./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,i,n){i.exports=e("stream")},{stream:void 0}],17:[function(e,i,n){var o=e("./DataReader");function s(a){o.call(this,a);for(var l=0;l<this.data.length;l++)a[l]=255&a[l]}e("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var l=a.charCodeAt(0),h=a.charCodeAt(1),c=a.charCodeAt(2),u=a.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===l&&this.data[f+1]===h&&this.data[f+2]===c&&this.data[f+3]===u)return f-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var l=a.charCodeAt(0),h=a.charCodeAt(1),c=a.charCodeAt(2),u=a.charCodeAt(3),f=this.readData(4);return l===f[0]&&h===f[1]&&c===f[2]&&u===f[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},i.exports=s},{"../utils":32,"./DataReader":18}],18:[function(e,i,n){var o=e("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var l,h=0;for(this.checkOffset(a),l=this.index+a-1;l>=this.index;l--)h=(h<<8)+this.byteAt(l);return this.index+=a,h},readString:function(a){return o.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},i.exports=s},{"../utils":32}],19:[function(e,i,n){var o=e("./Uint8ArrayReader");function s(a){o.call(this,a)}e("../utils").inherits(s,o),s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},i.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,i,n){var o=e("./DataReader");function s(a){o.call(this,a)}e("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},i.exports=s},{"../utils":32,"./DataReader":18}],21:[function(e,i,n){var o=e("./ArrayReader");function s(a){o.call(this,a)}e("../utils").inherits(s,o),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},i.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(e,i,n){var o=e("../utils"),s=e("../support"),a=e("./ArrayReader"),l=e("./StringReader"),h=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");i.exports=function(u){var f=o.getTypeOf(u);return o.checkSupport(f),f!=="string"||s.uint8array?f==="nodebuffer"?new h(u):s.uint8array?new c(o.transformTo("uint8array",u)):new a(o.transformTo("array",u)):new l(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,i,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,i,n){var o=e("./GenericWorker"),s=e("../utils");function a(l){o.call(this,"ConvertWorker to "+l),this.destType=l}s.inherits(a,o),a.prototype.processChunk=function(l){this.push({data:s.transformTo(this.destType,l.data),meta:l.meta})},i.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,i,n){var o=e("./GenericWorker"),s=e("../crc32");function a(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,o),a.prototype.processChunk=function(l){this.streamInfo.crc32=s(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,i,n){var o=e("../utils"),s=e("./GenericWorker");function a(l){s.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(a,s),a.prototype.processChunk=function(l){if(l){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+l.data.length}s.prototype.processChunk.call(this,l)},i.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,i,n){var o=e("../utils"),s=e("./GenericWorker");function a(l){s.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(c){h.dataIsReady=!0,h.data=c,h.max=c&&c.length||0,h.type=o.getTypeOf(c),h.isPaused||h._tickAndRepeat()},function(c){h.error(c)})}o.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,h);break;case"uint8array":l=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":l=this.data.slice(this.index,h)}return this.index=h,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,i,n){function o(s){this.name=s||"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}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(l){a.processChunk(l)}),s.on("end",function(){a.end()}),s.on("error",function(l){a.error(l)}),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 s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},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 s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},i.exports=o},{}],29:[function(e,i,n){var o=e("../utils"),s=e("./ConvertWorker"),a=e("./GenericWorker"),l=e("../base64"),h=e("../support"),c=e("../external"),u=null;if(h.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(p,m){return new c.Promise(function(v,g){var b=[],y=p._internalType,x=p._outputType,C=p._mimeType;p.on("data",function(R,F){b.push(R),m&&m(F)}).on("error",function(R){b=[],g(R)}).on("end",function(){try{var R=function(F,U,T){switch(F){case"blob":return o.newBlob(o.transformTo("arraybuffer",U),T);case"base64":return l.encode(U);default:return o.transformTo(F,U)}}(x,function(F,U){var T,H=0,_=null,k=0;for(T=0;T<U.length;T++)k+=U[T].length;switch(F){case"string":return U.join("");case"array":return Array.prototype.concat.apply([],U);case"uint8array":for(_=new Uint8Array(k),T=0;T<U.length;T++)_.set(U[T],H),H+=U[T].length;return _;case"nodebuffer":return Buffer.concat(U);default:throw new Error("concat : unsupported type '"+F+"'")}}(y,b),C);v(R)}catch(F){g(F)}b=[]}).resume()})}function d(p,m,v){var g=m;switch(m){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=m,this._mimeType=v,o.checkSupport(g),this._worker=p.pipe(new s(g)),p.lock()}catch(b){this._worker=new a("error"),this._worker.error(b)}}d.prototype={accumulate:function(p){return f(this,p)},on:function(p,m){var v=this;return p==="data"?this._worker.on(p,function(g){m.call(v,g.data,g.meta)}):this._worker.on(p,function(){o.delay(m,arguments,v)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},p)}},i.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,i,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n.nodebuffer=typeof Buffer<"u",n.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")n.blob=!1;else{var o=new ArrayBuffer(0);try{n.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),n.blob=s.getBlob("application/zip").size===0}catch{n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,i,n){for(var o=e("./utils"),s=e("./support"),a=e("./nodejsUtils"),l=e("./stream/GenericWorker"),h=new Array(256),c=0;c<256;c++)h[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;h[254]=h[254]=1;function u(){l.call(this,"utf-8 decode"),this.leftOver=null}function f(){l.call(this,"utf-8 encode")}n.utf8encode=function(d){return s.nodebuffer?a.newBufferFrom(d,"utf-8"):function(p){var m,v,g,b,y,x=p.length,C=0;for(b=0;b<x;b++)(64512&(v=p.charCodeAt(b)))==55296&&b+1<x&&(64512&(g=p.charCodeAt(b+1)))==56320&&(v=65536+(v-55296<<10)+(g-56320),b++),C+=v<128?1:v<2048?2:v<65536?3:4;for(m=s.uint8array?new Uint8Array(C):new Array(C),b=y=0;y<C;b++)(64512&(v=p.charCodeAt(b)))==55296&&b+1<x&&(64512&(g=p.charCodeAt(b+1)))==56320&&(v=65536+(v-55296<<10)+(g-56320),b++),v<128?m[y++]=v:(v<2048?m[y++]=192|v>>>6:(v<65536?m[y++]=224|v>>>12:(m[y++]=240|v>>>18,m[y++]=128|v>>>12&63),m[y++]=128|v>>>6&63),m[y++]=128|63&v);return m}(d)},n.utf8decode=function(d){return s.nodebuffer?o.transformTo("nodebuffer",d).toString("utf-8"):function(p){var m,v,g,b,y=p.length,x=new Array(2*y);for(m=v=0;m<y;)if((g=p[m++])<128)x[v++]=g;else if(4<(b=h[g]))x[v++]=65533,m+=b-1;else{for(g&=b===2?31:b===3?15:7;1<b&&m<y;)g=g<<6|63&p[m++],b--;1<b?x[v++]=65533:g<65536?x[v++]=g:(g-=65536,x[v++]=55296|g>>10&1023,x[v++]=56320|1023&g)}return x.length!==v&&(x.subarray?x=x.subarray(0,v):x.length=v),o.applyFromCharCode(x)}(d=o.transformTo(s.uint8array?"uint8array":"array",d))},o.inherits(u,l),u.prototype.processChunk=function(d){var p=o.transformTo(s.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var m=p;(p=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),p.set(m,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var v=function(b,y){var x;for((y=y||b.length)>b.length&&(y=b.length),x=y-1;0<=x&&(192&b[x])==128;)x--;return x<0||x===0?y:x+h[b[x]]>y?x:y}(p),g=p;v!==p.length&&(s.uint8array?(g=p.subarray(0,v),this.leftOver=p.subarray(v,p.length)):(g=p.slice(0,v),this.leftOver=p.slice(v,p.length))),this.push({data:n.utf8decode(g),meta:d.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,o.inherits(f,l),f.prototype.processChunk=function(d){this.push({data:n.utf8encode(d.data),meta:d.meta})},n.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,i,n){var o=e("./support"),s=e("./base64"),a=e("./nodejsUtils"),l=e("./external");function h(m){return m}function c(m,v){for(var g=0;g<m.length;++g)v[g]=255&m.charCodeAt(g);return v}e("setimmediate"),n.newBlob=function(m,v){n.checkSupport("blob");try{return new Blob([m],{type:v})}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(m),g.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(m,v,g){var b=[],y=0,x=m.length;if(x<=g)return String.fromCharCode.apply(null,m);for(;y<x;)v==="array"||v==="nodebuffer"?b.push(String.fromCharCode.apply(null,m.slice(y,Math.min(y+g,x)))):b.push(String.fromCharCode.apply(null,m.subarray(y,Math.min(y+g,x)))),y+=g;return b.join("")},stringifyByChar:function(m){for(var v="",g=0;g<m.length;g++)v+=String.fromCharCode(m[g]);return v},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function f(m){var v=65536,g=n.getTypeOf(m),b=!0;if(g==="uint8array"?b=u.applyCanBeUsed.uint8array:g==="nodebuffer"&&(b=u.applyCanBeUsed.nodebuffer),b)for(;1<v;)try{return u.stringifyByChunk(m,g,v)}catch{v=Math.floor(v/2)}return u.stringifyByChar(m)}function d(m,v){for(var g=0;g<m.length;g++)v[g]=m[g];return v}n.applyFromCharCode=f;var p={};p.string={string:h,array:function(m){return c(m,new Array(m.length))},arraybuffer:function(m){return p.string.uint8array(m).buffer},uint8array:function(m){return c(m,new Uint8Array(m.length))},nodebuffer:function(m){return c(m,a.allocBuffer(m.length))}},p.array={string:f,array:h,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(m)}},p.arraybuffer={string:function(m){return f(new Uint8Array(m))},array:function(m){return d(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:h,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(new Uint8Array(m))}},p.uint8array={string:f,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:h,nodebuffer:function(m){return a.newBufferFrom(m)}},p.nodebuffer={string:f,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return p.nodebuffer.uint8array(m).buffer},uint8array:function(m){return d(m,new Uint8Array(m.length))},nodebuffer:h},n.transformTo=function(m,v){if(v=v||"",!m)return v;n.checkSupport(m);var g=n.getTypeOf(v);return p[g][m](v)},n.resolve=function(m){for(var v=m.split("/"),g=[],b=0;b<v.length;b++){var y=v[b];y==="."||y===""&&b!==0&&b!==v.length-1||(y===".."?g.pop():g.push(y))}return g.join("/")},n.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":o.nodebuffer&&a.isBuffer(m)?"nodebuffer":o.uint8array&&m instanceof Uint8Array?"uint8array":o.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(m){if(!o[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(m){var v,g,b="";for(g=0;g<(m||"").length;g++)b+="\\x"+((v=m.charCodeAt(g))<16?"0":"")+v.toString(16).toUpperCase();return b},n.delay=function(m,v,g){setImmediate(function(){m.apply(g||null,v||[])})},n.inherits=function(m,v){function g(){}g.prototype=v.prototype,m.prototype=new g},n.extend=function(){var m,v,g={};for(m=0;m<arguments.length;m++)for(v in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],v)&&g[v]===void 0&&(g[v]=arguments[m][v]);return g},n.prepareContent=function(m,v,g,b,y){return l.Promise.resolve(v).then(function(x){return o.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new l.Promise(function(C,R){var F=new FileReader;F.onload=function(U){C(U.target.result)},F.onerror=function(U){R(U.target.error)},F.readAsArrayBuffer(x)}):x}).then(function(x){var C=n.getTypeOf(x);return C?(C==="arraybuffer"?x=n.transformTo("uint8array",x):C==="string"&&(y?x=s.decode(x):g&&b!==!0&&(x=function(R){return c(R,o.uint8array?new Uint8Array(R.length):new Array(R.length))}(x))),x):l.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,i,n){var o=e("./reader/readerFor"),s=e("./utils"),a=e("./signature"),l=e("./zipEntry"),h=e("./support");function c(u){this.files=[],this.loadOptions=u}c.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(f)+", expected "+s.pretty(u)+")")}},isSignature:function(u,f){var d=this.reader.index;this.reader.setIndex(u);var p=this.reader.readString(4)===f;return this.reader.setIndex(d),p},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 u=this.reader.readData(this.zipCommentLength),f=h.uint8array?"uint8array":"array",d=s.transformTo(f,u);this.zipComment=this.loadOptions.decodeFileName(d)},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 u,f,d,p=this.zip64EndOfCentralSize-44;0<p;)u=this.reader.readInt(2),f=this.reader.readInt(4),d=this.reader.readData(f),this.zip64ExtensibleData[u]={id:u,length:f,value:d}},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 u,f;for(u=0;u<this.files.length;u++)f=this.files[u],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(u=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,a.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(u);var f=u;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.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(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var p=f-d;if(0<p)this.isSignature(f,a.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(u){this.reader=o(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,i,n){var o=e("./reader/readerFor"),s=e("./utils"),a=e("./compressedObject"),l=e("./crc32"),h=e("./utf8"),c=e("./compressions"),u=e("./support");function f(d,p){this.options=d,this.loadOptions=p}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var p,m;if(d.skip(22),this.fileNameLength=d.readInt(2),m=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(v){for(var g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&c[g].magic===v)return c[g];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,p,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var p=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(p),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var p,m,v,g=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<g;)p=d.readInt(2),m=d.readInt(2),v=d.readData(m),this.extraFields[p]={id:p,length:m,value:v};d.setIndex(g)},handleUTF8:function(){var d=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var m=s.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var g=s.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var p=o(d.value);return p.readInt(1)!==1||l(this.fileName)!==p.readInt(4)?null:h.utf8decode(p.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var p=o(d.value);return p.readInt(1)!==1||l(this.fileComment)!==p.readInt(4)?null:h.utf8decode(p.readData(d.length-5))}return null}},i.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,i,n){function o(p,m,v){this.name=p,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=m,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var s=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),l=e("./utf8"),h=e("./compressedObject"),c=e("./stream/GenericWorker");o.prototype={internalStream:function(p){var m=null,v="string";try{if(!p)throw new Error("No output type specified.");var g=(v=p.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),m=this._decompressWorker();var b=!this._dataBinary;b&&!g&&(m=m.pipe(new l.Utf8EncodeWorker)),!b&&g&&(m=m.pipe(new l.Utf8DecodeWorker))}catch(y){(m=new c("error")).error(y)}return new s(m,v,"")},async:function(p,m){return this.internalStream(p).accumulate(m)},nodeStream:function(p,m){return this.internalStream(p||"nodebuffer").toNodejsStream(m)},_compressWorker:function(p,m){if(this._data instanceof h&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new l.Utf8EncodeWorker)),h.createWorkerFrom(v,p,m)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)o.prototype[u[d]]=f;i.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,i,n){(function(o){var s,a,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var h=0,c=new l(p),u=o.document.createTextNode("");c.observe(u,{characterData:!0}),s=function(){u.data=h=++h%2}}else if(o.setImmediate||o.MessageChannel===void 0)s="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var m=o.document.createElement("script");m.onreadystatechange=function(){p(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},o.document.documentElement.appendChild(m)}:function(){setTimeout(p,0)};else{var f=new o.MessageChannel;f.port1.onmessage=p,s=function(){f.port2.postMessage(0)}}var d=[];function p(){var m,v;a=!0;for(var g=d.length;g;){for(v=d,d=[],m=-1;++m<g;)v[m]();g=d.length}a=!1}i.exports=function(m){d.push(m)!==1||a||s()}}).call(this,typeof Ui<"u"?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(e,i,n){var o=e("immediate");function s(){}var a={},l=["REJECTED"],h=["FULFILLED"],c=["PENDING"];function u(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,g!==s&&m(this,g)}function f(g,b,y){this.promise=g,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function d(g,b,y){o(function(){var x;try{x=b(y)}catch(C){return a.reject(g,C)}x===g?a.reject(g,new TypeError("Cannot resolve promise with itself")):a.resolve(g,x)})}function p(g){var b=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof b=="function")return function(){b.apply(g,arguments)}}function m(g,b){var y=!1;function x(F){y||(y=!0,a.reject(g,F))}function C(F){y||(y=!0,a.resolve(g,F))}var R=v(function(){b(C,x)});R.status==="error"&&x(R.value)}function v(g,b){var y={};try{y.value=g(b),y.status="success"}catch(x){y.status="error",y.value=x}return y}(i.exports=u).prototype.finally=function(g){if(typeof g!="function")return this;var b=this.constructor;return this.then(function(y){return b.resolve(g()).then(function(){return y})},function(y){return b.resolve(g()).then(function(){throw y})})},u.prototype.catch=function(g){return this.then(null,g)},u.prototype.then=function(g,b){if(typeof g!="function"&&this.state===h||typeof b!="function"&&this.state===l)return this;var y=new this.constructor(s);return this.state!==c?d(y,this.state===h?g:b,this.outcome):this.queue.push(new f(y,g,b)),y},f.prototype.callFulfilled=function(g){a.resolve(this.promise,g)},f.prototype.otherCallFulfilled=function(g){d(this.promise,this.onFulfilled,g)},f.prototype.callRejected=function(g){a.reject(this.promise,g)},f.prototype.otherCallRejected=function(g){d(this.promise,this.onRejected,g)},a.resolve=function(g,b){var y=v(p,b);if(y.status==="error")return a.reject(g,y.value);var x=y.value;if(x)m(g,x);else{g.state=h,g.outcome=b;for(var C=-1,R=g.queue.length;++C<R;)g.queue[C].callFulfilled(b)}return g},a.reject=function(g,b){g.state=l,g.outcome=b;for(var y=-1,x=g.queue.length;++y<x;)g.queue[y].callRejected(b);return g},u.resolve=function(g){return g instanceof this?g:a.resolve(new this(s),g)},u.reject=function(g){var b=new this(s);return a.reject(b,g)},u.all=function(g){var b=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=g.length,x=!1;if(!y)return this.resolve([]);for(var C=new Array(y),R=0,F=-1,U=new this(s);++F<y;)T(g[F],F);return U;function T(H,_){b.resolve(H).then(function(k){C[_]=k,++R!==y||x||(x=!0,a.resolve(U,C))},function(k){x||(x=!0,a.reject(U,k))})}},u.race=function(g){var b=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=g.length,x=!1;if(!y)return this.resolve([]);for(var C=-1,R=new this(s);++C<y;)F=g[C],b.resolve(F).then(function(U){x||(x=!0,a.resolve(R,U))},function(U){x||(x=!0,a.reject(R,U))});var F;return R}},{immediate:36}],38:[function(e,i,n){var o={};(0,e("./lib/utils/common").assign)(o,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),i.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,i,n){var o=e("./zlib/deflate"),s=e("./utils/common"),a=e("./utils/strings"),l=e("./zlib/messages"),h=e("./zlib/zstream"),c=Object.prototype.toString,u=0,f=-1,d=0,p=8;function m(g){if(!(this instanceof m))return new m(g);this.options=s.assign({level:f,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},g||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var y=o.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(y!==u)throw new Error(l[y]);if(b.header&&o.deflateSetHeader(this.strm,b.header),b.dictionary){var x;if(x=typeof b.dictionary=="string"?a.string2buf(b.dictionary):c.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(y=o.deflateSetDictionary(this.strm,x))!==u)throw new Error(l[y]);this._dict_set=!0}}function v(g,b){var y=new m(b);if(y.push(g,!0),y.err)throw y.msg||l[y.err];return y.result}m.prototype.push=function(g,b){var y,x,C=this.strm,R=this.options.chunkSize;if(this.ended)return!1;x=b===~~b?b:b===!0?4:0,typeof g=="string"?C.input=a.string2buf(g):c.call(g)==="[object ArrayBuffer]"?C.input=new Uint8Array(g):C.input=g,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(R),C.next_out=0,C.avail_out=R),(y=o.deflate(C,x))!==1&&y!==u)return this.onEnd(y),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&y!==1);return x===4?(y=o.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===u):x!==2||(this.onEnd(u),!(C.avail_out=0))},m.prototype.onData=function(g){this.chunks.push(g)},m.prototype.onEnd=function(g){g===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},n.Deflate=m,n.deflate=v,n.deflateRaw=function(g,b){return(b=b||{}).raw=!0,v(g,b)},n.gzip=function(g,b){return(b=b||{}).gzip=!0,v(g,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,i,n){var o=e("./zlib/inflate"),s=e("./utils/common"),a=e("./utils/strings"),l=e("./zlib/constants"),h=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),f=Object.prototype.toString;function d(m){if(!(this instanceof d))return new d(m);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},m||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||m&&m.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var g=o.inflateInit2(this.strm,v.windowBits);if(g!==l.Z_OK)throw new Error(h[g]);this.header=new u,o.inflateGetHeader(this.strm,this.header)}function p(m,v){var g=new d(v);if(g.push(m,!0),g.err)throw g.msg||h[g.err];return g.result}d.prototype.push=function(m,v){var g,b,y,x,C,R,F=this.strm,U=this.options.chunkSize,T=this.options.dictionary,H=!1;if(this.ended)return!1;b=v===~~v?v:v===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof m=="string"?F.input=a.binstring2buf(m):f.call(m)==="[object ArrayBuffer]"?F.input=new Uint8Array(m):F.input=m,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new s.Buf8(U),F.next_out=0,F.avail_out=U),(g=o.inflate(F,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&T&&(R=typeof T=="string"?a.string2buf(T):f.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,g=o.inflateSetDictionary(this.strm,R)),g===l.Z_BUF_ERROR&&H===!0&&(g=l.Z_OK,H=!1),g!==l.Z_STREAM_END&&g!==l.Z_OK)return this.onEnd(g),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&g!==l.Z_STREAM_END&&(F.avail_in!==0||b!==l.Z_FINISH&&b!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=a.utf8border(F.output,F.next_out),x=F.next_out-y,C=a.buf2string(F.output,y),F.next_out=x,F.avail_out=U-x,x&&s.arraySet(F.output,F.output,y,x,0),this.onData(C)):this.onData(s.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(H=!0)}while((0<F.avail_in||F.avail_out===0)&&g!==l.Z_STREAM_END);return g===l.Z_STREAM_END&&(b=l.Z_FINISH),b===l.Z_FINISH?(g=o.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===l.Z_OK):b!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(F.avail_out=0))},d.prototype.onData=function(m){this.chunks.push(m)},d.prototype.onEnd=function(m){m===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},n.Inflate=d,n.inflate=p,n.inflateRaw=function(m,v){return(v=v||{}).raw=!0,p(m,v)},n.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,i,n){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(l){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var c=h.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var u in c)c.hasOwnProperty(u)&&(l[u]=c[u])}}return l},n.shrinkBuf=function(l,h){return l.length===h?l:l.subarray?l.subarray(0,h):(l.length=h,l)};var s={arraySet:function(l,h,c,u,f){if(h.subarray&&l.subarray)l.set(h.subarray(c,c+u),f);else for(var d=0;d<u;d++)l[f+d]=h[c+d]},flattenChunks:function(l){var h,c,u,f,d,p;for(h=u=0,c=l.length;h<c;h++)u+=l[h].length;for(p=new Uint8Array(u),h=f=0,c=l.length;h<c;h++)d=l[h],p.set(d,f),f+=d.length;return p}},a={arraySet:function(l,h,c,u,f){for(var d=0;d<u;d++)l[f+d]=h[c+d]},flattenChunks:function(l){return[].concat.apply([],l)}};n.setTyped=function(l){l?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,s)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(o)},{}],42:[function(e,i,n){var o=e("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var l=new o.Buf8(256),h=0;h<256;h++)l[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function c(u,f){if(f<65537&&(u.subarray&&a||!u.subarray&&s))return String.fromCharCode.apply(null,o.shrinkBuf(u,f));for(var d="",p=0;p<f;p++)d+=String.fromCharCode(u[p]);return d}l[254]=l[254]=1,n.string2buf=function(u){var f,d,p,m,v,g=u.length,b=0;for(m=0;m<g;m++)(64512&(d=u.charCodeAt(m)))==55296&&m+1<g&&(64512&(p=u.charCodeAt(m+1)))==56320&&(d=65536+(d-55296<<10)+(p-56320),m++),b+=d<128?1:d<2048?2:d<65536?3:4;for(f=new o.Buf8(b),m=v=0;v<b;m++)(64512&(d=u.charCodeAt(m)))==55296&&m+1<g&&(64512&(p=u.charCodeAt(m+1)))==56320&&(d=65536+(d-55296<<10)+(p-56320),m++),d<128?f[v++]=d:(d<2048?f[v++]=192|d>>>6:(d<65536?f[v++]=224|d>>>12:(f[v++]=240|d>>>18,f[v++]=128|d>>>12&63),f[v++]=128|d>>>6&63),f[v++]=128|63&d);return f},n.buf2binstring=function(u){return c(u,u.length)},n.binstring2buf=function(u){for(var f=new o.Buf8(u.length),d=0,p=f.length;d<p;d++)f[d]=u.charCodeAt(d);return f},n.buf2string=function(u,f){var d,p,m,v,g=f||u.length,b=new Array(2*g);for(d=p=0;d<g;)if((m=u[d++])<128)b[p++]=m;else if(4<(v=l[m]))b[p++]=65533,d+=v-1;else{for(m&=v===2?31:v===3?15:7;1<v&&d<g;)m=m<<6|63&u[d++],v--;1<v?b[p++]=65533:m<65536?b[p++]=m:(m-=65536,b[p++]=55296|m>>10&1023,b[p++]=56320|1023&m)}return c(b,p)},n.utf8border=function(u,f){var d;for((f=f||u.length)>u.length&&(f=u.length),d=f-1;0<=d&&(192&u[d])==128;)d--;return d<0||d===0?f:d+l[u[d]]>f?d:f}},{"./common":41}],43:[function(e,i,n){i.exports=function(o,s,a,l){for(var h=65535&o|0,c=o>>>16&65535|0,u=0;a!==0;){for(a-=u=2e3<a?2e3:a;c=c+(h=h+s[l++]|0)|0,--u;);h%=65521,c%=65521}return h|c<<16|0}},{}],44:[function(e,i,n){i.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,i,n){var o=function(){for(var s,a=[],l=0;l<256;l++){s=l;for(var h=0;h<8;h++)s=1&s?3988292384^s>>>1:s>>>1;a[l]=s}return a}();i.exports=function(s,a,l,h){var c=o,u=h+l;s^=-1;for(var f=h;f<u;f++)s=s>>>8^c[255&(s^a[f])];return-1^s}},{}],46:[function(e,i,n){var o,s=e("../utils/common"),a=e("./trees"),l=e("./adler32"),h=e("./crc32"),c=e("./messages"),u=0,f=4,d=0,p=-2,m=-1,v=4,g=2,b=8,y=9,x=286,C=30,R=19,F=2*x+1,U=15,T=3,H=258,_=H+T+1,k=42,O=113,N=1,X=2,Z=3,W=4;function yt(D,gt){return D.msg=c[gt],gt}function st(D){return(D<<1)-(4<D?9:0)}function bt(D){for(var gt=D.length;0<=--gt;)D[gt]=0}function tt(D){var gt=D.state,pt=gt.pending;pt>D.avail_out&&(pt=D.avail_out),pt!==0&&(s.arraySet(D.output,gt.pending_buf,gt.pending_out,pt,D.next_out),D.next_out+=pt,gt.pending_out+=pt,D.total_out+=pt,D.avail_out-=pt,gt.pending-=pt,gt.pending===0&&(gt.pending_out=0))}function Q(D,gt){a._tr_flush_block(D,0<=D.block_start?D.block_start:-1,D.strstart-D.block_start,gt),D.block_start=D.strstart,tt(D.strm)}function Tt(D,gt){D.pending_buf[D.pending++]=gt}function wt(D,gt){D.pending_buf[D.pending++]=gt>>>8&255,D.pending_buf[D.pending++]=255&gt}function ft(D,gt){var pt,V,q=D.max_chain_length,at=D.strstart,At=D.prev_length,_t=D.nice_match,ht=D.strstart>D.w_size-_?D.strstart-(D.w_size-_):0,Dt=D.window,zt=D.w_mask,Lt=D.prev,Wt=D.strstart+H,B=Dt[at+At-1],w=Dt[at+At];D.prev_length>=D.good_match&&(q>>=2),_t>D.lookahead&&(_t=D.lookahead);do if(Dt[(pt=gt)+At]===w&&Dt[pt+At-1]===B&&Dt[pt]===Dt[at]&&Dt[++pt]===Dt[at+1]){at+=2,pt++;do;while(Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&Dt[++at]===Dt[++pt]&&at<Wt);if(V=H-(Wt-at),at=Wt-H,At<V){if(D.match_start=gt,_t<=(At=V))break;B=Dt[at+At-1],w=Dt[at+At]}}while((gt=Lt[gt&zt])>ht&&--q!=0);return At<=D.lookahead?At:D.lookahead}function Bt(D){var gt,pt,V,q,at,At,_t,ht,Dt,zt,Lt=D.w_size;do{if(q=D.window_size-D.lookahead-D.strstart,D.strstart>=Lt+(Lt-_)){for(s.arraySet(D.window,D.window,Lt,Lt,0),D.match_start-=Lt,D.strstart-=Lt,D.block_start-=Lt,gt=pt=D.hash_size;V=D.head[--gt],D.head[gt]=Lt<=V?V-Lt:0,--pt;);for(gt=pt=Lt;V=D.prev[--gt],D.prev[gt]=Lt<=V?V-Lt:0,--pt;);q+=Lt}if(D.strm.avail_in===0)break;if(At=D.strm,_t=D.window,ht=D.strstart+D.lookahead,Dt=q,zt=void 0,zt=At.avail_in,Dt<zt&&(zt=Dt),pt=zt===0?0:(At.avail_in-=zt,s.arraySet(_t,At.input,At.next_in,zt,ht),At.state.wrap===1?At.adler=l(At.adler,_t,zt,ht):At.state.wrap===2&&(At.adler=h(At.adler,_t,zt,ht)),At.next_in+=zt,At.total_in+=zt,zt),D.lookahead+=pt,D.lookahead+D.insert>=T)for(at=D.strstart-D.insert,D.ins_h=D.window[at],D.ins_h=(D.ins_h<<D.hash_shift^D.window[at+1])&D.hash_mask;D.insert&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[at+T-1])&D.hash_mask,D.prev[at&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=at,at++,D.insert--,!(D.lookahead+D.insert<T)););}while(D.lookahead<_&&D.strm.avail_in!==0)}function z(D,gt){for(var pt,V;;){if(D.lookahead<_){if(Bt(D),D.lookahead<_&&gt===u)return N;if(D.lookahead===0)break}if(pt=0,D.lookahead>=T&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+T-1])&D.hash_mask,pt=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),pt!==0&&D.strstart-pt<=D.w_size-_&&(D.match_length=ft(D,pt)),D.match_length>=T)if(V=a._tr_tally(D,D.strstart-D.match_start,D.match_length-T),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=T){for(D.match_length--;D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+T-1])&D.hash_mask,pt=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart,--D.match_length!=0;);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else V=a._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(V&&(Q(D,!1),D.strm.avail_out===0))return N}return D.insert=D.strstart<T-1?D.strstart:T-1,gt===f?(Q(D,!0),D.strm.avail_out===0?Z:W):D.last_lit&&(Q(D,!1),D.strm.avail_out===0)?N:X}function M(D,gt){for(var pt,V,q;;){if(D.lookahead<_){if(Bt(D),D.lookahead<_&&gt===u)return N;if(D.lookahead===0)break}if(pt=0,D.lookahead>=T&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+T-1])&D.hash_mask,pt=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),D.prev_length=D.match_length,D.prev_match=D.match_start,D.match_length=T-1,pt!==0&&D.prev_length<D.max_lazy_match&&D.strstart-pt<=D.w_size-_&&(D.match_length=ft(D,pt),D.match_length<=5&&(D.strategy===1||D.match_length===T&&4096<D.strstart-D.match_start)&&(D.match_length=T-1)),D.prev_length>=T&&D.match_length<=D.prev_length){for(q=D.strstart+D.lookahead-T,V=a._tr_tally(D,D.strstart-1-D.prev_match,D.prev_length-T),D.lookahead-=D.prev_length-1,D.prev_length-=2;++D.strstart<=q&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+T-1])&D.hash_mask,pt=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),--D.prev_length!=0;);if(D.match_available=0,D.match_length=T-1,D.strstart++,V&&(Q(D,!1),D.strm.avail_out===0))return N}else if(D.match_available){if((V=a._tr_tally(D,0,D.window[D.strstart-1]))&&Q(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return N}else D.match_available=1,D.strstart++,D.lookahead--}return D.match_available&&(V=a._tr_tally(D,0,D.window[D.strstart-1]),D.match_available=0),D.insert=D.strstart<T-1?D.strstart:T-1,gt===f?(Q(D,!0),D.strm.avail_out===0?Z:W):D.last_lit&&(Q(D,!1),D.strm.avail_out===0)?N:X}function lt(D,gt,pt,V,q){this.good_length=D,this.max_lazy=gt,this.nice_length=pt,this.max_chain=V,this.func=q}function et(){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=b,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 s.Buf16(2*F),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*R+1)),bt(this.dyn_ltree),bt(this.dyn_dtree),bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(U+1),this.heap=new s.Buf16(2*x+1),bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*x+1),bt(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 Ot(D){var gt;return D&&D.state?(D.total_in=D.total_out=0,D.data_type=g,(gt=D.state).pending=0,gt.pending_out=0,gt.wrap<0&&(gt.wrap=-gt.wrap),gt.status=gt.wrap?k:O,D.adler=gt.wrap===2?0:1,gt.last_flush=u,a._tr_init(gt),d):yt(D,p)}function Rt(D){var gt=Ot(D);return gt===d&&function(pt){pt.window_size=2*pt.w_size,bt(pt.head),pt.max_lazy_match=o[pt.level].max_lazy,pt.good_match=o[pt.level].good_length,pt.nice_match=o[pt.level].nice_length,pt.max_chain_length=o[pt.level].max_chain,pt.strstart=0,pt.block_start=0,pt.lookahead=0,pt.insert=0,pt.match_length=pt.prev_length=T-1,pt.match_available=0,pt.ins_h=0}(D.state),gt}function Pt(D,gt,pt,V,q,at){if(!D)return p;var At=1;if(gt===m&&(gt=6),V<0?(At=0,V=-V):15<V&&(At=2,V-=16),q<1||y<q||pt!==b||V<8||15<V||gt<0||9<gt||at<0||v<at)return yt(D,p);V===8&&(V=9);var _t=new et;return(D.state=_t).strm=D,_t.wrap=At,_t.gzhead=null,_t.w_bits=V,_t.w_size=1<<_t.w_bits,_t.w_mask=_t.w_size-1,_t.hash_bits=q+7,_t.hash_size=1<<_t.hash_bits,_t.hash_mask=_t.hash_size-1,_t.hash_shift=~~((_t.hash_bits+T-1)/T),_t.window=new s.Buf8(2*_t.w_size),_t.head=new s.Buf16(_t.hash_size),_t.prev=new s.Buf16(_t.w_size),_t.lit_bufsize=1<<q+6,_t.pending_buf_size=4*_t.lit_bufsize,_t.pending_buf=new s.Buf8(_t.pending_buf_size),_t.d_buf=1*_t.lit_bufsize,_t.l_buf=3*_t.lit_bufsize,_t.level=gt,_t.strategy=at,_t.method=pt,Rt(D)}o=[new lt(0,0,0,0,function(D,gt){var pt=65535;for(pt>D.pending_buf_size-5&&(pt=D.pending_buf_size-5);;){if(D.lookahead<=1){if(Bt(D),D.lookahead===0&&gt===u)return N;if(D.lookahead===0)break}D.strstart+=D.lookahead,D.lookahead=0;var V=D.block_start+pt;if((D.strstart===0||D.strstart>=V)&&(D.lookahead=D.strstart-V,D.strstart=V,Q(D,!1),D.strm.avail_out===0)||D.strstart-D.block_start>=D.w_size-_&&(Q(D,!1),D.strm.avail_out===0))return N}return D.insert=0,gt===f?(Q(D,!0),D.strm.avail_out===0?Z:W):(D.strstart>D.block_start&&(Q(D,!1),D.strm.avail_out),N)}),new lt(4,4,8,4,z),new lt(4,5,16,8,z),new lt(4,6,32,32,z),new lt(4,4,16,16,M),new lt(8,16,32,32,M),new lt(8,16,128,128,M),new lt(8,32,128,256,M),new lt(32,128,258,1024,M),new lt(32,258,258,4096,M)],n.deflateInit=function(D,gt){return Pt(D,gt,b,15,8,0)},n.deflateInit2=Pt,n.deflateReset=Rt,n.deflateResetKeep=Ot,n.deflateSetHeader=function(D,gt){return D&&D.state?D.state.wrap!==2?p:(D.state.gzhead=gt,d):p},n.deflate=function(D,gt){var pt,V,q,at;if(!D||!D.state||5<gt||gt<0)return D?yt(D,p):p;if(V=D.state,!D.output||!D.input&&D.avail_in!==0||V.status===666&&gt!==f)return yt(D,D.avail_out===0?-5:p);if(V.strm=D,pt=V.last_flush,V.last_flush=gt,V.status===k)if(V.wrap===2)D.adler=0,Tt(V,31),Tt(V,139),Tt(V,8),V.gzhead?(Tt(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(V.gzhead.extra?4:0)+(V.gzhead.name?8:0)+(V.gzhead.comment?16:0)),Tt(V,255&V.gzhead.time),Tt(V,V.gzhead.time>>8&255),Tt(V,V.gzhead.time>>16&255),Tt(V,V.gzhead.time>>24&255),Tt(V,V.level===9?2:2<=V.strategy||V.level<2?4:0),Tt(V,255&V.gzhead.os),V.gzhead.extra&&V.gzhead.extra.length&&(Tt(V,255&V.gzhead.extra.length),Tt(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&(D.adler=h(D.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(Tt(V,0),Tt(V,0),Tt(V,0),Tt(V,0),Tt(V,0),Tt(V,V.level===9?2:2<=V.strategy||V.level<2?4:0),Tt(V,3),V.status=O);else{var At=b+(V.w_bits-8<<4)<<8;At|=(2<=V.strategy||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6,V.strstart!==0&&(At|=32),At+=31-At%31,V.status=O,wt(V,At),V.strstart!==0&&(wt(V,D.adler>>>16),wt(V,65535&D.adler)),D.adler=1}if(V.status===69)if(V.gzhead.extra){for(q=V.pending;V.gzindex<(65535&V.gzhead.extra.length)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>q&&(D.adler=h(D.adler,V.pending_buf,V.pending-q,q)),tt(D),q=V.pending,V.pending!==V.pending_buf_size));)Tt(V,255&V.gzhead.extra[V.gzindex]),V.gzindex++;V.gzhead.hcrc&&V.pending>q&&(D.adler=h(D.adler,V.pending_buf,V.pending-q,q)),V.gzindex===V.gzhead.extra.length&&(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){q=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>q&&(D.adler=h(D.adler,V.pending_buf,V.pending-q,q)),tt(D),q=V.pending,V.pending===V.pending_buf_size)){at=1;break}at=V.gzindex<V.gzhead.name.length?255&V.gzhead.name.charCodeAt(V.gzindex++):0,Tt(V,at)}while(at!==0);V.gzhead.hcrc&&V.pending>q&&(D.adler=h(D.adler,V.pending_buf,V.pending-q,q)),at===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===91)if(V.gzhead.comment){q=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>q&&(D.adler=h(D.adler,V.pending_buf,V.pending-q,q)),tt(D),q=V.pending,V.pending===V.pending_buf_size)){at=1;break}at=V.gzindex<V.gzhead.comment.length?255&V.gzhead.comment.charCodeAt(V.gzindex++):0,Tt(V,at)}while(at!==0);V.gzhead.hcrc&&V.pending>q&&(D.adler=h(D.adler,V.pending_buf,V.pending-q,q)),at===0&&(V.status=103)}else V.status=103;if(V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&tt(D),V.pending+2<=V.pending_buf_size&&(Tt(V,255&D.adler),Tt(V,D.adler>>8&255),D.adler=0,V.status=O)):V.status=O),V.pending!==0){if(tt(D),D.avail_out===0)return V.last_flush=-1,d}else if(D.avail_in===0&&st(gt)<=st(pt)&&gt!==f)return yt(D,-5);if(V.status===666&&D.avail_in!==0)return yt(D,-5);if(D.avail_in!==0||V.lookahead!==0||gt!==u&&V.status!==666){var _t=V.strategy===2?function(ht,Dt){for(var zt;;){if(ht.lookahead===0&&(Bt(ht),ht.lookahead===0)){if(Dt===u)return N;break}if(ht.match_length=0,zt=a._tr_tally(ht,0,ht.window[ht.strstart]),ht.lookahead--,ht.strstart++,zt&&(Q(ht,!1),ht.strm.avail_out===0))return N}return ht.insert=0,Dt===f?(Q(ht,!0),ht.strm.avail_out===0?Z:W):ht.last_lit&&(Q(ht,!1),ht.strm.avail_out===0)?N:X}(V,gt):V.strategy===3?function(ht,Dt){for(var zt,Lt,Wt,B,w=ht.window;;){if(ht.lookahead<=H){if(Bt(ht),ht.lookahead<=H&&Dt===u)return N;if(ht.lookahead===0)break}if(ht.match_length=0,ht.lookahead>=T&&0<ht.strstart&&(Lt=w[Wt=ht.strstart-1])===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]){B=ht.strstart+H;do;while(Lt===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]&&Lt===w[++Wt]&&Wt<B);ht.match_length=H-(B-Wt),ht.match_length>ht.lookahead&&(ht.match_length=ht.lookahead)}if(ht.match_length>=T?(zt=a._tr_tally(ht,1,ht.match_length-T),ht.lookahead-=ht.match_length,ht.strstart+=ht.match_length,ht.match_length=0):(zt=a._tr_tally(ht,0,ht.window[ht.strstart]),ht.lookahead--,ht.strstart++),zt&&(Q(ht,!1),ht.strm.avail_out===0))return N}return ht.insert=0,Dt===f?(Q(ht,!0),ht.strm.avail_out===0?Z:W):ht.last_lit&&(Q(ht,!1),ht.strm.avail_out===0)?N:X}(V,gt):o[V.level].func(V,gt);if(_t!==Z&&_t!==W||(V.status=666),_t===N||_t===Z)return D.avail_out===0&&(V.last_flush=-1),d;if(_t===X&&(gt===1?a._tr_align(V):gt!==5&&(a._tr_stored_block(V,0,0,!1),gt===3&&(bt(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),tt(D),D.avail_out===0))return V.last_flush=-1,d}return gt!==f?d:V.wrap<=0?1:(V.wrap===2?(Tt(V,255&D.adler),Tt(V,D.adler>>8&255),Tt(V,D.adler>>16&255),Tt(V,D.adler>>24&255),Tt(V,255&D.total_in),Tt(V,D.total_in>>8&255),Tt(V,D.total_in>>16&255),Tt(V,D.total_in>>24&255)):(wt(V,D.adler>>>16),wt(V,65535&D.adler)),tt(D),0<V.wrap&&(V.wrap=-V.wrap),V.pending!==0?d:1)},n.deflateEnd=function(D){var gt;return D&&D.state?(gt=D.state.status)!==k&&gt!==69&&gt!==73&&gt!==91&&gt!==103&&gt!==O&&gt!==666?yt(D,p):(D.state=null,gt===O?yt(D,-3):d):p},n.deflateSetDictionary=function(D,gt){var pt,V,q,at,At,_t,ht,Dt,zt=gt.length;if(!D||!D.state||(at=(pt=D.state).wrap)===2||at===1&&pt.status!==k||pt.lookahead)return p;for(at===1&&(D.adler=l(D.adler,gt,zt,0)),pt.wrap=0,zt>=pt.w_size&&(at===0&&(bt(pt.head),pt.strstart=0,pt.block_start=0,pt.insert=0),Dt=new s.Buf8(pt.w_size),s.arraySet(Dt,gt,zt-pt.w_size,pt.w_size,0),gt=Dt,zt=pt.w_size),At=D.avail_in,_t=D.next_in,ht=D.input,D.avail_in=zt,D.next_in=0,D.input=gt,Bt(pt);pt.lookahead>=T;){for(V=pt.strstart,q=pt.lookahead-(T-1);pt.ins_h=(pt.ins_h<<pt.hash_shift^pt.window[V+T-1])&pt.hash_mask,pt.prev[V&pt.w_mask]=pt.head[pt.ins_h],pt.head[pt.ins_h]=V,V++,--q;);pt.strstart=V,pt.lookahead=T-1,Bt(pt)}return pt.strstart+=pt.lookahead,pt.block_start=pt.strstart,pt.insert=pt.lookahead,pt.lookahead=0,pt.match_length=pt.prev_length=T-1,pt.match_available=0,D.next_in=_t,D.input=ht,D.avail_in=At,pt.wrap=at,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,i,n){i.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,i,n){i.exports=function(o,s){var a,l,h,c,u,f,d,p,m,v,g,b,y,x,C,R,F,U,T,H,_,k,O,N,X;a=o.state,l=o.next_in,N=o.input,h=l+(o.avail_in-5),c=o.next_out,X=o.output,u=c-(s-o.avail_out),f=c+(o.avail_out-257),d=a.dmax,p=a.wsize,m=a.whave,v=a.wnext,g=a.window,b=a.hold,y=a.bits,x=a.lencode,C=a.distcode,R=(1<<a.lenbits)-1,F=(1<<a.distbits)-1;t:do{y<15&&(b+=N[l++]<<y,y+=8,b+=N[l++]<<y,y+=8),U=x[b&R];e:for(;;){if(b>>>=T=U>>>24,y-=T,(T=U>>>16&255)===0)X[c++]=65535&U;else{if(!(16&T)){if((64&T)==0){U=x[(65535&U)+(b&(1<<T)-1)];continue e}if(32&T){a.mode=12;break t}o.msg="invalid literal/length code",a.mode=30;break t}H=65535&U,(T&=15)&&(y<T&&(b+=N[l++]<<y,y+=8),H+=b&(1<<T)-1,b>>>=T,y-=T),y<15&&(b+=N[l++]<<y,y+=8,b+=N[l++]<<y,y+=8),U=C[b&F];i:for(;;){if(b>>>=T=U>>>24,y-=T,!(16&(T=U>>>16&255))){if((64&T)==0){U=C[(65535&U)+(b&(1<<T)-1)];continue i}o.msg="invalid distance code",a.mode=30;break t}if(_=65535&U,y<(T&=15)&&(b+=N[l++]<<y,(y+=8)<T&&(b+=N[l++]<<y,y+=8)),d<(_+=b&(1<<T)-1)){o.msg="invalid distance too far back",a.mode=30;break t}if(b>>>=T,y-=T,(T=c-u)<_){if(m<(T=_-T)&&a.sane){o.msg="invalid distance too far back",a.mode=30;break t}if(O=g,(k=0)===v){if(k+=p-T,T<H){for(H-=T;X[c++]=g[k++],--T;);k=c-_,O=X}}else if(v<T){if(k+=p+v-T,(T-=v)<H){for(H-=T;X[c++]=g[k++],--T;);if(k=0,v<H){for(H-=T=v;X[c++]=g[k++],--T;);k=c-_,O=X}}}else if(k+=v-T,T<H){for(H-=T;X[c++]=g[k++],--T;);k=c-_,O=X}for(;2<H;)X[c++]=O[k++],X[c++]=O[k++],X[c++]=O[k++],H-=3;H&&(X[c++]=O[k++],1<H&&(X[c++]=O[k++]))}else{for(k=c-_;X[c++]=X[k++],X[c++]=X[k++],X[c++]=X[k++],2<(H-=3););H&&(X[c++]=X[k++],1<H&&(X[c++]=X[k++]))}break}}break}}while(l<h&&c<f);l-=H=y>>3,b&=(1<<(y-=H<<3))-1,o.next_in=l,o.next_out=c,o.avail_in=l<h?h-l+5:5-(l-h),o.avail_out=c<f?f-c+257:257-(c-f),a.hold=b,a.bits=y}},{}],49:[function(e,i,n){var o=e("../utils/common"),s=e("./adler32"),a=e("./crc32"),l=e("./inffast"),h=e("./inftrees"),c=1,u=2,f=0,d=-2,p=1,m=852,v=592;function g(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function b(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(k){var O;return k&&k.state?(O=k.state,k.total_in=k.total_out=O.total=0,k.msg="",O.wrap&&(k.adler=1&O.wrap),O.mode=p,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new o.Buf32(m),O.distcode=O.distdyn=new o.Buf32(v),O.sane=1,O.back=-1,f):d}function x(k){var O;return k&&k.state?((O=k.state).wsize=0,O.whave=0,O.wnext=0,y(k)):d}function C(k,O){var N,X;return k&&k.state?(X=k.state,O<0?(N=0,O=-O):(N=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15<O)?d:(X.window!==null&&X.wbits!==O&&(X.window=null),X.wrap=N,X.wbits=O,x(k))):d}function R(k,O){var N,X;return k?(X=new b,(k.state=X).window=null,(N=C(k,O))!==f&&(k.state=null),N):d}var F,U,T=!0;function H(k){if(T){var O;for(F=new o.Buf32(512),U=new o.Buf32(32),O=0;O<144;)k.lens[O++]=8;for(;O<256;)k.lens[O++]=9;for(;O<280;)k.lens[O++]=7;for(;O<288;)k.lens[O++]=8;for(h(c,k.lens,0,288,F,0,k.work,{bits:9}),O=0;O<32;)k.lens[O++]=5;h(u,k.lens,0,32,U,0,k.work,{bits:5}),T=!1}k.lencode=F,k.lenbits=9,k.distcode=U,k.distbits=5}function _(k,O,N,X){var Z,W=k.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new o.Buf8(W.wsize)),X>=W.wsize?(o.arraySet(W.window,O,N-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(X<(Z=W.wsize-W.wnext)&&(Z=X),o.arraySet(W.window,O,N-X,Z,W.wnext),(X-=Z)?(o.arraySet(W.window,O,N-X,X,0),W.wnext=X,W.whave=W.wsize):(W.wnext+=Z,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=Z))),0}n.inflateReset=x,n.inflateReset2=C,n.inflateResetKeep=y,n.inflateInit=function(k){return R(k,15)},n.inflateInit2=R,n.inflate=function(k,O){var N,X,Z,W,yt,st,bt,tt,Q,Tt,wt,ft,Bt,z,M,lt,et,Ot,Rt,Pt,D,gt,pt,V,q=0,at=new o.Buf8(4),At=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return d;(N=k.state).mode===12&&(N.mode=13),yt=k.next_out,Z=k.output,bt=k.avail_out,W=k.next_in,X=k.input,st=k.avail_in,tt=N.hold,Q=N.bits,Tt=st,wt=bt,gt=f;t:for(;;)switch(N.mode){case p:if(N.wrap===0){N.mode=13;break}for(;Q<16;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(2&N.wrap&&tt===35615){at[N.check=0]=255&tt,at[1]=tt>>>8&255,N.check=a(N.check,at,2,0),Q=tt=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&tt)<<8)+(tt>>8))%31){k.msg="incorrect header check",N.mode=30;break}if((15&tt)!=8){k.msg="unknown compression method",N.mode=30;break}if(Q-=4,D=8+(15&(tt>>>=4)),N.wbits===0)N.wbits=D;else if(D>N.wbits){k.msg="invalid window size",N.mode=30;break}N.dmax=1<<D,k.adler=N.check=1,N.mode=512&tt?10:12,Q=tt=0;break;case 2:for(;Q<16;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(N.flags=tt,(255&N.flags)!=8){k.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){k.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=tt>>8&1),512&N.flags&&(at[0]=255&tt,at[1]=tt>>>8&255,N.check=a(N.check,at,2,0)),Q=tt=0,N.mode=3;case 3:for(;Q<32;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}N.head&&(N.head.time=tt),512&N.flags&&(at[0]=255&tt,at[1]=tt>>>8&255,at[2]=tt>>>16&255,at[3]=tt>>>24&255,N.check=a(N.check,at,4,0)),Q=tt=0,N.mode=4;case 4:for(;Q<16;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}N.head&&(N.head.xflags=255&tt,N.head.os=tt>>8),512&N.flags&&(at[0]=255&tt,at[1]=tt>>>8&255,N.check=a(N.check,at,2,0)),Q=tt=0,N.mode=5;case 5:if(1024&N.flags){for(;Q<16;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}N.length=tt,N.head&&(N.head.extra_len=tt),512&N.flags&&(at[0]=255&tt,at[1]=tt>>>8&255,N.check=a(N.check,at,2,0)),Q=tt=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(st<(ft=N.length)&&(ft=st),ft&&(N.head&&(D=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),o.arraySet(N.head.extra,X,W,ft,D)),512&N.flags&&(N.check=a(N.check,X,ft,W)),st-=ft,W+=ft,N.length-=ft),N.length))break t;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(st===0)break t;for(ft=0;D=X[W+ft++],N.head&&D&&N.length<65536&&(N.head.name+=String.fromCharCode(D)),D&&ft<st;);if(512&N.flags&&(N.check=a(N.check,X,ft,W)),st-=ft,W+=ft,D)break t}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(st===0)break t;for(ft=0;D=X[W+ft++],N.head&&D&&N.length<65536&&(N.head.comment+=String.fromCharCode(D)),D&&ft<st;);if(512&N.flags&&(N.check=a(N.check,X,ft,W)),st-=ft,W+=ft,D)break t}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;Q<16;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(tt!==(65535&N.check)){k.msg="header crc mismatch",N.mode=30;break}Q=tt=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),k.adler=N.check=0,N.mode=12;break;case 10:for(;Q<32;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}k.adler=N.check=g(tt),Q=tt=0,N.mode=11;case 11:if(N.havedict===0)return k.next_out=yt,k.avail_out=bt,k.next_in=W,k.avail_in=st,N.hold=tt,N.bits=Q,2;k.adler=N.check=1,N.mode=12;case 12:if(O===5||O===6)break t;case 13:if(N.last){tt>>>=7&Q,Q-=7&Q,N.mode=27;break}for(;Q<3;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}switch(N.last=1&tt,Q-=1,3&(tt>>>=1)){case 0:N.mode=14;break;case 1:if(H(N),N.mode=20,O!==6)break;tt>>>=2,Q-=2;break t;case 2:N.mode=17;break;case 3:k.msg="invalid block type",N.mode=30}tt>>>=2,Q-=2;break;case 14:for(tt>>>=7&Q,Q-=7&Q;Q<32;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if((65535&tt)!=(tt>>>16^65535)){k.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&tt,Q=tt=0,N.mode=15,O===6)break t;case 15:N.mode=16;case 16:if(ft=N.length){if(st<ft&&(ft=st),bt<ft&&(ft=bt),ft===0)break t;o.arraySet(Z,X,W,ft,yt),st-=ft,W+=ft,bt-=ft,yt+=ft,N.length-=ft;break}N.mode=12;break;case 17:for(;Q<14;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(N.nlen=257+(31&tt),tt>>>=5,Q-=5,N.ndist=1+(31&tt),tt>>>=5,Q-=5,N.ncode=4+(15&tt),tt>>>=4,Q-=4,286<N.nlen||30<N.ndist){k.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;Q<3;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}N.lens[At[N.have++]]=7&tt,tt>>>=3,Q-=3}for(;N.have<19;)N.lens[At[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,pt={bits:N.lenbits},gt=h(0,N.lens,0,19,N.lencode,0,N.work,pt),N.lenbits=pt.bits,gt){k.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;lt=(q=N.lencode[tt&(1<<N.lenbits)-1])>>>16&255,et=65535&q,!((M=q>>>24)<=Q);){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(et<16)tt>>>=M,Q-=M,N.lens[N.have++]=et;else{if(et===16){for(V=M+2;Q<V;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(tt>>>=M,Q-=M,N.have===0){k.msg="invalid bit length repeat",N.mode=30;break}D=N.lens[N.have-1],ft=3+(3&tt),tt>>>=2,Q-=2}else if(et===17){for(V=M+3;Q<V;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}Q-=M,D=0,ft=3+(7&(tt>>>=M)),tt>>>=3,Q-=3}else{for(V=M+7;Q<V;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}Q-=M,D=0,ft=11+(127&(tt>>>=M)),tt>>>=7,Q-=7}if(N.have+ft>N.nlen+N.ndist){k.msg="invalid bit length repeat",N.mode=30;break}for(;ft--;)N.lens[N.have++]=D}}if(N.mode===30)break;if(N.lens[256]===0){k.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,pt={bits:N.lenbits},gt=h(c,N.lens,0,N.nlen,N.lencode,0,N.work,pt),N.lenbits=pt.bits,gt){k.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,pt={bits:N.distbits},gt=h(u,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,pt),N.distbits=pt.bits,gt){k.msg="invalid distances set",N.mode=30;break}if(N.mode=20,O===6)break t;case 20:N.mode=21;case 21:if(6<=st&&258<=bt){k.next_out=yt,k.avail_out=bt,k.next_in=W,k.avail_in=st,N.hold=tt,N.bits=Q,l(k,wt),yt=k.next_out,Z=k.output,bt=k.avail_out,W=k.next_in,X=k.input,st=k.avail_in,tt=N.hold,Q=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;lt=(q=N.lencode[tt&(1<<N.lenbits)-1])>>>16&255,et=65535&q,!((M=q>>>24)<=Q);){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(lt&&(240&lt)==0){for(Ot=M,Rt=lt,Pt=et;lt=(q=N.lencode[Pt+((tt&(1<<Ot+Rt)-1)>>Ot)])>>>16&255,et=65535&q,!(Ot+(M=q>>>24)<=Q);){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}tt>>>=Ot,Q-=Ot,N.back+=Ot}if(tt>>>=M,Q-=M,N.back+=M,N.length=et,lt===0){N.mode=26;break}if(32&lt){N.back=-1,N.mode=12;break}if(64&lt){k.msg="invalid literal/length code",N.mode=30;break}N.extra=15&lt,N.mode=22;case 22:if(N.extra){for(V=N.extra;Q<V;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}N.length+=tt&(1<<N.extra)-1,tt>>>=N.extra,Q-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;lt=(q=N.distcode[tt&(1<<N.distbits)-1])>>>16&255,et=65535&q,!((M=q>>>24)<=Q);){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if((240&lt)==0){for(Ot=M,Rt=lt,Pt=et;lt=(q=N.distcode[Pt+((tt&(1<<Ot+Rt)-1)>>Ot)])>>>16&255,et=65535&q,!(Ot+(M=q>>>24)<=Q);){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}tt>>>=Ot,Q-=Ot,N.back+=Ot}if(tt>>>=M,Q-=M,N.back+=M,64&lt){k.msg="invalid distance code",N.mode=30;break}N.offset=et,N.extra=15&lt,N.mode=24;case 24:if(N.extra){for(V=N.extra;Q<V;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}N.offset+=tt&(1<<N.extra)-1,tt>>>=N.extra,Q-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){k.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(bt===0)break t;if(ft=wt-bt,N.offset>ft){if((ft=N.offset-ft)>N.whave&&N.sane){k.msg="invalid distance too far back",N.mode=30;break}Bt=ft>N.wnext?(ft-=N.wnext,N.wsize-ft):N.wnext-ft,ft>N.length&&(ft=N.length),z=N.window}else z=Z,Bt=yt-N.offset,ft=N.length;for(bt<ft&&(ft=bt),bt-=ft,N.length-=ft;Z[yt++]=z[Bt++],--ft;);N.length===0&&(N.mode=21);break;case 26:if(bt===0)break t;Z[yt++]=N.length,bt--,N.mode=21;break;case 27:if(N.wrap){for(;Q<32;){if(st===0)break t;st--,tt|=X[W++]<<Q,Q+=8}if(wt-=bt,k.total_out+=wt,N.total+=wt,wt&&(k.adler=N.check=N.flags?a(N.check,Z,wt,yt-wt):s(N.check,Z,wt,yt-wt)),wt=bt,(N.flags?tt:g(tt))!==N.check){k.msg="incorrect data check",N.mode=30;break}Q=tt=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;Q<32;){if(st===0)break t;st--,tt+=X[W++]<<Q,Q+=8}if(tt!==(4294967295&N.total)){k.msg="incorrect length check",N.mode=30;break}Q=tt=0}N.mode=29;case 29:gt=1;break t;case 30:gt=-3;break t;case 31:return-4;case 32:default:return d}return k.next_out=yt,k.avail_out=bt,k.next_in=W,k.avail_in=st,N.hold=tt,N.bits=Q,(N.wsize||wt!==k.avail_out&&N.mode<30&&(N.mode<27||O!==4))&&_(k,k.output,k.next_out,wt-k.avail_out)?(N.mode=31,-4):(Tt-=k.avail_in,wt-=k.avail_out,k.total_in+=Tt,k.total_out+=wt,N.total+=wt,N.wrap&&wt&&(k.adler=N.check=N.flags?a(N.check,Z,wt,k.next_out-wt):s(N.check,Z,wt,k.next_out-wt)),k.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(Tt==0&&wt===0||O===4)&&gt===f&&(gt=-5),gt)},n.inflateEnd=function(k){if(!k||!k.state)return d;var O=k.state;return O.window&&(O.window=null),k.state=null,f},n.inflateGetHeader=function(k,O){var N;return k&&k.state?(2&(N=k.state).wrap)==0?d:((N.head=O).done=!1,f):d},n.inflateSetDictionary=function(k,O){var N,X=O.length;return k&&k.state?(N=k.state).wrap!==0&&N.mode!==11?d:N.mode===11&&s(1,O,X,0)!==N.check?-3:_(k,O,X,X)?(N.mode=31,-4):(N.havedict=1,f):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,i,n){var o=e("../utils/common"),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,0,0],a=[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],l=[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],h=[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];i.exports=function(c,u,f,d,p,m,v,g){var b,y,x,C,R,F,U,T,H,_=g.bits,k=0,O=0,N=0,X=0,Z=0,W=0,yt=0,st=0,bt=0,tt=0,Q=null,Tt=0,wt=new o.Buf16(16),ft=new o.Buf16(16),Bt=null,z=0;for(k=0;k<=15;k++)wt[k]=0;for(O=0;O<d;O++)wt[u[f+O]]++;for(Z=_,X=15;1<=X&&wt[X]===0;X--);if(X<Z&&(Z=X),X===0)return p[m++]=20971520,p[m++]=20971520,g.bits=1,0;for(N=1;N<X&&wt[N]===0;N++);for(Z<N&&(Z=N),k=st=1;k<=15;k++)if(st<<=1,(st-=wt[k])<0)return-1;if(0<st&&(c===0||X!==1))return-1;for(ft[1]=0,k=1;k<15;k++)ft[k+1]=ft[k]+wt[k];for(O=0;O<d;O++)u[f+O]!==0&&(v[ft[u[f+O]]++]=O);if(F=c===0?(Q=Bt=v,19):c===1?(Q=s,Tt-=257,Bt=a,z-=257,256):(Q=l,Bt=h,-1),k=N,R=m,yt=O=tt=0,x=-1,C=(bt=1<<(W=Z))-1,c===1&&852<bt||c===2&&592<bt)return 1;for(;;){for(U=k-yt,H=v[O]<F?(T=0,v[O]):v[O]>F?(T=Bt[z+v[O]],Q[Tt+v[O]]):(T=96,0),b=1<<k-yt,N=y=1<<W;p[R+(tt>>yt)+(y-=b)]=U<<24|T<<16|H|0,y!==0;);for(b=1<<k-1;tt&b;)b>>=1;if(b!==0?(tt&=b-1,tt+=b):tt=0,O++,--wt[k]==0){if(k===X)break;k=u[f+v[O]]}if(Z<k&&(tt&C)!==x){for(yt===0&&(yt=Z),R+=N,st=1<<(W=k-yt);W+yt<X&&!((st-=wt[W+yt])<=0);)W++,st<<=1;if(bt+=1<<W,c===1&&852<bt||c===2&&592<bt)return 1;p[x=tt&C]=Z<<24|W<<16|R-m|0}}return tt!==0&&(p[R+tt]=k-yt<<24|64<<16|0),g.bits=Z,0}},{"../utils/common":41}],51:[function(e,i,n){i.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,i,n){var o=e("../utils/common"),s=0,a=1;function l(q){for(var at=q.length;0<=--at;)q[at]=0}var h=0,c=29,u=256,f=u+1+c,d=30,p=19,m=2*f+1,v=15,g=16,b=7,y=256,x=16,C=17,R=18,F=[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],U=[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],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(f+2));l(_);var k=new Array(2*d);l(k);var O=new Array(512);l(O);var N=new Array(256);l(N);var X=new Array(c);l(X);var Z,W,yt,st=new Array(d);function bt(q,at,At,_t,ht){this.static_tree=q,this.extra_bits=at,this.extra_base=At,this.elems=_t,this.max_length=ht,this.has_stree=q&&q.length}function tt(q,at){this.dyn_tree=q,this.max_code=0,this.stat_desc=at}function Q(q){return q<256?O[q]:O[256+(q>>>7)]}function Tt(q,at){q.pending_buf[q.pending++]=255&at,q.pending_buf[q.pending++]=at>>>8&255}function wt(q,at,At){q.bi_valid>g-At?(q.bi_buf|=at<<q.bi_valid&65535,Tt(q,q.bi_buf),q.bi_buf=at>>g-q.bi_valid,q.bi_valid+=At-g):(q.bi_buf|=at<<q.bi_valid&65535,q.bi_valid+=At)}function ft(q,at,At){wt(q,At[2*at],At[2*at+1])}function Bt(q,at){for(var At=0;At|=1&q,q>>>=1,At<<=1,0<--at;);return At>>>1}function z(q,at,At){var _t,ht,Dt=new Array(v+1),zt=0;for(_t=1;_t<=v;_t++)Dt[_t]=zt=zt+At[_t-1]<<1;for(ht=0;ht<=at;ht++){var Lt=q[2*ht+1];Lt!==0&&(q[2*ht]=Bt(Dt[Lt]++,Lt))}}function M(q){var at;for(at=0;at<f;at++)q.dyn_ltree[2*at]=0;for(at=0;at<d;at++)q.dyn_dtree[2*at]=0;for(at=0;at<p;at++)q.bl_tree[2*at]=0;q.dyn_ltree[2*y]=1,q.opt_len=q.static_len=0,q.last_lit=q.matches=0}function lt(q){8<q.bi_valid?Tt(q,q.bi_buf):0<q.bi_valid&&(q.pending_buf[q.pending++]=q.bi_buf),q.bi_buf=0,q.bi_valid=0}function et(q,at,At,_t){var ht=2*at,Dt=2*At;return q[ht]<q[Dt]||q[ht]===q[Dt]&&_t[at]<=_t[At]}function Ot(q,at,At){for(var _t=q.heap[At],ht=At<<1;ht<=q.heap_len&&(ht<q.heap_len&&et(at,q.heap[ht+1],q.heap[ht],q.depth)&&ht++,!et(at,_t,q.heap[ht],q.depth));)q.heap[At]=q.heap[ht],At=ht,ht<<=1;q.heap[At]=_t}function Rt(q,at,At){var _t,ht,Dt,zt,Lt=0;if(q.last_lit!==0)for(;_t=q.pending_buf[q.d_buf+2*Lt]<<8|q.pending_buf[q.d_buf+2*Lt+1],ht=q.pending_buf[q.l_buf+Lt],Lt++,_t===0?ft(q,ht,at):(ft(q,(Dt=N[ht])+u+1,at),(zt=F[Dt])!==0&&wt(q,ht-=X[Dt],zt),ft(q,Dt=Q(--_t),At),(zt=U[Dt])!==0&&wt(q,_t-=st[Dt],zt)),Lt<q.last_lit;);ft(q,y,at)}function Pt(q,at){var At,_t,ht,Dt=at.dyn_tree,zt=at.stat_desc.static_tree,Lt=at.stat_desc.has_stree,Wt=at.stat_desc.elems,B=-1;for(q.heap_len=0,q.heap_max=m,At=0;At<Wt;At++)Dt[2*At]!==0?(q.heap[++q.heap_len]=B=At,q.depth[At]=0):Dt[2*At+1]=0;for(;q.heap_len<2;)Dt[2*(ht=q.heap[++q.heap_len]=B<2?++B:0)]=1,q.depth[ht]=0,q.opt_len--,Lt&&(q.static_len-=zt[2*ht+1]);for(at.max_code=B,At=q.heap_len>>1;1<=At;At--)Ot(q,Dt,At);for(ht=Wt;At=q.heap[1],q.heap[1]=q.heap[q.heap_len--],Ot(q,Dt,1),_t=q.heap[1],q.heap[--q.heap_max]=At,q.heap[--q.heap_max]=_t,Dt[2*ht]=Dt[2*At]+Dt[2*_t],q.depth[ht]=(q.depth[At]>=q.depth[_t]?q.depth[At]:q.depth[_t])+1,Dt[2*At+1]=Dt[2*_t+1]=ht,q.heap[1]=ht++,Ot(q,Dt,1),2<=q.heap_len;);q.heap[--q.heap_max]=q.heap[1],function(w,A){var G,L,J,it,kt,rt,dt=A.dyn_tree,I=A.max_code,Et=A.stat_desc.static_tree,Gt=A.stat_desc.has_stree,E=A.stat_desc.extra_bits,vt=A.stat_desc.extra_base,xt=A.stat_desc.max_length,P=0;for(it=0;it<=v;it++)w.bl_count[it]=0;for(dt[2*w.heap[w.heap_max]+1]=0,G=w.heap_max+1;G<m;G++)xt<(it=dt[2*dt[2*(L=w.heap[G])+1]+1]+1)&&(it=xt,P++),dt[2*L+1]=it,I<L||(w.bl_count[it]++,kt=0,vt<=L&&(kt=E[L-vt]),rt=dt[2*L],w.opt_len+=rt*(it+kt),Gt&&(w.static_len+=rt*(Et[2*L+1]+kt)));if(P!==0){do{for(it=xt-1;w.bl_count[it]===0;)it--;w.bl_count[it]--,w.bl_count[it+1]+=2,w.bl_count[xt]--,P-=2}while(0<P);for(it=xt;it!==0;it--)for(L=w.bl_count[it];L!==0;)I<(J=w.heap[--G])||(dt[2*J+1]!==it&&(w.opt_len+=(it-dt[2*J+1])*dt[2*J],dt[2*J+1]=it),L--)}}(q,at),z(Dt,B,q.bl_count)}function D(q,at,At){var _t,ht,Dt=-1,zt=at[1],Lt=0,Wt=7,B=4;for(zt===0&&(Wt=138,B=3),at[2*(At+1)+1]=65535,_t=0;_t<=At;_t++)ht=zt,zt=at[2*(_t+1)+1],++Lt<Wt&&ht===zt||(Lt<B?q.bl_tree[2*ht]+=Lt:ht!==0?(ht!==Dt&&q.bl_tree[2*ht]++,q.bl_tree[2*x]++):Lt<=10?q.bl_tree[2*C]++:q.bl_tree[2*R]++,Dt=ht,B=(Lt=0)===zt?(Wt=138,3):ht===zt?(Wt=6,3):(Wt=7,4))}function gt(q,at,At){var _t,ht,Dt=-1,zt=at[1],Lt=0,Wt=7,B=4;for(zt===0&&(Wt=138,B=3),_t=0;_t<=At;_t++)if(ht=zt,zt=at[2*(_t+1)+1],!(++Lt<Wt&&ht===zt)){if(Lt<B)for(;ft(q,ht,q.bl_tree),--Lt!=0;);else ht!==0?(ht!==Dt&&(ft(q,ht,q.bl_tree),Lt--),ft(q,x,q.bl_tree),wt(q,Lt-3,2)):Lt<=10?(ft(q,C,q.bl_tree),wt(q,Lt-3,3)):(ft(q,R,q.bl_tree),wt(q,Lt-11,7));Dt=ht,B=(Lt=0)===zt?(Wt=138,3):ht===zt?(Wt=6,3):(Wt=7,4)}}l(st);var pt=!1;function V(q,at,At,_t){wt(q,(h<<1)+(_t?1:0),3),function(ht,Dt,zt,Lt){lt(ht),Tt(ht,zt),Tt(ht,~zt),o.arraySet(ht.pending_buf,ht.window,Dt,zt,ht.pending),ht.pending+=zt}(q,at,At)}n._tr_init=function(q){pt||(function(){var at,At,_t,ht,Dt,zt=new Array(v+1);for(ht=_t=0;ht<c-1;ht++)for(X[ht]=_t,at=0;at<1<<F[ht];at++)N[_t++]=ht;for(N[_t-1]=ht,ht=Dt=0;ht<16;ht++)for(st[ht]=Dt,at=0;at<1<<U[ht];at++)O[Dt++]=ht;for(Dt>>=7;ht<d;ht++)for(st[ht]=Dt<<7,at=0;at<1<<U[ht]-7;at++)O[256+Dt++]=ht;for(At=0;At<=v;At++)zt[At]=0;for(at=0;at<=143;)_[2*at+1]=8,at++,zt[8]++;for(;at<=255;)_[2*at+1]=9,at++,zt[9]++;for(;at<=279;)_[2*at+1]=7,at++,zt[7]++;for(;at<=287;)_[2*at+1]=8,at++,zt[8]++;for(z(_,f+1,zt),at=0;at<d;at++)k[2*at+1]=5,k[2*at]=Bt(at,5);Z=new bt(_,F,u+1,f,v),W=new bt(k,U,0,d,v),yt=new bt(new Array(0),T,0,p,b)}(),pt=!0),q.l_desc=new tt(q.dyn_ltree,Z),q.d_desc=new tt(q.dyn_dtree,W),q.bl_desc=new tt(q.bl_tree,yt),q.bi_buf=0,q.bi_valid=0,M(q)},n._tr_stored_block=V,n._tr_flush_block=function(q,at,At,_t){var ht,Dt,zt=0;0<q.level?(q.strm.data_type===2&&(q.strm.data_type=function(Lt){var Wt,B=4093624447;for(Wt=0;Wt<=31;Wt++,B>>>=1)if(1&B&&Lt.dyn_ltree[2*Wt]!==0)return s;if(Lt.dyn_ltree[18]!==0||Lt.dyn_ltree[20]!==0||Lt.dyn_ltree[26]!==0)return a;for(Wt=32;Wt<u;Wt++)if(Lt.dyn_ltree[2*Wt]!==0)return a;return s}(q)),Pt(q,q.l_desc),Pt(q,q.d_desc),zt=function(Lt){var Wt;for(D(Lt,Lt.dyn_ltree,Lt.l_desc.max_code),D(Lt,Lt.dyn_dtree,Lt.d_desc.max_code),Pt(Lt,Lt.bl_desc),Wt=p-1;3<=Wt&&Lt.bl_tree[2*H[Wt]+1]===0;Wt--);return Lt.opt_len+=3*(Wt+1)+5+5+4,Wt}(q),ht=q.opt_len+3+7>>>3,(Dt=q.static_len+3+7>>>3)<=ht&&(ht=Dt)):ht=Dt=At+5,At+4<=ht&&at!==-1?V(q,at,At,_t):q.strategy===4||Dt===ht?(wt(q,2+(_t?1:0),3),Rt(q,_,k)):(wt(q,4+(_t?1:0),3),function(Lt,Wt,B,w){var A;for(wt(Lt,Wt-257,5),wt(Lt,B-1,5),wt(Lt,w-4,4),A=0;A<w;A++)wt(Lt,Lt.bl_tree[2*H[A]+1],3);gt(Lt,Lt.dyn_ltree,Wt-1),gt(Lt,Lt.dyn_dtree,B-1)}(q,q.l_desc.max_code+1,q.d_desc.max_code+1,zt+1),Rt(q,q.dyn_ltree,q.dyn_dtree)),M(q),_t&&lt(q)},n._tr_tally=function(q,at,At){return q.pending_buf[q.d_buf+2*q.last_lit]=at>>>8&255,q.pending_buf[q.d_buf+2*q.last_lit+1]=255&at,q.pending_buf[q.l_buf+q.last_lit]=255&At,q.last_lit++,at===0?q.dyn_ltree[2*At]++:(q.matches++,at--,q.dyn_ltree[2*(N[At]+u+1)]++,q.dyn_dtree[2*Q(at)]++),q.last_lit===q.lit_bufsize-1},n._tr_align=function(q){wt(q,2,3),ft(q,y,_),function(at){at.bi_valid===16?(Tt(at,at.bi_buf),at.bi_buf=0,at.bi_valid=0):8<=at.bi_valid&&(at.pending_buf[at.pending++]=255&at.bi_buf,at.bi_buf>>=8,at.bi_valid-=8)}(q)}},{"../utils/common":41}],53:[function(e,i,n){i.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,i,n){(function(o){(function(s,a){if(!s.setImmediate){var l,h,c,u,f=1,d={},p=!1,m=s.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(s);v=v&&v.setTimeout?v:s,l={}.toString.call(s.process)==="[object process]"?function(x){process.nextTick(function(){b(x)})}:function(){if(s.postMessage&&!s.importScripts){var x=!0,C=s.onmessage;return s.onmessage=function(){x=!1},s.postMessage("","*"),s.onmessage=C,x}}()?(u="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",y,!1):s.attachEvent("onmessage",y),function(x){s.postMessage(u+x,"*")}):s.MessageChannel?((c=new MessageChannel).port1.onmessage=function(x){b(x.data)},function(x){c.port2.postMessage(x)}):m&&"onreadystatechange"in m.createElement("script")?(h=m.documentElement,function(x){var C=m.createElement("script");C.onreadystatechange=function(){b(x),C.onreadystatechange=null,h.removeChild(C),C=null},h.appendChild(C)}):function(x){setTimeout(b,0,x)},v.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),R=0;R<C.length;R++)C[R]=arguments[R+1];var F={callback:x,args:C};return d[f]=F,l(f),f++},v.clearImmediate=g}function g(x){delete d[x]}function b(x){if(p)setTimeout(b,0,x);else{var C=d[x];if(C){p=!0;try{(function(R){var F=R.callback,U=R.args;switch(U.length){case 0:F();break;case 1:F(U[0]);break;case 2:F(U[0],U[1]);break;case 3:F(U[0],U[1],U[2]);break;default:F.apply(a,U)}})(C)}finally{g(x),p=!1}}}}function y(x){x.source===s&&typeof x.data=="string"&&x.data.indexOf(u)===0&&b(+x.data.slice(u.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof Ui<"u"?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Tu)),Tu.exports}var ew=tw();const X1=Sn(ew);var Cu={};const Su=W2(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Nu={},Hl={exports:{}},Au={},Js={},Y1;function iw(){if(Y1)return Js;Y1=1,Js.byteLength=a,Js.toByteArray=h,Js.fromByteArray=f;for(var r=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)r[n]=i[n],t[i.charCodeAt(n)]=n;t[45]=62,t[95]=63;function s(d){var p=d.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=d.indexOf("=");m===-1&&(m=p);var v=m===p?0:4-m%4;return[m,v]}function a(d){var p=s(d),m=p[0],v=p[1];return(m+v)*3/4-v}function l(d,p,m){return(p+m)*3/4-m}function h(d){var p,m=s(d),v=m[0],g=m[1],b=new e(l(d,v,g)),y=0,x=g>0?v-4:v,C;for(C=0;C<x;C+=4)p=t[d.charCodeAt(C)]<<18|t[d.charCodeAt(C+1)]<<12|t[d.charCodeAt(C+2)]<<6|t[d.charCodeAt(C+3)],b[y++]=p>>16&255,b[y++]=p>>8&255,b[y++]=p&255;return g===2&&(p=t[d.charCodeAt(C)]<<2|t[d.charCodeAt(C+1)]>>4,b[y++]=p&255),g===1&&(p=t[d.charCodeAt(C)]<<10|t[d.charCodeAt(C+1)]<<4|t[d.charCodeAt(C+2)]>>2,b[y++]=p>>8&255,b[y++]=p&255),b}function c(d){return r[d>>18&63]+r[d>>12&63]+r[d>>6&63]+r[d&63]}function u(d,p,m){for(var v,g=[],b=p;b<m;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),g.push(c(v));return g.join("")}function f(d){for(var p,m=d.length,v=m%3,g=[],b=16383,y=0,x=m-v;y<x;y+=b)g.push(u(d,y,y+b>x?x:y+b));return v===1?(p=d[m-1],g.push(r[p>>2]+r[p<<4&63]+"==")):v===2&&(p=(d[m-2]<<8)+d[m-1],g.push(r[p>>10]+r[p>>4&63]+r[p<<2&63]+"=")),g.join("")}return Js}var Gl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Z1;function rw(){return Z1||(Z1=1,Gl.read=function(r,t,e,i,n){var o,s,a=n*8-i-1,l=(1<<a)-1,h=l>>1,c=-7,u=e?n-1:0,f=e?-1:1,d=r[t+u];for(u+=f,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=o*256+r[t+u],u+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=s*256+r[t+u],u+=f,c-=8);if(o===0)o=1-h;else{if(o===l)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-h}return(d?-1:1)*s*Math.pow(2,o-i)},Gl.write=function(r,t,e,i,n,o){var s,a,l,h=o*8-n-1,c=(1<<h)-1,u=c>>1,f=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+u>=1?t+=f/l:t+=f*Math.pow(2,1-u),t*l>=2&&(s++,l/=2),s+u>=c?(a=0,s=c):s+u>=1?(a=(t*l-1)*Math.pow(2,n),s=s+u):(a=t*Math.pow(2,u-1)*Math.pow(2,n),s=0));n>=8;r[e+d]=a&255,d+=p,a/=256,n-=8);for(s=s<<n|a,h+=n;h>0;r[e+d]=s&255,d+=p,s/=256,h-=8);r[e+d-p]|=m*128}),Gl}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var J1;function nw(){return J1||(J1=1,function(r){const t=iw(),e=rw(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=b,r.INSPECT_MAX_BYTES=50;const n=2147483647;r.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function o(){try{const B=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(B,w),B.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(B){if(B>n)throw new RangeError('The value "'+B+'" is invalid for option "size"');const w=new Uint8Array(B);return Object.setPrototypeOf(w,a.prototype),w}function a(B,w,A){if(typeof B=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(B)}return l(B,w,A)}a.poolSize=8192;function l(B,w,A){if(typeof B=="string")return f(B,w);if(ArrayBuffer.isView(B))return p(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(ht(B,ArrayBuffer)||B&&ht(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ht(B,SharedArrayBuffer)||B&&ht(B.buffer,SharedArrayBuffer)))return m(B,w,A);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const G=B.valueOf&&B.valueOf();if(G!=null&&G!==B)return a.from(G,w,A);const L=v(B);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return a.from(B[Symbol.toPrimitive]("string"),w,A);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}a.from=function(B,w,A){return l(B,w,A)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function h(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function c(B,w,A){return h(B),B<=0?s(B):w!==void 0?typeof A=="string"?s(B).fill(w,A):s(B).fill(w):s(B)}a.alloc=function(B,w,A){return c(B,w,A)};function u(B){return h(B),s(B<0?0:g(B)|0)}a.allocUnsafe=function(B){return u(B)},a.allocUnsafeSlow=function(B){return u(B)};function f(B,w){if((typeof w!="string"||w==="")&&(w="utf8"),!a.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const A=y(B,w)|0;let G=s(A);const L=G.write(B,w);return L!==A&&(G=G.slice(0,L)),G}function d(B){const w=B.length<0?0:g(B.length)|0,A=s(w);for(let G=0;G<w;G+=1)A[G]=B[G]&255;return A}function p(B){if(ht(B,Uint8Array)){const w=new Uint8Array(B);return m(w.buffer,w.byteOffset,w.byteLength)}return d(B)}function m(B,w,A){if(w<0||B.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<w+(A||0))throw new RangeError('"length" is outside of buffer bounds');let G;return w===void 0&&A===void 0?G=new Uint8Array(B):A===void 0?G=new Uint8Array(B,w):G=new Uint8Array(B,w,A),Object.setPrototypeOf(G,a.prototype),G}function v(B){if(a.isBuffer(B)){const w=g(B.length)|0,A=s(w);return A.length===0||B.copy(A,0,0,w),A}if(B.length!==void 0)return typeof B.length!="number"||Dt(B.length)?s(0):d(B);if(B.type==="Buffer"&&Array.isArray(B.data))return d(B.data)}function g(B){if(B>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return B|0}function b(B){return+B!=B&&(B=0),a.alloc(+B)}a.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==a.prototype},a.compare=function(w,A){if(ht(w,Uint8Array)&&(w=a.from(w,w.offset,w.byteLength)),ht(A,Uint8Array)&&(A=a.from(A,A.offset,A.byteLength)),!a.isBuffer(w)||!a.isBuffer(A))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===A)return 0;let G=w.length,L=A.length;for(let J=0,it=Math.min(G,L);J<it;++J)if(w[J]!==A[J]){G=w[J],L=A[J];break}return G<L?-1:L<G?1:0},a.isEncoding=function(w){switch(String(w).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}},a.concat=function(w,A){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return a.alloc(0);let G;if(A===void 0)for(A=0,G=0;G<w.length;++G)A+=w[G].length;const L=a.allocUnsafe(A);let J=0;for(G=0;G<w.length;++G){let it=w[G];if(ht(it,Uint8Array))J+it.length>L.length?(a.isBuffer(it)||(it=a.from(it)),it.copy(L,J)):Uint8Array.prototype.set.call(L,it,J);else if(a.isBuffer(it))it.copy(L,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=it.length}return L};function y(B,w){if(a.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||ht(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const A=B.length,G=arguments.length>2&&arguments[2]===!0;if(!G&&A===0)return 0;let L=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":return V(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A*2;case"hex":return A>>>1;case"base64":return At(B).length;default:if(L)return G?-1:V(B).length;w=(""+w).toLowerCase(),L=!0}}a.byteLength=y;function x(B,w,A){let G=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((A===void 0||A>this.length)&&(A=this.length),A<=0)||(A>>>=0,w>>>=0,A<=w))return"";for(B||(B="utf8");;)switch(B){case"hex":return st(this,w,A);case"utf8":case"utf-8":return N(this,w,A);case"ascii":return W(this,w,A);case"latin1":case"binary":return yt(this,w,A);case"base64":return O(this,w,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,w,A);default:if(G)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),G=!0}}a.prototype._isBuffer=!0;function C(B,w,A){const G=B[w];B[w]=B[A],B[A]=G}a.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let A=0;A<w;A+=2)C(this,A,A+1);return this},a.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let A=0;A<w;A+=4)C(this,A,A+3),C(this,A+1,A+2);return this},a.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let A=0;A<w;A+=8)C(this,A,A+7),C(this,A+1,A+6),C(this,A+2,A+5),C(this,A+3,A+4);return this},a.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?N(this,0,w):x.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(w){if(!a.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:a.compare(this,w)===0},a.prototype.inspect=function(){let w="";const A=r.INSPECT_MAX_BYTES;return w=this.toString("hex",0,A).replace(/(.{2})/g,"$1 ").trim(),this.length>A&&(w+=" ... "),"<Buffer "+w+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(w,A,G,L,J){if(ht(w,Uint8Array)&&(w=a.from(w,w.offset,w.byteLength)),!a.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(A===void 0&&(A=0),G===void 0&&(G=w?w.length:0),L===void 0&&(L=0),J===void 0&&(J=this.length),A<0||G>w.length||L<0||J>this.length)throw new RangeError("out of range index");if(L>=J&&A>=G)return 0;if(L>=J)return-1;if(A>=G)return 1;if(A>>>=0,G>>>=0,L>>>=0,J>>>=0,this===w)return 0;let it=J-L,kt=G-A;const rt=Math.min(it,kt),dt=this.slice(L,J),I=w.slice(A,G);for(let Et=0;Et<rt;++Et)if(dt[Et]!==I[Et]){it=dt[Et],kt=I[Et];break}return it<kt?-1:kt<it?1:0};function R(B,w,A,G,L){if(B.length===0)return-1;if(typeof A=="string"?(G=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,Dt(A)&&(A=L?0:B.length-1),A<0&&(A=B.length+A),A>=B.length){if(L)return-1;A=B.length-1}else if(A<0)if(L)A=0;else return-1;if(typeof w=="string"&&(w=a.from(w,G)),a.isBuffer(w))return w.length===0?-1:F(B,w,A,G,L);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(B,w,A):Uint8Array.prototype.lastIndexOf.call(B,w,A):F(B,[w],A,G,L);throw new TypeError("val must be string, number or Buffer")}function F(B,w,A,G,L){let J=1,it=B.length,kt=w.length;if(G!==void 0&&(G=String(G).toLowerCase(),G==="ucs2"||G==="ucs-2"||G==="utf16le"||G==="utf-16le")){if(B.length<2||w.length<2)return-1;J=2,it/=2,kt/=2,A/=2}function rt(I,Et){return J===1?I[Et]:I.readUInt16BE(Et*J)}let dt;if(L){let I=-1;for(dt=A;dt<it;dt++)if(rt(B,dt)===rt(w,I===-1?0:dt-I)){if(I===-1&&(I=dt),dt-I+1===kt)return I*J}else I!==-1&&(dt-=dt-I),I=-1}else for(A+kt>it&&(A=it-kt),dt=A;dt>=0;dt--){let I=!0;for(let Et=0;Et<kt;Et++)if(rt(B,dt+Et)!==rt(w,Et)){I=!1;break}if(I)return dt}return-1}a.prototype.includes=function(w,A,G){return this.indexOf(w,A,G)!==-1},a.prototype.indexOf=function(w,A,G){return R(this,w,A,G,!0)},a.prototype.lastIndexOf=function(w,A,G){return R(this,w,A,G,!1)};function U(B,w,A,G){A=Number(A)||0;const L=B.length-A;G?(G=Number(G),G>L&&(G=L)):G=L;const J=w.length;G>J/2&&(G=J/2);let it;for(it=0;it<G;++it){const kt=parseInt(w.substr(it*2,2),16);if(Dt(kt))return it;B[A+it]=kt}return it}function T(B,w,A,G){return _t(V(w,B.length-A),B,A,G)}function H(B,w,A,G){return _t(q(w),B,A,G)}function _(B,w,A,G){return _t(At(w),B,A,G)}function k(B,w,A,G){return _t(at(w,B.length-A),B,A,G)}a.prototype.write=function(w,A,G,L){if(A===void 0)L="utf8",G=this.length,A=0;else if(G===void 0&&typeof A=="string")L=A,G=this.length,A=0;else if(isFinite(A))A=A>>>0,isFinite(G)?(G=G>>>0,L===void 0&&(L="utf8")):(L=G,G=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-A;if((G===void 0||G>J)&&(G=J),w.length>0&&(G<0||A<0)||A>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let it=!1;for(;;)switch(L){case"hex":return U(this,w,A,G);case"utf8":case"utf-8":return T(this,w,A,G);case"ascii":case"latin1":case"binary":return H(this,w,A,G);case"base64":return _(this,w,A,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,w,A,G);default:if(it)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),it=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(B,w,A){return w===0&&A===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(w,A))}function N(B,w,A){A=Math.min(B.length,A);const G=[];let L=w;for(;L<A;){const J=B[L];let it=null,kt=J>239?4:J>223?3:J>191?2:1;if(L+kt<=A){let rt,dt,I,Et;switch(kt){case 1:J<128&&(it=J);break;case 2:rt=B[L+1],(rt&192)===128&&(Et=(J&31)<<6|rt&63,Et>127&&(it=Et));break;case 3:rt=B[L+1],dt=B[L+2],(rt&192)===128&&(dt&192)===128&&(Et=(J&15)<<12|(rt&63)<<6|dt&63,Et>2047&&(Et<55296||Et>57343)&&(it=Et));break;case 4:rt=B[L+1],dt=B[L+2],I=B[L+3],(rt&192)===128&&(dt&192)===128&&(I&192)===128&&(Et=(J&15)<<18|(rt&63)<<12|(dt&63)<<6|I&63,Et>65535&&Et<1114112&&(it=Et))}}it===null?(it=65533,kt=1):it>65535&&(it-=65536,G.push(it>>>10&1023|55296),it=56320|it&1023),G.push(it),L+=kt}return Z(G)}const X=4096;function Z(B){const w=B.length;if(w<=X)return String.fromCharCode.apply(String,B);let A="",G=0;for(;G<w;)A+=String.fromCharCode.apply(String,B.slice(G,G+=X));return A}function W(B,w,A){let G="";A=Math.min(B.length,A);for(let L=w;L<A;++L)G+=String.fromCharCode(B[L]&127);return G}function yt(B,w,A){let G="";A=Math.min(B.length,A);for(let L=w;L<A;++L)G+=String.fromCharCode(B[L]);return G}function st(B,w,A){const G=B.length;(!w||w<0)&&(w=0),(!A||A<0||A>G)&&(A=G);let L="";for(let J=w;J<A;++J)L+=zt[B[J]];return L}function bt(B,w,A){const G=B.slice(w,A);let L="";for(let J=0;J<G.length-1;J+=2)L+=String.fromCharCode(G[J]+G[J+1]*256);return L}a.prototype.slice=function(w,A){const G=this.length;w=~~w,A=A===void 0?G:~~A,w<0?(w+=G,w<0&&(w=0)):w>G&&(w=G),A<0?(A+=G,A<0&&(A=0)):A>G&&(A=G),A<w&&(A=w);const L=this.subarray(w,A);return Object.setPrototypeOf(L,a.prototype),L};function tt(B,w,A){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+w>A)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(w,A,G){w=w>>>0,A=A>>>0,G||tt(w,A,this.length);let L=this[w],J=1,it=0;for(;++it<A&&(J*=256);)L+=this[w+it]*J;return L},a.prototype.readUintBE=a.prototype.readUIntBE=function(w,A,G){w=w>>>0,A=A>>>0,G||tt(w,A,this.length);let L=this[w+--A],J=1;for(;A>0&&(J*=256);)L+=this[w+--A]*J;return L},a.prototype.readUint8=a.prototype.readUInt8=function(w,A){return w=w>>>0,A||tt(w,1,this.length),this[w]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(w,A){return w=w>>>0,A||tt(w,2,this.length),this[w]|this[w+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(w,A){return w=w>>>0,A||tt(w,2,this.length),this[w]<<8|this[w+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(w,A){return w=w>>>0,A||tt(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(w,A){return w=w>>>0,A||tt(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},a.prototype.readBigUInt64LE=Lt(function(w){w=w>>>0,Pt(w,"offset");const A=this[w],G=this[w+7];(A===void 0||G===void 0)&&D(w,this.length-8);const L=A+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,J=this[++w]+this[++w]*2**8+this[++w]*2**16+G*2**24;return BigInt(L)+(BigInt(J)<<BigInt(32))}),a.prototype.readBigUInt64BE=Lt(function(w){w=w>>>0,Pt(w,"offset");const A=this[w],G=this[w+7];(A===void 0||G===void 0)&&D(w,this.length-8);const L=A*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],J=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+G;return(BigInt(L)<<BigInt(32))+BigInt(J)}),a.prototype.readIntLE=function(w,A,G){w=w>>>0,A=A>>>0,G||tt(w,A,this.length);let L=this[w],J=1,it=0;for(;++it<A&&(J*=256);)L+=this[w+it]*J;return J*=128,L>=J&&(L-=Math.pow(2,8*A)),L},a.prototype.readIntBE=function(w,A,G){w=w>>>0,A=A>>>0,G||tt(w,A,this.length);let L=A,J=1,it=this[w+--L];for(;L>0&&(J*=256);)it+=this[w+--L]*J;return J*=128,it>=J&&(it-=Math.pow(2,8*A)),it},a.prototype.readInt8=function(w,A){return w=w>>>0,A||tt(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},a.prototype.readInt16LE=function(w,A){w=w>>>0,A||tt(w,2,this.length);const G=this[w]|this[w+1]<<8;return G&32768?G|4294901760:G},a.prototype.readInt16BE=function(w,A){w=w>>>0,A||tt(w,2,this.length);const G=this[w+1]|this[w]<<8;return G&32768?G|4294901760:G},a.prototype.readInt32LE=function(w,A){return w=w>>>0,A||tt(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},a.prototype.readInt32BE=function(w,A){return w=w>>>0,A||tt(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},a.prototype.readBigInt64LE=Lt(function(w){w=w>>>0,Pt(w,"offset");const A=this[w],G=this[w+7];(A===void 0||G===void 0)&&D(w,this.length-8);const L=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(G<<24);return(BigInt(L)<<BigInt(32))+BigInt(A+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),a.prototype.readBigInt64BE=Lt(function(w){w=w>>>0,Pt(w,"offset");const A=this[w],G=this[w+7];(A===void 0||G===void 0)&&D(w,this.length-8);const L=(A<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(L)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+G)}),a.prototype.readFloatLE=function(w,A){return w=w>>>0,A||tt(w,4,this.length),e.read(this,w,!0,23,4)},a.prototype.readFloatBE=function(w,A){return w=w>>>0,A||tt(w,4,this.length),e.read(this,w,!1,23,4)},a.prototype.readDoubleLE=function(w,A){return w=w>>>0,A||tt(w,8,this.length),e.read(this,w,!0,52,8)},a.prototype.readDoubleBE=function(w,A){return w=w>>>0,A||tt(w,8,this.length),e.read(this,w,!1,52,8)};function Q(B,w,A,G,L,J){if(!a.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>L||w<J)throw new RangeError('"value" argument is out of bounds');if(A+G>B.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(w,A,G,L){if(w=+w,A=A>>>0,G=G>>>0,!L){const kt=Math.pow(2,8*G)-1;Q(this,w,A,G,kt,0)}let J=1,it=0;for(this[A]=w&255;++it<G&&(J*=256);)this[A+it]=w/J&255;return A+G},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(w,A,G,L){if(w=+w,A=A>>>0,G=G>>>0,!L){const kt=Math.pow(2,8*G)-1;Q(this,w,A,G,kt,0)}let J=G-1,it=1;for(this[A+J]=w&255;--J>=0&&(it*=256);)this[A+J]=w/it&255;return A+G},a.prototype.writeUint8=a.prototype.writeUInt8=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,1,255,0),this[A]=w&255,A+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,2,65535,0),this[A]=w&255,this[A+1]=w>>>8,A+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,2,65535,0),this[A]=w>>>8,this[A+1]=w&255,A+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,4,4294967295,0),this[A+3]=w>>>24,this[A+2]=w>>>16,this[A+1]=w>>>8,this[A]=w&255,A+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,4,4294967295,0),this[A]=w>>>24,this[A+1]=w>>>16,this[A+2]=w>>>8,this[A+3]=w&255,A+4};function Tt(B,w,A,G,L){Rt(w,G,L,B,A,7);let J=Number(w&BigInt(4294967295));B[A++]=J,J=J>>8,B[A++]=J,J=J>>8,B[A++]=J,J=J>>8,B[A++]=J;let it=Number(w>>BigInt(32)&BigInt(4294967295));return B[A++]=it,it=it>>8,B[A++]=it,it=it>>8,B[A++]=it,it=it>>8,B[A++]=it,A}function wt(B,w,A,G,L){Rt(w,G,L,B,A,7);let J=Number(w&BigInt(4294967295));B[A+7]=J,J=J>>8,B[A+6]=J,J=J>>8,B[A+5]=J,J=J>>8,B[A+4]=J;let it=Number(w>>BigInt(32)&BigInt(4294967295));return B[A+3]=it,it=it>>8,B[A+2]=it,it=it>>8,B[A+1]=it,it=it>>8,B[A]=it,A+8}a.prototype.writeBigUInt64LE=Lt(function(w,A=0){return Tt(this,w,A,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Lt(function(w,A=0){return wt(this,w,A,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(w,A,G,L){if(w=+w,A=A>>>0,!L){const rt=Math.pow(2,8*G-1);Q(this,w,A,G,rt-1,-rt)}let J=0,it=1,kt=0;for(this[A]=w&255;++J<G&&(it*=256);)w<0&&kt===0&&this[A+J-1]!==0&&(kt=1),this[A+J]=(w/it>>0)-kt&255;return A+G},a.prototype.writeIntBE=function(w,A,G,L){if(w=+w,A=A>>>0,!L){const rt=Math.pow(2,8*G-1);Q(this,w,A,G,rt-1,-rt)}let J=G-1,it=1,kt=0;for(this[A+J]=w&255;--J>=0&&(it*=256);)w<0&&kt===0&&this[A+J+1]!==0&&(kt=1),this[A+J]=(w/it>>0)-kt&255;return A+G},a.prototype.writeInt8=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,1,127,-128),w<0&&(w=255+w+1),this[A]=w&255,A+1},a.prototype.writeInt16LE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,2,32767,-32768),this[A]=w&255,this[A+1]=w>>>8,A+2},a.prototype.writeInt16BE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,2,32767,-32768),this[A]=w>>>8,this[A+1]=w&255,A+2},a.prototype.writeInt32LE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,4,2147483647,-2147483648),this[A]=w&255,this[A+1]=w>>>8,this[A+2]=w>>>16,this[A+3]=w>>>24,A+4},a.prototype.writeInt32BE=function(w,A,G){return w=+w,A=A>>>0,G||Q(this,w,A,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[A]=w>>>24,this[A+1]=w>>>16,this[A+2]=w>>>8,this[A+3]=w&255,A+4},a.prototype.writeBigInt64LE=Lt(function(w,A=0){return Tt(this,w,A,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Lt(function(w,A=0){return wt(this,w,A,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ft(B,w,A,G,L,J){if(A+G>B.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function Bt(B,w,A,G,L){return w=+w,A=A>>>0,L||ft(B,w,A,4),e.write(B,w,A,G,23,4),A+4}a.prototype.writeFloatLE=function(w,A,G){return Bt(this,w,A,!0,G)},a.prototype.writeFloatBE=function(w,A,G){return Bt(this,w,A,!1,G)};function z(B,w,A,G,L){return w=+w,A=A>>>0,L||ft(B,w,A,8),e.write(B,w,A,G,52,8),A+8}a.prototype.writeDoubleLE=function(w,A,G){return z(this,w,A,!0,G)},a.prototype.writeDoubleBE=function(w,A,G){return z(this,w,A,!1,G)},a.prototype.copy=function(w,A,G,L){if(!a.isBuffer(w))throw new TypeError("argument should be a Buffer");if(G||(G=0),!L&&L!==0&&(L=this.length),A>=w.length&&(A=w.length),A||(A=0),L>0&&L<G&&(L=G),L===G||w.length===0||this.length===0)return 0;if(A<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),w.length-A<L-G&&(L=w.length-A+G);const J=L-G;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(A,G,L):Uint8Array.prototype.set.call(w,this.subarray(G,L),A),J},a.prototype.fill=function(w,A,G,L){if(typeof w=="string"){if(typeof A=="string"?(L=A,A=0,G=this.length):typeof G=="string"&&(L=G,G=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!a.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(w.length===1){const it=w.charCodeAt(0);(L==="utf8"&&it<128||L==="latin1")&&(w=it)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(A<0||this.length<A||this.length<G)throw new RangeError("Out of range index");if(G<=A)return this;A=A>>>0,G=G===void 0?this.length:G>>>0,w||(w=0);let J;if(typeof w=="number")for(J=A;J<G;++J)this[J]=w;else{const it=a.isBuffer(w)?w:a.from(w,L),kt=it.length;if(kt===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(J=0;J<G-A;++J)this[J+A]=it[J%kt]}return this};const M={};function lt(B,w,A){M[B]=class extends A{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(L){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:L,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}lt("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),lt("ERR_INVALID_ARG_TYPE",function(B,w){return`The "${B}" argument must be of type number. Received type ${typeof w}`},TypeError),lt("ERR_OUT_OF_RANGE",function(B,w,A){let G=`The value of "${B}" is out of range.`,L=A;return Number.isInteger(A)&&Math.abs(A)>2**32?L=et(String(A)):typeof A=="bigint"&&(L=String(A),(A>BigInt(2)**BigInt(32)||A<-(BigInt(2)**BigInt(32)))&&(L=et(L)),L+="n"),G+=` It must be ${w}. Received ${L}`,G},RangeError);function et(B){let w="",A=B.length;const G=B[0]==="-"?1:0;for(;A>=G+4;A-=3)w=`_${B.slice(A-3,A)}${w}`;return`${B.slice(0,A)}${w}`}function Ot(B,w,A){Pt(w,"offset"),(B[w]===void 0||B[w+A]===void 0)&&D(w,B.length-(A+1))}function Rt(B,w,A,G,L,J){if(B>A||B<w){const it=typeof w=="bigint"?"n":"";let kt;throw w===0||w===BigInt(0)?kt=`>= 0${it} and < 2${it} ** ${(J+1)*8}${it}`:kt=`>= -(2${it} ** ${(J+1)*8-1}${it}) and < 2 ** ${(J+1)*8-1}${it}`,new M.ERR_OUT_OF_RANGE("value",kt,B)}Ot(G,L,J)}function Pt(B,w){if(typeof B!="number")throw new M.ERR_INVALID_ARG_TYPE(w,"number",B)}function D(B,w,A){throw Math.floor(B)!==B?(Pt(B,A),new M.ERR_OUT_OF_RANGE("offset","an integer",B)):w<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,B)}const gt=/[^+/0-9A-Za-z-_]/g;function pt(B){if(B=B.split("=")[0],B=B.trim().replace(gt,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function V(B,w){w=w||1/0;let A;const G=B.length;let L=null;const J=[];for(let it=0;it<G;++it){if(A=B.charCodeAt(it),A>55295&&A<57344){if(!L){if(A>56319){(w-=3)>-1&&J.push(239,191,189);continue}else if(it+1===G){(w-=3)>-1&&J.push(239,191,189);continue}L=A;continue}if(A<56320){(w-=3)>-1&&J.push(239,191,189),L=A;continue}A=(L-55296<<10|A-56320)+65536}else L&&(w-=3)>-1&&J.push(239,191,189);if(L=null,A<128){if((w-=1)<0)break;J.push(A)}else if(A<2048){if((w-=2)<0)break;J.push(A>>6|192,A&63|128)}else if(A<65536){if((w-=3)<0)break;J.push(A>>12|224,A>>6&63|128,A&63|128)}else if(A<1114112){if((w-=4)<0)break;J.push(A>>18|240,A>>12&63|128,A>>6&63|128,A&63|128)}else throw new Error("Invalid code point")}return J}function q(B){const w=[];for(let A=0;A<B.length;++A)w.push(B.charCodeAt(A)&255);return w}function at(B,w){let A,G,L;const J=[];for(let it=0;it<B.length&&!((w-=2)<0);++it)A=B.charCodeAt(it),G=A>>8,L=A%256,J.push(L),J.push(G);return J}function At(B){return t.toByteArray(pt(B))}function _t(B,w,A,G){let L;for(L=0;L<G&&!(L+A>=w.length||L>=B.length);++L)w[L+A]=B[L];return L}function ht(B,w){return B instanceof w||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===w.name}function Dt(B){return B!==B}const zt=function(){const B="0123456789abcdef",w=new Array(256);for(let A=0;A<16;++A){const G=A*16;for(let L=0;L<16;++L)w[G+L]=B[A]+B[L]}return w}();function Lt(B){return typeof BigInt>"u"?Wt:B}function Wt(){throw new Error("BigInt not supported")}}(Au)),Au}var Q1;function ow(){return Q1||(Q1=1,function(r,t){var e=nw(),i=e.Buffer;function n(s,a){for(var l in s)a[l]=s[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=e:(n(e,t),t.Buffer=o);function o(s,a,l){return i(s,a,l)}n(i,o),o.from=function(s,a,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,a,l)},o.alloc=function(s,a,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var h=i(s);return a!==void 0?typeof l=="string"?h.fill(a,l):h.fill(a):h.fill(0),h},o.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},o.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}}(Hl,Hl.exports)),Hl.exports}var $1;function sw(){if($1)return Nu;$1=1;var r=ow().Buffer,t=r.isEncoding||function(g){switch(g=""+g,g&&g.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 e(g){if(!g)return"utf8";for(var b;;)switch(g){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 g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function i(g){var b=e(g);if(typeof b!="string"&&(r.isEncoding===t||!t(g)))throw new Error("Unknown encoding: "+g);return b||g}Nu.StringDecoder=n;function n(g){this.encoding=i(g);var b;switch(this.encoding){case"utf16le":this.text=u,this.end=f,b=4;break;case"utf8":this.fillLast=l,b=4;break;case"base64":this.text=d,this.end=p,b=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(b)}n.prototype.write=function(g){if(g.length===0)return"";var b,y;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<g.length?b?b+this.text(g,y):this.text(g,y):b||""},n.prototype.end=c,n.prototype.text=h,n.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function o(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function s(g,b,y){var x=b.length-1;if(x<y)return 0;var C=o(b[x]);return C>=0?(C>0&&(g.lastNeed=C-1),C):--x<y||C===-2?0:(C=o(b[x]),C>=0?(C>0&&(g.lastNeed=C-2),C):--x<y||C===-2?0:(C=o(b[x]),C>=0?(C>0&&(C===2?C=0:g.lastNeed=C-3),C):0))}function a(g,b,y){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return g.lastNeed=2,"�"}}function l(g){var b=this.lastTotal-this.lastNeed,y=a(this,g);if(y!==void 0)return y;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function h(g,b){var y=s(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=y;var x=g.length-(y-this.lastNeed);return g.copy(this.lastChar,0,x),g.toString("utf8",b,x)}function c(g){var b=g&&g.length?this.write(g):"";return this.lastNeed?b+"�":b}function u(g,b){if((g.length-b)%2===0){var y=g.toString("utf16le",b);if(y){var x=y.charCodeAt(y.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function f(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,y)}return b}function d(g,b){var y=(g.length-b)%3;return y===0?g.toString("base64",b):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",b,g.length-y))}function p(g){var b=g&&g.length?this.write(g):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function m(g){return g.toString(this.encoding)}function v(g){return g&&g.length?this.write(g):""}return Nu}var tg;function aw(){return tg||(tg=1,function(r){(function(t){t.parser=function(z,M){return new i(z,M)},t.SAXParser=i,t.SAXStream=c,t.createStream=h,t.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(z,M){if(!(this instanceof i))return new i(z,M);var lt=this;o(lt),lt.q=lt.c="",lt.bufferCheckPosition=t.MAX_BUFFER_LENGTH,lt.opt=M||{},lt.opt.lowercase=lt.opt.lowercase||lt.opt.lowercasetags,lt.looseCase=lt.opt.lowercase?"toLowerCase":"toUpperCase",lt.tags=[],lt.closed=lt.closedRoot=lt.sawRoot=!1,lt.tag=lt.error=null,lt.strict=!!z,lt.noscript=!!(z||lt.opt.noscript),lt.state=T.BEGIN,lt.strictEntities=lt.opt.strictEntities,lt.ENTITIES=lt.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),lt.attribList=[],lt.opt.xmlns&&(lt.ns=Object.create(m)),lt.opt.unquotedAttributeValues===void 0&&(lt.opt.unquotedAttributeValues=!z),lt.trackPosition=lt.opt.position!==!1,lt.trackPosition&&(lt.position=lt.line=lt.column=0),_(lt,"onready")}Object.create||(Object.create=function(z){function M(){}M.prototype=z;var lt=new M;return lt}),Object.keys||(Object.keys=function(z){var M=[];for(var lt in z)z.hasOwnProperty(lt)&&M.push(lt);return M});function n(z){for(var M=Math.max(t.MAX_BUFFER_LENGTH,10),lt=0,et=0,Ot=e.length;et<Ot;et++){var Rt=z[e[et]].length;if(Rt>M)switch(e[et]){case"textNode":O(z);break;case"cdata":k(z,"oncdata",z.cdata),z.cdata="";break;case"script":k(z,"onscript",z.script),z.script="";break;default:X(z,"Max buffer length exceeded: "+e[et])}lt=Math.max(lt,Rt)}var Pt=t.MAX_BUFFER_LENGTH-lt;z.bufferCheckPosition=Pt+z.position}function o(z){for(var M=0,lt=e.length;M<lt;M++)z[e[M]]=""}function s(z){O(z),z.cdata!==""&&(k(z,"oncdata",z.cdata),z.cdata=""),z.script!==""&&(k(z,"onscript",z.script),z.script="")}i.prototype={end:function(){Z(this)},write:Bt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var a;try{a=Su.Stream}catch{a=function(){}}a||(a=function(){});var l=t.EVENTS.filter(function(z){return z!=="error"&&z!=="end"});function h(z,M){return new c(z,M)}function c(z,M){if(!(this instanceof c))return new c(z,M);a.apply(this),this._parser=new i(z,M),this.writable=!0,this.readable=!0;var lt=this;this._parser.onend=function(){lt.emit("end")},this._parser.onerror=function(et){lt.emit("error",et),lt._parser.error=null},this._decoder=null,l.forEach(function(et){Object.defineProperty(lt,"on"+et,{get:function(){return lt._parser["on"+et]},set:function(Ot){if(!Ot)return lt.removeAllListeners(et),lt._parser["on"+et]=Ot,Ot;lt.on(et,Ot)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(a.prototype,{constructor:{value:c}}),c.prototype.write=function(z){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(z)){if(!this._decoder){var M=sw().StringDecoder;this._decoder=new M("utf8")}z=this._decoder.write(z)}return this._parser.write(z.toString()),this.emit("data",z),!0},c.prototype.end=function(z){return z&&z.length&&this.write(z),this._parser.end(),!0},c.prototype.on=function(z,M){var lt=this;return!lt._parser["on"+z]&&l.indexOf(z)!==-1&&(lt._parser["on"+z]=function(){var et=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);et.splice(0,0,z),lt.emit.apply(lt,et)}),a.prototype.on.call(lt,z,M)};var u="[CDATA[",f="DOCTYPE",d="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",m={xml:d,xmlns:p},v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function x(z){return z===" "||z===`
`||z==="\r"||z==="	"}function C(z){return z==='"'||z==="'"}function R(z){return z===">"||x(z)}function F(z,M){return z.test(M)}function U(z,M){return!F(z,M)}var T=0;t.STATE={BEGIN:T++,BEGIN_WHITESPACE:T++,TEXT:T++,TEXT_ENTITY:T++,OPEN_WAKA:T++,SGML_DECL:T++,SGML_DECL_QUOTED:T++,DOCTYPE:T++,DOCTYPE_QUOTED:T++,DOCTYPE_DTD:T++,DOCTYPE_DTD_QUOTED:T++,COMMENT_STARTING:T++,COMMENT:T++,COMMENT_ENDING:T++,COMMENT_ENDED:T++,CDATA:T++,CDATA_ENDING:T++,CDATA_ENDING_2:T++,PROC_INST:T++,PROC_INST_BODY:T++,PROC_INST_ENDING:T++,OPEN_TAG:T++,OPEN_TAG_SLASH:T++,ATTRIB:T++,ATTRIB_NAME:T++,ATTRIB_NAME_SAW_WHITE:T++,ATTRIB_VALUE:T++,ATTRIB_VALUE_QUOTED:T++,ATTRIB_VALUE_CLOSED:T++,ATTRIB_VALUE_UNQUOTED:T++,ATTRIB_VALUE_ENTITY_Q:T++,ATTRIB_VALUE_ENTITY_U:T++,CLOSE_TAG:T++,CLOSE_TAG_SAW_WHITE:T++,SCRIPT:T++,SCRIPT_ENDING:T++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(z){var M=t.ENTITIES[z],lt=typeof M=="number"?String.fromCharCode(M):M;t.ENTITIES[z]=lt});for(var H in t.STATE)t.STATE[t.STATE[H]]=H;T=t.STATE;function _(z,M,lt){z[M]&&z[M](lt)}function k(z,M,lt){z.textNode&&O(z),_(z,M,lt)}function O(z){z.textNode=N(z.opt,z.textNode),z.textNode&&_(z,"ontext",z.textNode),z.textNode=""}function N(z,M){return z.trim&&(M=M.trim()),z.normalize&&(M=M.replace(/\s+/g," ")),M}function X(z,M){return O(z),z.trackPosition&&(M+=`
Line: `+z.line+`
Column: `+z.column+`
Char: `+z.c),M=new Error(M),z.error=M,_(z,"onerror",M),z}function Z(z){return z.sawRoot&&!z.closedRoot&&W(z,"Unclosed root tag"),z.state!==T.BEGIN&&z.state!==T.BEGIN_WHITESPACE&&z.state!==T.TEXT&&X(z,"Unexpected end"),O(z),z.c="",z.closed=!0,_(z,"onend"),i.call(z,z.strict,z.opt),z}function W(z,M){if(typeof z!="object"||!(z instanceof i))throw new Error("bad call to strictFail");z.strict&&X(z,M)}function yt(z){z.strict||(z.tagName=z.tagName[z.looseCase]());var M=z.tags[z.tags.length-1]||z,lt=z.tag={name:z.tagName,attributes:{}};z.opt.xmlns&&(lt.ns=M.ns),z.attribList.length=0,k(z,"onopentagstart",lt)}function st(z,M){var lt=z.indexOf(":"),et=lt<0?["",z]:z.split(":"),Ot=et[0],Rt=et[1];return M&&z==="xmlns"&&(Ot="xmlns",Rt=""),{prefix:Ot,local:Rt}}function bt(z){if(z.strict||(z.attribName=z.attribName[z.looseCase]()),z.attribList.indexOf(z.attribName)!==-1||z.tag.attributes.hasOwnProperty(z.attribName)){z.attribName=z.attribValue="";return}if(z.opt.xmlns){var M=st(z.attribName,!0),lt=M.prefix,et=M.local;if(lt==="xmlns")if(et==="xml"&&z.attribValue!==d)W(z,"xml: prefix must be bound to "+d+`
Actual: `+z.attribValue);else if(et==="xmlns"&&z.attribValue!==p)W(z,"xmlns: prefix must be bound to "+p+`
Actual: `+z.attribValue);else{var Ot=z.tag,Rt=z.tags[z.tags.length-1]||z;Ot.ns===Rt.ns&&(Ot.ns=Object.create(Rt.ns)),Ot.ns[et]=z.attribValue}z.attribList.push([z.attribName,z.attribValue])}else z.tag.attributes[z.attribName]=z.attribValue,k(z,"onattribute",{name:z.attribName,value:z.attribValue});z.attribName=z.attribValue=""}function tt(z,M){if(z.opt.xmlns){var lt=z.tag,et=st(z.tagName);lt.prefix=et.prefix,lt.local=et.local,lt.uri=lt.ns[et.prefix]||"",lt.prefix&&!lt.uri&&(W(z,"Unbound namespace prefix: "+JSON.stringify(z.tagName)),lt.uri=et.prefix);var Ot=z.tags[z.tags.length-1]||z;lt.ns&&Ot.ns!==lt.ns&&Object.keys(lt.ns).forEach(function(ht){k(z,"onopennamespace",{prefix:ht,uri:lt.ns[ht]})});for(var Rt=0,Pt=z.attribList.length;Rt<Pt;Rt++){var D=z.attribList[Rt],gt=D[0],pt=D[1],V=st(gt,!0),q=V.prefix,at=V.local,At=q===""?"":lt.ns[q]||"",_t={name:gt,value:pt,prefix:q,local:at,uri:At};q&&q!=="xmlns"&&!At&&(W(z,"Unbound namespace prefix: "+JSON.stringify(q)),_t.uri=q),z.tag.attributes[gt]=_t,k(z,"onattribute",_t)}z.attribList.length=0}z.tag.isSelfClosing=!!M,z.sawRoot=!0,z.tags.push(z.tag),k(z,"onopentag",z.tag),M||(!z.noscript&&z.tagName.toLowerCase()==="script"?z.state=T.SCRIPT:z.state=T.TEXT,z.tag=null,z.tagName=""),z.attribName=z.attribValue="",z.attribList.length=0}function Q(z){if(!z.tagName){W(z,"Weird empty close tag."),z.textNode+="</>",z.state=T.TEXT;return}if(z.script){if(z.tagName!=="script"){z.script+="</"+z.tagName+">",z.tagName="",z.state=T.SCRIPT;return}k(z,"onscript",z.script),z.script=""}var M=z.tags.length,lt=z.tagName;z.strict||(lt=lt[z.looseCase]());for(var et=lt;M--;){var Ot=z.tags[M];if(Ot.name!==et)W(z,"Unexpected close tag");else break}if(M<0){W(z,"Unmatched closing tag: "+z.tagName),z.textNode+="</"+z.tagName+">",z.state=T.TEXT;return}z.tagName=lt;for(var Rt=z.tags.length;Rt-- >M;){var Pt=z.tag=z.tags.pop();z.tagName=z.tag.name,k(z,"onclosetag",z.tagName);var D={};for(var gt in Pt.ns)D[gt]=Pt.ns[gt];var pt=z.tags[z.tags.length-1]||z;z.opt.xmlns&&Pt.ns!==pt.ns&&Object.keys(Pt.ns).forEach(function(V){var q=Pt.ns[V];k(z,"onclosenamespace",{prefix:V,uri:q})})}M===0&&(z.closedRoot=!0),z.tagName=z.attribValue=z.attribName="",z.attribList.length=0,z.state=T.TEXT}function Tt(z){var M=z.entity,lt=M.toLowerCase(),et,Ot="";return z.ENTITIES[M]?z.ENTITIES[M]:z.ENTITIES[lt]?z.ENTITIES[lt]:(M=lt,M.charAt(0)==="#"&&(M.charAt(1)==="x"?(M=M.slice(2),et=parseInt(M,16),Ot=et.toString(16)):(M=M.slice(1),et=parseInt(M,10),Ot=et.toString(10))),M=M.replace(/^0+/,""),isNaN(et)||Ot.toLowerCase()!==M?(W(z,"Invalid character entity"),"&"+z.entity+";"):String.fromCodePoint(et))}function wt(z,M){M==="<"?(z.state=T.OPEN_WAKA,z.startTagPosition=z.position):x(M)||(W(z,"Non-whitespace before first tag."),z.textNode=M,z.state=T.TEXT)}function ft(z,M){var lt="";return M<z.length&&(lt=z.charAt(M)),lt}function Bt(z){var M=this;if(this.error)throw this.error;if(M.closed)return X(M,"Cannot write after close. Assign an onready handler.");if(z===null)return Z(M);typeof z=="object"&&(z=z.toString());for(var lt=0,et="";et=ft(z,lt++),M.c=et,!!et;)switch(M.trackPosition&&(M.position++,et===`
`?(M.line++,M.column=0):M.column++),M.state){case T.BEGIN:if(M.state=T.BEGIN_WHITESPACE,et==="\uFEFF")continue;wt(M,et);continue;case T.BEGIN_WHITESPACE:wt(M,et);continue;case T.TEXT:if(M.sawRoot&&!M.closedRoot){for(var Ot=lt-1;et&&et!=="<"&&et!=="&";)et=ft(z,lt++),et&&M.trackPosition&&(M.position++,et===`
`?(M.line++,M.column=0):M.column++);M.textNode+=z.substring(Ot,lt-1)}et==="<"&&!(M.sawRoot&&M.closedRoot&&!M.strict)?(M.state=T.OPEN_WAKA,M.startTagPosition=M.position):(!x(et)&&(!M.sawRoot||M.closedRoot)&&W(M,"Text data outside of root node."),et==="&"?M.state=T.TEXT_ENTITY:M.textNode+=et);continue;case T.SCRIPT:et==="<"?M.state=T.SCRIPT_ENDING:M.script+=et;continue;case T.SCRIPT_ENDING:et==="/"?M.state=T.CLOSE_TAG:(M.script+="<"+et,M.state=T.SCRIPT);continue;case T.OPEN_WAKA:if(et==="!")M.state=T.SGML_DECL,M.sgmlDecl="";else if(!x(et))if(F(v,et))M.state=T.OPEN_TAG,M.tagName=et;else if(et==="/")M.state=T.CLOSE_TAG,M.tagName="";else if(et==="?")M.state=T.PROC_INST,M.procInstName=M.procInstBody="";else{if(W(M,"Unencoded <"),M.startTagPosition+1<M.position){var Rt=M.position-M.startTagPosition;et=new Array(Rt).join(" ")+et}M.textNode+="<"+et,M.state=T.TEXT}continue;case T.SGML_DECL:if(M.sgmlDecl+et==="--"){M.state=T.COMMENT,M.comment="",M.sgmlDecl="";continue}M.doctype&&M.doctype!==!0&&M.sgmlDecl?(M.state=T.DOCTYPE_DTD,M.doctype+="<!"+M.sgmlDecl+et,M.sgmlDecl=""):(M.sgmlDecl+et).toUpperCase()===u?(k(M,"onopencdata"),M.state=T.CDATA,M.sgmlDecl="",M.cdata=""):(M.sgmlDecl+et).toUpperCase()===f?(M.state=T.DOCTYPE,(M.doctype||M.sawRoot)&&W(M,"Inappropriately located doctype declaration"),M.doctype="",M.sgmlDecl=""):et===">"?(k(M,"onsgmldeclaration",M.sgmlDecl),M.sgmlDecl="",M.state=T.TEXT):(C(et)&&(M.state=T.SGML_DECL_QUOTED),M.sgmlDecl+=et);continue;case T.SGML_DECL_QUOTED:et===M.q&&(M.state=T.SGML_DECL,M.q=""),M.sgmlDecl+=et;continue;case T.DOCTYPE:et===">"?(M.state=T.TEXT,k(M,"ondoctype",M.doctype),M.doctype=!0):(M.doctype+=et,et==="["?M.state=T.DOCTYPE_DTD:C(et)&&(M.state=T.DOCTYPE_QUOTED,M.q=et));continue;case T.DOCTYPE_QUOTED:M.doctype+=et,et===M.q&&(M.q="",M.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:et==="]"?(M.doctype+=et,M.state=T.DOCTYPE):et==="<"?(M.state=T.OPEN_WAKA,M.startTagPosition=M.position):C(et)?(M.doctype+=et,M.state=T.DOCTYPE_DTD_QUOTED,M.q=et):M.doctype+=et;continue;case T.DOCTYPE_DTD_QUOTED:M.doctype+=et,et===M.q&&(M.state=T.DOCTYPE_DTD,M.q="");continue;case T.COMMENT:et==="-"?M.state=T.COMMENT_ENDING:M.comment+=et;continue;case T.COMMENT_ENDING:et==="-"?(M.state=T.COMMENT_ENDED,M.comment=N(M.opt,M.comment),M.comment&&k(M,"oncomment",M.comment),M.comment=""):(M.comment+="-"+et,M.state=T.COMMENT);continue;case T.COMMENT_ENDED:et!==">"?(W(M,"Malformed comment"),M.comment+="--"+et,M.state=T.COMMENT):M.doctype&&M.doctype!==!0?M.state=T.DOCTYPE_DTD:M.state=T.TEXT;continue;case T.CDATA:et==="]"?M.state=T.CDATA_ENDING:M.cdata+=et;continue;case T.CDATA_ENDING:et==="]"?M.state=T.CDATA_ENDING_2:(M.cdata+="]"+et,M.state=T.CDATA);continue;case T.CDATA_ENDING_2:et===">"?(M.cdata&&k(M,"oncdata",M.cdata),k(M,"onclosecdata"),M.cdata="",M.state=T.TEXT):et==="]"?M.cdata+="]":(M.cdata+="]]"+et,M.state=T.CDATA);continue;case T.PROC_INST:et==="?"?M.state=T.PROC_INST_ENDING:x(et)?M.state=T.PROC_INST_BODY:M.procInstName+=et;continue;case T.PROC_INST_BODY:if(!M.procInstBody&&x(et))continue;et==="?"?M.state=T.PROC_INST_ENDING:M.procInstBody+=et;continue;case T.PROC_INST_ENDING:et===">"?(k(M,"onprocessinginstruction",{name:M.procInstName,body:M.procInstBody}),M.procInstName=M.procInstBody="",M.state=T.TEXT):(M.procInstBody+="?"+et,M.state=T.PROC_INST_BODY);continue;case T.OPEN_TAG:F(g,et)?M.tagName+=et:(yt(M),et===">"?tt(M):et==="/"?M.state=T.OPEN_TAG_SLASH:(x(et)||W(M,"Invalid character in tag name"),M.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:et===">"?(tt(M,!0),Q(M)):(W(M,"Forward-slash in opening tag not followed by >"),M.state=T.ATTRIB);continue;case T.ATTRIB:if(x(et))continue;et===">"?tt(M):et==="/"?M.state=T.OPEN_TAG_SLASH:F(v,et)?(M.attribName=et,M.attribValue="",M.state=T.ATTRIB_NAME):W(M,"Invalid attribute name");continue;case T.ATTRIB_NAME:et==="="?M.state=T.ATTRIB_VALUE:et===">"?(W(M,"Attribute without value"),M.attribValue=M.attribName,bt(M),tt(M)):x(et)?M.state=T.ATTRIB_NAME_SAW_WHITE:F(g,et)?M.attribName+=et:W(M,"Invalid attribute name");continue;case T.ATTRIB_NAME_SAW_WHITE:if(et==="=")M.state=T.ATTRIB_VALUE;else{if(x(et))continue;W(M,"Attribute without value"),M.tag.attributes[M.attribName]="",M.attribValue="",k(M,"onattribute",{name:M.attribName,value:""}),M.attribName="",et===">"?tt(M):F(v,et)?(M.attribName=et,M.state=T.ATTRIB_NAME):(W(M,"Invalid attribute name"),M.state=T.ATTRIB)}continue;case T.ATTRIB_VALUE:if(x(et))continue;C(et)?(M.q=et,M.state=T.ATTRIB_VALUE_QUOTED):(M.opt.unquotedAttributeValues||X(M,"Unquoted attribute value"),M.state=T.ATTRIB_VALUE_UNQUOTED,M.attribValue=et);continue;case T.ATTRIB_VALUE_QUOTED:if(et!==M.q){et==="&"?M.state=T.ATTRIB_VALUE_ENTITY_Q:M.attribValue+=et;continue}bt(M),M.q="",M.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:x(et)?M.state=T.ATTRIB:et===">"?tt(M):et==="/"?M.state=T.OPEN_TAG_SLASH:F(v,et)?(W(M,"No whitespace between attributes"),M.attribName=et,M.attribValue="",M.state=T.ATTRIB_NAME):W(M,"Invalid attribute name");continue;case T.ATTRIB_VALUE_UNQUOTED:if(!R(et)){et==="&"?M.state=T.ATTRIB_VALUE_ENTITY_U:M.attribValue+=et;continue}bt(M),et===">"?tt(M):M.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(M.tagName)et===">"?Q(M):F(g,et)?M.tagName+=et:M.script?(M.script+="</"+M.tagName,M.tagName="",M.state=T.SCRIPT):(x(et)||W(M,"Invalid tagname in closing tag"),M.state=T.CLOSE_TAG_SAW_WHITE);else{if(x(et))continue;U(v,et)?M.script?(M.script+="</"+et,M.state=T.SCRIPT):W(M,"Invalid tagname in closing tag."):M.tagName=et}continue;case T.CLOSE_TAG_SAW_WHITE:if(x(et))continue;et===">"?Q(M):W(M,"Invalid characters in closing tag");continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:var Pt,D;switch(M.state){case T.TEXT_ENTITY:Pt=T.TEXT,D="textNode";break;case T.ATTRIB_VALUE_ENTITY_Q:Pt=T.ATTRIB_VALUE_QUOTED,D="attribValue";break;case T.ATTRIB_VALUE_ENTITY_U:Pt=T.ATTRIB_VALUE_UNQUOTED,D="attribValue";break}if(et===";"){var gt=Tt(M);M.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(gt)?(M.entity="",M.state=Pt,M.write(gt)):(M[D]+=gt,M.entity="",M.state=Pt)}else F(M.entity.length?y:b,et)?M.entity+=et:(W(M,"Invalid character in entity name"),M[D]+="&"+M.entity+et,M.entity="",M.state=Pt);continue;default:throw new Error(M,"Unknown state: "+M.state)}return M.position>=M.bufferCheckPosition&&n(M),M}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var z=String.fromCharCode,M=Math.floor,lt=function(){var et=16384,Ot=[],Rt,Pt,D=-1,gt=arguments.length;if(!gt)return"";for(var pt="";++D<gt;){var V=Number(arguments[D]);if(!isFinite(V)||V<0||V>1114111||M(V)!==V)throw RangeError("Invalid code point: "+V);V<=65535?Ot.push(V):(V-=65536,Rt=(V>>10)+55296,Pt=V%1024+56320,Ot.push(Rt,Pt)),(D+1===gt||Ot.length>et)&&(pt+=z.apply(null,Ot),Ot.length=0)}return pt};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:lt,configurable:!0,writable:!0}):String.fromCodePoint=lt}()})(r)}(Cu)),Cu}var _u,eg;function ku(){return eg||(eg=1,_u={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),_u}var Lu,ig;function Mu(){if(ig)return Lu;ig=1;var r=ku().isArray;return Lu={copyOptions:function(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!r(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Lu}var Du,rg;function ng(){if(rg)return Du;rg=1;var r=aw(),t=Mu(),e=ku().isArray,i,n;function o(g){return i=t.copyOptions(g),t.ensureFlagExists("ignoreDeclaration",i),t.ensureFlagExists("ignoreInstruction",i),t.ensureFlagExists("ignoreAttributes",i),t.ensureFlagExists("ignoreText",i),t.ensureFlagExists("ignoreComment",i),t.ensureFlagExists("ignoreCdata",i),t.ensureFlagExists("ignoreDoctype",i),t.ensureFlagExists("compact",i),t.ensureFlagExists("alwaysChildren",i),t.ensureFlagExists("addParent",i),t.ensureFlagExists("trim",i),t.ensureFlagExists("nativeType",i),t.ensureFlagExists("nativeTypeAttributes",i),t.ensureFlagExists("sanitize",i),t.ensureFlagExists("instructionHasAttributes",i),t.ensureFlagExists("captureSpacesBetweenElements",i),t.ensureAlwaysArrayExists(i),t.ensureKeyExists("declaration",i),t.ensureKeyExists("instruction",i),t.ensureKeyExists("attributes",i),t.ensureKeyExists("text",i),t.ensureKeyExists("comment",i),t.ensureKeyExists("cdata",i),t.ensureKeyExists("doctype",i),t.ensureKeyExists("type",i),t.ensureKeyExists("name",i),t.ensureKeyExists("elements",i),t.ensureKeyExists("parent",i),t.checkFnExists("doctype",i),t.checkFnExists("instruction",i),t.checkFnExists("cdata",i),t.checkFnExists("comment",i),t.checkFnExists("text",i),t.checkFnExists("instructionName",i),t.checkFnExists("elementName",i),t.checkFnExists("attributeName",i),t.checkFnExists("attributeValue",i),t.checkFnExists("attributes",i),i}function s(g){var b=Number(g);if(!isNaN(b))return b;var y=g.toLowerCase();return y==="true"?!0:y==="false"?!1:g}function a(g,b){var y;if(i.compact){if(!n[i[g+"Key"]]&&(e(i.alwaysArray)?i.alwaysArray.indexOf(i[g+"Key"])!==-1:i.alwaysArray)&&(n[i[g+"Key"]]=[]),n[i[g+"Key"]]&&!e(n[i[g+"Key"]])&&(n[i[g+"Key"]]=[n[i[g+"Key"]]]),g+"Fn"in i&&typeof b=="string"&&(b=i[g+"Fn"](b,n)),g==="instruction"&&("instructionFn"in i||"instructionNameFn"in i)){for(y in b)if(b.hasOwnProperty(y))if("instructionFn"in i)b[y]=i.instructionFn(b[y],y,n);else{var x=b[y];delete b[y],b[i.instructionNameFn(y,x,n)]=x}}e(n[i[g+"Key"]])?n[i[g+"Key"]].push(b):n[i[g+"Key"]]=b}else{n[i.elementsKey]||(n[i.elementsKey]=[]);var C={};if(C[i.typeKey]=g,g==="instruction"){for(y in b)if(b.hasOwnProperty(y))break;C[i.nameKey]="instructionNameFn"in i?i.instructionNameFn(y,b,n):y,i.instructionHasAttributes?(C[i.attributesKey]=b[y][i.attributesKey],"instructionFn"in i&&(C[i.attributesKey]=i.instructionFn(C[i.attributesKey],y,n))):("instructionFn"in i&&(b[y]=i.instructionFn(b[y],y,n)),C[i.instructionKey]=b[y])}else g+"Fn"in i&&(b=i[g+"Fn"](b,n)),C[i[g+"Key"]]=b;i.addParent&&(C[i.parentKey]=n),n[i.elementsKey].push(C)}}function l(g){if("attributesFn"in i&&g&&(g=i.attributesFn(g,n)),(i.trim||"attributeValueFn"in i||"attributeNameFn"in i||i.nativeTypeAttributes)&&g){var b;for(b in g)if(g.hasOwnProperty(b)&&(i.trim&&(g[b]=g[b].trim()),i.nativeTypeAttributes&&(g[b]=s(g[b])),"attributeValueFn"in i&&(g[b]=i.attributeValueFn(g[b],b,n)),"attributeNameFn"in i)){var y=g[b];delete g[b],g[i.attributeNameFn(b,g[b],n)]=y}}return g}function h(g){var b={};if(g.body&&(g.name.toLowerCase()==="xml"||i.instructionHasAttributes)){for(var y=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,x;(x=y.exec(g.body))!==null;)b[x[1]]=x[2]||x[3]||x[4];b=l(b)}if(g.name.toLowerCase()==="xml"){if(i.ignoreDeclaration)return;n[i.declarationKey]={},Object.keys(b).length&&(n[i.declarationKey][i.attributesKey]=b),i.addParent&&(n[i.declarationKey][i.parentKey]=n)}else{if(i.ignoreInstruction)return;i.trim&&(g.body=g.body.trim());var C={};i.instructionHasAttributes&&Object.keys(b).length?(C[g.name]={},C[g.name][i.attributesKey]=b):C[g.name]=g.body,a("instruction",C)}}function c(g,b){var y;if(typeof g=="object"&&(b=g.attributes,g=g.name),b=l(b),"elementNameFn"in i&&(g=i.elementNameFn(g,n)),i.compact){if(y={},!i.ignoreAttributes&&b&&Object.keys(b).length){y[i.attributesKey]={};var x;for(x in b)b.hasOwnProperty(x)&&(y[i.attributesKey][x]=b[x])}!(g in n)&&(e(i.alwaysArray)?i.alwaysArray.indexOf(g)!==-1:i.alwaysArray)&&(n[g]=[]),n[g]&&!e(n[g])&&(n[g]=[n[g]]),e(n[g])?n[g].push(y):n[g]=y}else n[i.elementsKey]||(n[i.elementsKey]=[]),y={},y[i.typeKey]="element",y[i.nameKey]=g,!i.ignoreAttributes&&b&&Object.keys(b).length&&(y[i.attributesKey]=b),i.alwaysChildren&&(y[i.elementsKey]=[]),n[i.elementsKey].push(y);y[i.parentKey]=n,n=y}function u(g){i.ignoreText||!g.trim()&&!i.captureSpacesBetweenElements||(i.trim&&(g=g.trim()),i.nativeType&&(g=s(g)),i.sanitize&&(g=g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),a("text",g))}function f(g){i.ignoreComment||(i.trim&&(g=g.trim()),a("comment",g))}function d(g){var b=n[i.parentKey];i.addParent||delete n[i.parentKey],n=b}function p(g){i.ignoreCdata||(i.trim&&(g=g.trim()),a("cdata",g))}function m(g){i.ignoreDoctype||(g=g.replace(/^ /,""),i.trim&&(g=g.trim()),a("doctype",g))}function v(g){g.note=g}return Du=function(g,b){var y=r.parser(!0,{}),x={};if(n=x,i=o(b),y.opt={strictEntities:!0},y.onopentag=c,y.ontext=u,y.oncomment=f,y.onclosetag=d,y.onerror=v,y.oncdata=p,y.ondoctype=m,y.onprocessinginstruction=h,y.write(g).close(),x[i.elementsKey]){var C=x[i.elementsKey];delete x[i.elementsKey],x[i.elementsKey]=C,delete x.text}return x},Du}var Ou,og;function lw(){if(og)return Ou;og=1;var r=Mu(),t=ng();function e(i){var n=r.copyOptions(i);return r.ensureSpacesExists(n),n}return Ou=function(i,n){var o,s,a,l;return o=e(n),s=t(i,o),l="compact"in o&&o.compact?"_parent":"parent","addParent"in o&&o.addParent?a=JSON.stringify(s,function(h,c){return h===l?"_":c},o.spaces):a=JSON.stringify(s,null,o.spaces),a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Ou}var Ru,sg;function ag(){if(sg)return Ru;sg=1;var r=Mu(),t=ku().isArray,e,i;function n(y){var x=r.copyOptions(y);return r.ensureFlagExists("ignoreDeclaration",x),r.ensureFlagExists("ignoreInstruction",x),r.ensureFlagExists("ignoreAttributes",x),r.ensureFlagExists("ignoreText",x),r.ensureFlagExists("ignoreComment",x),r.ensureFlagExists("ignoreCdata",x),r.ensureFlagExists("ignoreDoctype",x),r.ensureFlagExists("compact",x),r.ensureFlagExists("indentText",x),r.ensureFlagExists("indentCdata",x),r.ensureFlagExists("indentAttributes",x),r.ensureFlagExists("indentInstruction",x),r.ensureFlagExists("fullTagEmptyElement",x),r.ensureFlagExists("noQuotesForNativeAttributes",x),r.ensureSpacesExists(x),typeof x.spaces=="number"&&(x.spaces=Array(x.spaces+1).join(" ")),r.ensureKeyExists("declaration",x),r.ensureKeyExists("instruction",x),r.ensureKeyExists("attributes",x),r.ensureKeyExists("text",x),r.ensureKeyExists("comment",x),r.ensureKeyExists("cdata",x),r.ensureKeyExists("doctype",x),r.ensureKeyExists("type",x),r.ensureKeyExists("name",x),r.ensureKeyExists("elements",x),r.checkFnExists("doctype",x),r.checkFnExists("instruction",x),r.checkFnExists("cdata",x),r.checkFnExists("comment",x),r.checkFnExists("text",x),r.checkFnExists("instructionName",x),r.checkFnExists("elementName",x),r.checkFnExists("attributeName",x),r.checkFnExists("attributeValue",x),r.checkFnExists("attributes",x),r.checkFnExists("fullTagEmptyElement",x),x}function o(y,x,C){return(!C&&y.spaces?`
`:"")+Array(x+1).join(y.spaces)}function s(y,x,C){if(x.ignoreAttributes)return"";"attributesFn"in x&&(y=x.attributesFn(y,i,e));var R,F,U,T,H=[];for(R in y)y.hasOwnProperty(R)&&y[R]!==null&&y[R]!==void 0&&(T=x.noQuotesForNativeAttributes&&typeof y[R]!="string"?"":'"',F=""+y[R],F=F.replace(/"/g,"&quot;"),U="attributeNameFn"in x?x.attributeNameFn(R,F,i,e):R,H.push(x.spaces&&x.indentAttributes?o(x,C+1,!1):" "),H.push(U+"="+T+("attributeValueFn"in x?x.attributeValueFn(F,R,i,e):F)+T));return y&&Object.keys(y).length&&x.spaces&&x.indentAttributes&&H.push(o(x,C,!1)),H.join("")}function a(y,x,C){return e=y,i="xml",x.ignoreDeclaration?"":"<?xml"+s(y[x.attributesKey],x,C)+"?>"}function l(y,x,C){if(x.ignoreInstruction)return"";var R;for(R in y)if(y.hasOwnProperty(R))break;var F="instructionNameFn"in x?x.instructionNameFn(R,y[R],i,e):R;if(typeof y[R]=="object")return e=y,i=F,"<?"+F+s(y[R][x.attributesKey],x,C)+"?>";var U=y[R]?y[R]:"";return"instructionFn"in x&&(U=x.instructionFn(U,R,i,e)),"<?"+F+(U?" "+U:"")+"?>"}function h(y,x){return x.ignoreComment?"":"<!--"+("commentFn"in x?x.commentFn(y,i,e):y)+"-->"}function c(y,x){return x.ignoreCdata?"":"<![CDATA["+("cdataFn"in x?x.cdataFn(y,i,e):y.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function u(y,x){return x.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in x?x.doctypeFn(y,i,e):y)+">"}function f(y,x){return x.ignoreText?"":(y=""+y,y=y.replace(/&amp;/g,"&"),y=y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in x?x.textFn(y,i,e):y)}function d(y,x){var C;if(y.elements&&y.elements.length)for(C=0;C<y.elements.length;++C)switch(y.elements[C][x.typeKey]){case"text":if(x.indentText)return!0;break;case"cdata":if(x.indentCdata)return!0;break;case"instruction":if(x.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function p(y,x,C){e=y,i=y.name;var R=[],F="elementNameFn"in x?x.elementNameFn(y.name,y):y.name;R.push("<"+F),y[x.attributesKey]&&R.push(s(y[x.attributesKey],x,C));var U=y[x.elementsKey]&&y[x.elementsKey].length||y[x.attributesKey]&&y[x.attributesKey]["xml:space"]==="preserve";return U||("fullTagEmptyElementFn"in x?U=x.fullTagEmptyElementFn(y.name,y):U=x.fullTagEmptyElement),U?(R.push(">"),y[x.elementsKey]&&y[x.elementsKey].length&&(R.push(m(y[x.elementsKey],x,C+1)),e=y,i=y.name),R.push(x.spaces&&d(y,x)?`
`+Array(C+1).join(x.spaces):""),R.push("</"+F+">")):R.push("/>"),R.join("")}function m(y,x,C,R){return y.reduce(function(F,U){var T=o(x,C,R&&!F);switch(U.type){case"element":return F+T+p(U,x,C);case"comment":return F+T+h(U[x.commentKey],x);case"doctype":return F+T+u(U[x.doctypeKey],x);case"cdata":return F+(x.indentCdata?T:"")+c(U[x.cdataKey],x);case"text":return F+(x.indentText?T:"")+f(U[x.textKey],x);case"instruction":var H={};return H[U[x.nameKey]]=U[x.attributesKey]?U:U[x.instructionKey],F+(x.indentInstruction?T:"")+l(H,x,C)}},"")}function v(y,x,C){var R;for(R in y)if(y.hasOwnProperty(R))switch(R){case x.parentKey:case x.attributesKey:break;case x.textKey:if(x.indentText||C)return!0;break;case x.cdataKey:if(x.indentCdata||C)return!0;break;case x.instructionKey:if(x.indentInstruction||C)return!0;break;case x.doctypeKey:case x.commentKey:return!0;default:return!0}return!1}function g(y,x,C,R,F){e=y,i=x;var U="elementNameFn"in C?C.elementNameFn(x,y):x;if(typeof y>"u"||y===null||y==="")return"fullTagEmptyElementFn"in C&&C.fullTagEmptyElementFn(x,y)||C.fullTagEmptyElement?"<"+U+"></"+U+">":"<"+U+"/>";var T=[];if(x){if(T.push("<"+U),typeof y!="object")return T.push(">"+f(y,C)+"</"+U+">"),T.join("");y[C.attributesKey]&&T.push(s(y[C.attributesKey],C,R));var H=v(y,C,!0)||y[C.attributesKey]&&y[C.attributesKey]["xml:space"]==="preserve";if(H||("fullTagEmptyElementFn"in C?H=C.fullTagEmptyElementFn(x,y):H=C.fullTagEmptyElement),H)T.push(">");else return T.push("/>"),T.join("")}return T.push(b(y,C,R+1,!1)),e=y,i=x,x&&T.push((F?o(C,R,!1):"")+"</"+U+">"),T.join("")}function b(y,x,C,R){var F,U,T,H=[];for(U in y)if(y.hasOwnProperty(U))for(T=t(y[U])?y[U]:[y[U]],F=0;F<T.length;++F){switch(U){case x.declarationKey:H.push(a(T[F],x,C));break;case x.instructionKey:H.push((x.indentInstruction?o(x,C,R):"")+l(T[F],x,C));break;case x.attributesKey:case x.parentKey:break;case x.textKey:H.push((x.indentText?o(x,C,R):"")+f(T[F],x));break;case x.cdataKey:H.push((x.indentCdata?o(x,C,R):"")+c(T[F],x));break;case x.doctypeKey:H.push(o(x,C,R)+u(T[F],x));break;case x.commentKey:H.push(o(x,C,R)+h(T[F],x));break;default:H.push(o(x,C,R)+g(T[F],U,x,C,v(T[F],x)))}R=R&&!H.length}return H.join("")}return Ru=function(y,x){x=n(x);var C=[];return e=y,i="_root_",x.compact?C.push(b(y,x,0,!0)):(y[x.declarationKey]&&C.push(a(y[x.declarationKey],x,0)),y[x.elementsKey]&&y[x.elementsKey].length&&C.push(m(y[x.elementsKey],x,0,!C.length))),C.join("")},Ru}var Fu,lg;function hw(){if(lg)return Fu;lg=1;var r=ag();return Fu=function(t,e){t instanceof Buffer&&(t=t.toString());var i=null;if(typeof t=="string")try{i=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else i=t;return r(i,e)},Fu}var Iu,hg;function cw(){if(hg)return Iu;hg=1;var r=ng(),t=lw(),e=ag(),i=hw();return Iu={xml2js:r,xml2json:t,js2xml:e,json2xml:i},Iu}var uw=cw();const dw=Sn(uw),fw=(r,t)=>{if(r.children.summary&&r.children.summary.length>0)for(let e=0;e<r.children.summary.length;e++){const i=r.children.summary[e];if(i.id===t)return i.title}},pw=(r,t)=>{const e=cg(r.elements,"summary");if(e&&e&&e.length>0)for(let i=0;i<e.length;i++){const n=e[i];if(n.attributes.id===t)return n.elements&&n.elements[0]&&n.elements[0].elements&&n.elements[0].elements[0]?n.elements[0].elements[0].text:""}return""},gw=r=>{let t=null;const e=i=>{if(i){for(let n=0;n<i.length;n++)if(!t&&i[n].name==="topic"){t=i[n];return}i.forEach(n=>{e(n.elements)})}};return e(r),t},Qs=(r,t)=>r.find(e=>e.name===t),cg=(r,t)=>r.find(e=>e.attributes.type===t).elements,ug=(r,t,e,i)=>{const n={expand:!0,isActive:!1,text:e(),range:null},o=i.match(/\((\d+),(\d+)\)/);if(o){const s=Number(o[1]),a=Number(o[2]);s===a?t[s]=n:(n.range=[s,a],r.push(n))}else r.push(n)},mw=async(r,t,e,i)=>{if(r.image&&/\.(jpg|jpeg|png|gif|webp)$/.test(r.image.src)){let n=null;const o=new Promise(s=>{n=s});e.push(o);try{const a=`data:image/${/\.([^.]+)$/.exec(r.image.src)[1]};base64,`+await i["resources/"+r.image.src.split("/")[1]].async("base64");if(t.data.image=a,!r.image.width&&!r.image.height){const l=await h0(a);t.data.imageSize={width:l.width,height:l.height}}else t.data.imageSize={width:r.image.width,height:r.image.height};n()}catch(s){console.log(s),n()}}},vw=async(r,t,e,i)=>{if(r.data.image){let n=null,o=new Promise(s=>{n=s});e.push(o);try{let s="",a=r.data.image;/^data:/.test(r.data.image)||(a=await uc(r.data.image));let l=p6(a);s="image_"+i.length+"."+l.type,i.push({name:s,data:l.base64}),t.image={src:"xap:resources/"+s,width:r.data.imageSize.width,height:r.data.imageSize.height},n()}catch(s){console.log(s),n()}}},yw=()=>`<?xml version="1.0" encoding="UTF-8" standalone="no"?><xmap-content xmlns="urn:xmind:xmap:xmlns:content:2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" modified-by="bruce" timestamp="1503058545540" version="2.0">    <sheet id="7abtd0ssc7n4pi1nu6i7b6lsdh" modified-by="bruce" theme="0kdeemiijde6nuk97e4t0vpp54" timestamp="1503058545540">        <topic id="1vr0lcte2og4t2sopiogvdmifc" modified-by="bruce" structure-class="org.xmind.ui.logic.right" timestamp="1503058545417">            <title>Warning                警告                Attention                Warnung                경고</title>            <children>                <topics type="attached">                    <topic id="71h1aip2t1o8vvm0a41nausaar" modified-by="bruce" timestamp="1503058545423">                        <title svg:width="500">This file can not be opened normally, please do not modify and save, otherwise the contents will be permanently lost!</title>                        <children>                            <topics type="attached">                                <topic id="428akmkh9a0tog6c91qj995qdl" modified-by="bruce" timestamp="1503058545427">                                    <title>You can try using XMind 8 Update 3 or later version to open</title>                                </topic>                            </topics>                        </children>                    </topic>                    <topic id="2kb87f8m38b3hnfhp450c7q35e" modified-by="bruce" timestamp="1503058545434">                        <title svg:width="500">该文件无法正常打开,请勿修改并保存,否则文件内容将会永久性丢失!</title>                        <children>                            <topics type="attached">                                <topic id="3m9hoo4a09n53ofl6fohdun99f" modified-by="bruce" timestamp="1503058545438">                                    <title>你可以尝试使用 XMind 8 Update 3 或更新版本打开</title>                                </topic>                            </topics>                        </children>                    </topic>                    <topic id="7r3r4617hvh931ot9obi595r8f" modified-by="bruce" timestamp="1503058545444">                        <title svg:width="500">該文件無法正常打開,請勿修改並保存,否則文件內容將會永久性丟失!</title>                        <children>                            <topics type="attached">                                <topic id="691pgka6gmgpgkacaa0h3f1hjb" modified-by="bruce" timestamp="1503058545448">                                    <title>你可以嘗試使用 XMind 8 Update 3 或更新版本打開</title>                                </topic>                            </topics>                        </children>                    </topic>                    <topic id="0f2e3rpkfahg4spg4nda946r0b" modified-by="bruce" timestamp="1503058545453">                        <title svg:width="500">この文書は正常に開かないので、修正して保存しないようにしてください。そうでないと、書類の内容が永久に失われます。!</title>                        <children>                            <topics type="attached">                                <topic id="4vuubta53ksc1falk46mevge0t" modified-by="bruce" timestamp="1503058545457">                                    <title>XMind 8 Update 3 や更新版を使って開くこともできます</title>                                </topic>                            </topics>                        </children>                    </topic>                    <topic id="70n9i4u3lb89sq9l1m1bs255j5" modified-by="bruce" timestamp="1503058545463">                        <title svg:width="500">Datei kann nicht richtig geöffnet werden. Bitte ändern Sie diese Datei nicht und speichern Sie sie, sonst wird die Datei endgültig gelöscht werden.</title>                        <children>                            <topics type="attached">                                <topic id="1qpc5ee298p2sqeqbinpca46b7" modified-by="bruce" timestamp="1503058545466">                                    <title svg:width="500">Bitte versuchen Sie, diese Datei mit XMind 8 Update 3 oder später zu öffnen.</title>                                </topic>                            </topics>                        </children>                    </topic>                    <topic id="4dmes10uc19pq7enu8sc4bmvif" modified-by="bruce" timestamp="1503058545473">                        <title svg:width="500">Ce fichier ne peut pas ouvert normalement, veuillez le rédiger et sauvegarder, sinon le fichier sera perdu en permanence. </title>                        <children>                            <topics type="attached">                                <topic id="5f0rivgubii2launodiln7sdkt" modified-by="bruce" timestamp="1503058545476">                                    <title svg:width="500">Vous pouvez essayer d'ouvrir avec XMind 8 Update 3 ou avec une version plus récente.</title>                                </topic>                            </topics>                        </children>                    </topic>                    <topic id="10pn1os1sgfsnqa8akabom5pej" modified-by="bruce" timestamp="1503058545481">                        <title svg:width="500">파일을 정상적으로 열 수 없으며, 수정 및 저장하지 마십시오. 그렇지 않으면 파일의 내용이 영구적으로 손실됩니다!</title>                        <children>                            <topics type="attached">                                <topic id="0l2nr0fq3em22rctapkj46ue58" modified-by="bruce" timestamp="1503058545484">                                    <title svg:width="500">XMind 8 Update 3 또는 이후 버전을 사용하여</title>                                </topic>                            </topics>                        </children>                    </topic>                </topics>            </children>            <extensions>                <extension provider="org.xmind.ui.map.unbalanced">                    <content>                        <right-number>-1</right-number>                    </content>                </extension>            </extensions>        </topic>        <title>Sheet 1</title>    </sheet></xmap-content>`,bw=r=>$r(r).filter(e=>!e.range||e.range.length<=0),xw=r=>$r(r).filter(e=>e.range&&e.range.length>0),ww=r=>{const t=[],e=[],i=(o,s,a)=>{const l=Di(),h=Fn(o.text);t.push({id:l,title:h,attributedTitle:[{text:h}]}),e.push({id:Di(),range:"("+s+","+a+")",topicId:l})};return xw(r.data).forEach(o=>{i(o,o.range[0],o.range[1])}),(r.children||[]).forEach((o,s)=>{bw(o.data).forEach(l=>{i(l,s,s)})}),{summary:t,summaries:e}},Ew=(r,t)=>new Promise((e,i)=>{X1.loadAsync(r).then(async n=>{try{let o="",s=n.files["content.json"],a=n.files["content.xml"]||n.files["/content.xml"];if(s){let l=await s.async("string");o=await dg(l,n.files,t)}else if(a){let l=await a.async("string"),h=dw.xml2json(l);o=fg(h)}o?e(o):i(new Error("解析失败"))}catch(o){i(o)}},n=>{i(n)})}),dg=async(r,t,e)=>{r=JSON.parse(r);let i=null;r.length>1&&typeof e=="function"&&(i=await e(r)),i||(i=r[0]);const n=i.rootTopic,o={},s=[],a=async(l,h)=>{if(h.data={text:nr(l.title)?"":l.title},l.notes){const f=l.notes.realHTML||l.notes.plain;h.data.note=f&&f.content||""}l.href&&/^https?:\/\//.test(l.href)&&(h.data.hyperlink=l.href),l.labels&&l.labels.length>0&&(h.data.tag=l.labels),mw(l,h,s,t);const c=[],u=[];h._summary&&c.push(h._summary),Array.isArray(l.summaries)&&l.summaries.length>0&&l.summaries.forEach(f=>{ug(c,u,()=>fw(l,f.topicId),f.range)}),h.data.generalization=c,h.children=[],l.children&&l.children.attached&&l.children.attached.length>0&&l.children.attached.forEach((f,d)=>{const p={};h.children.push(p),u[d]&&(p._summary=u[d]),a(f,p)})};return a(n,o),await Promise.all(s),o},fg=r=>{const e=JSON.parse(r).elements,i=gw(e),n={},o=(s,a)=>{const l=s.elements;let h=Qs(l,"title");h=h&&h.elements&&h.elements[0].text,a.data={text:nr(h)?"":h};try{const d=Qs(l,"notes");d&&(a.data.note=d.elements[0].elements[0].elements[0].text)}catch(d){console.log(d)}try{s.attributes&&s.attributes["xlink:href"]&&/^https?:\/\//.test(s.attributes["xlink:href"])&&(a.data.hyperlink=s.attributes["xlink:href"])}catch(d){console.log(d)}try{const d=Qs(l,"labels");d&&(a.data.tag=d.elements.map(p=>p.elements[0].text))}catch(d){console.log(d)}const c=Qs(l,"children"),u=[],f=[];try{a._summary&&u.push(a._summary);const d=Qs(l,"summaries");d&&Array.isArray(d.elements)&&d.elements.length>0&&d.elements.forEach(p=>{ug(u,f,()=>pw(c,p.attributes["topic-id"]),p.attributes.range)})}catch(d){console.log(d)}a.data.generalization=u,a.children=[],c&&c.elements&&c.elements.length>0&&(cg(c.elements,"attached")||[]).forEach((p,m)=>{const v={};a.children.push(v),f[m]&&(v._summary=f[m]),o(p,v)})};return o(i,n),n},pg={parseXmindFile:Ew,transformXmind:dg,transformOldXmind:fg,transformToXmind:async(r,t)=>{const e="simpleMindMap_"+Date.now(),i=[];let n={},o=[],s=async(u,f,d)=>{let p={id:u.data.uid,structureClass:"org.xmind.ui.logic.right",title:Fn(u.data.text),children:{attached:[]}};u.data.note!==void 0&&(p.notes={realHTML:{content:u.data.note},plain:{content:u.data.note}}),u.data.hyperlink!==void 0&&(p.href=u.data.hyperlink),u.data.tag!==void 0&&(p.labels=(u.data.tag||[]).map(g=>typeof g=="object"&&g!==null?g.text:g)),vw(u,f,o,i),d?(p.class="topic",f.id=e,f.class="sheet",f.title=t,f.extensions=[],f.topicPositioning="fixed",f.topicOverlapping="overlap",f.coreVersion="2.100.0",f.rootTopic=p):Object.keys(p).forEach(g=>{f[g]=p[g]});const{summary:m,summaries:v}=ww(u);d?v.length>0&&(f.rootTopic.children.summary=m,f.rootTopic.summaries=v):v.length>0&&(f.children.summary=m,f.summaries=v),u.children&&u.children.length>0&&u.children.forEach(g=>{let b={};s(g,b),p.children.attached.push(b)})};s(r,n,!0),await Promise.all(o);const a=[n],l=new X1;l.file("content.json",JSON.stringify(a)),l.file("metadata.json",`{"modifier":"","dataStructureVersion":"2","creator":{"name":"mind-map"},"layoutEngineVersion":"3","activeSheetId":"${e}"}`),l.file("content.xml",yw());const h={"file-entries":{"content.json":{},"metadata.json":{},"Thumbnails/thumbnail.png":{}}};return i.length>0&&i.forEach(u=>{h["file-entries"]["resources/"+u.name]={},l.folder("resources").file(u.name,u.data,{base64:!0})}),l.file("manifest.json",JSON.stringify(h)),await l.generateAsync({type:"blob"})}};class gg{constructor(t){this.mindMap=t.mindMap}async xmind(t,e){return await pg.transformToXmind(t,e)}getXmind(){return pg}}gg.instanceName="doExportXMind";class mg{constructor(t){this.mindMap=t,this.autoMoveTimer=null}onMove(t,e,i=()=>{},n=()=>{}){i();let o=this.mindMap.opt.selectTranslateStep,s=this.mindMap.opt.selectTranslateLimit,a=0;t<=this.mindMap.elRect.left+s&&(n("left",o),this.mindMap.view.translateX(o),a++),t>=this.mindMap.elRect.right-s&&(n("right",o),this.mindMap.view.translateX(-o),a++),e<=this.mindMap.elRect.top+s&&(n("top",o),this.mindMap.view.translateY(o),a++),e>=this.mindMap.elRect.bottom-s&&(n("bottom",o),this.mindMap.view.translateY(-o),a++),a>0&&this.startAutoMove(t,e,i,n)}startAutoMove(t,e,i,n){this.autoMoveTimer=setTimeout(()=>{this.onMove(t,e,i,n)},20)}clearAutoMoveTimer(){clearTimeout(this.autoMoveTimer)}}class vg extends tn{constructor({mindMap:t}){super(t.renderer),this.mindMap=t,this.autoMove=new mg(t),this.reset(),this.bindEvent()}reset(){this.isDragging=!1,this.mousedownNode=null,this.beingDragNodeList=[],this.nodeList=[],this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.drawTransform=null,this.clone=null,this.placeholder=null,this.placeholderWidth=50,this.placeholderHeight=10,this.placeHolderLine=null,this.placeHolderExtraLines=[],this.offsetX=0,this.offsetY=0,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.checkDragOffset=10,this.minOffset=10}bindEvent(){this.onNodeMousedown=this.onNodeMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.checkOverlapNode=vs(this.checkOverlapNode,300,this),this.mindMap.on("node_mousedown",this.onNodeMousedown),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("mouseup",this.onMouseup)}unBindEvent(){this.mindMap.off("node_mousedown",this.onNodeMousedown),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("node_mouseup",this.onMouseup),this.mindMap.off("mouseup",this.onMouseup)}onNodeMousedown(t,e){if(this.mindMap.opt.readonly||e.which!==1||t.isGeneralization||t.isRoot)return;this.isMousedown=!0,this.mousedownNode=t;const{x:i,y:n}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseDownX=i,this.mouseDownY=n}onMousemove(t){if(this.mindMap.opt.readonly||!this.isMousedown)return;t.preventDefault();const{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=i,!(!this.isDragging&&Math.abs(e-this.mouseDownX)<=this.checkDragOffset&&Math.abs(i-this.mouseDownY)<=this.checkDragOffset)&&(this.mindMap.emit("node_dragging",this.mousedownNode),this.handleStartMove(),this.onMove(e,i,t))}async onMouseup(t){if(!this.isMousedown)return;const{autoMoveWhenMouseInEdgeOnDrag:e,enableFreeDrag:i,beforeDragEnd:n}=this.mindMap.opt;e&&this.mindMap.select&&this.autoMove.clearAutoMoveTimer(),this.isMousedown=!1,this.beingDragNodeList.forEach(l=>{l.setOpacity(1),l.showChildren(),l.endDrag()}),this.removeCloneNode();let o=this.overlapNode?this.overlapNode.getData("uid"):"",s=this.prevNode?this.prevNode.getData("uid"):"",a=this.nextNode?this.nextNode.getData("uid"):"";if(this.isDragging&&typeof n=="function"&&await n({overlapNodeUid:o,prevNodeUid:s,nextNodeUid:a,beingDragNodeList:[...this.beingDragNodeList]})){this.reset();return}if(this.overlapNode)this.removeNodeActive(this.overlapNode),this.mindMap.execCommand("MOVE_NODE_TO",this.beingDragNodeList,this.overlapNode);else if(this.prevNode)this.removeNodeActive(this.prevNode),this.mindMap.execCommand("INSERT_AFTER",this.beingDragNodeList,this.prevNode);else if(this.nextNode)this.removeNodeActive(this.nextNode),this.mindMap.execCommand("INSERT_BEFORE",this.beingDragNodeList,this.nextNode);else if(this.clone&&i&&this.beingDragNodeList.length===1){let{x:l,y:h}=this.mindMap.toPos(t.clientX-this.offsetX,t.clientY-this.offsetY),{scaleX:c,scaleY:u,translateX:f,translateY:d}=this.drawTransform;l=(l-f)/c,h=(h-d)/u,this.mousedownNode.left=l,this.mousedownNode.top=h,this.mousedownNode.customLeft=l,this.mousedownNode.customTop=h,this.mindMap.execCommand("SET_NODE_CUSTOM_POSITION",this.mousedownNode,l,h),this.mindMap.render()}this.isDragging&&this.mindMap.emit("node_dragend",{overlapNodeUid:o,prevNodeUid:s,nextNodeUid:a}),this.reset()}removeNodeActive(t){t.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1)}onMove(t,e,i){if(!this.isMousedown||!this.isDragging)return;let{scaleX:n,scaleY:o,translateX:s,translateY:a}=this.drawTransform,l=t-this.offsetX,h=e-this.offsetY;t=(l-s)/n,e=(h-a)/o;let c=this.clone.transform();this.clone.translate(t-c.translateX,e-c.translateY),this.checkOverlapNode(),this.drawTransform=this.mindMap.draw.transform(),this.autoMove.clearAutoMoveTimer(),this.autoMove.onMove(i.clientX,i.clientY)}async handleStartMove(){if(!this.isDragging){let t=this.mousedownNode;this.drawTransform=this.mindMap.draw.transform();let{scaleX:e,scaleY:i,translateX:n,translateY:o}=this.drawTransform;this.offsetX=this.mouseDownX-(t.left*e+n),this.offsetY=this.mouseDownY-(t.top*i+o),t.getData("isActive")?this.beingDragNodeList=mc(Wa(this.mindMap.renderer.activeNodeList.filter(a=>!a.isRoot&&!a.isGeneralization))):this.beingDragNodeList=[t];const{beforeDragStart:s}=this.mindMap.opt;if(typeof s=="function"&&await s([...this.beingDragNodeList]))return;this.nodeTreeToList(),this.createCloneNode(),this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.isDragging=!0}}nodeTreeToList(){const t=[];Pa(this.mindMap.renderer.root,e=>{this.checkIsInBeingDragNodeList(e)||(t[e.layerIndex]||(t[e.layerIndex]=[]),t[e.layerIndex].push(e))}),this.nodeList=t.reduceRight((e,i)=>[...e,...i],[])}createCloneNode(){if(!this.clone){const{dragMultiNodeRectConfig:t,dragPlaceholderRectFill:e,dragPlaceholderLineConfig:i,dragOpacityConfig:n,handleDragCloneNode:o}=this.mindMap.opt,{width:s,height:a,fill:l}=t,h=this.beingDragNodeList[0],c=h.style.merge("lineColor",!0);if(this.beingDragNodeList.length>1)this.clone=this.mindMap.otherDraw.rect().size(s,a).radius(a/2).fill({color:l||c}),this.offsetX=s/2,this.offsetY=a/2;else{this.clone=h.group.clone();const u=this.clone.findOne(".smm-expand-btn");u&&u.remove(),this.mindMap.otherDraw.add(this.clone),typeof o=="function"&&o(this.clone)}this.clone.opacity(n.cloneNodeOpacity),this.clone.css("z-index",99999),this.placeholder=this.mindMap.otherDraw.rect().fill({color:e||c}).radius(5),this.placeHolderLine=this.mindMap.otherDraw.path().stroke({color:i.color||c,width:i.width}).fill({color:"none"}),this.beingDragNodeList.forEach(u=>{u.setOpacity(n.beingDragNodeOpacity),u.hideChildren(),u.startDrag()})}}removeCloneNode(){this.clone&&(this.clone.remove(),this.placeholder.remove(),this.placeHolderLine.remove(),this.removeExtraLines())}removeExtraLines(){this.placeHolderExtraLines.forEach(t=>{t.remove()}),this.placeHolderExtraLines=[]}checkOverlapNode(){if(!this.drawTransform||!this.placeholder)return;const{LOGICAL_STRUCTURE:t,LOGICAL_STRUCTURE_LEFT:e,MIND_MAP:i,ORGANIZATION_STRUCTURE:n,CATALOG_ORGANIZATION:o,TIMELINE:s,TIMELINE2:a,VERTICAL_TIMELINE:l,FISHBONE:h}=ut.LAYOUT;this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.placeholder.size(0,0),this.placeHolderLine.hide(),this.removeExtraLines(),this.nodeList.forEach(c=>{if(c.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",c,!1),!(this.overlapNode||this.prevNode&&this.nextNode))switch(this.mindMap.opt.layout){case t:case e:this.handleLogicalStructure(c);break;case i:this.handleMindMap(c);break;case n:this.handleOrganizationStructure(c);break;case o:this.handleCatalogOrganization(c);break;case s:this.handleTimeLine(c);break;case a:this.handleTimeLine2(c);break;case l:this.handleLogicalStructure(c);break;case h:this.handleFishbone(c);break;default:this.handleLogicalStructure(c)}}),this.overlapNode&&this.handleOverlapNode()}handleOverlapNode(){const{LOGICAL_STRUCTURE:t,LOGICAL_STRUCTURE_LEFT:e,MIND_MAP:i,ORGANIZATION_STRUCTURE:n,CATALOG_ORGANIZATION:o,TIMELINE:s,TIMELINE2:a,VERTICAL_TIMELINE:l,FISHBONE:h}=ut.LAYOUT,{LEFT:c,TOP:u,RIGHT:f,BOTTOM:d}=ut.LAYOUT_GROW_DIR,p=this.overlapNode.layerIndex,m=this.overlapNode.children,v=this.mindMap.renderer.layout.getMarginX(p+1),g=this.mindMap.renderer.layout.getMarginY(p+1),b=this.placeholderWidth/2,y=this.placeholderHeight/2;let x="",C="",R="",F=!1,U=!1;if(m.length>0){const T=m[m.length-1],H=this.getNodeRect(T);switch(x=this.getNewChildNodeDir(T),this.mindMap.opt.layout){case t:case i:C=x===c?H.originRight-this.placeholderWidth:H.originLeft,R=H.originBottom+this.minOffset-y;break;case e:C=H.originRight-this.placeholderWidth,R=H.originBottom+this.minOffset-y;break;case n:F=!0,C=H.originRight+this.minOffset-y,R=H.originTop;break;case o:p===0?(F=!0,C=H.originRight+this.minOffset-y,R=H.originTop):(C=H.originLeft,R=H.originBottom+this.minOffset-y);break;case s:p===0?(F=!0,C=H.originRight+this.minOffset-y,R=H.originTop+H.originHeight/2-b):(C=H.originLeft,R=H.originBottom+this.minOffset-y);break;case a:p===0?(F=!0,C=H.originRight+this.minOffset-y,R=H.originTop+H.originHeight/2-b):(C=H.originLeft,p===1?R=x===u?H.originTop-this.placeholderHeight-this.minOffset+y:H.originBottom+this.minOffset-y:R=H.originBottom+this.minOffset-y);break;case l:p===0?(C=H.originLeft+H.originWidth/2-b,R=H.originBottom+this.minOffset-y):(C=x===f?H.originLeft:H.originRight-this.placeholderWidth,R=H.originBottom+this.minOffset-y);break;case h:p<=1?(U=!0,this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)):(C=H.originLeft,R=x===u?H.originBottom+this.minOffset-y:H.originTop-this.placeholderHeight-this.minOffset+y);break}}else{const T=this.getNodeRect(this.overlapNode);switch(x=this.getNewChildNodeDir(this.overlapNode),this.mindMap.opt.layout){case t:case i:C=x===f?T.originRight+v:T.originLeft-this.placeholderWidth-v,R=T.originTop+(T.originHeight-this.placeholderHeight)/2;break;case e:C=T.originLeft-this.placeholderWidth-v,R=T.originTop+(T.originHeight-this.placeholderHeight)/2;break;case n:F=!0,C=T.originLeft+(T.originWidth-this.placeholderHeight)/2,R=T.originBottom+v;break;case o:p===0&&(F=!0),C=T.originLeft+T.originWidth*.5,R=T.originBottom+v;break;case s:p===0&&(F=!0),C=T.originLeft+T.originWidth*.5,R=T.originBottom+g;break;case a:p===0&&(F=!0),C=T.originLeft+T.originWidth*.5,p===1?R=x===u?T.originTop-this.placeholderHeight-v:T.originBottom+v:R=T.originBottom+v;break;case l:p===0&&(F=!0),C=x===f?T.originRight+v:T.originLeft-this.placeholderWidth-v,R=T.originTop+T.originHeight/2-y;break;case h:p<=1?(U=!0,this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)):(C=T.originLeft+T.originWidth*.5,R=x===d?T.originTop-this.placeholderHeight-this.minOffset+y:T.originBottom+this.minOffset-y);break}}U||this.setPlaceholderRect({x:C,y:R,dir:x,rotate:F})}getNewChildNodeDir(t){const{LOGICAL_STRUCTURE:e,LOGICAL_STRUCTURE_LEFT:i,MIND_MAP:n,TIMELINE2:o,VERTICAL_TIMELINE:s,FISHBONE:a}=ut.LAYOUT;switch(this.mindMap.opt.layout){case e:return ut.LAYOUT_GROW_DIR.RIGHT;case i:return ut.LAYOUT_GROW_DIR.LEFT;case n:case o:case s:case a:return t.dir;default:return""}}handleVerticalCheck(t,e,i=!1){const{layout:n}=this.mindMap.opt,{LAYOUT:o,LAYOUT_GROW_DIR:s}=ut,{VERTICAL_TIMELINE:a,FISHBONE:l}=o,{BOTTOM:h,LEFT:c}=s,u=this.mouseMoveX,f=this.mouseMoveY,d=this.getNodeRect(t),p=this.getNewChildNodeDir(t),m=t.layerIndex;(i||n===l&&p===h&&m>=3)&&(e=e.reverse());let v=d.originHeight/4,{prevBrotherOffset:g,nextBrotherOffset:b}=this.getNodeDistanceToSiblingNode(e,t,d,"v");if(d.left<=u&&d.right>=u){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!t.isRoot){let y=b>0?f>d.bottom&&f<=d.bottom+b:f>=d.bottom-v&&f<=d.bottom,x=g>0?f<d.top&&f>=d.top-g:f>=d.top&&f<=d.top+v;const{scaleY:C}=this.drawTransform;let R=p===c?d.originRight-this.placeholderWidth:d.originLeft,F=!1;switch(n){case a:m===1&&(R=d.originLeft+d.originWidth/2-this.placeholderWidth/2);break}if(y){i?this.nextNode=t:this.prevNode=t;let U=d.originBottom+b/C-this.placeholderHeight/2;switch(n){case l:m===2&&(F=!0,U=d.originBottom+this.minOffset-this.placeholderHeight/2);break}this.setPlaceholderRect({x:R,y:U,dir:p,notRenderLine:F})}else if(x){i?this.prevNode=t:this.nextNode=t;let U=d.originTop-this.placeholderHeight-g/C+this.placeholderHeight/2;switch(n){case l:m===2&&(F=!0,U=d.originTop-this.placeholderHeight-this.minOffset+this.placeholderHeight/2);break}this.setPlaceholderRect({x:R,y:U,dir:p,notRenderLine:F})}}this.checkIsOverlap({node:t,dir:"v",prevBrotherOffset:g,nextBrotherOffset:b,size:v,pos:f,nodeRect:d})}}handleHorizontalCheck(t,e){const{layout:i}=this.mindMap.opt,{LAYOUT:n}=ut,{FISHBONE:o,TIMELINE:s,TIMELINE2:a}=n;let l=this.mouseMoveX,h=this.mouseMoveY,c=this.getNodeRect(t),u=c.originWidth/4,{prevBrotherOffset:f,nextBrotherOffset:d}=this.getNodeDistanceToSiblingNode(e,t,c,"h");if(c.top<=h&&c.bottom>=h){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!t.isRoot){let p=d>0?l<c.right+d&&l>=c.right:l<=c.right&&l>=c.right-u,m=f>0?l>c.left-f&&l<=c.left:l<=c.left+u&&l>=c.left;const{scaleX:v}=this.drawTransform,g=t.layerIndex;let b=c.originTop,y=!1;switch(i){case s:case a:b=c.originTop+c.originHeight/2-this.placeholderWidth/2;break;case o:g===1&&(y=!0,b=c.originTop+c.originHeight/2-this.placeholderWidth/2);break}p?(this.prevNode=t,this.setPlaceholderRect({x:c.originRight+d/v-this.placeholderHeight/2,y:b,rotate:!0,notRenderLine:y})):m&&(this.nextNode=t,this.setPlaceholderRect({x:c.originLeft-this.placeholderHeight-f/v+this.placeholderHeight/2,y:b,rotate:!0,notRenderLine:y}))}this.checkIsOverlap({node:t,dir:"h",prevBrotherOffset:f,nextBrotherOffset:d,size:u,pos:l,nodeRect:c})}}getNodeDistanceToSiblingNode(t,e,i,n){const{TOP:o,LEFT:s,BOTTOM:a,RIGHT:l}=ut.LAYOUT_GROW_DIR;let{scaleX:h,scaleY:c}=this.drawTransform,u=n==="v"?o:s,f=n==="v"?a:l,d=n==="v"?c:h,p=this.minOffset*d,m=oi(e,t),v=null,g=null;m!==-1&&(m-1>=0&&(v=t[m-1]),m+1<=t.length-1&&(g=t[m+1]));let b=0;if(v){let x=this.getNodeRect(v);b=i[u]-x[f],b=b>=p?b/2:0}else b=p;let y=0;return g?(y=this.getNodeRect(g)[u]-i[f],y=y>=p?y/2:0):y=p,{prevBrother:v,prevBrotherOffset:b,nextBrother:g,nextBrotherOffset:y}}setPlaceholderRect({x:t,y:e,dir:i,rotate:n,notRenderLine:o}){let s=this.placeholderWidth,a=this.placeholderHeight;if(n){const f=s;s=a,a=f}if(this.placeholder.size(s,a).move(t,e),o)return;const{dragPlaceholderLineConfig:l}=this.mindMap.opt;let h=null,c=null;this.overlapNode?(h=this.overlapNode,c=this.overlapNode):(h=this.prevNode||this.nextNode,c=h.parent),c=c.fakeClone(),h=h.fakeClone();const u=this.beingDragNodeList[0].fakeClone();u.dir=i,u.left=t,u.top=e,u.width=s,u.height=a,c.children=[u],c._lines=[],this.placeHolderLine.show(),this.mindMap.renderer.layout.renderLine(c,[this.placeHolderLine],(...f)=>{},h.style.getStyle("lineStyle",!0)),this.placeHolderExtraLines=[...c._lines],this.placeHolderExtraLines.forEach(f=>{this.mindMap.otherDraw.add(f),f.stroke({color:l.color,width:l.width}).fill({color:"none"})})}checkIsOverlap({node:t,dir:e,prevBrotherOffset:i,nextBrotherOffset:n,size:o,pos:s,nodeRect:a}){const{TOP:l,LEFT:h,BOTTOM:c,RIGHT:u}=ut.LAYOUT_GROW_DIR;let f=e==="v"?l:h,d=e==="v"?c:u;!this.overlapNode&&!this.prevNode&&!this.nextNode&&a[f]+(i>0?0:o)<=s&&a[d]-(n>0?0:o)>=s&&(this.overlapNode=t)}handleLogicalStructure(t){const e=this.commonGetNodeCheckList(t);this.handleVerticalCheck(t,e)}handleMindMap(t){const e=t.parent?t.parent.children.filter(i=>{let n=!0;return t.layerIndex===1&&(n=i.dir===t.dir),n&&!this.checkIsInBeingDragNodeList(i)}):[];this.handleVerticalCheck(t,e)}handleOrganizationStructure(t){const e=this.commonGetNodeCheckList(t);this.handleHorizontalCheck(t,e)}handleCatalogOrganization(t){const e=this.commonGetNodeCheckList(t);t.layerIndex===1?this.handleHorizontalCheck(t,e):this.handleVerticalCheck(t,e)}handleTimeLine(t){let e=this.commonGetNodeCheckList(t);t.layerIndex===1?this.handleHorizontalCheck(t,e):this.handleVerticalCheck(t,e)}handleTimeLine2(t){let e=this.commonGetNodeCheckList(t);t.layerIndex===1?this.handleHorizontalCheck(t,e):t.dir===ut.LAYOUT_GROW_DIR.TOP&&t.layerIndex===2?this.handleVerticalCheck(t,e,!0):this.handleVerticalCheck(t,e)}handleFishbone(t){let e=t.parent?t.parent.children.filter(i=>i.layerIndex>1&&!this.checkIsInBeingDragNodeList(i)):[];t.layerIndex===1?this.handleHorizontalCheck(t,e):t.dir===ut.LAYOUT_GROW_DIR.TOP&&t.layerIndex===2?this.handleVerticalCheck(t,e,!0):this.handleVerticalCheck(t,e)}commonGetNodeCheckList(t){return t.parent?[...t.parent.children].filter(e=>!this.checkIsInBeingDragNodeList(e)):[]}getNodeRect(t){let{scaleX:e,scaleY:i,translateX:n,translateY:o}=this.drawTransform,{left:s,top:a,width:l,height:h}=t,c=l,u=h,f=s,d=a,p=a+h,m=s+l,v=(s+l)*e+n,g=(a+h)*i+o;return s=s*e+n,a=a*i+o,{left:s,top:a,right:v,bottom:g,originWidth:c,originHeight:u,originLeft:f,originTop:d,originBottom:p,originRight:m}}checkIsInBeingDragNodeList(t){return!!this.beingDragNodeList.find(e=>e.uid===t.uid||e.isAncestor(t))}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}vg.instanceName="drag";class yg{constructor({mindMap:t}){this.mindMap=t,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.isSelecting=!1,this.cacheActiveList=[],this.autoMove=new mg(t),this.bindEvent()}bindEvent(){this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.checkInNodes=vs(this.checkInNodes,300,this),this.mindMap.on("mousedown",this.onMousedown),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup)}unBindEvent(){this.mindMap.off("mousedown",this.onMousedown),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_mouseup",this.onMouseup)}onMousedown(t){const{readonly:e,mousedownEventPreventDefault:i}=this.mindMap.opt;if(e)return;let{useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;if(!(t.ctrlKey||t.metaKey)&&(n?t.which!==1:t.which!==3))return;i&&t.preventDefault(),this.isMousedown=!0,this.cacheActiveList=[...this.mindMap.renderer.activeNodeList];let{x:o,y:s}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseDownX=o,this.mouseDownY=s,this.createRect(o,s)}onMousemove(t){if(this.mindMap.opt.readonly||!this.isMousedown)return;let{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=i,!(Math.abs(e-this.mouseDownX)<=10&&Math.abs(i-this.mouseDownY)<=10)&&(this.autoMove.clearAutoMoveTimer(),this.autoMove.onMove(t.clientX,t.clientY,()=>{this.isSelecting=!0,this.rect&&this.rect.plot([[this.mouseDownX,this.mouseDownY],[this.mouseMoveX,this.mouseDownY],[this.mouseMoveX,this.mouseMoveY],[this.mouseDownX,this.mouseMoveY]]),this.checkInNodes()},(n,o)=>{switch(n){case"left":this.mouseDownX+=o;break;case"top":this.mouseDownY+=o;break;case"right":this.mouseDownX-=o;break;case"bottom":this.mouseDownY-=o;break}}))}onMouseup(){this.mindMap.opt.readonly||this.isMousedown&&(this.checkTriggerNodeActiveEvent(),this.autoMove.clearAutoMoveTimer(),this.isMousedown=!1,this.cacheActiveList=[],this.rect&&this.rect.remove(),this.rect=null,setTimeout(()=>{this.isSelecting=!1},0))}checkTriggerNodeActiveEvent(){let t=this.cacheActiveList.length!==this.mindMap.renderer.activeNodeList.length,e=!1;if(!t)for(let i=0;i<this.cacheActiveList.length;i++){let n=this.cacheActiveList[i];if(!this.mindMap.renderer.activeNodeList.find(o=>o.getData("uid")===n.getData("uid"))){e=!0;break}}(t||e)&&this.mindMap.renderer.emitNodeActiveEvent()}createRect(t,e){this.rect&&this.rect.remove(),this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[t,e]])}checkInNodes(){let{scaleX:t,scaleY:e,translateX:i,translateY:n}=this.mindMap.draw.transform(),o=Math.min(this.mouseDownX,this.mouseMoveX),s=Math.min(this.mouseDownY,this.mouseMoveY),a=Math.max(this.mouseDownX,this.mouseMoveX),l=Math.max(this.mouseDownY,this.mouseMoveY);const h=c=>{let{left:u,top:f,width:d,height:p}=c,m=(u+d)*t+i,v=(f+p)*e+n;if(u=u*t+i,f=f*e+n,M6(o,a,s,l,u,m,f,v)){if(c.getData("isActive"))return;this.mindMap.renderer.addNodeToActiveList(c),this.mindMap.renderer.emitNodeActiveEvent()}else if(c.getData("isActive")){if(!c.getData("isActive"))return;this.mindMap.renderer.removeNodeFromActiveList(c),this.mindMap.renderer.emitNodeActiveEvent()}};Pa(this.mindMap.renderer.root,c=>{h(c),c._generalizationList&&c._generalizationList.length>0&&c._generalizationList.forEach(u=>{h(u.generalizationNode)})})}hasSelectRange(){return this.isSelecting}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}yg.instanceName="select";var bg=typeof global=="object"&&global&&global.Object===Object&&global,Tw=typeof self=="object"&&self&&self.Object===Object&&self,Cr=bg||Tw||Function("return this")(),pn=Cr.Symbol,xg=Object.prototype,Cw=xg.hasOwnProperty,Sw=xg.toString,$s=pn?pn.toStringTag:void 0;function Nw(r){var t=Cw.call(r,$s),e=r[$s];try{r[$s]=void 0;var i=!0}catch{}var n=Sw.call(r);return i&&(t?r[$s]=e:delete r[$s]),n}var Aw=Object.prototype,_w=Aw.toString;function kw(r){return _w.call(r)}var Lw="[object Null]",Mw="[object Undefined]",wg=pn?pn.toStringTag:void 0;function Io(r){return r==null?r===void 0?Mw:Lw:wg&&wg in Object(r)?Nw(r):kw(r)}function Ur(r){return r!=null&&typeof r=="object"}var Yn=Array.isArray;function gn(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function Eg(r){return r}var Dw="[object AsyncFunction]",Ow="[object Function]",Rw="[object GeneratorFunction]",Fw="[object Proxy]";function Bu(r){if(!gn(r))return!1;var t=Io(r);return t==Ow||t==Rw||t==Dw||t==Fw}var zu=Cr["__core-js_shared__"],Tg=function(){var r=/[^.]+$/.exec(zu&&zu.keys&&zu.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Iw(r){return!!Tg&&Tg in r}var Bw=Function.prototype,zw=Bw.toString;function Zn(r){if(r!=null){try{return zw.call(r)}catch{}try{return r+""}catch{}}return""}var Pw=/[\\^$.*+?()[\]{}|]/g,Uw=/^\[object .+?Constructor\]$/,jw=Function.prototype,qw=Object.prototype,Ww=jw.toString,Hw=qw.hasOwnProperty,Gw=RegExp("^"+Ww.call(Hw).replace(Pw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vw(r){if(!gn(r)||Iw(r))return!1;var t=Bu(r)?Gw:Uw;return t.test(Zn(r))}function Kw(r,t){return r==null?void 0:r[t]}function Jn(r,t){var e=Kw(r,t);return Vw(e)?e:void 0}var Pu=Jn(Cr,"WeakMap"),Cg=Object.create,Xw=function(){function r(){}return function(t){if(!gn(t))return{};if(Cg)return Cg(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}}();function Yw(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function Zw(r,t){var e=-1,i=r.length;for(t||(t=Array(i));++e<i;)t[e]=r[e];return t}var Jw=800,Qw=16,$w=Date.now;function t8(r){var t=0,e=0;return function(){var i=$w(),n=Qw-(i-e);if(e=i,n>0){if(++t>=Jw)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function e8(r){return function(){return r}}var Vl=function(){try{var r=Jn(Object,"defineProperty");return r({},"",{}),r}catch{}}(),i8=Vl?function(r,t){return Vl(r,"toString",{configurable:!0,enumerable:!1,value:e8(t),writable:!0})}:Eg,r8=t8(i8);function n8(r,t){for(var e=-1,i=r==null?0:r.length;++e<i&&t(r[e],e,r)!==!1;);return r}var o8=9007199254740991,s8=/^(?:0|[1-9]\d*)$/;function Sg(r,t){var e=typeof r;return t=t??o8,!!t&&(e=="number"||e!="symbol"&&s8.test(r))&&r>-1&&r%1==0&&r<t}function Uu(r,t,e){t=="__proto__"&&Vl?Vl(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function ta(r,t){return r===t||r!==r&&t!==t}var a8=Object.prototype,l8=a8.hasOwnProperty;function Ng(r,t,e){var i=r[t];(!(l8.call(r,t)&&ta(i,e))||e===void 0&&!(t in r))&&Uu(r,t,e)}function h8(r,t,e,i){var n=!e;e||(e={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;l===void 0&&(l=r[a]),n?Uu(e,a,l):Ng(e,a,l)}return e}var Ag=Math.max;function c8(r,t,e){return t=Ag(t===void 0?r.length-1:t,0),function(){for(var i=arguments,n=-1,o=Ag(i.length-t,0),s=Array(o);++n<o;)s[n]=i[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=i[n];return a[t]=e(s),Yw(r,this,a)}}function u8(r,t){return r8(c8(r,t,Eg),r+"")}var d8=9007199254740991;function _g(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=d8}function Kl(r){return r!=null&&_g(r.length)&&!Bu(r)}function f8(r,t,e){if(!gn(e))return!1;var i=typeof t;return(i=="number"?Kl(e)&&Sg(t,e.length):i=="string"&&t in e)?ta(e[t],r):!1}function p8(r){return u8(function(t,e){var i=-1,n=e.length,o=n>1?e[n-1]:void 0,s=n>2?e[2]:void 0;for(o=r.length>3&&typeof o=="function"?(n--,o):void 0,s&&f8(e[0],e[1],s)&&(o=n<3?void 0:o,n=1),t=Object(t);++i<n;){var a=e[i];a&&r(t,a,i,o)}return t})}var g8=Object.prototype;function ju(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||g8;return r===e}function m8(r,t){for(var e=-1,i=Array(r);++e<r;)i[e]=t(e);return i}var v8="[object Arguments]";function kg(r){return Ur(r)&&Io(r)==v8}var Lg=Object.prototype,y8=Lg.hasOwnProperty,b8=Lg.propertyIsEnumerable,qu=kg(function(){return arguments}())?kg:function(r){return Ur(r)&&y8.call(r,"callee")&&!b8.call(r,"callee")};function x8(){return!1}var Mg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dg=Mg&&typeof module=="object"&&module&&!module.nodeType&&module,w8=Dg&&Dg.exports===Mg,Og=w8?Cr.Buffer:void 0,E8=Og?Og.isBuffer:void 0,ea=E8||x8,T8="[object Arguments]",C8="[object Array]",S8="[object Boolean]",N8="[object Date]",A8="[object Error]",_8="[object Function]",k8="[object Map]",L8="[object Number]",M8="[object Object]",D8="[object RegExp]",O8="[object Set]",R8="[object String]",F8="[object WeakMap]",I8="[object ArrayBuffer]",B8="[object DataView]",z8="[object Float32Array]",P8="[object Float64Array]",U8="[object Int8Array]",j8="[object Int16Array]",q8="[object Int32Array]",W8="[object Uint8Array]",H8="[object Uint8ClampedArray]",G8="[object Uint16Array]",V8="[object Uint32Array]",Pe={};Pe[z8]=Pe[P8]=Pe[U8]=Pe[j8]=Pe[q8]=Pe[W8]=Pe[H8]=Pe[G8]=Pe[V8]=!0,Pe[T8]=Pe[C8]=Pe[I8]=Pe[S8]=Pe[B8]=Pe[N8]=Pe[A8]=Pe[_8]=Pe[k8]=Pe[L8]=Pe[M8]=Pe[D8]=Pe[O8]=Pe[R8]=Pe[F8]=!1;function K8(r){return Ur(r)&&_g(r.length)&&!!Pe[Io(r)]}function Wu(r){return function(t){return r(t)}}var Rg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ia=Rg&&typeof module=="object"&&module&&!module.nodeType&&module,X8=ia&&ia.exports===Rg,Hu=X8&&bg.process,Bo=function(){try{var r=ia&&ia.require&&ia.require("util").types;return r||Hu&&Hu.binding&&Hu.binding("util")}catch{}}(),Fg=Bo&&Bo.isTypedArray,Gu=Fg?Wu(Fg):K8,Y8=Object.prototype,Z8=Y8.hasOwnProperty;function Ig(r,t){var e=Yn(r),i=!e&&qu(r),n=!e&&!i&&ea(r),o=!e&&!i&&!n&&Gu(r),s=e||i||n||o,a=s?m8(r.length,String):[],l=a.length;for(var h in r)(t||Z8.call(r,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Sg(h,l)))&&a.push(h);return a}function Bg(r,t){return function(e){return r(t(e))}}var J8=Bg(Object.keys,Object),Q8=Object.prototype,$8=Q8.hasOwnProperty;function t7(r){if(!ju(r))return J8(r);var t=[];for(var e in Object(r))$8.call(r,e)&&e!="constructor"&&t.push(e);return t}function e7(r){return Kl(r)?Ig(r):t7(r)}function i7(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var r7=Object.prototype,n7=r7.hasOwnProperty;function o7(r){if(!gn(r))return i7(r);var t=ju(r),e=[];for(var i in r)i=="constructor"&&(t||!n7.call(r,i))||e.push(i);return e}function zg(r){return Kl(r)?Ig(r,!0):o7(r)}var ra=Jn(Object,"create");function s7(){this.__data__=ra?ra(null):{},this.size=0}function a7(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var l7="__lodash_hash_undefined__",h7=Object.prototype,c7=h7.hasOwnProperty;function u7(r){var t=this.__data__;if(ra){var e=t[r];return e===l7?void 0:e}return c7.call(t,r)?t[r]:void 0}var d7=Object.prototype,f7=d7.hasOwnProperty;function p7(r){var t=this.__data__;return ra?t[r]!==void 0:f7.call(t,r)}var g7="__lodash_hash_undefined__";function m7(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=ra&&t===void 0?g7:t,this}function Qn(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var i=r[t];this.set(i[0],i[1])}}Qn.prototype.clear=s7,Qn.prototype.delete=a7,Qn.prototype.get=u7,Qn.prototype.has=p7,Qn.prototype.set=m7;function v7(){this.__data__=[],this.size=0}function Xl(r,t){for(var e=r.length;e--;)if(ta(r[e][0],t))return e;return-1}var y7=Array.prototype,b7=y7.splice;function x7(r){var t=this.__data__,e=Xl(t,r);if(e<0)return!1;var i=t.length-1;return e==i?t.pop():b7.call(t,e,1),--this.size,!0}function w7(r){var t=this.__data__,e=Xl(t,r);return e<0?void 0:t[e][1]}function E7(r){return Xl(this.__data__,r)>-1}function T7(r,t){var e=this.__data__,i=Xl(e,r);return i<0?(++this.size,e.push([r,t])):e[i][1]=t,this}function jr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var i=r[t];this.set(i[0],i[1])}}jr.prototype.clear=v7,jr.prototype.delete=x7,jr.prototype.get=w7,jr.prototype.has=E7,jr.prototype.set=T7;var na=Jn(Cr,"Map");function C7(){this.size=0,this.__data__={hash:new Qn,map:new(na||jr),string:new Qn}}function S7(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Yl(r,t){var e=r.__data__;return S7(t)?e[typeof t=="string"?"string":"hash"]:e.map}function N7(r){var t=Yl(this,r).delete(r);return this.size-=t?1:0,t}function A7(r){return Yl(this,r).get(r)}function _7(r){return Yl(this,r).has(r)}function k7(r,t){var e=Yl(this,r),i=e.size;return e.set(r,t),this.size+=e.size==i?0:1,this}function $n(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var i=r[t];this.set(i[0],i[1])}}$n.prototype.clear=C7,$n.prototype.delete=N7,$n.prototype.get=A7,$n.prototype.has=_7,$n.prototype.set=k7;function L7(r,t){for(var e=-1,i=t.length,n=r.length;++e<i;)r[n+e]=t[e];return r}var Pg=Bg(Object.getPrototypeOf,Object),M7="[object Object]",D7=Function.prototype,O7=Object.prototype,Ug=D7.toString,R7=O7.hasOwnProperty,F7=Ug.call(Object);function I7(r){if(!Ur(r)||Io(r)!=M7)return!1;var t=Pg(r);if(t===null)return!0;var e=R7.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Ug.call(e)==F7}function B7(){this.__data__=new jr,this.size=0}function z7(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function P7(r){return this.__data__.get(r)}function U7(r){return this.__data__.has(r)}var j7=200;function q7(r,t){var e=this.__data__;if(e instanceof jr){var i=e.__data__;if(!na||i.length<j7-1)return i.push([r,t]),this.size=++e.size,this;e=this.__data__=new $n(i)}return e.set(r,t),this.size=e.size,this}function Sr(r){var t=this.__data__=new jr(r);this.size=t.size}Sr.prototype.clear=B7,Sr.prototype.delete=z7,Sr.prototype.get=P7,Sr.prototype.has=U7,Sr.prototype.set=q7;var jg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qg=jg&&typeof module=="object"&&module&&!module.nodeType&&module,W7=qg&&qg.exports===jg,Wg=W7?Cr.Buffer:void 0,Hg=Wg?Wg.allocUnsafe:void 0;function Gg(r,t){if(t)return r.slice();var e=r.length,i=Hg?Hg(e):new r.constructor(e);return r.copy(i),i}function H7(r,t){for(var e=-1,i=r==null?0:r.length,n=0,o=[];++e<i;){var s=r[e];t(s,e,r)&&(o[n++]=s)}return o}function G7(){return[]}var V7=Object.prototype,K7=V7.propertyIsEnumerable,Vg=Object.getOwnPropertySymbols,X7=Vg?function(r){return r==null?[]:(r=Object(r),H7(Vg(r),function(t){return K7.call(r,t)}))}:G7;function Y7(r,t,e){var i=t(r);return Yn(r)?i:L7(i,e(r))}function Vu(r){return Y7(r,e7,X7)}var Ku=Jn(Cr,"DataView"),Xu=Jn(Cr,"Promise"),Yu=Jn(Cr,"Set"),Kg="[object Map]",Z7="[object Object]",Xg="[object Promise]",Yg="[object Set]",Zg="[object WeakMap]",Jg="[object DataView]",J7=Zn(Ku),Q7=Zn(na),$7=Zn(Xu),tE=Zn(Yu),eE=Zn(Pu),cr=Io;(Ku&&cr(new Ku(new ArrayBuffer(1)))!=Jg||na&&cr(new na)!=Kg||Xu&&cr(Xu.resolve())!=Xg||Yu&&cr(new Yu)!=Yg||Pu&&cr(new Pu)!=Zg)&&(cr=function(r){var t=Io(r),e=t==Z7?r.constructor:void 0,i=e?Zn(e):"";if(i)switch(i){case J7:return Jg;case Q7:return Kg;case $7:return Xg;case tE:return Yg;case eE:return Zg}return t});var iE=Object.prototype,rE=iE.hasOwnProperty;function nE(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&rE.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Zl=Cr.Uint8Array;function Zu(r){var t=new r.constructor(r.byteLength);return new Zl(t).set(new Zl(r)),t}function oE(r,t){var e=Zu(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var sE=/\w*$/;function aE(r){var t=new r.constructor(r.source,sE.exec(r));return t.lastIndex=r.lastIndex,t}var Qg=pn?pn.prototype:void 0,$g=Qg?Qg.valueOf:void 0;function lE(r){return $g?Object($g.call(r)):{}}function tm(r,t){var e=t?Zu(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var hE="[object Boolean]",cE="[object Date]",uE="[object Map]",dE="[object Number]",fE="[object RegExp]",pE="[object Set]",gE="[object String]",mE="[object Symbol]",vE="[object ArrayBuffer]",yE="[object DataView]",bE="[object Float32Array]",xE="[object Float64Array]",wE="[object Int8Array]",EE="[object Int16Array]",TE="[object Int32Array]",CE="[object Uint8Array]",SE="[object Uint8ClampedArray]",NE="[object Uint16Array]",AE="[object Uint32Array]";function _E(r,t,e){var i=r.constructor;switch(t){case vE:return Zu(r);case hE:case cE:return new i(+r);case yE:return oE(r);case bE:case xE:case wE:case EE:case TE:case CE:case SE:case NE:case AE:return tm(r,e);case uE:return new i;case dE:case gE:return new i(r);case fE:return aE(r);case pE:return new i;case mE:return lE(r)}}function em(r){return typeof r.constructor=="function"&&!ju(r)?Xw(Pg(r)):{}}var kE="[object Map]";function LE(r){return Ur(r)&&cr(r)==kE}var im=Bo&&Bo.isMap,ME=im?Wu(im):LE,DE="[object Set]";function OE(r){return Ur(r)&&cr(r)==DE}var rm=Bo&&Bo.isSet,RE=rm?Wu(rm):OE,FE=1,nm="[object Arguments]",IE="[object Array]",BE="[object Boolean]",zE="[object Date]",PE="[object Error]",om="[object Function]",UE="[object GeneratorFunction]",jE="[object Map]",qE="[object Number]",sm="[object Object]",WE="[object RegExp]",HE="[object Set]",GE="[object String]",VE="[object Symbol]",KE="[object WeakMap]",XE="[object ArrayBuffer]",YE="[object DataView]",ZE="[object Float32Array]",JE="[object Float64Array]",QE="[object Int8Array]",$E="[object Int16Array]",tT="[object Int32Array]",eT="[object Uint8Array]",iT="[object Uint8ClampedArray]",rT="[object Uint16Array]",nT="[object Uint32Array]",Fe={};Fe[nm]=Fe[IE]=Fe[XE]=Fe[YE]=Fe[BE]=Fe[zE]=Fe[ZE]=Fe[JE]=Fe[QE]=Fe[$E]=Fe[tT]=Fe[jE]=Fe[qE]=Fe[sm]=Fe[WE]=Fe[HE]=Fe[GE]=Fe[VE]=Fe[eT]=Fe[iT]=Fe[rT]=Fe[nT]=!0,Fe[PE]=Fe[om]=Fe[KE]=!1;function Jl(r,t,e,i,n,o){var s,a=t&FE;if(s!==void 0)return s;if(!gn(r))return r;var l=Yn(r);if(l)s=nE(r);else{var h=cr(r),c=h==om||h==UE;if(ea(r))return Gg(r,a);if(h==sm||h==nm||c&&!n)s=c?{}:em(r);else{if(!Fe[h])return n?r:{};s=_E(r,h,a)}}o||(o=new Sr);var u=o.get(r);if(u)return u;o.set(r,s),RE(r)?r.forEach(function(p){s.add(Jl(p,t,e,p,r,o))}):ME(r)&&r.forEach(function(p,m){s.set(m,Jl(p,t,e,m,r,o))});var f=Vu,d=l?void 0:f(r);return n8(d||r,function(p,m){d&&(m=p,p=r[m]),Ng(s,m,Jl(p,t,e,m,r,o))}),s}var oT=1,sT=4;function zo(r){return Jl(r,oT|sT)}var aT="__lodash_hash_undefined__";function lT(r){return this.__data__.set(r,aT),this}function hT(r){return this.__data__.has(r)}function Ql(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new $n;++t<e;)this.add(r[t])}Ql.prototype.add=Ql.prototype.push=lT,Ql.prototype.has=hT;function cT(r,t){for(var e=-1,i=r==null?0:r.length;++e<i;)if(t(r[e],e,r))return!0;return!1}function uT(r,t){return r.has(t)}var dT=1,fT=2;function am(r,t,e,i,n,o){var s=e&dT,a=r.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var h=o.get(r),c=o.get(t);if(h&&c)return h==t&&c==r;var u=-1,f=!0,d=e&fT?new Ql:void 0;for(o.set(r,t),o.set(t,r);++u<a;){var p=r[u],m=t[u];if(i)var v=s?i(m,p,u,t,r,o):i(p,m,u,r,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(d){if(!cT(t,function(g,b){if(!uT(d,b)&&(p===g||n(p,g,e,i,o)))return d.push(b)})){f=!1;break}}else if(!(p===m||n(p,m,e,i,o))){f=!1;break}}return o.delete(r),o.delete(t),f}function pT(r){var t=-1,e=Array(r.size);return r.forEach(function(i,n){e[++t]=[n,i]}),e}function gT(r){var t=-1,e=Array(r.size);return r.forEach(function(i){e[++t]=i}),e}var mT=1,vT=2,yT="[object Boolean]",bT="[object Date]",xT="[object Error]",wT="[object Map]",ET="[object Number]",TT="[object RegExp]",CT="[object Set]",ST="[object String]",NT="[object Symbol]",AT="[object ArrayBuffer]",_T="[object DataView]",lm=pn?pn.prototype:void 0,Ju=lm?lm.valueOf:void 0;function kT(r,t,e,i,n,o,s){switch(e){case _T:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case AT:return!(r.byteLength!=t.byteLength||!o(new Zl(r),new Zl(t)));case yT:case bT:case ET:return ta(+r,+t);case xT:return r.name==t.name&&r.message==t.message;case TT:case ST:return r==t+"";case wT:var a=pT;case CT:var l=i&mT;if(a||(a=gT),r.size!=t.size&&!l)return!1;var h=s.get(r);if(h)return h==t;i|=vT,s.set(r,t);var c=am(a(r),a(t),i,n,o,s);return s.delete(r),c;case NT:if(Ju)return Ju.call(r)==Ju.call(t)}return!1}var LT=1,MT=Object.prototype,DT=MT.hasOwnProperty;function OT(r,t,e,i,n,o){var s=e&LT,a=Vu(r),l=a.length,h=Vu(t),c=h.length;if(l!=c&&!s)return!1;for(var u=l;u--;){var f=a[u];if(!(s?f in t:DT.call(t,f)))return!1}var d=o.get(r),p=o.get(t);if(d&&p)return d==t&&p==r;var m=!0;o.set(r,t),o.set(t,r);for(var v=s;++u<l;){f=a[u];var g=r[f],b=t[f];if(i)var y=s?i(b,g,f,t,r,o):i(g,b,f,r,t,o);if(!(y===void 0?g===b||n(g,b,e,i,o):y)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var x=r.constructor,C=t.constructor;x!=C&&"constructor"in r&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof C=="function"&&C instanceof C)&&(m=!1)}return o.delete(r),o.delete(t),m}var RT=1,hm="[object Arguments]",cm="[object Array]",$l="[object Object]",FT=Object.prototype,um=FT.hasOwnProperty;function IT(r,t,e,i,n,o){var s=Yn(r),a=Yn(t),l=s?cm:cr(r),h=a?cm:cr(t);l=l==hm?$l:l,h=h==hm?$l:h;var c=l==$l,u=h==$l,f=l==h;if(f&&ea(r)){if(!ea(t))return!1;s=!0,c=!1}if(f&&!c)return o||(o=new Sr),s||Gu(r)?am(r,t,e,i,n,o):kT(r,t,l,e,i,n,o);if(!(e&RT)){var d=c&&um.call(r,"__wrapped__"),p=u&&um.call(t,"__wrapped__");if(d||p){var m=d?r.value():r,v=p?t.value():t;return o||(o=new Sr),n(m,v,e,i,o)}}return f?(o||(o=new Sr),OT(r,t,e,i,n,o)):!1}function dm(r,t,e,i,n){return r===t?!0:r==null||t==null||!Ur(r)&&!Ur(t)?r!==r&&t!==t:IT(r,t,e,i,dm,n)}function BT(r){return function(t,e,i){for(var n=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[++n];if(e(o[l],l,o)===!1)break}return t}}var zT=BT();function Qu(r,t,e){(e!==void 0&&!ta(r[t],e)||e===void 0&&!(t in r))&&Uu(r,t,e)}function PT(r){return Ur(r)&&Kl(r)}function $u(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function UT(r){return h8(r,zg(r))}function jT(r,t,e,i,n,o,s){var a=$u(r,e),l=$u(t,e),h=s.get(l);if(h){Qu(r,e,h);return}var c=o?o(a,l,e+"",r,t,s):void 0,u=c===void 0;if(u){var f=Yn(l),d=!f&&ea(l),p=!f&&!d&&Gu(l);c=l,f||d||p?Yn(a)?c=a:PT(a)?c=Zw(a):d?(u=!1,c=Gg(l,!0)):p?(u=!1,c=tm(l,!0)):c=[]:I7(l)||qu(l)?(c=a,qu(a)?c=UT(a):(!gn(a)||Bu(a))&&(c=em(l))):u=!1}u&&(s.set(l,c),n(c,l,i,o,s),s.delete(l)),Qu(r,e,c)}function fm(r,t,e,i,n){r!==t&&zT(t,function(o,s){if(n||(n=new Sr),gn(o))jT(r,t,s,e,fm,i,n);else{var a=i?i($u(r,s),o,s+"",r,t,n):void 0;a===void 0&&(a=o),Qu(r,s,a)}},zg)}function td(r,t){return dm(r,t)}var mn=p8(function(r,t,e){fm(r,t,e)}),Kt=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(Kt||{});class Nr{constructor(t,e,i={}){this.attrName=t,this.keyName=e;const n=Kt.TYPE&Kt.ATTRIBUTE;this.scope=i.scope!=null?i.scope&Kt.LEVEL|n:Kt.ATTRIBUTE,i.whitelist!=null&&(this.whitelist=i.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class Po extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const pm=class yf{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let i=null;try{i=t.parentNode}catch{return null}return this.find(i,e)}return null}create(t,e,i){const n=this.query(e);if(n==null)throw new Po(`Unable to create ${e} blot`);const o=n,s=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(i),a=new o(t,s,i);return yf.blots.set(a.domNode,a),a}find(t,e=!1){return yf.find(t,e)}query(t,e=Kt.ANY){let i;return typeof t=="string"?i=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?i=this.types.text:typeof t=="number"?t&Kt.LEVEL&Kt.BLOCK?i=this.types.block:t&Kt.LEVEL&Kt.INLINE&&(i=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(n=>(i=this.classes[n],!!i)),i=i||this.tags[t.tagName]),i==null?null:"scope"in i&&e&Kt.LEVEL&i.scope&&e&Kt.TYPE&i.scope?i:null}register(...t){return t.map(e=>{const i="blotName"in e,n="attrName"in e;if(!i&&!n)throw new Po("Invalid definition");if(i&&e.blotName==="abstract")throw new Po("Cannot register abstract class");const o=i?e.blotName:n?e.attrName:void 0;return this.types[o]=e,n?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):i&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(s=>s.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(s=>{(this.tags[s]==null||e.className==null)&&(this.tags[s]=e)}))),e})}};pm.blots=new WeakMap;let Uo=pm;function gm(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class qT extends Nr{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){gm(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(gm(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const ur=qT;function ed(r){const t=r.split("-"),e=t.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("");return t[0]+e}class WT extends Nr{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[ed(this.keyName)]=e,!0):!1}remove(t){t.style[ed(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[ed(this.keyName)];return this.canAdd(t,e)?e:""}}const vn=WT;class HT{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=Uo.find(this.domNode);if(t==null)return;const e=Nr.keys(this.domNode),i=ur.keys(this.domNode),n=vn.keys(this.domNode);e.concat(i).concat(n).forEach(o=>{const s=t.scroll.query(o,Kt.ATTRIBUTE);s instanceof Nr&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(e=>{const i=this.attributes[e].value(this.domNode);t.format(e,i)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const th=HT,mm=class{constructor(t,e){this.scroll=t,this.domNode=e,Uo.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new Po("Blot definition missing tagName");let e,i;return Array.isArray(this.tagName)?(typeof t=="string"?(i=t.toUpperCase(),parseInt(i,10).toString()===i&&(i=parseInt(i,10))):typeof t=="number"&&(i=t),typeof i=="number"?e=document.createElement(this.tagName[i-1]):i&&this.tagName.indexOf(i)>-1?e=document.createElement(i):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),Uo.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,i,n){const o=this.isolate(t,e);if(this.scroll.query(i,Kt.BLOT)!=null&&n)o.wrap(i,n);else if(this.scroll.query(i,Kt.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);o.wrap(s),s.format(i,n)}}insertAt(t,e,i){const n=i==null?this.scroll.create("text",e):this.scroll.create(e,i),o=this.split(t);this.parent.insertBefore(n,o||void 0)}isolate(t,e){const i=this.split(t);if(i==null)throw new Error("Attempt to isolate at end");return i.split(e),i}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const i=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(i,this.next||void 0),this.remove()),i}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const i=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(i,this.next||void 0),typeof i.appendChild!="function")throw new Po(`Cannot wrap ${t}`);return i.appendChild(this),i}};mm.blotName="abstract";let vm=mm;const ym=class extends vm{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let i=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(i+=1),[this.parent.domNode,i]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};ym.scope=Kt.INLINE_BLOT;const gi=ym;class GT{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let i=e();for(;i&&t>0;)t-=1,i=e();return i}contains(t){const e=this.iterator();let i=e();for(;i;){if(i===t)return!0;i=e()}return!1}indexOf(t){const e=this.iterator();let i=e(),n=0;for(;i;){if(i===t)return n;n+=1,i=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,i=this.head;for(;i!=null;){if(i===t)return e;e+=i.length(),i=i.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const i=this.iterator();let n=i();for(;n;){const o=n.length();if(t<o||e&&t===o&&(n.next==null||n.next.length()!==0))return[n,t];t-=o,n=i()}return[null,0]}forEach(t){const e=this.iterator();let i=e();for(;i;)t(i),i=e()}forEachAt(t,e,i){if(e<=0)return;const[n,o]=this.find(t);let s=t-o;const a=this.iterator(n);let l=a();for(;l&&s<t+e;){const h=l.length();t>s?i(l,t-s,Math.min(e,s+h-t)):i(l,0,Math.min(h,t+e-s)),s+=h,l=a()}}map(t){return this.reduce((e,i)=>(e.push(t(i)),e),[])}reduce(t,e){const i=this.iterator();let n=i();for(;n;)e=t(e,n),n=i();return e}}function bm(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const i=t.create(Kt.INLINE);return Array.from(r.childNodes).forEach(n=>{i.domNode.appendChild(n)}),r.parentNode&&r.parentNode.replaceChild(i.domNode,r),i.attach(),i}}const xm=class En extends vm{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,En.uiClass&&this.uiNode.classList.add(En.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new GT,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=bm(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof Po)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(i,n,o)=>{i.deleteAt(n,o)})}descendant(t,e=0){const[i,n]=this.children.find(e);return t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t?[i,n]:i instanceof En?i.descendant(t,n):[null,-1]}descendants(t,e=0,i=Number.MAX_VALUE){let n=[],o=i;return this.children.forEachAt(e,i,(s,a,l)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&n.push(s),s instanceof En&&(n=n.concat(s.descendants(t,a,o))),o-=l}),n}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(i=>e instanceof i)||(e.statics.scope===Kt.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof En?e.unwrap():e.remove())})}formatAt(t,e,i,n){this.children.forEachAt(t,e,(o,s,a)=>{o.formatAt(s,a,i,n)})}insertAt(t,e,i){const[n,o]=this.children.find(t);if(n)n.insertAt(o,e,i);else{const s=i==null?this.scroll.create("text",e):this.scroll.create(e,i);this.appendChild(s)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let i=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(i=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==i)&&this.domNode.insertBefore(t.domNode,i),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(i=>{t.insertBefore(i,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[i,n]=this.children.find(t,e),o=[[this,t]];return i instanceof En?o.concat(i.path(n,e)):(i!=null&&o.push([i,n]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const i=typeof t=="string"?this.scroll.create(t,e):t;return i instanceof En&&this.moveChildren(i),super.replaceWith(i)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const i=this.clone();return this.parent&&this.parent.insertBefore(i,this.next||void 0),this.children.forEachAt(t,this.length(),(n,o,s)=>{const a=n.split(o,e);a!=null&&i.appendChild(a)}),i}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const i=[],n=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(i.push(...o.addedNodes),n.push(...o.removedNodes))}),n.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(o);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),i.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,s)=>o===s?0:o.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let s=null;o.nextSibling!=null&&(s=this.scroll.find(o.nextSibling));const a=bm(o,this.scroll);(a.next!==s||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,s||void 0))}),this.enforceAllowedChildren()}};xm.uiClass="";const dr=xm;function VT(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const jo=class is extends dr{static create(t){return super.create(t)}static formats(t,e){const i=e.query(is.blotName);if(!(i!=null&&t.tagName===i.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new th(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(i=>{i instanceof is||(i=i.wrap(is.blotName,!0)),this.attributes.copy(i)}),this.unwrap();else{const i=this.scroll.query(t,Kt.INLINE);if(i==null)return;i instanceof Nr?this.attributes.attribute(i,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,n){this.formats()[i]!=null||this.scroll.query(i,Kt.ATTRIBUTE)?this.isolate(t,e).format(i,n):super.formatAt(t,e,i,n)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const i=this.next;i instanceof is&&i.prev===this&&VT(e,i.formats())&&(i.moveChildren(this),i.remove())}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(i=>i.target===this.domNode&&i.type==="attributes")&&this.attributes.build()}wrap(t,e){const i=super.wrap(t,e);return i instanceof is&&this.attributes.move(i),i}};jo.allowedChildren=[jo,gi],jo.blotName="inline",jo.scope=Kt.INLINE_BLOT,jo.tagName="SPAN";const id=jo,qo=class bf extends dr{static create(t){return super.create(t)}static formats(t,e){const i=e.query(bf.blotName);if(!(i!=null&&t.tagName===i.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new th(this.domNode)}format(t,e){const i=this.scroll.query(t,Kt.BLOCK);i!=null&&(i instanceof Nr?this.attributes.attribute(i,e):t===this.statics.blotName&&!e?this.replaceWith(bf.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,n){this.scroll.query(i,Kt.BLOCK)!=null?this.format(i,n):super.formatAt(t,e,i,n)}insertAt(t,e,i){if(i==null||this.scroll.query(e,Kt.INLINE)!=null)super.insertAt(t,e,i);else{const n=this.split(t);if(n!=null){const o=this.scroll.create(e,i);n.parent.insertBefore(o,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(i=>i.target===this.domNode&&i.type==="attributes")&&this.attributes.build()}};qo.blotName="block",qo.scope=Kt.BLOCK_BLOT,qo.tagName="P",qo.allowedChildren=[id,qo,gi];const oa=qo,rd=class extends dr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,i,n){super.formatAt(t,e,i,n),this.enforceAllowedChildren()}insertAt(t,e,i){super.insertAt(t,e,i),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};rd.blotName="container",rd.scope=Kt.BLOCK_BLOT;const eh=rd;class KT extends gi{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,n){t===0&&e===this.length()?this.format(i,n):super.formatAt(t,e,i,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zi=KT,XT={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},YT=100,Wo=class extends dr{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(i=>{this.update(i)}),this.observer.observe(this.domNode,XT),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=Kt.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(i=>{i.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,n){this.update(),super.formatAt(t,e,i,n)}insertAt(t,e,i){this.update(),super.insertAt(t,e,i)}optimize(t=[],e={}){super.optimize(e);const i=e.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());const o=(l,h=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(i.has(l.domNode)||i.set(l.domNode,[]),h&&o(l.parent))},s=l=>{i.has(l.domNode)&&(l instanceof dr&&l.children.forEach(s),i.delete(l.domNode),l.optimize(e))};let a=t;for(let l=0;a.length>0;l+=1){if(l>=YT)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const c=this.find(h.target,!0);c!=null&&(c.domNode===h.target&&(h.type==="childList"?(o(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(u=>{const f=this.find(u,!1);o(f,!1),f instanceof dr&&f.children.forEach(d=>{o(d,!1)})})):h.type==="attributes"&&o(c.prev)),o(c))}),this.children.forEach(s),a=Array.from(this.observer.takeRecords()),n=a.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const i=new WeakMap;t.map(n=>{const o=this.find(n.target,!0);return o==null?null:i.has(o.domNode)?(i.get(o.domNode).push(n),null):(i.set(o.domNode,[n]),o)}).forEach(n=>{n!=null&&n!==this&&i.has(n.domNode)&&n.update(i.get(n.domNode)||[],e)}),e.mutationsMap=i,i.has(this.domNode)&&super.update(i.get(this.domNode),e),this.optimize(t,e)}};Wo.blotName="scroll",Wo.defaultChild=oa,Wo.allowedChildren=[oa,eh],Wo.scope=Kt.BLOCK_BLOT,Wo.tagName="DIV";const nd=Wo,od=class z2 extends gi{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,i){i==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,i)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof z2&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const i=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next||void 0),this.text=this.statics.value(this.domNode),i}update(t,e){t.some(i=>i.type==="characterData"&&i.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};od.blotName="text",od.scope=Kt.INLINE_BLOT;const ih=od,ZT=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Nr,AttributorStore:th,BlockBlot:oa,ClassAttributor:ur,ContainerBlot:eh,EmbedBlot:zi,InlineBlot:id,LeafBlot:gi,ParentBlot:dr,Registry:Uo,Scope:Kt,ScrollBlot:nd,StyleAttributor:vn,TextBlot:ih},Symbol.toStringTag,{value:"Module"}));var rh={exports:{}},sd,wm;function JT(){if(wm)return sd;wm=1;var r=-1,t=1,e=0;function i(_,k,O,N,X){if(_===k)return _?[[e,_]]:[];if(O!=null){var Z=T(_,k,O);if(Z)return Z}var W=a(_,k),yt=_.substring(0,W);_=_.substring(W),k=k.substring(W),W=h(_,k);var st=_.substring(_.length-W);_=_.substring(0,_.length-W),k=k.substring(0,k.length-W);var bt=n(_,k);return yt&&bt.unshift([e,yt]),st&&bt.push([e,st]),b(bt,X),N&&u(bt),bt}function n(_,k){var O;if(!_)return[[t,k]];if(!k)return[[r,_]];var N=_.length>k.length?_:k,X=_.length>k.length?k:_,Z=N.indexOf(X);if(Z!==-1)return O=[[t,N.substring(0,Z)],[e,X],[t,N.substring(Z+X.length)]],_.length>k.length&&(O[0][0]=O[2][0]=r),O;if(X.length===1)return[[r,_],[t,k]];var W=c(_,k);if(W){var yt=W[0],st=W[1],bt=W[2],tt=W[3],Q=W[4],Tt=i(yt,bt),wt=i(st,tt);return Tt.concat([[e,Q]],wt)}return o(_,k)}function o(_,k){for(var O=_.length,N=k.length,X=Math.ceil((O+N)/2),Z=X,W=2*X,yt=new Array(W),st=new Array(W),bt=0;bt<W;bt++)yt[bt]=-1,st[bt]=-1;yt[Z+1]=0,st[Z+1]=0;for(var tt=O-N,Q=tt%2!==0,Tt=0,wt=0,ft=0,Bt=0,z=0;z<X;z++){for(var M=-z+Tt;M<=z-wt;M+=2){var lt=Z+M,et;M===-z||M!==z&&yt[lt-1]<yt[lt+1]?et=yt[lt+1]:et=yt[lt-1]+1;for(var Ot=et-M;et<O&&Ot<N&&_.charAt(et)===k.charAt(Ot);)et++,Ot++;if(yt[lt]=et,et>O)wt+=2;else if(Ot>N)Tt+=2;else if(Q){var Rt=Z+tt-M;if(Rt>=0&&Rt<W&&st[Rt]!==-1){var Pt=O-st[Rt];if(et>=Pt)return s(_,k,et,Ot)}}}for(var D=-z+ft;D<=z-Bt;D+=2){var Rt=Z+D,Pt;D===-z||D!==z&&st[Rt-1]<st[Rt+1]?Pt=st[Rt+1]:Pt=st[Rt-1]+1;for(var gt=Pt-D;Pt<O&&gt<N&&_.charAt(O-Pt-1)===k.charAt(N-gt-1);)Pt++,gt++;if(st[Rt]=Pt,Pt>O)Bt+=2;else if(gt>N)ft+=2;else if(!Q){var lt=Z+tt-D;if(lt>=0&&lt<W&&yt[lt]!==-1){var et=yt[lt],Ot=Z+et-lt;if(Pt=O-Pt,et>=Pt)return s(_,k,et,Ot)}}}}return[[r,_],[t,k]]}function s(_,k,O,N){var X=_.substring(0,O),Z=k.substring(0,N),W=_.substring(O),yt=k.substring(N),st=i(X,Z),bt=i(W,yt);return st.concat(bt)}function a(_,k){if(!_||!k||_.charAt(0)!==k.charAt(0))return 0;for(var O=0,N=Math.min(_.length,k.length),X=N,Z=0;O<X;)_.substring(Z,X)==k.substring(Z,X)?(O=X,Z=O):N=X,X=Math.floor((N-O)/2+O);return y(_.charCodeAt(X-1))&&X--,X}function l(_,k){var O=_.length,N=k.length;if(O==0||N==0)return 0;O>N?_=_.substring(O-N):O<N&&(k=k.substring(0,O));var X=Math.min(O,N);if(_==k)return X;for(var Z=0,W=1;;){var yt=_.substring(X-W),st=k.indexOf(yt);if(st==-1)return Z;W+=st,(st==0||_.substring(X-W)==k.substring(0,W))&&(Z=W,W++)}}function h(_,k){if(!_||!k||_.slice(-1)!==k.slice(-1))return 0;for(var O=0,N=Math.min(_.length,k.length),X=N,Z=0;O<X;)_.substring(_.length-X,_.length-Z)==k.substring(k.length-X,k.length-Z)?(O=X,Z=O):N=X,X=Math.floor((N-O)/2+O);return x(_.charCodeAt(_.length-X))&&X--,X}function c(_,k){var O=_.length>k.length?_:k,N=_.length>k.length?k:_;if(O.length<4||N.length*2<O.length)return null;function X(wt,ft,Bt){for(var z=wt.substring(Bt,Bt+Math.floor(wt.length/4)),M=-1,lt="",et,Ot,Rt,Pt;(M=ft.indexOf(z,M+1))!==-1;){var D=a(wt.substring(Bt),ft.substring(M)),gt=h(wt.substring(0,Bt),ft.substring(0,M));lt.length<gt+D&&(lt=ft.substring(M-gt,M)+ft.substring(M,M+D),et=wt.substring(0,Bt-gt),Ot=wt.substring(Bt+D),Rt=ft.substring(0,M-gt),Pt=ft.substring(M+D))}return lt.length*2>=wt.length?[et,Ot,Rt,Pt,lt]:null}var Z=X(O,N,Math.ceil(O.length/4)),W=X(O,N,Math.ceil(O.length/2)),yt;if(!Z&&!W)return null;W?Z?yt=Z[4].length>W[4].length?Z:W:yt=W:yt=Z;var st,bt,tt,Q;_.length>k.length?(st=yt[0],bt=yt[1],tt=yt[2],Q=yt[3]):(tt=yt[0],Q=yt[1],st=yt[2],bt=yt[3]);var Tt=yt[4];return[st,bt,tt,Q,Tt]}function u(_){for(var k=!1,O=[],N=0,X=null,Z=0,W=0,yt=0,st=0,bt=0;Z<_.length;)_[Z][0]==e?(O[N++]=Z,W=st,yt=bt,st=0,bt=0,X=_[Z][1]):(_[Z][0]==t?st+=_[Z][1].length:bt+=_[Z][1].length,X&&X.length<=Math.max(W,yt)&&X.length<=Math.max(st,bt)&&(_.splice(O[N-1],0,[r,X]),_[O[N-1]+1][0]=t,N--,N--,Z=N>0?O[N-1]:-1,W=0,yt=0,st=0,bt=0,X=null,k=!0)),Z++;for(k&&b(_),g(_),Z=1;Z<_.length;){if(_[Z-1][0]==r&&_[Z][0]==t){var tt=_[Z-1][1],Q=_[Z][1],Tt=l(tt,Q),wt=l(Q,tt);Tt>=wt?(Tt>=tt.length/2||Tt>=Q.length/2)&&(_.splice(Z,0,[e,Q.substring(0,Tt)]),_[Z-1][1]=tt.substring(0,tt.length-Tt),_[Z+1][1]=Q.substring(Tt),Z++):(wt>=tt.length/2||wt>=Q.length/2)&&(_.splice(Z,0,[e,tt.substring(0,wt)]),_[Z-1][0]=t,_[Z-1][1]=Q.substring(0,Q.length-wt),_[Z+1][0]=r,_[Z+1][1]=tt.substring(wt),Z++),Z++}Z++}}var f=/[^a-zA-Z0-9]/,d=/\s/,p=/[\r\n]/,m=/\n\r?\n$/,v=/^\r?\n\r?\n/;function g(_){function k(wt,ft){if(!wt||!ft)return 6;var Bt=wt.charAt(wt.length-1),z=ft.charAt(0),M=Bt.match(f),lt=z.match(f),et=M&&Bt.match(d),Ot=lt&&z.match(d),Rt=et&&Bt.match(p),Pt=Ot&&z.match(p),D=Rt&&wt.match(m),gt=Pt&&ft.match(v);return D||gt?5:Rt||Pt?4:M&&!et&&Ot?3:et||Ot?2:M||lt?1:0}for(var O=1;O<_.length-1;){if(_[O-1][0]==e&&_[O+1][0]==e){var N=_[O-1][1],X=_[O][1],Z=_[O+1][1],W=h(N,X);if(W){var yt=X.substring(X.length-W);N=N.substring(0,N.length-W),X=yt+X.substring(0,X.length-W),Z=yt+Z}for(var st=N,bt=X,tt=Z,Q=k(N,X)+k(X,Z);X.charAt(0)===Z.charAt(0);){N+=X.charAt(0),X=X.substring(1)+Z.charAt(0),Z=Z.substring(1);var Tt=k(N,X)+k(X,Z);Tt>=Q&&(Q=Tt,st=N,bt=X,tt=Z)}_[O-1][1]!=st&&(st?_[O-1][1]=st:(_.splice(O-1,1),O--),_[O][1]=bt,tt?_[O+1][1]=tt:(_.splice(O+1,1),O--))}O++}}function b(_,k){_.push([e,""]);for(var O=0,N=0,X=0,Z="",W="",yt;O<_.length;){if(O<_.length-1&&!_[O][1]){_.splice(O,1);continue}switch(_[O][0]){case t:X++,W+=_[O][1],O++;break;case r:N++,Z+=_[O][1],O++;break;case e:var st=O-X-N-1;if(k){if(st>=0&&R(_[st][1])){var bt=_[st][1].slice(-1);if(_[st][1]=_[st][1].slice(0,-1),Z=bt+Z,W=bt+W,!_[st][1]){_.splice(st,1),O--;var tt=st-1;_[tt]&&_[tt][0]===t&&(X++,W=_[tt][1]+W,tt--),_[tt]&&_[tt][0]===r&&(N++,Z=_[tt][1]+Z,tt--),st=tt}}if(C(_[O][1])){var bt=_[O][1].charAt(0);_[O][1]=_[O][1].slice(1),Z+=bt,W+=bt}}if(O<_.length-1&&!_[O][1]){_.splice(O,1);break}if(Z.length>0||W.length>0){Z.length>0&&W.length>0&&(yt=a(W,Z),yt!==0&&(st>=0?_[st][1]+=W.substring(0,yt):(_.splice(0,0,[e,W.substring(0,yt)]),O++),W=W.substring(yt),Z=Z.substring(yt)),yt=h(W,Z),yt!==0&&(_[O][1]=W.substring(W.length-yt)+_[O][1],W=W.substring(0,W.length-yt),Z=Z.substring(0,Z.length-yt)));var Q=X+N;Z.length===0&&W.length===0?(_.splice(O-Q,Q),O=O-Q):Z.length===0?(_.splice(O-Q,Q,[t,W]),O=O-Q+1):W.length===0?(_.splice(O-Q,Q,[r,Z]),O=O-Q+1):(_.splice(O-Q,Q,[r,Z],[t,W]),O=O-Q+2)}O!==0&&_[O-1][0]===e?(_[O-1][1]+=_[O][1],_.splice(O,1)):O++,X=0,N=0,Z="",W="";break}}_[_.length-1][1]===""&&_.pop();var Tt=!1;for(O=1;O<_.length-1;)_[O-1][0]===e&&_[O+1][0]===e&&(_[O][1].substring(_[O][1].length-_[O-1][1].length)===_[O-1][1]?(_[O][1]=_[O-1][1]+_[O][1].substring(0,_[O][1].length-_[O-1][1].length),_[O+1][1]=_[O-1][1]+_[O+1][1],_.splice(O-1,1),Tt=!0):_[O][1].substring(0,_[O+1][1].length)==_[O+1][1]&&(_[O-1][1]+=_[O+1][1],_[O][1]=_[O][1].substring(_[O+1][1].length)+_[O+1][1],_.splice(O+1,1),Tt=!0)),O++;Tt&&b(_,k)}function y(_){return _>=55296&&_<=56319}function x(_){return _>=56320&&_<=57343}function C(_){return x(_.charCodeAt(0))}function R(_){return y(_.charCodeAt(_.length-1))}function F(_){for(var k=[],O=0;O<_.length;O++)_[O][1].length>0&&k.push(_[O]);return k}function U(_,k,O,N){return R(_)||C(N)?null:F([[e,_],[r,k],[t,O],[e,N]])}function T(_,k,O){var N=typeof O=="number"?{index:O,length:0}:O.oldRange,X=typeof O=="number"?null:O.newRange,Z=_.length,W=k.length;if(N.length===0&&(X===null||X.length===0)){var yt=N.index,st=_.slice(0,yt),bt=_.slice(yt),tt=X?X.index:null;t:{var Q=yt+W-Z;if(tt!==null&&tt!==Q||Q<0||Q>W)break t;var Tt=k.slice(0,Q),wt=k.slice(Q);if(wt!==bt)break t;var ft=Math.min(yt,Q),Bt=st.slice(0,ft),z=Tt.slice(0,ft);if(Bt!==z)break t;var M=st.slice(ft),lt=Tt.slice(ft);return U(Bt,M,lt,bt)}t:{if(tt!==null&&tt!==yt)break t;var et=yt,Tt=k.slice(0,et),wt=k.slice(et);if(Tt!==st)break t;var Ot=Math.min(Z-et,W-et),Rt=bt.slice(bt.length-Ot),Pt=wt.slice(wt.length-Ot);if(Rt!==Pt)break t;var M=bt.slice(0,bt.length-Ot),lt=wt.slice(0,wt.length-Ot);return U(st,M,lt,Rt)}}if(N.length>0&&X&&X.length===0)t:{var Bt=_.slice(0,N.index),Rt=_.slice(N.index+N.length),ft=Bt.length,Ot=Rt.length;if(W<ft+Ot)break t;var z=k.slice(0,ft),Pt=k.slice(W-Ot);if(Bt!==z||Rt!==Pt)break t;var M=_.slice(ft,Z-Ot),lt=k.slice(ft,W-Ot);return U(Bt,M,lt,Rt)}return null}function H(_,k,O,N){return i(_,k,O,N,!0)}return H.INSERT=t,H.DELETE=r,H.EQUAL=e,sd=H,sd}var sa={exports:{}};sa.exports;var Em;function Tm(){return Em||(Em=1,function(r,t){var e=200,i="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",h="[object Error]",c="[object Function]",u="[object GeneratorFunction]",f="[object Map]",d="[object Number]",p="[object Object]",m="[object Promise]",v="[object RegExp]",g="[object Set]",b="[object String]",y="[object Symbol]",x="[object WeakMap]",C="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",T="[object Int8Array]",H="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",N="[object Uint16Array]",X="[object Uint32Array]",Z=/[\\^$.*+?()[\]{}|]/g,W=/\w*$/,yt=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,bt={};bt[o]=bt[s]=bt[C]=bt[R]=bt[a]=bt[l]=bt[F]=bt[U]=bt[T]=bt[H]=bt[_]=bt[f]=bt[d]=bt[p]=bt[v]=bt[g]=bt[b]=bt[y]=bt[k]=bt[O]=bt[N]=bt[X]=!0,bt[h]=bt[c]=bt[x]=!1;var tt=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,Q=typeof self=="object"&&self&&self.Object===Object&&self,Tt=tt||Q||Function("return this")(),wt=t&&!t.nodeType&&t,ft=wt&&!0&&r&&!r.nodeType&&r,Bt=ft&&ft.exports===wt;function z(S,j){return S.set(j[0],j[1]),S}function M(S,j){return S.add(j),S}function lt(S,j){for(var nt=-1,St=S?S.length:0;++nt<St&&j(S[nt],nt,S)!==!1;);return S}function et(S,j){for(var nt=-1,St=j.length,ce=S.length;++nt<St;)S[ce+nt]=j[nt];return S}function Ot(S,j,nt,St){for(var ce=-1,Zt=S?S.length:0;++ce<Zt;)nt=j(nt,S[ce],ce,S);return nt}function Rt(S,j){for(var nt=-1,St=Array(S);++nt<S;)St[nt]=j(nt);return St}function Pt(S,j){return S==null?void 0:S[j]}function D(S){var j=!1;if(S!=null&&typeof S.toString!="function")try{j=!!(S+"")}catch{}return j}function gt(S){var j=-1,nt=Array(S.size);return S.forEach(function(St,ce){nt[++j]=[ce,St]}),nt}function pt(S,j){return function(nt){return S(j(nt))}}function V(S){var j=-1,nt=Array(S.size);return S.forEach(function(St){nt[++j]=St}),nt}var q=Array.prototype,at=Function.prototype,At=Object.prototype,_t=Tt["__core-js_shared__"],ht=function(){var S=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return S?"Symbol(src)_1."+S:""}(),Dt=at.toString,zt=At.hasOwnProperty,Lt=At.toString,Wt=RegExp("^"+Dt.call(zt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=Bt?Tt.Buffer:void 0,w=Tt.Symbol,A=Tt.Uint8Array,G=pt(Object.getPrototypeOf,Object),L=Object.create,J=At.propertyIsEnumerable,it=q.splice,kt=Object.getOwnPropertySymbols,rt=B?B.isBuffer:void 0,dt=pt(Object.keys,Object),I=br(Tt,"DataView"),Et=br(Tt,"Map"),Gt=br(Tt,"Promise"),E=br(Tt,"Set"),vt=br(Tt,"WeakMap"),xt=br(Object,"create"),P=Ti(I),ot=Ti(Et),mt=Ti(Gt),Ht=Ti(E),Ut=Ti(vt),jt=w?w.prototype:void 0,de=jt?jt.valueOf:void 0;function ri(S){var j=-1,nt=S?S.length:0;for(this.clear();++j<nt;){var St=S[j];this.set(St[0],St[1])}}function Ie(){this.__data__=xt?xt(null):{}}function pe(S){return this.has(S)&&delete this.__data__[S]}function We(S){var j=this.__data__;if(xt){var nt=j[S];return nt===i?void 0:nt}return zt.call(j,S)?j[S]:void 0}function Ve(S){var j=this.__data__;return xt?j[S]!==void 0:zt.call(j,S)}function Ye(S,j){var nt=this.__data__;return nt[S]=xt&&j===void 0?i:j,this}ri.prototype.clear=Ie,ri.prototype.delete=pe,ri.prototype.get=We,ri.prototype.has=Ve,ri.prototype.set=Ye;function He(S){var j=-1,nt=S?S.length:0;for(this.clear();++j<nt;){var St=S[j];this.set(St[0],St[1])}}function xn(){this.__data__=[]}function je(S){var j=this.__data__,nt=Qo(j,S);if(nt<0)return!1;var St=j.length-1;return nt==St?j.pop():it.call(j,nt,1),!0}function vi(S){var j=this.__data__,nt=Qo(j,S);return nt<0?void 0:j[nt][1]}function Ke(S){return Qo(this.__data__,S)>-1}function Pi(S,j){var nt=this.__data__,St=Qo(nt,S);return St<0?nt.push([S,j]):nt[St][1]=j,this}He.prototype.clear=xn,He.prototype.delete=je,He.prototype.get=vi,He.prototype.has=Ke,He.prototype.set=Pi;function Re(S){var j=-1,nt=S?S.length:0;for(this.clear();++j<nt;){var St=S[j];this.set(St[0],St[1])}}function Zo(){this.__data__={hash:new ri,map:new(Et||He),string:new ri}}function Wd(S){return oo(this,S).delete(S)}function Hd(S){return oo(this,S).get(S)}function Gd(S){return oo(this,S).has(S)}function Vd(S,j){return oo(this,S).set(S,j),this}Re.prototype.clear=Zo,Re.prototype.delete=Wd,Re.prototype.get=Hd,Re.prototype.has=Gd,Re.prototype.set=Vd;function _i(S){this.__data__=new He(S)}function Kd(){this.__data__=new He}function Xd(S){return this.__data__.delete(S)}function Yd(S){return this.__data__.get(S)}function Zd(S){return this.__data__.has(S)}function Jd(S,j){var nt=this.__data__;if(nt instanceof He){var St=nt.__data__;if(!Et||St.length<e-1)return St.push([S,j]),this;nt=this.__data__=new Re(St)}return nt.set(S,j),this}_i.prototype.clear=Kd,_i.prototype.delete=Xd,_i.prototype.get=Yd,_i.prototype.has=Zd,_i.prototype.set=Jd;function Jo(S,j){var nt=Ca(S)||ts(S)?Rt(S.length,String):[],St=nt.length,ce=!!St;for(var Zt in S)zt.call(S,Zt)&&!(ce&&(Zt=="length"||df(Zt,St)))&&nt.push(Zt);return nt}function bh(S,j,nt){var St=S[j];(!(zt.call(S,j)&&Ch(St,nt))||nt===void 0&&!(j in S))&&(S[j]=nt)}function Qo(S,j){for(var nt=S.length;nt--;)if(Ch(S[nt][0],j))return nt;return-1}function Lr(S,j){return S&&Ta(j,Na(j),S)}function wa(S,j,nt,St,ce,Zt,Se){var Te;if(St&&(Te=Zt?St(S,ce,Zt,Se):St(S)),Te!==void 0)return Te;if(!Dr(S))return S;var Ze=Ca(S);if(Ze){if(Te=cf(S),!j)return af(S,Te)}else{var Me=Kr(S),yi=Me==c||Me==u;if(Sh(S))return $o(S,j);if(Me==p||Me==o||yi&&!Zt){if(D(S))return Zt?S:{};if(Te=Mr(yi?{}:S),!j)return lf(S,Lr(Te,S))}else{if(!bt[Me])return Zt?S:{};Te=uf(S,Me,wa,j)}}Se||(Se=new _i);var ki=Se.get(S);if(ki)return ki;if(Se.set(S,Te),!Ze)var ni=nt?hf(S):Na(S);return lt(ni||S,function(bi,ui){ni&&(ui=bi,bi=S[ui]),bh(Te,ui,wa(bi,j,nt,St,ui,S,Se))}),Te}function Qd(S){return Dr(S)?L(S):{}}function $d(S,j,nt){var St=j(S);return Ca(S)?St:et(St,nt(S))}function tf(S){return Lt.call(S)}function ef(S){if(!Dr(S)||pf(S))return!1;var j=Sa(S)||D(S)?Wt:yt;return j.test(Ti(S))}function rf(S){if(!Eh(S))return dt(S);var j=[];for(var nt in Object(S))zt.call(S,nt)&&nt!="constructor"&&j.push(nt);return j}function $o(S,j){if(j)return S.slice();var nt=new S.constructor(S.length);return S.copy(nt),nt}function Ea(S){var j=new S.constructor(S.byteLength);return new A(j).set(new A(S)),j}function no(S,j){var nt=j?Ea(S.buffer):S.buffer;return new S.constructor(nt,S.byteOffset,S.byteLength)}function xh(S,j,nt){var St=j?nt(gt(S),!0):gt(S);return Ot(St,z,new S.constructor)}function wh(S){var j=new S.constructor(S.source,W.exec(S));return j.lastIndex=S.lastIndex,j}function nf(S,j,nt){var St=j?nt(V(S),!0):V(S);return Ot(St,M,new S.constructor)}function of(S){return de?Object(de.call(S)):{}}function sf(S,j){var nt=j?Ea(S.buffer):S.buffer;return new S.constructor(nt,S.byteOffset,S.length)}function af(S,j){var nt=-1,St=S.length;for(j||(j=Array(St));++nt<St;)j[nt]=S[nt];return j}function Ta(S,j,nt,St){nt||(nt={});for(var ce=-1,Zt=j.length;++ce<Zt;){var Se=j[ce],Te=void 0;bh(nt,Se,Te===void 0?S[Se]:Te)}return nt}function lf(S,j){return Ta(S,Vr(S),j)}function hf(S){return $d(S,Na,Vr)}function oo(S,j){var nt=S.__data__;return ff(j)?nt[typeof j=="string"?"string":"hash"]:nt.map}function br(S,j){var nt=Pt(S,j);return ef(nt)?nt:void 0}var Vr=kt?pt(kt,Object):mf,Kr=tf;(I&&Kr(new I(new ArrayBuffer(1)))!=R||Et&&Kr(new Et)!=f||Gt&&Kr(Gt.resolve())!=m||E&&Kr(new E)!=g||vt&&Kr(new vt)!=x)&&(Kr=function(S){var j=Lt.call(S),nt=j==p?S.constructor:void 0,St=nt?Ti(nt):void 0;if(St)switch(St){case P:return R;case ot:return f;case mt:return m;case Ht:return g;case Ut:return x}return j});function cf(S){var j=S.length,nt=S.constructor(j);return j&&typeof S[0]=="string"&&zt.call(S,"index")&&(nt.index=S.index,nt.input=S.input),nt}function Mr(S){return typeof S.constructor=="function"&&!Eh(S)?Qd(G(S)):{}}function uf(S,j,nt,St){var ce=S.constructor;switch(j){case C:return Ea(S);case a:case l:return new ce(+S);case R:return no(S,St);case F:case U:case T:case H:case _:case k:case O:case N:case X:return sf(S,St);case f:return xh(S,St,nt);case d:case b:return new ce(S);case v:return wh(S);case g:return nf(S,St,nt);case y:return of(S)}}function df(S,j){return j=j??n,!!j&&(typeof S=="number"||st.test(S))&&S>-1&&S%1==0&&S<j}function ff(S){var j=typeof S;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?S!=="__proto__":S===null}function pf(S){return!!ht&&ht in S}function Eh(S){var j=S&&S.constructor,nt=typeof j=="function"&&j.prototype||At;return S===nt}function Ti(S){if(S!=null){try{return Dt.call(S)}catch{}try{return S+""}catch{}}return""}function Th(S){return wa(S,!0,!0)}function Ch(S,j){return S===j||S!==S&&j!==j}function ts(S){return gf(S)&&zt.call(S,"callee")&&(!J.call(S,"callee")||Lt.call(S)==o)}var Ca=Array.isArray;function es(S){return S!=null&&Nh(S.length)&&!Sa(S)}function gf(S){return Ah(S)&&es(S)}var Sh=rt||vf;function Sa(S){var j=Dr(S)?Lt.call(S):"";return j==c||j==u}function Nh(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=n}function Dr(S){var j=typeof S;return!!S&&(j=="object"||j=="function")}function Ah(S){return!!S&&typeof S=="object"}function Na(S){return es(S)?Jo(S):rf(S)}function mf(){return[]}function vf(){return!1}r.exports=Th}(sa,sa.exports)),sa.exports}var aa={exports:{}};aa.exports;var Cm;function Sm(){return Cm||(Cm=1,function(r,t){var e=200,i="__lodash_hash_undefined__",n=1,o=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",h="[object AsyncFunction]",c="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Null]",b="[object Object]",y="[object Promise]",x="[object Proxy]",C="[object RegExp]",R="[object Set]",F="[object String]",U="[object Symbol]",T="[object Undefined]",H="[object WeakMap]",_="[object ArrayBuffer]",k="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",X="[object Int8Array]",Z="[object Int16Array]",W="[object Int32Array]",yt="[object Uint8Array]",st="[object Uint8ClampedArray]",bt="[object Uint16Array]",tt="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,Tt=/^\[object .+?Constructor\]$/,wt=/^(?:0|[1-9]\d*)$/,ft={};ft[O]=ft[N]=ft[X]=ft[Z]=ft[W]=ft[yt]=ft[st]=ft[bt]=ft[tt]=!0,ft[a]=ft[l]=ft[_]=ft[c]=ft[k]=ft[u]=ft[f]=ft[d]=ft[m]=ft[v]=ft[b]=ft[C]=ft[R]=ft[F]=ft[H]=!1;var Bt=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,z=typeof self=="object"&&self&&self.Object===Object&&self,M=Bt||z||Function("return this")(),lt=t&&!t.nodeType&&t,et=lt&&!0&&r&&!r.nodeType&&r,Ot=et&&et.exports===lt,Rt=Ot&&Bt.process,Pt=function(){try{return Rt&&Rt.binding&&Rt.binding("util")}catch{}}(),D=Pt&&Pt.isTypedArray;function gt(S,j){for(var nt=-1,St=S==null?0:S.length,ce=0,Zt=[];++nt<St;){var Se=S[nt];j(Se,nt,S)&&(Zt[ce++]=Se)}return Zt}function pt(S,j){for(var nt=-1,St=j.length,ce=S.length;++nt<St;)S[ce+nt]=j[nt];return S}function V(S,j){for(var nt=-1,St=S==null?0:S.length;++nt<St;)if(j(S[nt],nt,S))return!0;return!1}function q(S,j){for(var nt=-1,St=Array(S);++nt<S;)St[nt]=j(nt);return St}function at(S){return function(j){return S(j)}}function At(S,j){return S.has(j)}function _t(S,j){return S==null?void 0:S[j]}function ht(S){var j=-1,nt=Array(S.size);return S.forEach(function(St,ce){nt[++j]=[ce,St]}),nt}function Dt(S,j){return function(nt){return S(j(nt))}}function zt(S){var j=-1,nt=Array(S.size);return S.forEach(function(St){nt[++j]=St}),nt}var Lt=Array.prototype,Wt=Function.prototype,B=Object.prototype,w=M["__core-js_shared__"],A=Wt.toString,G=B.hasOwnProperty,L=function(){var S=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return S?"Symbol(src)_1."+S:""}(),J=B.toString,it=RegExp("^"+A.call(G).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Ot?M.Buffer:void 0,rt=M.Symbol,dt=M.Uint8Array,I=B.propertyIsEnumerable,Et=Lt.splice,Gt=rt?rt.toStringTag:void 0,E=Object.getOwnPropertySymbols,vt=kt?kt.isBuffer:void 0,xt=Dt(Object.keys,Object),P=Vr(M,"DataView"),ot=Vr(M,"Map"),mt=Vr(M,"Promise"),Ht=Vr(M,"Set"),Ut=Vr(M,"WeakMap"),jt=Vr(Object,"create"),de=Ti(P),ri=Ti(ot),Ie=Ti(mt),pe=Ti(Ht),We=Ti(Ut),Ve=rt?rt.prototype:void 0,Ye=Ve?Ve.valueOf:void 0;function He(S){var j=-1,nt=S==null?0:S.length;for(this.clear();++j<nt;){var St=S[j];this.set(St[0],St[1])}}function xn(){this.__data__=jt?jt(null):{},this.size=0}function je(S){var j=this.has(S)&&delete this.__data__[S];return this.size-=j?1:0,j}function vi(S){var j=this.__data__;if(jt){var nt=j[S];return nt===i?void 0:nt}return G.call(j,S)?j[S]:void 0}function Ke(S){var j=this.__data__;return jt?j[S]!==void 0:G.call(j,S)}function Pi(S,j){var nt=this.__data__;return this.size+=this.has(S)?0:1,nt[S]=jt&&j===void 0?i:j,this}He.prototype.clear=xn,He.prototype.delete=je,He.prototype.get=vi,He.prototype.has=Ke,He.prototype.set=Pi;function Re(S){var j=-1,nt=S==null?0:S.length;for(this.clear();++j<nt;){var St=S[j];this.set(St[0],St[1])}}function Zo(){this.__data__=[],this.size=0}function Wd(S){var j=this.__data__,nt=$o(j,S);if(nt<0)return!1;var St=j.length-1;return nt==St?j.pop():Et.call(j,nt,1),--this.size,!0}function Hd(S){var j=this.__data__,nt=$o(j,S);return nt<0?void 0:j[nt][1]}function Gd(S){return $o(this.__data__,S)>-1}function Vd(S,j){var nt=this.__data__,St=$o(nt,S);return St<0?(++this.size,nt.push([S,j])):nt[St][1]=j,this}Re.prototype.clear=Zo,Re.prototype.delete=Wd,Re.prototype.get=Hd,Re.prototype.has=Gd,Re.prototype.set=Vd;function _i(S){var j=-1,nt=S==null?0:S.length;for(this.clear();++j<nt;){var St=S[j];this.set(St[0],St[1])}}function Kd(){this.size=0,this.__data__={hash:new He,map:new(ot||Re),string:new He}}function Xd(S){var j=br(this,S).delete(S);return this.size-=j?1:0,j}function Yd(S){return br(this,S).get(S)}function Zd(S){return br(this,S).has(S)}function Jd(S,j){var nt=br(this,S),St=nt.size;return nt.set(S,j),this.size+=nt.size==St?0:1,this}_i.prototype.clear=Kd,_i.prototype.delete=Xd,_i.prototype.get=Yd,_i.prototype.has=Zd,_i.prototype.set=Jd;function Jo(S){var j=-1,nt=S==null?0:S.length;for(this.__data__=new _i;++j<nt;)this.add(S[j])}function bh(S){return this.__data__.set(S,i),this}function Qo(S){return this.__data__.has(S)}Jo.prototype.add=Jo.prototype.push=bh,Jo.prototype.has=Qo;function Lr(S){var j=this.__data__=new Re(S);this.size=j.size}function wa(){this.__data__=new Re,this.size=0}function Qd(S){var j=this.__data__,nt=j.delete(S);return this.size=j.size,nt}function $d(S){return this.__data__.get(S)}function tf(S){return this.__data__.has(S)}function ef(S,j){var nt=this.__data__;if(nt instanceof Re){var St=nt.__data__;if(!ot||St.length<e-1)return St.push([S,j]),this.size=++nt.size,this;nt=this.__data__=new _i(St)}return nt.set(S,j),this.size=nt.size,this}Lr.prototype.clear=wa,Lr.prototype.delete=Qd,Lr.prototype.get=$d,Lr.prototype.has=tf,Lr.prototype.set=ef;function rf(S,j){var nt=ts(S),St=!nt&&Ch(S),ce=!nt&&!St&&es(S),Zt=!nt&&!St&&!ce&&Ah(S),Se=nt||St||ce||Zt,Te=Se?q(S.length,String):[],Ze=Te.length;for(var Me in S)G.call(S,Me)&&!(Se&&(Me=="length"||ce&&(Me=="offset"||Me=="parent")||Zt&&(Me=="buffer"||Me=="byteLength"||Me=="byteOffset")||uf(Me,Ze)))&&Te.push(Me);return Te}function $o(S,j){for(var nt=S.length;nt--;)if(Th(S[nt][0],j))return nt;return-1}function Ea(S,j,nt){var St=j(S);return ts(S)?St:pt(St,nt(S))}function no(S){return S==null?S===void 0?T:g:Gt&&Gt in Object(S)?Kr(S):Eh(S)}function xh(S){return Dr(S)&&no(S)==a}function wh(S,j,nt,St,ce){return S===j?!0:S==null||j==null||!Dr(S)&&!Dr(j)?S!==S&&j!==j:nf(S,j,nt,St,wh,ce)}function nf(S,j,nt,St,ce,Zt){var Se=ts(S),Te=ts(j),Ze=Se?l:Mr(S),Me=Te?l:Mr(j);Ze=Ze==a?b:Ze,Me=Me==a?b:Me;var yi=Ze==b,ki=Me==b,ni=Ze==Me;if(ni&&es(S)){if(!es(j))return!1;Se=!0,yi=!1}if(ni&&!yi)return Zt||(Zt=new Lr),Se||Ah(S)?Ta(S,j,nt,St,ce,Zt):lf(S,j,Ze,nt,St,ce,Zt);if(!(nt&n)){var bi=yi&&G.call(S,"__wrapped__"),ui=ki&&G.call(j,"__wrapped__");if(bi||ui){var wn=bi?S.value():S,Xr=ui?j.value():j;return Zt||(Zt=new Lr),ce(wn,Xr,nt,St,Zt)}}return ni?(Zt||(Zt=new Lr),hf(S,j,nt,St,ce,Zt)):!1}function of(S){if(!Nh(S)||ff(S))return!1;var j=Sh(S)?it:Tt;return j.test(Ti(S))}function sf(S){return Dr(S)&&Sa(S.length)&&!!ft[no(S)]}function af(S){if(!pf(S))return xt(S);var j=[];for(var nt in Object(S))G.call(S,nt)&&nt!="constructor"&&j.push(nt);return j}function Ta(S,j,nt,St,ce,Zt){var Se=nt&n,Te=S.length,Ze=j.length;if(Te!=Ze&&!(Se&&Ze>Te))return!1;var Me=Zt.get(S);if(Me&&Zt.get(j))return Me==j;var yi=-1,ki=!0,ni=nt&o?new Jo:void 0;for(Zt.set(S,j),Zt.set(j,S);++yi<Te;){var bi=S[yi],ui=j[yi];if(St)var wn=Se?St(ui,bi,yi,j,S,Zt):St(bi,ui,yi,S,j,Zt);if(wn!==void 0){if(wn)continue;ki=!1;break}if(ni){if(!V(j,function(Xr,so){if(!At(ni,so)&&(bi===Xr||ce(bi,Xr,nt,St,Zt)))return ni.push(so)})){ki=!1;break}}else if(!(bi===ui||ce(bi,ui,nt,St,Zt))){ki=!1;break}}return Zt.delete(S),Zt.delete(j),ki}function lf(S,j,nt,St,ce,Zt,Se){switch(nt){case k:if(S.byteLength!=j.byteLength||S.byteOffset!=j.byteOffset)return!1;S=S.buffer,j=j.buffer;case _:return!(S.byteLength!=j.byteLength||!Zt(new dt(S),new dt(j)));case c:case u:case v:return Th(+S,+j);case f:return S.name==j.name&&S.message==j.message;case C:case F:return S==j+"";case m:var Te=ht;case R:var Ze=St&n;if(Te||(Te=zt),S.size!=j.size&&!Ze)return!1;var Me=Se.get(S);if(Me)return Me==j;St|=o,Se.set(S,j);var yi=Ta(Te(S),Te(j),St,ce,Zt,Se);return Se.delete(S),yi;case U:if(Ye)return Ye.call(S)==Ye.call(j)}return!1}function hf(S,j,nt,St,ce,Zt){var Se=nt&n,Te=oo(S),Ze=Te.length,Me=oo(j),yi=Me.length;if(Ze!=yi&&!Se)return!1;for(var ki=Ze;ki--;){var ni=Te[ki];if(!(Se?ni in j:G.call(j,ni)))return!1}var bi=Zt.get(S);if(bi&&Zt.get(j))return bi==j;var ui=!0;Zt.set(S,j),Zt.set(j,S);for(var wn=Se;++ki<Ze;){ni=Te[ki];var Xr=S[ni],so=j[ni];if(St)var I2=Se?St(so,Xr,ni,j,S,Zt):St(Xr,so,ni,S,j,Zt);if(!(I2===void 0?Xr===so||ce(Xr,so,nt,St,Zt):I2)){ui=!1;break}wn||(wn=ni=="constructor")}if(ui&&!wn){var _h=S.constructor,kh=j.constructor;_h!=kh&&"constructor"in S&&"constructor"in j&&!(typeof _h=="function"&&_h instanceof _h&&typeof kh=="function"&&kh instanceof kh)&&(ui=!1)}return Zt.delete(S),Zt.delete(j),ui}function oo(S){return Ea(S,Na,cf)}function br(S,j){var nt=S.__data__;return df(j)?nt[typeof j=="string"?"string":"hash"]:nt.map}function Vr(S,j){var nt=_t(S,j);return of(nt)?nt:void 0}function Kr(S){var j=G.call(S,Gt),nt=S[Gt];try{S[Gt]=void 0;var St=!0}catch{}var ce=J.call(S);return St&&(j?S[Gt]=nt:delete S[Gt]),ce}var cf=E?function(S){return S==null?[]:(S=Object(S),gt(E(S),function(j){return I.call(S,j)}))}:mf,Mr=no;(P&&Mr(new P(new ArrayBuffer(1)))!=k||ot&&Mr(new ot)!=m||mt&&Mr(mt.resolve())!=y||Ht&&Mr(new Ht)!=R||Ut&&Mr(new Ut)!=H)&&(Mr=function(S){var j=no(S),nt=j==b?S.constructor:void 0,St=nt?Ti(nt):"";if(St)switch(St){case de:return k;case ri:return m;case Ie:return y;case pe:return R;case We:return H}return j});function uf(S,j){return j=j??s,!!j&&(typeof S=="number"||wt.test(S))&&S>-1&&S%1==0&&S<j}function df(S){var j=typeof S;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?S!=="__proto__":S===null}function ff(S){return!!L&&L in S}function pf(S){var j=S&&S.constructor,nt=typeof j=="function"&&j.prototype||B;return S===nt}function Eh(S){return J.call(S)}function Ti(S){if(S!=null){try{return A.call(S)}catch{}try{return S+""}catch{}}return""}function Th(S,j){return S===j||S!==S&&j!==j}var Ch=xh(function(){return arguments}())?xh:function(S){return Dr(S)&&G.call(S,"callee")&&!I.call(S,"callee")},ts=Array.isArray;function Ca(S){return S!=null&&Sa(S.length)&&!Sh(S)}var es=vt||vf;function gf(S,j){return wh(S,j)}function Sh(S){if(!Nh(S))return!1;var j=no(S);return j==d||j==p||j==h||j==x}function Sa(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=s}function Nh(S){var j=typeof S;return S!=null&&(j=="object"||j=="function")}function Dr(S){return S!=null&&typeof S=="object"}var Ah=D?at(D):sf;function Na(S){return Ca(S)?rf(S):af(S)}function mf(){return[]}function vf(){return!1}r.exports=gf}(aa,aa.exports)),aa.exports}var nh={},Nm;function QT(){if(Nm)return nh;Nm=1,Object.defineProperty(nh,"__esModule",{value:!0});const r=Tm(),t=Sm();var e;return function(i){function n(l={},h={},c=!1){typeof l!="object"&&(l={}),typeof h!="object"&&(h={});let u=r(h);c||(u=Object.keys(u).reduce((f,d)=>(u[d]!=null&&(f[d]=u[d]),f),{}));for(const f in l)l[f]!==void 0&&h[f]===void 0&&(u[f]=l[f]);return Object.keys(u).length>0?u:void 0}i.compose=n;function o(l={},h={}){typeof l!="object"&&(l={}),typeof h!="object"&&(h={});const c=Object.keys(l).concat(Object.keys(h)).reduce((u,f)=>(t(l[f],h[f])||(u[f]=h[f]===void 0?null:h[f]),u),{});return Object.keys(c).length>0?c:void 0}i.diff=o;function s(l={},h={}){l=l||{};const c=Object.keys(h).reduce((u,f)=>(h[f]!==l[f]&&l[f]!==void 0&&(u[f]=h[f]),u),{});return Object.keys(l).reduce((u,f)=>(l[f]!==h[f]&&h[f]===void 0&&(u[f]=null),u),c)}i.invert=s;function a(l,h,c=!1){if(typeof l!="object")return h;if(typeof h!="object")return;if(!c)return h;const u=Object.keys(h).reduce((f,d)=>(l[d]===void 0&&(f[d]=h[d]),f),{});return Object.keys(u).length>0?u:void 0}i.transform=a}(e||(e={})),nh.default=e,nh}var oh={},Am;function _m(){if(Am)return oh;Am=1,Object.defineProperty(oh,"__esModule",{value:!0});var r;return function(t){function e(i){return typeof i.delete=="number"?i.delete:typeof i.retain=="number"?i.retain:typeof i.retain=="object"&&i.retain!==null?1:typeof i.insert=="string"?i.insert.length:1}t.length=e}(r||(r={})),oh.default=r,oh}var sh={},km;function $T(){if(km)return sh;km=1,Object.defineProperty(sh,"__esModule",{value:!0});const r=_m();class t{constructor(i){this.ops=i,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(i){i||(i=1/0);const n=this.ops[this.index];if(n){const o=this.offset,s=r.default.length(n);if(i>=s-o?(i=s-o,this.index+=1,this.offset=0):this.offset+=i,typeof n.delete=="number")return{delete:i};{const a={};return n.attributes&&(a.attributes=n.attributes),typeof n.retain=="number"?a.retain=i:typeof n.retain=="object"&&n.retain!==null?a.retain=n.retain:typeof n.insert=="string"?a.insert=n.insert.substr(o,i):a.insert=n.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const i=this.ops[this.index];return i?typeof i.delete=="number"?"delete":typeof i.retain=="number"||typeof i.retain=="object"&&i.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const i=this.offset,n=this.index,o=this.next(),s=this.ops.slice(this.index);return this.offset=i,this.index=n,[o].concat(s)}}else return[]}}return sh.default=t,sh}var Lm;function tC(){return Lm||(Lm=1,function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=JT(),i=Tm(),n=Sm(),o=QT();t.AttributeMap=o.default;const s=_m();t.Op=s.default;const a=$T();t.OpIterator=a.default;const l="\0",h=(u,f)=>{if(typeof u!="object"||u===null)throw new Error(`cannot retain a ${typeof u}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const d=Object.keys(u)[0];if(!d||d!==Object.keys(f)[0])throw new Error(`embed types not matched: ${d} != ${Object.keys(f)[0]}`);return[d,u[d],f[d]]};class c{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,d){this.handlers[f]=d}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const d=this.handlers[f];if(!d)throw new Error(`no handlers for embed type "${f}"`);return d}insert(f,d){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(p.attributes=d),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,d){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(p.attributes=d),this.push(p)}push(f){let d=this.ops.length,p=this.ops[d-1];if(f=i(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[d-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(d-=1,p=this.ops[d-1],typeof p!="object"))return this.ops.unshift(f),this;if(n(f.attributes,p.attributes)){if(typeof f.insert=="string"&&typeof p.insert=="string")return this.ops[d-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[d-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const d=[],p=[];return this.forEach(m=>{(f(m)?d:p).push(m)}),[d,p]}reduce(f,d){return this.ops.reduce(f,d)}changeLength(){return this.reduce((f,d)=>d.insert?f+s.default.length(d):d.delete?f-d.delete:f,0)}length(){return this.reduce((f,d)=>f+s.default.length(d),0)}slice(f=0,d=1/0){const p=[],m=new a.default(this.ops);let v=0;for(;v<d&&m.hasNext();){let g;v<f?g=m.next(f-v):(g=m.next(d-v),p.push(g)),v+=s.default.length(g)}return new c(p)}compose(f){const d=new a.default(this.ops),p=new a.default(f.ops),m=[],v=p.peek();if(v!=null&&typeof v.retain=="number"&&v.attributes==null){let b=v.retain;for(;d.peekType()==="insert"&&d.peekLength()<=b;)b-=d.peekLength(),m.push(d.next());v.retain-b>0&&p.next(v.retain-b)}const g=new c(m);for(;d.hasNext()||p.hasNext();)if(p.peekType()==="insert")g.push(p.next());else if(d.peekType()==="delete")g.push(d.next());else{const b=Math.min(d.peekLength(),p.peekLength()),y=d.next(b),x=p.next(b);if(x.retain){const C={};if(typeof y.retain=="number")C.retain=typeof x.retain=="number"?b:x.retain;else if(typeof x.retain=="number")y.retain==null?C.insert=y.insert:C.retain=y.retain;else{const F=y.retain==null?"insert":"retain",[U,T,H]=h(y[F],x.retain),_=c.getHandler(U);C[F]={[U]:_.compose(T,H,F==="retain")}}const R=o.default.compose(y.attributes,x.attributes,typeof y.retain=="number");if(R&&(C.attributes=R),g.push(C),!p.hasNext()&&n(g.ops[g.ops.length-1],C)){const F=new c(d.rest());return g.concat(F).chop()}}else typeof x.delete=="number"&&(typeof y.retain=="number"||typeof y.retain=="object"&&y.retain!==null)&&g.push(x)}return g.chop()}concat(f){const d=new c(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d}diff(f,d){if(this.ops===f.ops)return new c;const p=[this,f].map(y=>y.map(x=>{if(x.insert!=null)return typeof x.insert=="string"?x.insert:l;const C=y===f?"on":"with";throw new Error("diff() called "+C+" non-document")}).join("")),m=new c,v=e(p[0],p[1],d,!0),g=new a.default(this.ops),b=new a.default(f.ops);return v.forEach(y=>{let x=y[1].length;for(;x>0;){let C=0;switch(y[0]){case e.INSERT:C=Math.min(b.peekLength(),x),m.push(b.next(C));break;case e.DELETE:C=Math.min(x,g.peekLength()),g.next(C),m.delete(C);break;case e.EQUAL:C=Math.min(g.peekLength(),b.peekLength(),x);const R=g.next(C),F=b.next(C);n(R.insert,F.insert)?m.retain(C,o.default.diff(R.attributes,F.attributes)):m.push(F).delete(C);break}x-=C}}),m.chop()}eachLine(f,d=`
`){const p=new a.default(this.ops);let m=new c,v=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const g=p.peek(),b=s.default.length(g)-p.peekLength(),y=typeof g.insert=="string"?g.insert.indexOf(d,b)-b:-1;if(y<0)m.push(p.next());else if(y>0)m.push(p.next(y));else{if(f(m,p.next(1).attributes||{},v)===!1)return;v+=1,m=new c}}m.length()>0&&f(m,{},v)}invert(f){const d=new c;return this.reduce((p,m)=>{if(m.insert)d.delete(s.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return d.retain(m.retain),p+m.retain;if(m.delete||typeof m.retain=="number"){const v=m.delete||m.retain;return f.slice(p,p+v).forEach(b=>{m.delete?d.push(b):m.retain&&m.attributes&&d.retain(s.default.length(b),o.default.invert(m.attributes,b.attributes))}),p+v}else if(typeof m.retain=="object"&&m.retain!==null){const v=f.slice(p,p+1),g=new a.default(v.ops).next(),[b,y,x]=h(m.retain,g.insert),C=c.getHandler(b);return d.retain({[b]:C.invert(y,x)},o.default.invert(m.attributes,g.attributes)),p+1}}return p},0),d.chop()}transform(f,d=!1){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);const p=f,m=new a.default(this.ops),v=new a.default(p.ops),g=new c;for(;m.hasNext()||v.hasNext();)if(m.peekType()==="insert"&&(d||v.peekType()!=="insert"))g.retain(s.default.length(m.next()));else if(v.peekType()==="insert")g.push(v.next());else{const b=Math.min(m.peekLength(),v.peekLength()),y=m.next(b),x=v.next(b);if(y.delete)continue;if(x.delete)g.push(x);else{const C=y.retain,R=x.retain;let F=typeof R=="object"&&R!==null?R:b;if(typeof C=="object"&&C!==null&&typeof R=="object"&&R!==null){const U=Object.keys(C)[0];if(U===Object.keys(R)[0]){const T=c.getHandler(U);T&&(F={[U]:T.transform(C[U],R[U],d)})}}g.retain(F,o.default.transform(y.attributes,x.attributes,d))}}return g.chop()}transformPosition(f,d=!1){d=!!d;const p=new a.default(this.ops);let m=0;for(;p.hasNext()&&m<=f;){const v=p.peekLength(),g=p.peekType();if(p.next(),g==="delete"){f-=Math.min(v,f-m);continue}else g==="insert"&&(m<f||!d)&&(f+=v);m+=v}return f}}c.Op=s.default,c.OpIterator=a.default,c.AttributeMap=o.default,c.handlers={},t.default=c,r.exports=c,r.exports.default=c}(rh,rh.exports)),rh.exports}var $i=tC();const Vt=Sn($i);class fr extends zi{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}fr.blotName="break",fr.tagName="BR";let pr=class extends ih{};const eC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ah(r){return r.replace(/[&<>"']/g,t=>eC[t])}const kr=class kr extends id{static compare(t,e){const i=kr.order.indexOf(t),n=kr.order.indexOf(e);return i>=0||n>=0?i-n:t===e?0:t<e?-1:1}formatAt(t,e,i,n){if(kr.compare(this.statics.blotName,i)<0&&this.scroll.query(i,Kt.BLOT)){const o=this.isolate(t,e);n&&o.wrap(i,n)}else super.formatAt(t,e,i,n)}optimize(t){if(super.optimize(t),this.parent instanceof kr&&kr.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};Nt(kr,"allowedChildren",[kr,fr,zi,pr]),Nt(kr,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Ar=kr;const Mm=1;class ci extends oa{constructor(){super(...arguments);Nt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Dm(this)),this.cache.delta}deleteAt(e,i){super.deleteAt(e,i),this.cache={}}formatAt(e,i,n,o){i<=0||(this.scroll.query(n,Kt.BLOCK)?e+i===this.length()&&this.format(n,o):super.formatAt(e,Math.min(i,this.length()-e-1),n,o),this.cache={})}insertAt(e,i,n){if(n!=null){super.insertAt(e,i,n),this.cache={};return}if(i.length===0)return;const o=i.split(`
`),s=o.shift();s.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let a=this;o.reduce((l,h)=>(a=a.split(l,!0),a.insertAt(0,h),h.length),e+s.length)}insertBefore(e,i){const{head:n}=this.children;super.insertBefore(e,i),n instanceof fr&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Mm),this.cache.length}moveChildren(e,i){super.moveChildren(e,i),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i&&(e===0||e>=this.length()-Mm)){const o=this.clone();return e===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const n=super.split(e,i);return this.cache={},n}}ci.blotName="block",ci.tagName="P",ci.defaultChild=fr,ci.allowedChildren=[fr,Ar,zi,pr];class tr extends zi{attach(){super.attach(),this.attributes=new th(this.domNode)}delta(){return new Vt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const i=this.scroll.query(t,Kt.BLOCK_ATTRIBUTE);i!=null&&this.attributes.attribute(i,e)}formatAt(t,e,i,n){this.format(i,n)}insertAt(t,e,i){if(i!=null){super.insertAt(t,e,i);return}const n=e.split(`
`),o=n.pop(),s=n.map(l=>{const h=this.scroll.create(ci.blotName);return h.insertAt(0,l),h}),a=this.split(t);s.forEach(l=>{this.parent.insertBefore(l,a)}),o&&this.parent.insertBefore(this.scroll.create("text",o),a)}}tr.scope=Kt.BLOCK_BLOT;function Dm(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(gi).reduce((e,i)=>i.length()===0?e:e.insert(i.value(),er(i,{},t)),new Vt).insert(`
`,er(r))}function er(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(t={...t,...r.formats()},e&&delete t["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?t:er(r.parent,t,e)}const rr=class rr extends zi{static value(){}constructor(t,e,i){super(t,e),this.selection=i,this.textNode=document.createTextNode(rr.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let i=this,n=0;for(;i!=null&&i.statics.scope!==Kt.BLOCK_BLOT;)n+=i.offset(i.parent),i=i.parent;i!=null&&(this.savedLength=rr.CONTENTS.length,i.optimize(),i.formatAt(n,rr.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof pr?this.prev:null,i=e?e.length():0,n=this.next instanceof pr?this.next:null,o=n?n.text:"",{textNode:s}=this,a=s.data.split(rr.CONTENTS).join("");s.data=rr.CONTENTS;let l;if(e)l=e,(a||n)&&(e.insertAt(e.length(),a+o),n&&n.remove());else if(n)l=n,n.insertAt(0,a);else{const h=document.createTextNode(a);l=this.scroll.create(h),this.parent.insertBefore(l,this)}if(this.remove(),t){const h=(f,d)=>e&&f===e.domNode?d:f===s?i+d-1:n&&f===n.domNode?i+a.length+d:null,c=h(t.start.node,t.start.offset),u=h(t.end.node,t.end.offset);if(c!==null&&u!==null)return{startNode:l.domNode,startOffset:c,endNode:l.domNode,endOffset:u}}return null}update(t,e){if(t.some(i=>i.type==="characterData"&&i.target===this.textNode)){const i=this.restore();i&&(e.range=i)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if(e.domNode.tagName==="A"){this.savedLength=rr.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}};Nt(rr,"blotName","cursor"),Nt(rr,"className","ql-cursor"),Nt(rr,"tagName","span"),Nt(rr,"CONTENTS","\uFEFF");let Ho=rr;var ad={exports:{}},Om;function iC(){return Om||(Om=1,function(r){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=!1));function n(l,h,c){this.fn=l,this.context=h,this.once=c||!1}function o(l,h,c,u,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new n(c,u||l,f),p=e?e+h:h;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],d]:l._events[p].push(d):(l._events[p]=d,l._eventsCount++),l}function s(l,h){--l._eventsCount===0?l._events=new i:delete l._events[h]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var h=[],c,u;if(this._eventsCount===0)return h;for(u in c=this._events)t.call(c,u)&&h.push(e?u.slice(1):u);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(c)):h},a.prototype.listeners=function(h){var c=e?e+h:h,u=this._events[c];if(!u)return[];if(u.fn)return[u.fn];for(var f=0,d=u.length,p=new Array(d);f<d;f++)p[f]=u[f].fn;return p},a.prototype.listenerCount=function(h){var c=e?e+h:h,u=this._events[c];return u?u.fn?1:u.length:0},a.prototype.emit=function(h,c,u,f,d,p){var m=e?e+h:h;if(!this._events[m])return!1;var v=this._events[m],g=arguments.length,b,y;if(v.fn){switch(v.once&&this.removeListener(h,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,u),!0;case 4:return v.fn.call(v.context,c,u,f),!0;case 5:return v.fn.call(v.context,c,u,f,d),!0;case 6:return v.fn.call(v.context,c,u,f,d,p),!0}for(y=1,b=new Array(g-1);y<g;y++)b[y-1]=arguments[y];v.fn.apply(v.context,b)}else{var x=v.length,C;for(y=0;y<x;y++)switch(v[y].once&&this.removeListener(h,v[y].fn,void 0,!0),g){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,c);break;case 3:v[y].fn.call(v[y].context,c,u);break;case 4:v[y].fn.call(v[y].context,c,u,f);break;default:if(!b)for(C=1,b=new Array(g-1);C<g;C++)b[C-1]=arguments[C];v[y].fn.apply(v[y].context,b)}}return!0},a.prototype.on=function(h,c,u){return o(this,h,c,u,!1)},a.prototype.once=function(h,c,u){return o(this,h,c,u,!0)},a.prototype.removeListener=function(h,c,u,f){var d=e?e+h:h;if(!this._events[d])return this;if(!c)return s(this,d),this;var p=this._events[d];if(p.fn)p.fn===c&&(!f||p.once)&&(!u||p.context===u)&&s(this,d);else{for(var m=0,v=[],g=p.length;m<g;m++)(p[m].fn!==c||f&&!p[m].once||u&&p[m].context!==u)&&v.push(p[m]);v.length?this._events[d]=v.length===1?v[0]:v:s(this,d)}return this},a.prototype.removeAllListeners=function(h){var c;return h?(c=e?e+h:h,this._events[c]&&s(this,c)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=e,a.EventEmitter=a,r.exports=a}(ad)),ad.exports}var rC=iC();const nC=Sn(rC),ld=new WeakMap,hd=["error","warn","log","info"];let cd="warn";function Rm(r){if(cd&&hd.indexOf(r)<=hd.indexOf(cd)){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];console[r](...e)}}function qr(r){return hd.reduce((t,e)=>(t[e]=Rm.bind(console,e,r),t),{})}qr.level=r=>{cd=r},Rm.level=qr.level;const ud=qr("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(r=>{document.addEventListener(r,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{const o=ld.get(n);o&&o.emitter&&o.emitter.handleDOM(...e)})})});class qt extends nC{constructor(){super(),this.domListeners={},this.on("error",ud.error)}emit(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return ud.log.call(ud,...e),super.emit(...e)}handleDOM(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(this.domListeners[t.type]||[]).forEach(o=>{let{node:s,handler:a}=o;(t.target===s||s.contains(t.target))&&a(t,...i)})}listenDOM(t,e,i){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:i})}}Nt(qt,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Nt(qt,"sources",{API:"api",SILENT:"silent",USER:"user"});const dd=qr("quill:selection");class to{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=e}}class oC{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new to(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,qt.sources.USER),1)}),this.emitter.on(qt.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const i=this.getNativeRange();i!=null&&i.start.node!==this.cursor.textNode&&this.emitter.once(qt.events.SCROLL_UPDATE,(n,o)=>{try{this.root.contains(i.start.node)&&this.root.contains(i.end.node)&&this.setNativeRange(i.start.node,i.start.offset,i.end.node,i.end.offset);const s=o.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(s?qt.sources.SILENT:n)}catch{}})}),this.emitter.on(qt.events.SCROLL_OPTIMIZE,(i,n)=>{if(n.range){const{startNode:o,startOffset:s,endNode:a,endOffset:l}=n.range;this.setNativeRange(o,s,a,l),this.update(qt.sources.SILENT)}}),this.update(qt.sources.SILENT)}handleComposition(){this.emitter.on(qt.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(qt.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(qt.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const i=this.getNativeRange();if(!(i==null||!i.native.collapsed||this.scroll.query(t,Kt.BLOCK))){if(i.start.node!==this.cursor.textNode){const n=this.scroll.find(i.start.node,!1);if(n==null)return;if(n instanceof gi){const o=n.split(i.start.offset);n.parent.insertBefore(this.cursor,o)}else n.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const i=this.scroll.length();t=Math.min(t,i-1),e=Math.min(t+e,i-1)-t;let n,[o,s]=this.scroll.leaf(t);if(o==null)return null;if(e>0&&s===o.length()){const[c]=this.scroll.leaf(t+1);if(c){const[u]=this.scroll.line(t),[f]=this.scroll.line(t+1);u===f&&(o=c,s=0)}}[n,s]=o.position(s,!0);const a=document.createRange();if(e>0)return a.setStart(n,s),[o,s]=this.scroll.leaf(t+e),o==null?null:([n,s]=o.position(s,!0),a.setEnd(n,s),a.getBoundingClientRect());let l="left",h;if(n instanceof Text){if(!n.data.length)return null;s<n.data.length?(a.setStart(n,s),a.setEnd(n,s+1)):(a.setStart(n,s-1),a.setEnd(n,s),l="right"),h=a.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;h=o.domNode.getBoundingClientRect(),s>0&&(l="right")}return{bottom:h.top+h.height,height:h.height,left:h[l],right:h[l],top:h.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const i=this.normalizeNative(e);return dd.info("getNativeRange",i),i}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();return e==null?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&fd(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const i=e.map(s=>{const[a,l]=s,h=this.scroll.find(a,!0),c=h.offset(this.scroll);return l===0?c:h instanceof gi?c+h.index(a,l):c+h.length()}),n=Math.min(Math.max(...i),this.scroll.length()-1),o=Math.min(n,...i);return new to(o,n-o)}normalizeNative(t){if(!fd(this.root,t.startContainer)||!t.collapsed&&!fd(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(i=>{let{node:n,offset:o}=i;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>o)n=n.childNodes[o],o=0;else if(n.childNodes.length===o)n=n.lastChild,n instanceof Text?o=n.data.length:n.childNodes.length>0?o=n.childNodes.length:o=n.childNodes.length+1;else break;i.node=n,i.offset=o}),e}rangeToNative(t){const e=this.scroll.length(),i=(n,o)=>{n=Math.min(e-1,n);const[s,a]=this.scroll.leaf(n);return s?s.position(a,o):[null,-1]};return[...i(t.index,!1),...i(t.index+t.length,!0)]}setNativeRange(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(dd.info("setNativeRange",t,e,i,n),t!=null&&(this.root.parentNode==null||t.parentNode==null||i.parentNode==null))return;const s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||o||t!==a.startContainer||e!==a.startOffset||i!==a.endContainer||n!==a.endOffset){t instanceof Element&&t.tagName==="BR"&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),i instanceof Element&&i.tagName==="BR"&&(n=Array.from(i.parentNode.childNodes).indexOf(i),i=i.parentNode);const l=document.createRange();l.setStart(t,e),l.setEnd(i,n),s.removeAllRanges(),s.addRange(l)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt.sources.API;if(typeof e=="string"&&(i=e,e=!1),dd.info("setRange",t),t!=null){const n=this.rangeToNative(t);this.setNativeRange(...n,e)}else this.setNativeRange(null);this.update(i)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qt.sources.USER;const e=this.lastRange,[i,n]=this.getRange();if(this.lastRange=i,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!td(e,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const o=[qt.events.SELECTION_CHANGE,zo(this.lastRange),zo(e),t];this.emitter.emit(qt.events.EDITOR_CHANGE,...o),t!==qt.sources.SILENT&&this.emitter.emit(...o)}}}function fd(r,t){try{t.parentNode}catch{return!1}return r.contains(t)}const sC=/^[ -~]*$/;class aC{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const i=Fm(t),n=new Vt;return hC(i.ops.slice()).reduce((s,a)=>{const l=$i.Op.length(a);let h=a.attributes||{},c=!1,u=!1;if(a.insert!=null){if(n.retain(l),typeof a.insert=="string"){const p=a.insert;u=!p.endsWith(`
`)&&(e<=s||!!this.scroll.descendant(tr,s)[0]),this.scroll.insertAt(s,p);const[m,v]=this.scroll.line(s);let g=mn({},er(m));if(m instanceof ci){const[b]=m.descendant(gi,v);b&&(g=mn(g,er(b)))}h=$i.AttributeMap.diff(g,h)||{}}else if(typeof a.insert=="object"){const p=Object.keys(a.insert)[0];if(p==null)return s;const m=this.scroll.query(p,Kt.INLINE)!=null;if(m)(e<=s||this.scroll.descendant(tr,s)[0])&&(u=!0);else if(s>0){const[v,g]=this.scroll.descendant(gi,s-1);v instanceof pr?v.value()[g]!==`
`&&(c=!0):v instanceof zi&&v.statics.scope===Kt.INLINE_BLOT&&(c=!0)}if(this.scroll.insertAt(s,p,a.insert[p]),m){const[v]=this.scroll.descendant(gi,s);if(v){const g=mn({},er(v));h=$i.AttributeMap.diff(g,h)||{}}}}e+=l}else if(n.push(a),a.retain!==null&&typeof a.retain=="object"){const p=Object.keys(a.retain)[0];if(p==null)return s;this.scroll.updateEmbedAt(s,p,a.retain[p])}Object.keys(h).forEach(p=>{this.scroll.formatAt(s,l,p,h[p])});const f=c?1:0,d=u?1:0;return e+=f+d,n.retain(f),n.delete(d),s+l+f+d},0),n.reduce((s,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(s,a.delete),s):s+$i.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(i)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update(new Vt().retain(t).delete(e))}formatLine(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(i).forEach(o=>{this.scroll.lines(t,Math.max(e,1)).forEach(s=>{s.format(o,i[o])})}),this.scroll.optimize();const n=new Vt().retain(t).retain(e,zo(i));return this.update(n)}formatText(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(i).forEach(o=>{this.scroll.formatAt(t,e,o,i[o])});const n=new Vt().retain(t).retain(e,zo(i));return this.update(n)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new Vt)}getFormat(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=[],n=[];e===0?this.scroll.path(t).forEach(a=>{const[l]=a;l instanceof ci?i.push(l):l instanceof gi&&n.push(l)}):(i=this.scroll.lines(t,e),n=this.scroll.descendants(gi,t,e));const[o,s]=[i,n].map(a=>{const l=a.shift();if(l==null)return{};let h=er(l);for(;Object.keys(h).length>0;){const c=a.shift();if(c==null)return h;h=lC(er(c),h)}return h});return{...o,...s}}getHTML(t,e){const[i,n]=this.scroll.line(t);if(i){const o=i.length();return i.length()>=n+e&&!(n===0&&e===o)?la(i,n,e,!0):la(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(i=>typeof i.insert=="string").map(i=>i.insert).join("")}insertContents(t,e){const i=Fm(e),n=new Vt().retain(t).concat(i);return this.scroll.insertContents(t,i),this.update(n)}insertEmbed(t,e,i){return this.scroll.insertAt(t,e,i),this.update(new Vt().retain(t).insert({[e]:i}))}insertText(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=e.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(t,e),Object.keys(i).forEach(n=>{this.scroll.formatAt(t,e.length,n,i[n])}),this.update(new Vt().retain(t).insert(e,zo(i)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==ci.blotName)return!1;const e=t;return e.children.length>1?!1:e.children.head instanceof fr}removeFormat(t,e){const i=this.getText(t,e),[n,o]=this.scroll.line(t+e);let s=0,a=new Vt;n!=null&&(s=n.length()-o,a=n.delta().slice(o,o+s-1).insert(`
`));const h=this.getContents(t,e+s).diff(new Vt().insert(i).concat(a)),c=new Vt().retain(t).concat(h);return this.applyDelta(c)}update(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const n=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(sC)&&this.scroll.find(e[0].target)){const o=this.scroll.find(e[0].target),s=er(o),a=o.offset(this.scroll),l=e[0].oldValue.replace(Ho.CONTENTS,""),h=new Vt().insert(l),c=new Vt().insert(o.value()),u=i&&{oldRange:Im(i.oldRange,-a),newRange:Im(i.newRange,-a)};t=new Vt().retain(a).concat(h.diff(c,u)).reduce((d,p)=>p.insert?d.insert(p.insert,s):d.push(p),new Vt),this.delta=n.compose(t)}else this.delta=this.getDelta(),(!t||!td(n.compose(t),this.delta))&&(t=n.diff(this.delta,i));return t}}function Go(r,t,e){if(r.length===0){const[d]=pd(e.pop());return t<=0?`</li></${d}>`:`</li></${d}>${Go([],t-1,e)}`}const[{child:i,offset:n,length:o,indent:s,type:a},...l]=r,[h,c]=pd(a);if(s>t)return e.push(a),s===t+1?`<${h}><li${c}>${la(i,n,o)}${Go(l,s,e)}`:`<${h}><li>${Go(r,t+1,e)}`;const u=e[e.length-1];if(s===t&&a===u)return`</li><li${c}>${la(i,n,o)}${Go(l,s,e)}`;const[f]=pd(e.pop());return`</li></${f}>${Go(r,t-1,e)}`}function la(r,t,e){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in r&&typeof r.html=="function")return r.html(t,e);if(r instanceof pr)return ah(r.value().slice(t,t+e)).replaceAll(" ","&nbsp;");if(r instanceof dr){if(r.statics.blotName==="list-container"){const h=[];return r.children.forEachAt(t,e,(c,u,f)=>{const d="formats"in c&&typeof c.formats=="function"?c.formats():{};h.push({child:c,offset:u,length:f,indent:d.indent||0,type:d.list})}),Go(h,-1,[])}const n=[];if(r.children.forEachAt(t,e,(h,c,u)=>{n.push(la(h,c,u))}),i||r.statics.blotName==="list")return n.join("");const{outerHTML:o,innerHTML:s}=r.domNode,[a,l]=o.split(`>${s}<`);return a==="<table"?`<table style="border: 1px solid #000;">${n.join("")}<${l}`:`${a}>${n.join("")}<${l}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function lC(r,t){return Object.keys(t).reduce((e,i)=>{if(r[i]==null)return e;const n=t[i];return n===r[i]?e[i]=n:Array.isArray(n)?n.indexOf(r[i])<0?e[i]=n.concat([r[i]]):e[i]=n:e[i]=[n,r[i]],e},{})}function pd(r){const t=r==="ordered"?"ol":"ul";switch(r){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function Fm(r){return r.reduce((t,e)=>{if(typeof e.insert=="string"){const i=e.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return t.insert(i,e.attributes)}return t.push(e)},new Vt)}function Im(r,t){let{index:e,length:i}=r;return new to(e+t,i)}function hC(r){const t=[];return r.forEach(e=>{typeof e.insert=="string"?e.insert.split(`
`).forEach((n,o)=>{o&&t.push({insert:`
`,attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})}):t.push(e)}),t}class gr{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=e}}Nt(gr,"DEFAULTS",{});const lh="\uFEFF";class gd extends zi{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(i=>{this.contentNode.appendChild(i)}),this.leftGuard=document.createTextNode(lh),this.rightGuard=document.createTextNode(lh),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e=null,i;const n=t.data.split(lh).join("");if(t===this.leftGuard)if(this.prev instanceof pr){const o=this.prev.length();this.prev.insertAt(o,n),e={startNode:this.prev.domNode,startOffset:o+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(i),this),e={startNode:i,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof pr?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(i),this.next),e={startNode:i,startOffset:n.length}));return t.data=lh,e}update(t,e){t.forEach(i=>{if(i.type==="characterData"&&(i.target===this.leftGuard||i.target===this.rightGuard)){const n=this.restore(i.target);n&&(e.range=n)}})}}class cC{constructor(t,e){Nt(this,"isComposing",!1);this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;e&&!(e instanceof gd)&&(this.emitter.emit(qt.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(qt.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(qt.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(qt.events.COMPOSITION_END,t),this.isComposing=!1}}const ba=class ba{constructor(t,e){Nt(this,"modules",{});this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}};Nt(ba,"DEFAULTS",{modules:{}}),Nt(ba,"themes",{default:ba});let Vo=ba;const uC=r=>r.parentElement||r.getRootNode().host||null,dC=r=>{const t=r.getBoundingClientRect(),e="offsetWidth"in r&&Math.abs(t.width)/r.offsetWidth||1,i="offsetHeight"in r&&Math.abs(t.height)/r.offsetHeight||1;return{top:t.top,right:t.left+r.clientWidth*e,bottom:t.top+r.clientHeight*i,left:t.left}},hh=r=>{const t=parseInt(r,10);return Number.isNaN(t)?0:t},Bm=(r,t,e,i,n,o)=>r<e&&t>i?0:r<e?-(e-r+n):t>i?t-r>i-e?r+n-e:t-i+o:0,fC=(r,t)=>{var o,s,a;const e=r.ownerDocument;let i=t,n=r;for(;n;){const l=n===e.body,h=l?{top:0,right:((o=window.visualViewport)==null?void 0:o.width)??e.documentElement.clientWidth,bottom:((s=window.visualViewport)==null?void 0:s.height)??e.documentElement.clientHeight,left:0}:dC(n),c=getComputedStyle(n),u=Bm(i.left,i.right,h.left,h.right,hh(c.scrollPaddingLeft),hh(c.scrollPaddingRight)),f=Bm(i.top,i.bottom,h.top,h.bottom,hh(c.scrollPaddingTop),hh(c.scrollPaddingBottom));if(u||f)if(l)(a=e.defaultView)==null||a.scrollBy(u,f);else{const{scrollLeft:d,scrollTop:p}=n;f&&(n.scrollTop+=f),u&&(n.scrollLeft+=u);const m=n.scrollLeft-d,v=n.scrollTop-p;i={left:i.left-m,top:i.top-v,right:i.right-m,bottom:i.bottom-v}}n=l||c.position==="fixed"?null:uC(n)}},pC=100,gC=["block","break","cursor","inline","scroll","text"],mC=(r,t,e)=>{const i=new Uo;return gC.forEach(n=>{const o=t.query(n);o&&i.register(o)}),r.forEach(n=>{let o=t.query(n);o||e.error(`Cannot register "${n}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;o;)if(i.register(o),o="blotName"in o?o.requiredContainer??null:null,s+=1,s>pC){e.error(`Cycle detected in registering blot requiredContainer: "${n}"`);break}}),i},Ko=qr("quill"),ch=new Uo;dr.uiClass="ql-ui";const yr=class yr{static debug(t){t===!0&&(t="log"),qr.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ld.get(t)||ch.find(t,e)}static import(t){return this.imports[t]==null&&Ko.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const t=arguments.length<=0?void 0:arguments[0],e=!!(!(arguments.length<=1)&&arguments[1]),i="attrName"in t?t.attrName:t.blotName;typeof i=="string"?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(n=>{this.register(n,t[n],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],i=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!i&&Ko.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!="boolean"&&e.blotName!=="abstract"&&ch.register(e),typeof e.register=="function"&&e.register(ch)}}constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=vC(t,e),this.container=this.options.container,this.container==null){Ko.error("Invalid Quill container",t);return}this.options.debug&&yr.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",ld.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new qt;const n=nd.blotName,o=this.options.registry.query(n);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new aC(this.scroll),this.selection=new oC(this.scroll,this.emitter),this.composition=new cC(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(qt.events.EDITOR_CHANGE,s=>{s===qt.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(qt.events.SCROLL_UPDATE,(s,a)=>{const l=this.selection.lastRange,[h]=this.selection.getRange(),c=l&&h?{oldRange:l,newRange:h}:void 0;mr.call(this,()=>this.editor.update(null,a,c),s)}),this.emitter.on(qt.events.SCROLL_EMBED_UPDATE,(s,a)=>{const l=this.selection.lastRange,[h]=this.selection.getRange(),c=l&&h?{oldRange:l,newRange:h}:void 0;mr.call(this,()=>{const u=new Vt().retain(s.offset(this)).retain({[s.statics.blotName]:a});return this.editor.update(u,[],c)},yr.sources.USER)}),i){const s=this.clipboard.convert({html:`${i}<p><br></p>`,text:`
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const i=t;t=document.createElement("div"),t.classList.add(i)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=Wr(t,e,i),mr.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt.sources.API;return mr.call(this,()=>{const n=this.getSelection(!0);let o=new Vt;if(n==null)return o;if(this.scroll.query(t,Kt.BLOCK))o=this.editor.formatLine(n.index,n.length,{[t]:e});else{if(n.length===0)return this.selection.format(t,e),o;o=this.editor.formatText(n.index,n.length,{[t]:e})}return this.setSelection(n,qt.sources.SILENT),o},i)}formatLine(t,e,i,n,o){let s;return[t,e,s,o]=Wr(t,e,i,n,o),mr.call(this,()=>this.editor.formatLine(t,e,s),o,t,0)}formatText(t,e,i,n,o){let s;return[t,e,s,o]=Wr(t,e,i,n,o),mr.call(this,()=>this.editor.formatText(t,e,s),o,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=null;if(typeof t=="number"?i=this.selection.getBounds(t,e):i=this.selection.getBounds(t.index,t.length),!i)return null;const n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,e]=Wr(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e??this.getLength()-t),[t,e]=Wr(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e??this.getLength()-t),[t,e]=Wr(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:yr.sources.API;return mr.call(this,()=>this.editor.insertEmbed(t,e,i),n,t)}insertText(t,e,i,n,o){let s;return[t,,s,o]=Wr(t,0,i,n,o),mr.call(this,()=>this.editor.insertText(t,e,s),o,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,i){return[t,e,,i]=Wr(t,e,i),mr.call(this,()=>this.editor.removeFormat(t,e),i,t)}scrollRectIntoView(t){fC(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qt.sources.API;return mr.call(this,()=>{t=new Vt(t);const i=this.getLength(),n=this.editor.deleteText(0,i),o=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return n.compose(o).compose(s)},e)}setSelection(t,e,i){t==null?this.selection.setRange(null,e||yr.sources.API):([t,e,,i]=Wr(t,e,i),this.selection.setRange(new to(Math.max(0,t),e),i),i!==qt.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qt.sources.API;const i=new Vt().insert(t);return this.setContents(i,e)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qt.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qt.sources.API;return mr.call(this,()=>(t=new Vt(t),this.editor.applyDelta(t)),e,!0)}};Nt(yr,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:ch,theme:"default"}),Nt(yr,"events",qt.events),Nt(yr,"sources",qt.sources),Nt(yr,"version","2.0.3"),Nt(yr,"imports",{delta:Vt,parchment:ZT,"core/module":gr,"core/theme":Vo});let Ct=yr;function zm(r){return typeof r=="string"?document.querySelector(r):r}function md(r){return Object.entries(r??{}).reduce((t,e)=>{let[i,n]=e;return{...t,[i]:n===!0?{}:n}},{})}function Pm(r){return Object.fromEntries(Object.entries(r).filter(t=>t[1]!==void 0))}function vC(r,t){const e=zm(r);if(!e)throw new Error("Invalid Quill container");const n=!t.theme||t.theme===Ct.DEFAULTS.theme?Vo:Ct.import(`themes/${t.theme}`);if(!n)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:o,...s}=Ct.DEFAULTS,{modules:a,...l}=n.DEFAULTS;let h=md(t.modules);h!=null&&h.toolbar&&h.toolbar.constructor!==Object&&(h={...h,toolbar:{container:h.toolbar}});const c=mn({},md(o),md(a),h),u={...s,...Pm(l),...Pm(t)};let f=t.registry;return f?t.formats&&Ko.warn('Ignoring "formats" option because "registry" is specified'):f=t.formats?mC(t.formats,u.registry,Ko):u.registry,{...u,registry:f,container:e,theme:n,modules:Object.entries(c).reduce((d,p)=>{let[m,v]=p;if(!v)return d;const g=Ct.import(`modules/${m}`);return g==null?(Ko.error(`Cannot load ${m} module. Are you sure you registered it?`),d):{...d,[m]:mn({},g.DEFAULTS||{},v)}},{}),bounds:zm(u.bounds)}}function mr(r,t,e,i){if(!this.isEnabled()&&t===qt.sources.USER&&!this.allowReadOnlyEdits)return new Vt;let n=e==null?null:this.getSelection();const o=this.editor.delta,s=r();if(n!=null&&(e===!0&&(e=n.index),i==null?n=Um(n,s,t):i!==0&&(n=Um(n,e,i,t)),this.setSelection(n,qt.sources.SILENT)),s.length()>0){const a=[qt.events.TEXT_CHANGE,s,o,t];this.emitter.emit(qt.events.EDITOR_CHANGE,...a),t!==qt.sources.SILENT&&this.emitter.emit(...a)}return s}function Wr(r,t,e,i,n){let o={};return typeof r.index=="number"&&typeof r.length=="number"?typeof t!="number"?(n=i,i=e,e=t,t=r.length,r=r.index):(t=r.length,r=r.index):typeof t!="number"&&(n=i,i=e,e=t,t=0),typeof e=="object"?(o=e,n=i):typeof e=="string"&&(i!=null?o[e]=i:n=e),n=n||qt.sources.API,[r,t,o,n]}function Um(r,t,e,i){const n=typeof e=="number"?e:0;if(r==null)return null;let o,s;return t&&typeof t.transformPosition=="function"?[o,s]=[r.index,r.index+r.length].map(a=>t.transformPosition(a,i!==qt.sources.USER)):[o,s]=[r.index,r.index+r.length].map(a=>a<t||a===t&&i===qt.sources.USER?a:n>=0?a+n:Math.max(t,a+n)),new to(o,s-o)}class eo extends eh{}function jm(r){return r instanceof ci||r instanceof tr}function qm(r){return typeof r.updateContent=="function"}class Xo extends nd{constructor(t,e,i){let{emitter:n}=i;super(t,e),this.emitter=n,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(qt.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(qt.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(qt.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[i,n]=this.line(t),[o]=this.line(t+e);if(super.deleteAt(t,e),o!=null&&i!==o&&n>0){if(i instanceof tr||o instanceof tr){this.optimize();return}const s=o.children.head instanceof fr?null:o.children.head;i.moveChildren(o,s),i.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,i,n){super.formatAt(t,e,i,n),this.optimize()}insertAt(t,e,i){if(t>=this.length())if(i==null||this.scroll.query(e,Kt.BLOCK)==null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n),i==null&&e.endsWith(`
`)?n.insertAt(0,e.slice(0,-1),i):n.insertAt(0,e,i)}else{const n=this.scroll.create(e,i);this.appendChild(n)}else super.insertAt(t,e,i);this.optimize()}insertBefore(t,e){if(t.statics.scope===Kt.INLINE_BLOT){const i=this.scroll.create(this.statics.defaultChild.blotName);i.appendChild(t),super.insertBefore(i,e)}else super.insertBefore(t,e)}insertContents(t,e){const i=this.deltaToRenderBlocks(e.concat(new Vt().insert(`
`))),n=i.pop();if(n==null)return;this.batchStart();const o=i.shift();if(o){const l=o.type==="block"&&(o.delta.length()===0||!this.descendant(tr,t)[0]&&t<this.length()),h=o.type==="block"?o.delta:new Vt().insert({[o.key]:o.value});vd(this,t,h);const c=o.type==="block"?1:0,u=t+h.length()+c;l&&this.insertAt(u-1,`
`);const f=er(this.line(t)[0]),d=$i.AttributeMap.diff(f,o.attributes)||{};Object.keys(d).forEach(p=>{this.formatAt(u-1,1,p,d[p])}),t=u}let[s,a]=this.children.find(t);if(i.length&&(s&&(s=s.split(a),a=0),i.forEach(l=>{if(l.type==="block"){const h=this.createBlock(l.attributes,s||void 0);vd(h,0,l.delta)}else{const h=this.create(l.key,l.value);this.insertBefore(h,s||void 0),Object.keys(l.attributes).forEach(c=>{h.format(c,l.attributes[c])})}})),n.type==="block"&&n.delta.length()){const l=s?s.offset(s.scroll)+a:this.length();vd(this,l,n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[i,n]=e;return i instanceof gi?[i,n]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(jm,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const i=(n,o,s)=>{let a=[],l=s;return n.children.forEachAt(o,s,(h,c,u)=>{jm(h)?a.push(h):h instanceof eh&&(a=a.concat(i(h,c,l))),l-=u}),a};return i(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(qt.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let e=qt.sources.USER;typeof t=="string"&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(i=>{let{target:n}=i;const o=this.find(n,!0);return o&&!qm(o)}),t.length>0&&this.emitter.emit(qt.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(qt.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,i){const[n]=this.descendant(o=>o instanceof tr,t);n&&n.statics.blotName===e&&qm(n)&&n.updateContent(i)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let i=new Vt;return t.forEach(n=>{const o=n==null?void 0:n.insert;if(o)if(typeof o=="string"){const s=o.split(`
`);s.slice(0,-1).forEach(l=>{i.insert(l,n.attributes),e.push({type:"block",delta:i,attributes:n.attributes??{}}),i=new Vt});const a=s[s.length-1];a&&i.insert(a,n.attributes)}else{const s=Object.keys(o)[0];if(!s)return;this.query(s,Kt.INLINE)?i.push(n):(i.length()&&e.push({type:"block",delta:i,attributes:{}}),i=new Vt,e.push({type:"blockEmbed",key:s,value:o[s],attributes:n.attributes??{}}))}}),i.length()&&e.push({type:"block",delta:i,attributes:{}}),e}createBlock(t,e){let i;const n={};Object.entries(t).forEach(a=>{let[l,h]=a;this.query(l,Kt.BLOCK&Kt.BLOT)!=null?i=l:n[l]=h});const o=this.create(i||this.statics.defaultChild.blotName,i?t[i]:void 0);this.insertBefore(o,e||void 0);const s=o.length();return Object.entries(n).forEach(a=>{let[l,h]=a;o.formatAt(0,s,l,h)}),o}}Nt(Xo,"blotName","scroll"),Nt(Xo,"className","ql-editor"),Nt(Xo,"tagName","DIV"),Nt(Xo,"defaultChild",ci),Nt(Xo,"allowedChildren",[ci,tr,eo]);function vd(r,t,e){e.reduce((i,n)=>{const o=$i.Op.length(n);let s=n.attributes||{};if(n.insert!=null){if(typeof n.insert=="string"){const a=n.insert;r.insertAt(i,a);const[l]=r.descendant(gi,i),h=er(l);s=$i.AttributeMap.diff(h,s)||{}}else if(typeof n.insert=="object"){const a=Object.keys(n.insert)[0];if(a==null)return i;if(r.insertAt(i,a,n.insert[a]),r.scroll.query(a,Kt.INLINE)!=null){const[h]=r.descendant(gi,i),c=er(h);s=$i.AttributeMap.diff(c,s)||{}}}}return Object.keys(s).forEach(a=>{r.formatAt(i,o,a,s[a])}),i+o},t)}const yd={scope:Kt.BLOCK,whitelist:["right","center","justify"]},yC=new Nr("align","align",yd),Wm=new ur("align","ql-align",yd),Hm=new vn("align","text-align",yd);class Gm extends vn{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(n=>`00${parseInt(n,10).toString(16)}`.slice(-2)).join("")}`):e}}const bC=new ur("color","ql-color",{scope:Kt.INLINE}),bd=new Gm("color","color",{scope:Kt.INLINE}),xC=new ur("background","ql-bg",{scope:Kt.INLINE}),xd=new Gm("background","background-color",{scope:Kt.INLINE});class io extends eo{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(i=>i.length()<=1?"":i.domNode.innerText).join(`
`).slice(t,t+e)}html(t,e){return`<pre>
${ah(this.code(t,e))}
</pre>`}}class mi extends ci{static register(){Ct.register(io)}}Nt(mi,"TAB","  ");class wd extends Ar{}wd.blotName="code",wd.tagName="CODE",mi.blotName="code-block",mi.className="ql-code-block",mi.tagName="DIV",io.blotName="code-block-container",io.className="ql-code-block-container",io.tagName="DIV",io.allowedChildren=[mi],mi.allowedChildren=[pr,fr,Ho],mi.requiredContainer=io;const Ed={scope:Kt.BLOCK,whitelist:["rtl"]},Vm=new Nr("direction","dir",Ed),Km=new ur("direction","ql-direction",Ed),Xm=new vn("direction","direction",Ed),Ym={scope:Kt.INLINE,whitelist:["serif","monospace"]},Zm=new ur("font","ql-font",Ym);class wC extends vn{value(t){return super.value(t).replace(/["']/g,"")}}const Jm=new wC("font","font-family",Ym),Qm=new ur("size","ql-size",{scope:Kt.INLINE,whitelist:["small","large","huge"]}),$m=new vn("size","font-size",{scope:Kt.INLINE,whitelist:["10px","18px","32px"]}),EC=qr("quill:keyboard"),TC=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class uh extends gr{static match(t,e){return["altKey","ctrlKey","metaKey","shiftKey"].some(i=>!!e[i]!==t[i]&&e[i]!==null)?!1:e.key===t.key||e.key===t.which}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(i=>{this.options.bindings[i]&&this.addBinding(this.options.bindings[i])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=SC(t);if(n==null){EC.warn("Attempted to add invalid keyboard binding",n);return}typeof e=="function"&&(e={handler:e}),typeof i=="function"&&(i={handler:i}),(Array.isArray(n.key)?n.key:[n.key]).forEach(s=>{const a={...n,key:s,...e,...i};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const n=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(g=>uh.match(t,g));if(n.length===0)return;const o=Ct.find(t.target,!0);if(o&&o.scroll!==this.quill.scroll)return;const s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;const[a,l]=this.quill.getLine(s.index),[h,c]=this.quill.getLeaf(s.index),[u,f]=s.length===0?[h,c]:this.quill.getLeaf(s.index+s.length),d=h instanceof ih?h.value().slice(0,c):"",p=u instanceof ih?u.value().slice(f):"",m={collapsed:s.length===0,empty:s.length===0&&a.length()<=1,format:this.quill.getFormat(s),line:a,offset:l,prefix:d,suffix:p,event:t};n.some(g=>{if(g.collapsed!=null&&g.collapsed!==m.collapsed||g.empty!=null&&g.empty!==m.empty||g.offset!=null&&g.offset!==m.offset)return!1;if(Array.isArray(g.format)){if(g.format.every(b=>m.format[b]==null))return!1}else if(typeof g.format=="object"&&!Object.keys(g.format).every(b=>g.format[b]===!0?m.format[b]!=null:g.format[b]===!1?m.format[b]==null:td(g.format[b],m.format[b])))return!1;return g.prefix!=null&&!g.prefix.test(m.prefix)||g.suffix!=null&&!g.suffix.test(m.suffix)?!1:g.handler.call(this,s,m,g)!==!0})&&t.preventDefault()})}handleBackspace(t,e){const i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let n={};const[o]=this.quill.getLine(t.index);let s=new Vt().retain(t.index-i).delete(i);if(e.offset===0){const[a]=this.quill.getLine(t.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const h=o.formats(),c=this.quill.getFormat(t.index-1,1);if(n=$i.AttributeMap.diff(h,c)||{},Object.keys(n).length>0){const u=new Vt().retain(t.index+o.length()-2).retain(1,n);s=s.compose(u)}}}this.quill.updateContents(s,Ct.sources.USER),this.quill.focus()}handleDelete(t,e){const i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-i)return;let n={};const[o]=this.quill.getLine(t.index);let s=new Vt().retain(t.index).delete(i);if(e.offset>=o.length()-1){const[a]=this.quill.getLine(t.index+1);if(a){const l=o.formats(),h=this.quill.getFormat(t.index,1);n=$i.AttributeMap.diff(l,h)||{},Object.keys(n).length>0&&(s=s.retain(a.length()-1).retain(1,n))}}this.quill.updateContents(s,Ct.sources.USER),this.quill.focus()}handleDeleteRange(t){Cd({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const i=Object.keys(e.format).reduce((o,s)=>(this.quill.scroll.query(s,Kt.BLOCK)&&!Array.isArray(e.format[s])&&(o[s]=e.format[s]),o),{}),n=new Vt().retain(t.index).delete(t.length).insert(`
`,i);this.quill.updateContents(n,Ct.sources.USER),this.quill.setSelection(t.index+1,Ct.sources.SILENT),this.quill.focus()}}const CC={bindings:{bold:Td("bold"),italic:Td("italic"),underline:Td("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",Ct.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",Ct.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,t){t.format.indent!=null?this.quill.format("indent","-1",Ct.sources.USER):t.format.list!=null&&this.quill.format("list",!1,Ct.sources.USER)}},"indent code-block":t2(!0),"outdent code-block":t2(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,Ct.sources.USER)}},tab:{key:"Tab",handler(r,t){if(t.format.table)return!0;this.quill.history.cutoff();const e=new Vt().retain(r.index).delete(r.length).insert("	");return this.quill.updateContents(e,Ct.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,Ct.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Ct.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,t){const e={list:!1};t.format.indent&&(e.indent=!1),this.quill.formatLine(r.index,r.length,e,Ct.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[t,e]=this.quill.getLine(r.index),i={...t.formats(),list:"checked"},n=new Vt().retain(r.index).insert(`
`,i).retain(t.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,Ct.sources.USER),this.quill.setSelection(r.index+1,Ct.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,t){const[e,i]=this.quill.getLine(r.index),n=new Vt().retain(r.index).insert(`
`,t.format).retain(e.length()-i-1).retain(1,{header:null});this.quill.updateContents(n,Ct.sources.USER),this.quill.setSelection(r.index+1,Ct.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const t=this.quill.getModule("table");if(t){const[e,i,n,o]=t.getTable(r),s=NC(e,i,n,o);if(s==null)return;let a=e.offset();if(s<0){const l=new Vt().retain(a).insert(`
`);this.quill.updateContents(l,Ct.sources.USER),this.quill.setSelection(r.index+1,r.length,Ct.sources.SILENT)}else if(s>0){a+=e.length();const l=new Vt().retain(a).insert(`
`);this.quill.updateContents(l,Ct.sources.USER),this.quill.setSelection(a,Ct.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,t){const{event:e,line:i}=t,n=i.offset(this.quill.scroll);e.shiftKey?this.quill.setSelection(n-1,Ct.sources.USER):this.quill.setSelection(n+i.length(),Ct.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,t){if(this.quill.scroll.query("list")==null)return!0;const{length:e}=t.prefix,[i,n]=this.quill.getLine(r.index);if(n>e)return!0;let o;switch(t.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(r.index," ",Ct.sources.USER),this.quill.history.cutoff();const s=new Vt().retain(r.index-n).delete(e+1).retain(i.length()-2-n).retain(1,{list:o});return this.quill.updateContents(s,Ct.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-e,Ct.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[t,e]=this.quill.getLine(r.index);let i=2,n=t;for(;n!=null&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,i-=1,i<=0){const o=new Vt().retain(r.index+t.length()-e-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Ct.sources.USER),this.quill.setSelection(r.index-1,Ct.sources.SILENT),!1}return!0}},"embed left":dh("ArrowLeft",!1),"embed left shift":dh("ArrowLeft",!0),"embed right":dh("ArrowRight",!1),"embed right shift":dh("ArrowRight",!0),"table down":e2(!1),"table up":e2(!0)}};uh.DEFAULTS=CC;function t2(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(t,e){let{event:i}=e;const n=this.quill.scroll.query("code-block"),{TAB:o}=n;if(t.length===0&&!i.shiftKey){this.quill.insertText(t.index,o,Ct.sources.USER),this.quill.setSelection(t.index+o.length,Ct.sources.SILENT);return}const s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:a,length:l}=t;s.forEach((h,c)=>{r?(h.insertAt(0,o),c===0?a+=o.length:l+=o.length):h.domNode.textContent.startsWith(o)&&(h.deleteAt(0,o.length),c===0?a-=o.length:l-=o.length)}),this.quill.update(Ct.sources.USER),this.quill.setSelection(a,l,Ct.sources.SILENT)}}}function dh(r,t){return{key:r,shiftKey:t,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(i){let{index:n}=i;r==="ArrowRight"&&(n+=i.length+1);const[o]=this.quill.getLeaf(n);return o instanceof zi?(r==="ArrowLeft"?t?this.quill.setSelection(i.index-1,i.length+1,Ct.sources.USER):this.quill.setSelection(i.index-1,Ct.sources.USER):t?this.quill.setSelection(i.index,i.length+1,Ct.sources.USER):this.quill.setSelection(i.index+i.length+1,Ct.sources.USER),!1):!0}}}function Td(r){return{key:r[0],shortKey:!0,handler(t,e){this.quill.format(r,!e.format[r],Ct.sources.USER)}}}function e2(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,e){const i=r?"prev":"next",n=e.line,o=n.parent[i];if(o!=null){if(o.statics.blotName==="table-row"){let s=o.children.head,a=n;for(;a.prev!=null;)a=a.prev,s=s.next;const l=s.offset(this.quill.scroll)+Math.min(e.offset,s.length()-1);this.quill.setSelection(l,0,Ct.sources.USER)}}else{const s=n.table()[i];s!=null&&(r?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,Ct.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,Ct.sources.USER))}return!1}}}function SC(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=zo(r);else return null;return r.shortKey&&(r[TC]=r.shortKey,delete r.shortKey),r}function Cd(r){let{quill:t,range:e}=r;const i=t.getLines(e);let n={};if(i.length>1){const o=i[0].formats(),s=i[i.length-1].formats();n=$i.AttributeMap.diff(s,o)||{}}t.deleteText(e,Ct.sources.USER),Object.keys(n).length>0&&t.formatLine(e.index,1,n,Ct.sources.USER),t.setSelection(e.index,Ct.sources.SILENT)}function NC(r,t,e,i){return t.prev==null&&t.next==null?e.prev==null&&e.next==null?i===0?-1:1:e.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const AC=/font-weight:\s*normal/,_C=["P","OL","UL"],i2=r=>r&&_C.includes(r.tagName),kC=r=>{Array.from(r.querySelectorAll("br")).filter(t=>i2(t.previousElementSibling)&&i2(t.nextElementSibling)).forEach(t=>{var e;(e=t.parentNode)==null||e.removeChild(t)})},LC=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var e;return(e=t.getAttribute("style"))==null?void 0:e.match(AC)}).forEach(t=>{var i;const e=r.createDocumentFragment();e.append(...t.childNodes),(i=t.parentNode)==null||i.replaceChild(e,t)})};function MC(r){r.querySelector('[id^="docs-internal-guid-"]')&&(LC(r),kC(r))}const DC=/\bmso-list:[^;]*ignore/i,OC=/\bmso-list:[^;]*\bl(\d+)/i,RC=/\bmso-list:[^;]*\blevel(\d+)/i,FC=(r,t)=>{const e=r.getAttribute("style"),i=e==null?void 0:e.match(OC);if(!i)return null;const n=Number(i[1]),o=e==null?void 0:e.match(RC),s=o?Number(o[1]):1,a=new RegExp(`@list l${n}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=t.match(a),h=l&&l[1]==="bullet"?"bullet":"ordered";return{id:n,indent:s,type:h,element:r}},IC=r=>{var s,a;const t=Array.from(r.querySelectorAll("[style*=mso-list]")),e=[],i=[];t.forEach(l=>{(l.getAttribute("style")||"").match(DC)?e.push(l):i.push(l)}),e.forEach(l=>{var h;return(h=l.parentNode)==null?void 0:h.removeChild(l)});const n=r.documentElement.innerHTML,o=i.map(l=>FC(l,n)).filter(l=>l);for(;o.length;){const l=[];let h=o.shift();for(;h;)l.push(h),h=o.length&&((s=o[0])==null?void 0:s.element)===h.element.nextElementSibling&&o[0].id===h.id?o.shift():null;const c=document.createElement("ul");l.forEach(d=>{const p=document.createElement("li");p.setAttribute("data-list",d.type),d.indent>1&&p.setAttribute("class",`ql-indent-${d.indent-1}`),p.innerHTML=d.element.innerHTML,c.appendChild(p)});const u=(a=l[0])==null?void 0:a.element,{parentNode:f}=u??{};u&&(f==null||f.replaceChild(c,u)),l.slice(1).forEach(d=>{let{element:p}=d;f==null||f.removeChild(p)})}};function BC(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&IC(r)}const zC=[BC,MC],PC=r=>{r.documentElement&&zC.forEach(t=>{t(r)})},UC=qr("quill:clipboard"),jC=[[Node.TEXT_NODE,$C],[Node.TEXT_NODE,s2],["br",VC],[Node.ELEMENT_NODE,s2],[Node.ELEMENT_NODE,GC],[Node.ELEMENT_NODE,HC],[Node.ELEMENT_NODE,JC],["li",YC],["ol, ul",ZC],["pre",KC],["tr",QC],["b",Nd("bold")],["i",Nd("italic")],["strike",Nd("strike")],["style",XC]],qC=[yC,Vm].reduce((r,t)=>(r[t.keyName]=t,r),{}),r2=[Hm,xd,bd,Xm,Jm,$m].reduce((r,t)=>(r[t.keyName]=t,r),{});class n2 extends gr{constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",i=>this.onCaptureCopy(i,!1)),this.quill.root.addEventListener("cut",i=>this.onCaptureCopy(i,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],jC.concat(this.options.matchers??[]).forEach(i=>{let[n,o]=i;this.addMatcher(n,o)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:i}=t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n[mi.blotName])return new Vt().insert(i||"",{[mi.blotName]:n[mi.blotName]});if(!e)return new Vt().insert(i||"",n);const o=this.convertHTML(e);return ha(o,`
`)&&(o.ops[o.ops.length-1].attributes==null||n.table)?o.compose(new Vt().retain(o.length()-1).delete(1)):o}normalizeHTML(t){PC(t)}convertHTML(t){const e=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(e);const i=e.body,n=new WeakMap,[o,s]=this.prepareMatching(i,n);return Sd(this.quill.scroll,i,o,s,n)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ct.sources.API;if(typeof t=="string"){const n=this.convert({html:t,text:""});this.quill.setContents(n,e),this.quill.setSelection(0,Ct.sources.SILENT)}else{const n=this.convert({html:e,text:""});this.quill.updateContents(new Vt().retain(t).concat(n),i),this.quill.setSelection(t+n.length(),Ct.sources.SILENT)}}onCaptureCopy(t){var s,a;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[i]=this.quill.selection.getRange();if(i==null)return;const{html:n,text:o}=this.onCopy(i,e);(s=t.clipboardData)==null||s.setData("text/plain",o),(a=t.clipboardData)==null||a.setData("text/html",n),e&&Cd({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(e=>e[0]!=="#").join(`
`)}onCapturePaste(t){var s,a,l,h,c;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(e==null)return;const i=(s=t.clipboardData)==null?void 0:s.getData("text/html");let n=(a=t.clipboardData)==null?void 0:a.getData("text/plain");if(!i&&!n){const u=(l=t.clipboardData)==null?void 0:l.getData("text/uri-list");u&&(n=this.normalizeURIList(u))}const o=Array.from(((h=t.clipboardData)==null?void 0:h.files)||[]);if(!i&&o.length>0){this.quill.uploader.upload(e,o);return}if(i&&o.length>0){const u=new DOMParser().parseFromString(i,"text/html");if(u.body.childElementCount===1&&((c=u.body.firstElementChild)==null?void 0:c.tagName)==="IMG"){this.quill.uploader.upload(e,o);return}}this.onPaste(e,{html:i,text:n})}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:n}=e;const o=this.quill.getFormat(t.index),s=this.convert({text:i,html:n},o);UC.log("onPaste",s,{text:i,html:n});const a=new Vt().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(a,Ct.sources.USER),this.quill.setSelection(a.length()-t.length,Ct.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const i=[],n=[];return this.matchers.forEach(o=>{const[s,a]=o;switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:i.push(a);break;default:Array.from(t.querySelectorAll(s)).forEach(l=>{if(e.has(l)){const h=e.get(l);h==null||h.push(a)}else e.set(l,[a])});break}}),[i,n]}}Nt(n2,"DEFAULTS",{matchers:[]});function ro(r,t,e,i){return i.query(t)?r.reduce((n,o)=>{if(!o.insert)return n;if(o.attributes&&o.attributes[t])return n.push(o);const s=e?{[t]:e}:{};return n.insert(o.insert,{...s,...o.attributes})},new Vt):r}function ha(r,t){let e="";for(let i=r.ops.length-1;i>=0&&e.length<t.length;--i){const n=r.ops[i];if(typeof n.insert!="string")break;e=n.insert+e}return e.slice(-1*t.length)===t}function yn(r,t){if(!(r instanceof Element))return!1;const e=t.query(r);return e&&e.prototype instanceof zi?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(r.tagName.toLowerCase())}function WC(r,t){return r.previousElementSibling&&r.nextElementSibling&&!yn(r.previousElementSibling,t)&&!yn(r.nextElementSibling,t)}const fh=new WeakMap;function o2(r){return r==null?!1:(fh.has(r)||(r.tagName==="PRE"?fh.set(r,!0):fh.set(r,o2(r.parentNode))),fh.get(r))}function Sd(r,t,e,i,n){return t.nodeType===t.TEXT_NODE?i.reduce((o,s)=>s(t,o,r),new Vt):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((o,s)=>{let a=Sd(r,s,e,i,n);return s.nodeType===t.ELEMENT_NODE&&(a=e.reduce((l,h)=>h(s,l,r),a),a=(n.get(s)||[]).reduce((l,h)=>h(s,l,r),a)),o.concat(a)},new Vt):new Vt}function Nd(r){return(t,e,i)=>ro(e,r,!0,i)}function HC(r,t,e){const i=Nr.keys(r),n=ur.keys(r),o=vn.keys(r),s={};return i.concat(n).concat(o).forEach(a=>{let l=e.query(a,Kt.ATTRIBUTE);l!=null&&(s[l.attrName]=l.value(r),s[l.attrName])||(l=qC[a],l!=null&&(l.attrName===a||l.keyName===a)&&(s[l.attrName]=l.value(r)||void 0),l=r2[a],l!=null&&(l.attrName===a||l.keyName===a)&&(l=r2[a],s[l.attrName]=l.value(r)||void 0))}),Object.entries(s).reduce((a,l)=>{let[h,c]=l;return ro(a,h,c,e)},t)}function GC(r,t,e){const i=e.query(r);if(i==null)return t;if(i.prototype instanceof zi){const n={},o=i.value(r);if(o!=null)return n[i.blotName]=o,new Vt().insert(n,i.formats(r,e))}else if(i.prototype instanceof oa&&!ha(t,`
`)&&t.insert(`
`),"blotName"in i&&"formats"in i&&typeof i.formats=="function")return ro(t,i.blotName,i.formats(r,e),e);return t}function VC(r,t){return ha(t,`
`)||t.insert(`
`),t}function KC(r,t,e){const i=e.query("code-block"),n=i&&"formats"in i&&typeof i.formats=="function"?i.formats(r,e):!0;return ro(t,"code-block",n,e)}function XC(){return new Vt}function YC(r,t,e){const i=e.query(r);if(i==null||i.blotName!=="list"||!ha(t,`
`))return t;let n=-1,o=r.parentNode;for(;o!=null;)["OL","UL"].includes(o.tagName)&&(n+=1),o=o.parentNode;return n<=0?t:t.reduce((s,a)=>a.insert?a.attributes&&typeof a.attributes.indent=="number"?s.push(a):s.insert(a.insert,{indent:n,...a.attributes||{}}):s,new Vt)}function ZC(r,t,e){const i=r;let n=i.tagName==="OL"?"ordered":"bullet";const o=i.getAttribute("data-checked");return o&&(n=o==="true"?"checked":"unchecked"),ro(t,"list",n,e)}function s2(r,t,e){if(!ha(t,`
`)){if(yn(r,e)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return t.insert(`
`);if(t.length()>0&&r.nextSibling){let i=r.nextSibling;for(;i!=null;){if(yn(i,e))return t.insert(`
`);const n=e.query(i);if(n&&n.prototype instanceof tr)return t.insert(`
`);i=i.firstChild}}}return t}function JC(r,t,e){var o;const i={},n=r.style||{};return n.fontStyle==="italic"&&(i.italic=!0),n.textDecoration==="underline"&&(i.underline=!0),n.textDecoration==="line-through"&&(i.strike=!0),((o=n.fontWeight)!=null&&o.startsWith("bold")||parseInt(n.fontWeight,10)>=700)&&(i.bold=!0),t=Object.entries(i).reduce((s,a)=>{let[l,h]=a;return ro(s,l,h,e)},t),parseFloat(n.textIndent||0)>0?new Vt().insert("	").concat(t):t}function QC(r,t,e){var n,o;const i=((n=r.parentElement)==null?void 0:n.tagName)==="TABLE"?r.parentElement:(o=r.parentElement)==null?void 0:o.parentElement;if(i!=null){const a=Array.from(i.querySelectorAll("tr")).indexOf(r)+1;return ro(t,"table",a,e)}return t}function $C(r,t,e){var n;let i=r.data;if(((n=r.parentElement)==null?void 0:n.tagName)==="O:P")return t.insert(i.trim());if(!o2(r)){if(i.trim().length===0&&i.includes(`
`)&&!WC(r,e))return t;i=i.replace(/[^\S\u00a0]/g," "),i=i.replace(/ {2,}/g," "),(r.previousSibling==null&&r.parentElement!=null&&yn(r.parentElement,e)||r.previousSibling instanceof Element&&yn(r.previousSibling,e))&&(i=i.replace(/^ /,"")),(r.nextSibling==null&&r.parentElement!=null&&yn(r.parentElement,e)||r.nextSibling instanceof Element&&yn(r.nextSibling,e))&&(i=i.replace(/ $/,"")),i=i.replaceAll(" "," ")}return t.insert(i)}class a2 extends gr{constructor(e,i){super(e,i);Nt(this,"lastRecorded",0);Nt(this,"ignoreChange",!1);Nt(this,"stack",{undo:[],redo:[]});Nt(this,"currentRange",null);this.quill.on(Ct.events.EDITOR_CHANGE,(n,o,s,a)=>{n===Ct.events.SELECTION_CHANGE?o&&a!==Ct.sources.SILENT&&(this.currentRange=o):n===Ct.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||a===Ct.sources.USER?this.record(o,s):this.transform(o)),this.currentRange=Ad(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",n=>{n.inputType==="historyUndo"?(this.undo(),n.preventDefault()):n.inputType==="historyRedo"&&(this.redo(),n.preventDefault())})}change(e,i){if(this.stack[e].length===0)return;const n=this.stack[e].pop();if(!n)return;const o=this.quill.getContents(),s=n.delta.invert(o);this.stack[i].push({delta:s,range:Ad(n.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,Ct.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,i){if(e.ops.length===0)return;this.stack.redo=[];let n=e.invert(i),o=this.currentRange;const s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(n=n.compose(a.delta),o=a.range)}else this.lastRecorded=s;n.length()!==0&&(this.stack.undo.push({delta:n,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){l2(this.stack.undo,e),l2(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,Ct.sources.USER);else{const i=eS(this.quill.scroll,e.delta);this.quill.setSelection(i,Ct.sources.USER)}}}Nt(a2,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function l2(r,t){let e=t;for(let i=r.length-1;i>=0;i-=1){const n=r[i];r[i]={delta:e.transform(n.delta,!0),range:n.range&&Ad(n.range,e)},e=n.delta.transform(e),r[i].delta.length()===0&&r.splice(i,1)}}function tS(r,t){const e=t.ops[t.ops.length-1];return e==null?!1:e.insert!=null?typeof e.insert=="string"&&e.insert.endsWith(`
`):e.attributes!=null?Object.keys(e.attributes).some(i=>r.query(i,Kt.BLOCK)!=null):!1}function eS(r,t){const e=t.reduce((n,o)=>n+(o.delete||0),0);let i=t.length()-e;return tS(r,t)&&(i-=1),i}function Ad(r,t){if(!r)return r;const e=t.transformPosition(r.index),i=t.transformPosition(r.index+r.length);return{index:e,length:i-e}}class h2 extends gr{constructor(t,e){super(t,e),t.root.addEventListener("drop",i=>{var s;i.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(i.clientX,i.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(i.clientX,i.clientY);n=document.createRange(),n.setStart(a.offsetNode,a.offset),n.setEnd(a.offsetNode,a.offset)}const o=n&&t.selection.normalizeNative(n);if(o){const a=t.selection.normalizedToRange(o);(s=i.dataTransfer)!=null&&s.files&&this.upload(a,i.dataTransfer.files)}})}upload(t,e){const i=[];Array.from(e).forEach(n=>{var o;n&&((o=this.options.mimetypes)!=null&&o.includes(n.type))&&i.push(n)}),i.length>0&&this.options.handler.call(this,t,i)}}h2.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,t){if(!this.quill.scroll.query("image"))return;const e=t.map(i=>new Promise(n=>{const o=new FileReader;o.onload=()=>{n(o.result)},o.readAsDataURL(i)}));Promise.all(e).then(i=>{const n=i.reduce((o,s)=>o.insert({image:s}),new Vt().retain(r.index).delete(r.length));this.quill.updateContents(n,qt.sources.USER),this.quill.setSelection(r.index+i.length,qt.sources.SILENT)})}};const iS=["insertText","insertReplacementText"];class rS extends gr{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",i=>{this.handleBeforeInput(i)}),/Android/i.test(navigator.userAgent)||t.on(Ct.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){Cd({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(e){const i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new Vt().retain(t.index).insert(e,i),Ct.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,Ct.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!iS.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===!0)return;const i=nS(t);if(i==null)return;const n=this.quill.selection.normalizeNative(e),o=n?this.quill.selection.normalizedToRange(n):null;o&&this.replaceText(o,i)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function nS(r){var t;return typeof r.data=="string"?r.data:(t=r.dataTransfer)!=null&&t.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const oS=/Mac/i.test(navigator.platform),sS=100,aS=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||oS&&r.key==="a"&&r.ctrlKey===!0);class lS extends gr{constructor(e,i){super(e,i);Nt(this,"isListening",!1);Nt(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,i){let{line:n,event:o}=i;if(!(n instanceof dr)||!n.uiNode)return!0;const s=getComputedStyle(n.domNode).direction==="rtl";return s&&o.key!=="ArrowRight"||!s&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(o.shiftKey?1:0),Ct.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&aS(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+sS,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const i=e.getRangeAt(0);if(i.collapsed!==!0||i.startOffset!==0)return;const n=this.quill.scroll.find(i.startContainer);if(!(n instanceof dr)||!n.uiNode)return;const o=document.createRange();o.setStartAfter(n.uiNode),o.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(o)}}Ct.register({"blots/block":ci,"blots/block/embed":tr,"blots/break":fr,"blots/container":eo,"blots/cursor":Ho,"blots/embed":gd,"blots/inline":Ar,"blots/scroll":Xo,"blots/text":pr,"modules/clipboard":n2,"modules/history":a2,"modules/keyboard":uh,"modules/uploader":h2,"modules/input":rS,"modules/uiNode":lS});class hS extends ur{add(t,e){let i=0;if(e==="+1"||e==="-1"){const n=this.value(t)||0;i=e==="+1"?n+1:n-1}else typeof e=="number"&&(i=e);return i===0?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}const cS=new hS("indent","ql-indent",{scope:Kt.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class _d extends ci{}Nt(_d,"blotName","blockquote"),Nt(_d,"tagName","blockquote");class kd extends ci{static formats(t){return this.tagName.indexOf(t.tagName)+1}}Nt(kd,"blotName","header"),Nt(kd,"tagName",["H1","H2","H3","H4","H5","H6"]);class ca extends eo{}ca.blotName="list-container",ca.tagName="OL";class ua extends ci{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Ct.register(ca)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),n=o=>{if(!t.isEnabled())return;const s=this.statics.formats(e,t);s==="checked"?(this.format("list","unchecked"),o.preventDefault()):s==="unchecked"&&(this.format("list","checked"),o.preventDefault())};i.addEventListener("mousedown",n),i.addEventListener("touchstart",n),this.attachUI(i)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}ua.blotName="list",ua.tagName="LI",ca.allowedChildren=[ua],ua.requiredContainer=ca;class da extends Ar{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Nt(da,"blotName","bold"),Nt(da,"tagName",["STRONG","B"]);class Ld extends da{}Nt(Ld,"blotName","italic"),Nt(Ld,"tagName",["EM","I"]);class bn extends Ar{static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return c2(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t!==this.statics.blotName||!e?super.format(t,e):this.domNode.setAttribute("href",this.constructor.sanitize(e))}}Nt(bn,"blotName","link"),Nt(bn,"tagName","A"),Nt(bn,"SANITIZED_URL","about:blank"),Nt(bn,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function c2(r,t){const e=document.createElement("a");e.href=r;const i=e.href.slice(0,e.href.indexOf(":"));return t.indexOf(i)>-1}class Md extends Ar{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}Nt(Md,"blotName","script"),Nt(Md,"tagName",["SUB","SUP"]);class Dd extends da{}Nt(Dd,"blotName","strike"),Nt(Dd,"tagName",["S","STRIKE"]);class Od extends Ar{}Nt(Od,"blotName","underline"),Nt(Od,"tagName","U");class ph extends gd{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return typeof t=="string"&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}Nt(ph,"blotName","formula"),Nt(ph,"className","ql-formula"),Nt(ph,"tagName","SPAN");const u2=["alt","height","width"];let uS=(yh=class extends zi{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return u2.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return c2(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){u2.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},Nt(yh,"blotName","image"),Nt(yh,"tagName","IMG"),yh);const d2=["height","width"];class gh extends tr{static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return d2.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static sanitize(t){return bn.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){d2.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}Nt(gh,"blotName","video"),Nt(gh,"className","ql-video"),Nt(gh,"tagName","IFRAME");const fa=new ur("code-token","hljs",{scope:Kt.INLINE});class Hr extends Ar{static formats(t,e){for(;t!=null&&t!==e.domNode;){if(t.classList&&t.classList.contains(mi.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,i){super(t,e,i),fa.add(this.domNode,i)}format(t,e){t!==Hr.blotName?super.format(t,e):e?fa.add(this.domNode,e):(fa.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),fa.value(this.domNode)||this.unwrap()}}Hr.blotName="code-token",Hr.className="ql-token";class ir extends mi{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),Hr.blotName,!1),super.replaceWith(t,e)}}class pa extends io{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===ir.blotName&&(this.forceNext=!0,this.children.forEach(i=>{i.format(t,e)}))}formatAt(t,e,i,n){i===ir.blotName&&(this.forceNext=!0),super.formatAt(t,e,i,n)}highlight(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const n=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
`)}
`,o=ir.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==n){if(n.trim().length>0||this.cachedText==null){const s=this.children.reduce((l,h)=>l.concat(Dm(h,!1)),new Vt),a=t(n,o);s.diff(a).reduce((l,h)=>{let{retain:c,attributes:u}=h;return c?(u&&Object.keys(u).forEach(f=>{[ir.blotName,Hr.blotName].includes(f)&&this.formatAt(l,c,f,u[f])}),l+c):l},0)}this.cachedText=n,this.forceNext=!1}}html(t,e){const[i]=this.children.find(t);return`<pre data-language="${i?ir.formats(i.domNode):"plain"}">
${ah(this.code(t,e))}
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const e=ir.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}pa.allowedChildren=[ir],ir.requiredContainer=pa,ir.allowedChildren=[Hr,Ho,pr,fr];const dS=(r,t,e)=>{if(typeof r.versionString=="string"){const i=r.versionString.split(".")[0];if(parseInt(i,10)>=11)return r.highlight(e,{language:t}).value}return r.highlight(t,e).value};class f2 extends gr{static register(){Ct.register(Hr,!0),Ct.register(ir,!0),Ct.register(pa,!0)}constructor(t,e){if(super(t,e),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((i,n)=>{let{key:o}=n;return i[o]=!0,i},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Ct.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof pa))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(i=>{let{key:n,label:o}=i;const s=e.ownerDocument.createElement("option");s.textContent=o,s.setAttribute("value",n),e.appendChild(s)}),e.addEventListener("change",()=>{t.format(ir.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(e),t.children.head&&(e.value=ir.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Ct.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Ct.sources.USER);const i=this.quill.getSelection();(t==null?this.quill.scroll.descendants(pa):[t]).forEach(o=>{o.highlight(this.highlightBlot,e)}),this.quill.update(Ct.sources.SILENT),i!=null&&this.quill.setSelection(i,Ct.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(e=this.languages[e]?e:"plain",e==="plain")return ah(t).split(`
`).reduce((n,o,s)=>(s!==0&&n.insert(`
`,{[mi.blotName]:e}),n.insert(o)),new Vt);const i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(mi.className),i.innerHTML=dS(this.options.hljs,e,t),Sd(this.quill.scroll,i,[(n,o)=>{const s=fa.value(n);return s?o.compose(new Vt().retain(o.length(),{[Hr.blotName]:s})):o}],[(n,o)=>n.data.split(`
`).reduce((s,a,l)=>(l!==0&&s.insert(`
`,{[mi.blotName]:e}),s.insert(a)),o)],new WeakMap)}}f2.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const xa=class xa extends ci{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",Rd()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===xa.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Nt(xa,"blotName","table"),Nt(xa,"tagName","TD");let vr=xa;class Gr extends eo{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),i=this.next.children.head.formats(),n=this.next.children.tail.formats();return t.table===e.table&&t.table===i.table&&t.table===n.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const i=e.formats(),n=e.next.formats();if(i.table!==n.table){const o=this.splitAfter(e);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Nt(Gr,"blotName","table-row"),Nt(Gr,"tagName","TR");class _r extends eo{}Nt(_r,"blotName","table-body"),Nt(_r,"tagName","TBODY");class Yo extends eo{balanceCells(){const t=this.descendants(Gr),e=t.reduce((i,n)=>Math.max(n.children.length,i),0);t.forEach(i=>{new Array(e-i.children.length).fill(0).forEach(()=>{let n;i.children.head!=null&&(n=vr.formats(i.children.head.domNode));const o=this.scroll.create(vr.blotName,n);i.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(_r);e==null||e.children.head==null||e.children.forEach(i=>{const n=i.children.at(t);n!=null&&n.remove()})}insertColumn(t){const[e]=this.descendant(_r);e==null||e.children.head==null||e.children.forEach(i=>{const n=i.children.at(t),o=vr.formats(i.children.head.domNode),s=this.scroll.create(vr.blotName,o);i.insertBefore(s,n)})}insertRow(t){const[e]=this.descendant(_r);if(e==null||e.children.head==null)return;const i=Rd(),n=this.scroll.create(Gr.blotName);e.children.head.children.forEach(()=>{const s=this.scroll.create(vr.blotName,i);n.appendChild(s)});const o=e.children.at(t);e.insertBefore(n,o)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}}Nt(Yo,"blotName","table-container"),Nt(Yo,"tagName","TABLE"),Yo.allowedChildren=[_r],_r.requiredContainer=Yo,_r.allowedChildren=[Gr],Gr.requiredContainer=_r,Gr.allowedChildren=[vr],vr.requiredContainer=Gr;function Rd(){return`row-${Math.random().toString(36).slice(2,6)}`}class fS extends gr{static register(){Ct.register(vr),Ct.register(Gr),Ct.register(_r),Ct.register(Yo)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Yo).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(Ct.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(Ct.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(Ct.sources.USER),this.quill.setSelection(e,Ct.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,i]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==vr.blotName)return[null,null,null,-1];const n=e.parent;return[n.parent.parent,n,e,i]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[i,n,o]=this.getTable(e);if(o==null)return;const s=o.cellOffset();i.insertColumn(s+t),this.quill.update(Ct.sources.USER);let a=n.rowOffset();t===0&&(a+=1),this.quill.setSelection(e.index+a,e.length,Ct.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[i,n,o]=this.getTable(e);if(o==null)return;const s=n.rowOffset();i.insertRow(s+t),this.quill.update(Ct.sources.USER),t>0?this.quill.setSelection(e,Ct.sources.SILENT):this.quill.setSelection(e.index+n.children.length,e.length,Ct.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const i=this.quill.getSelection();if(i==null)return;const n=new Array(t).fill(0).reduce(o=>{const s=new Array(e).fill(`
`).join("");return o.insert(s,{table:Rd()})},new Vt().retain(i.index));this.quill.updateContents(n,Ct.sources.USER),this.quill.setSelection(i.index,Ct.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ct.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(Ct.events.TEXT_CHANGE,(i,n,o)=>{o===Ct.sources.USER&&this.balanceTables()}),!0):!1)})}}const p2=qr("quill:toolbar");class Fd extends gr{constructor(t,e){var i,n;if(super(t,e),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),pS(o,this.options.container),(n=(i=t.container)==null?void 0:i.parentNode)==null||n.insertBefore(o,t.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){p2.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var a;const s=(a=this.options.handlers)==null?void 0:a[o];s&&this.addHandler(o,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Ct.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(n=>n.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){p2.warn("ignoring attaching to nonexistent format",e,t);return}const i=t.tagName==="SELECT"?"change":"click";t.addEventListener(i,n=>{let o;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const a=t.options[t.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else t.classList.contains("ql-active")?o=!1:o=t.value||!t.hasAttribute("value"),n.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,o);else if(this.quill.scroll.query(e).prototype instanceof zi){if(o=prompt(`Enter ${e}`),!o)return;this.quill.updateContents(new Vt().retain(s.index).delete(s.length).insert({[e]:o}),Ct.sources.USER)}else this.quill.format(e,o,Ct.sources.USER);this.update(s)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(i=>{const[n,o]=i;if(o.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(e[n]==null)s=o.querySelector("option[selected]");else if(!Array.isArray(e[n])){let a=e[n];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),s=o.querySelector(`option[value="${a}"]`)}s==null?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(t==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const s=e[n],a=s===o.getAttribute("value")||s!=null&&s.toString()===o.getAttribute("value")||s==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const s=e[n]!=null;o.classList.toggle("ql-active",s),o.setAttribute("aria-pressed",s.toString())}})}}Fd.DEFAULTS={};function g2(r,t,e){const i=document.createElement("button");i.setAttribute("type","button"),i.classList.add(`ql-${t}`),i.setAttribute("aria-pressed","false"),e!=null?(i.value=e,i.setAttribute("aria-label",`${t}: ${e}`)):i.setAttribute("aria-label",t),r.appendChild(i)}function pS(r,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const i=document.createElement("span");i.classList.add("ql-formats"),e.forEach(n=>{if(typeof n=="string")g2(i,n);else{const o=Object.keys(n)[0],s=n[o];Array.isArray(s)?gS(i,o,s):g2(i,o,s)}}),r.appendChild(i)})}function gS(r,t,e){const i=document.createElement("select");i.classList.add(`ql-${t}`),e.forEach(n=>{const o=document.createElement("option");n!==!1?o.setAttribute("value",String(n)):o.setAttribute("selected","selected"),i.appendChild(o)}),r.appendChild(i)}Fd.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,Kt.INLINE)!=null&&this.quill.format(e,!1,Ct.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Ct.sources.USER)},direction(r){const{align:t}=this.quill.getFormat();r==="rtl"&&t==null?this.quill.format("align","right",Ct.sources.USER):!r&&t==="right"&&this.quill.format("align",!1,Ct.sources.USER),this.quill.format("direction",r,Ct.sources.USER)},indent(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t),i=parseInt(e.indent||0,10);if(r==="+1"||r==="-1"){let n=r==="+1"?1:-1;e.direction==="rtl"&&(n*=-1),this.quill.format("indent",i+n,Ct.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Ct.sources.USER)},list(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t);r==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,Ct.sources.USER):this.quill.format("list","unchecked",Ct.sources.USER):this.quill.format("list",r,Ct.sources.USER)}}};const mS='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',vS='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',yS='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',bS='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',xS='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',wS='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',ES='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',TS='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',m2='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',ga={align:{"":mS,center:vS,right:yS,justify:bS},background:xS,blockquote:wS,bold:ES,clean:TS,code:m2,"code-block":m2,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},CS='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let v2=0;function y2(r,t){r.setAttribute(t,`${r.getAttribute(t)!=="true"}`)}class mh{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),y2(this.label,"aria-expanded"),y2(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const i=t.getAttribute("value");return i&&e.setAttribute("data-value",i),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.selectItem(e,!0),n.preventDefault();break;case"Escape":this.escape(),n.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=CS,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${v2}`,v2+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const i=this.buildItem(e);t.appendChild(i),e.selected===!0&&this.selectItem(i)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.container.querySelector(".ql-selected");t!==i&&(i!=null&&i.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const i=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(i)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class b2 extends mh{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(i=>{i.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const i=this.label.querySelector(".ql-color-label"),n=t&&t.getAttribute("data-value")||"";i&&(i.tagName==="line"?i.style.stroke=n:i.style.fill=n)}}class x2 extends mh{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(i=>{i.innerHTML=e[i.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const i=t||this.defaultItem;if(i!=null){if(this.label.innerHTML===i.innerHTML)return;this.label.innerHTML=i.innerHTML}}}const SS=r=>{const{overflowY:t}=getComputedStyle(r,null);return t!=="visible"&&t!=="clip"};class w2{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,SS(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,i=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${i}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let s=0;if(o.right>n.right&&(s=n.right-o.right,this.root.style.left=`${e+s}px`),o.left<n.left&&(s=n.left-o.left,this.root.style.left=`${e+s}px`),o.bottom>n.bottom){const a=o.bottom-o.top,l=t.bottom-t.top+a;this.root.style.top=`${i-l}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const NS=[!1,"center","right","justify"],AS=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_S=[!1,"serif","monospace"],kS=["1","2","3",!1],LS=["small",!1,"large","huge"];class ma extends Vo{constructor(t,e){super(t,e);const i=n=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",i);return}this.tooltip!=null&&!this.tooltip.root.contains(n.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(n.target)||o.close()})};t.emitter.listenDOM("click",document.body,i)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(i=>{(i.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),e[o]!=null))if(o==="direction")i.innerHTML=e[o][""]+e[o].rtl;else if(typeof e[o]=="string")i.innerHTML=e[o];else{const s=i.value||"";s!=null&&e[o][s]&&(i.innerHTML=e[o][s])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(n=>{if(n.classList.contains("ql-align")&&(n.querySelector("option")==null&&va(n,NS),typeof e.align=="object"))return new x2(n,e.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){const o=n.classList.contains("ql-background")?"background":"color";return n.querySelector("option")==null&&va(n,AS,o==="background"?"#ffffff":"#000000"),new b2(n,e[o])}return n.querySelector("option")==null&&(n.classList.contains("ql-font")?va(n,_S):n.classList.contains("ql-header")?va(n,kS):n.classList.contains("ql-size")&&va(n,LS)),new mh(n)});const i=()=>{this.pickers.forEach(n=>{n.update()})};this.quill.on(qt.events.EDITOR_CHANGE,i)}}ma.DEFAULTS=mn({},Vo.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class E2 extends w2{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const i=this.quill.getBounds(this.quill.selection.savedRange);i!=null&&this.position(i),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,qt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,qt.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=MS(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const i=e.index+e.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,qt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(i+1," ",qt.sources.USER),this.quill.setSelection(i+2,qt.sources.USER)}break}}this.textbox.value="",this.hide()}}function MS(r){let t=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:r}function va(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(i=>{const n=document.createElement("option");i===e?n.setAttribute("selected","selected"):n.setAttribute("value",String(i)),r.appendChild(n)})}const DS=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class T2 extends E2{constructor(t,e){super(t,e),this.quill.on(qt.events.EDITOR_CHANGE,(i,n,o,s)=>{if(i===qt.events.SELECTION_CHANGE)if(n!=null&&n.length>0&&s===qt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(n.index,n.length);if(a.length===1){const l=this.quill.getBounds(n);l!=null&&this.position(l)}else{const l=a[a.length-1],h=this.quill.getIndex(l),c=Math.min(l.length()-1,n.index+n.length-h),u=this.quill.getBounds(new to(h,c));u!=null&&this.position(u)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(qt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),i=this.root.querySelector(".ql-tooltip-arrow");return i.style.marginLeft="",e!==0&&(i.style.marginLeft=`${-1*e-i.offsetWidth/2}px`),e}}Nt(T2,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class C2 extends ma{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=DS),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new T2(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),ga),this.buildPickers(t.container.querySelectorAll("select"),ga))}}C2.DEFAULTS=mn({},ma.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ct.sources.USER)}}}}});const OS=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class S2 extends E2{constructor(){super(...arguments);Nt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const i=this.linkRange;this.restoreFocus(),this.quill.formatText(i,"link",!1,qt.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(qt.events.SELECTION_CHANGE,(e,i,n)=>{if(e!=null){if(e.length===0&&n===qt.sources.USER){const[o,s]=this.quill.scroll.descendant(bn,e.index);if(o!=null){this.linkRange=new to(e.index-s,o.length());const a=bn.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const l=this.quill.getBounds(this.linkRange);l!=null&&this.position(l);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Nt(S2,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class N2 extends ma{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=OS),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),ga),this.buildPickers(t.container.querySelectorAll("select"),ga),this.tooltip=new S2(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}N2.DEFAULTS=mn({},ma.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,Ct.sources.USER)}}}}}),Ct.register({"attributors/attribute/direction":Vm,"attributors/class/align":Wm,"attributors/class/background":xC,"attributors/class/color":bC,"attributors/class/direction":Km,"attributors/class/font":Zm,"attributors/class/size":Qm,"attributors/style/align":Hm,"attributors/style/background":xd,"attributors/style/color":bd,"attributors/style/direction":Xm,"attributors/style/font":Jm,"attributors/style/size":$m},!0),Ct.register({"formats/align":Wm,"formats/direction":Km,"formats/indent":cS,"formats/background":xd,"formats/color":bd,"formats/font":Zm,"formats/size":Qm,"formats/blockquote":_d,"formats/code-block":mi,"formats/header":kd,"formats/list":ua,"formats/bold":da,"formats/code":wd,"formats/italic":Ld,"formats/link":bn,"formats/script":Md,"formats/strike":Dd,"formats/underline":Od,"formats/formula":ph,"formats/image":uS,"formats/video":gh,"modules/syntax":f2,"modules/table":fS,"modules/toolbar":Fd,"themes/bubble":C2,"themes/snow":N2,"ui/icons":ga,"ui/picker":mh,"ui/icon-picker":x2,"ui/color-picker":b2,"ui/tooltip":w2},!0);let A2=!1,ya=["宋体, SimSun, Songti SC","微软雅黑, Microsoft YaHei","楷体, 楷体_GB2312, SimKai, STKaiti","黑体, SimHei, Heiti SC","隶书, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],Id=new Array(100).fill(0).map((r,t)=>t+"px");class _2{constructor({mindMap:t,pluginOpt:e}){this.mindMap=t,this.pluginOpt=e,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.pasteUseRange=null,this.node=null,this.isInserting=!1,this.styleEl=null,this.cacheEditingText="",this.isCompositing=!1,this.textNodePaddingX=6,this.textNodePaddingY=4,this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.handleDataToRichTextOnInit()}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionUpdate=this.onCompositionUpdate.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),this.handleSetData=this.handleSetData.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionupdate",this.onCompositionUpdate),window.addEventListener("compositionend",this.onCompositionEnd),this.mindMap.on("before_update_data",this.handleSetData),this.mindMap.on("before_set_data",this.handleSetData)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionupdate",this.onCompositionUpdate),window.removeEventListener("compositionend",this.onCompositionEnd),this.mindMap.off("before_update_data",this.handleSetData),this.mindMap.off("before_set_data",this.handleSetData)}appendCss(){this.mindMap.appendCss("richText",`
      .smm-richtext-node-wrap {
        word-break: break-all;
        user-select: none;
      }

      .ql-editor .ql-align-left, 
      .smm-richtext-node-wrap .ql-align-left {
        text-align: left;
      }

      .smm-richtext-node-wrap .ql-align-right {
        text-align: right;
      }

      .smm-richtext-node-wrap .ql-align-center {
        text-align: center;
      }
      `);let t=`
      .${ut.EDIT_NODE_CLASS.RICH_TEXT_EDIT_WRAP} {
        overflow: hidden;
        padding: 0;
        height: auto;
        line-height: 1.2;
        -webkit-user-select: text;
        text-align: inherit;
      }
      
      .ql-container {
        height: auto;
        font-size: inherit;
      }

      .ql-container.ql-snow {
        border: none;
      }
    `;this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=t,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&(ya=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(Id=this.pluginOpt.fontSizeList)}extendQuill(){if(A2)return;A2=!0,this.extendFont([]),this.extendAlign();const t=Ct.import("attributors/class/size");t.whitelist=Id,Ct.register(t,!0);const e=Ct.import("attributors/style/size");e.whitelist=Id,Ct.register(e,!0)}extendFont(t=[],e=!1){ya=e?[...t]:[...ya,...t];const i=Ct.import("attributors/class/font");i.whitelist=ya,Ct.register(i,!0);const n=Ct.import("attributors/style/font");n.whitelist=ya,Ct.register(n,!0)}extendAlign(){const t=Ct.import("formats/align");t.whitelist=["right","center","justify","left"],Ct.register(t,!0)}showEditText({node:t,rect:e,isInserting:i,isFromKeyDown:n,isFromScale:o}){if(this.showTextEdit)return;let{customInnerElsAppendTo:s,nodeTextEditZIndex:a,textAutoWrapWidth:l,selectTextOnEnterEditText:h,transformRichTextOnEnterEdit:c,openRealtimeRenderOnNodeTextEdit:u,autoEmptyTextWhenKeydownEnterEdit:f}=this.mindMap.opt;l=t.hasCustomWidth()?t.customTextWidth:l,this.node=t,this.isInserting=i,e||(e=t._textData.node.node.getBoundingClientRect()),o||this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let d=t._textData.node,p=d.attr("data-width"),m=d.attr("data-height");const v=Math.ceil(e.width)/p,g=Math.ceil(e.height)/m;let b=this.textNodePaddingX,y=this.textNodePaddingY;this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`
        position:fixed;
        box-sizing: border-box;
        ${u?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}
        outline: none;
        word-break: break-all;
        padding: ${y}px ${b}px;
        line-height: 1.2;
      `,this.textEditNode.addEventListener("click",U=>{U.stopPropagation()}),this.textEditNode.addEventListener("mousedown",U=>{U.stopPropagation()}),this.textEditNode.addEventListener("keydown",U=>{this.mindMap.renderer.textEdit.checkIsAutoEnterTextEditKey(U)&&U.stopPropagation()}),(s||document.body).appendChild(this.textEditNode)),this.addNodeTextStyleToTextEditNode(t),this.textEditNode.style.marginLeft=`-${b*v}px`,this.textEditNode.style.marginTop=`-${y*g}px`,this.textEditNode.style.zIndex=a,u||(this.textEditNode.style.background=this.mindMap.renderer.textEdit.getBackground(t)),this.textEditNode.style.minWidth=p+b*2+"px",this.textEditNode.style.minHeight=m+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=l+b*2+"px",this.textEditNode.style.transform=`scale(${v}, ${g})`,this.textEditNode.style.transformOrigin="left top";let x=t.getData("text");typeof c=="function"&&(x=c(x));const C=nr(x),R=!t.getData("richText")&&!C;if(n&&f)this.textEditNode.innerHTML="";else if(R){let U=`<p>${String(x).split(/\n/gim).join("<br>")}</p>`;this.textEditNode.innerHTML=this.cacheEditingText||U}else this.textEditNode.innerHTML=this.cacheEditingText||x;this.initQuillEditor(),this.setQuillContainerMinHeight(m),this.showTextEdit=!0,this.focus(i||h&&!n?0:null),this.cacheEditingText=""}onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t){this.textEditNode&&(this.textEditNode.style.background=t?"transparent":this.node?this.mindMap.renderer.textEdit.getBackground(this.node):"",this.textEditNode.style.boxShadow=t?"none":"0 0 20px rgba(0,0,0,.5)")}addNodeTextStyleToTextEditNode(t){const e=w0(t);Object.keys(e).forEach(i=>{this.textEditNode.style[i]=e[i]})}setQuillContainerMinHeight(t){document.querySelector("."+ut.EDIT_NODE_CLASS.RICH_TEXT_EDIT_WRAP).style.minHeight=t+"px"}updateTextEditNode(){if(!this.node)return;const t=this.node._textData.node,e=t.node.getBoundingClientRect(),i=t.attr("data-width"),n=t.attr("data-height");this.textEditNode.style.minWidth=i+this.textNodePaddingX*2+"px",this.textEditNode.style.minHeight=n+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.setQuillContainerMinHeight(n)}removeTextEditEl(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return this.quill.container.firstChild.innerHTML.replace(/  +/g,t=>"&nbsp;".repeat(t.length))}hideEditText(t){if(!this.showTextEdit)return;const{beforeHideRichTextEdit:e}=this.mindMap.opt;typeof e=="function"&&e(this);const i=this.getEditText(),n=t&&t.length>0?t:[this.node],o=this.node;this.textEditNode.style.display="none",this.showTextEdit=!1,this.mindMap.emit("rich_text_selection_change",!1),this.node=null,this.isInserting=!1,n.forEach(s=>{this.mindMap.execCommand("SET_NODE_TEXT",s,i,!0),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,n,o)}initQuillEditor(){this.quill=new Ct(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:"Enter",handler:function(){}},shiftEnter:{key:"Enter",shiftKey:!0,handler:function(t,e){const i=Object.keys(e.format).reduce((o,s)=>(this.quill.scroll.query(s,Kt.BLOCK)&&!Array.isArray(e.format[s])&&(o[s]=e.format[s]),o),{}),n=new Vt().retain(t.index).delete(t.length).insert(`
`,i);this.quill.updateContents(n,Ct.sources.USER),this.quill.setSelection(t.index+1,Ct.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(o=>{i[o]==null&&(Array.isArray(e.format[o])||o==="code"||o==="link"||this.quill.format(o,e.format[o],Ct.sources.USER))})}},tab:{key:9,handler:function(){}}}}},formats:["bold","italic","underline","strike","color","background","font","size","formula","align"],theme:"snow"}),this.quill.root.addEventListener("copy",t=>{t.preventDefault();const e=window.getSelection(),i=e.toString();try{const n=e.getRangeAt(0),o=document.createElement("div");o.appendChild(n.cloneContents());const s=dc(o.innerHTML);t.clipboardData.setData("text/plain",s)}catch{t.clipboardData.setData("text/plain",i)}}),this.quill.on("selection-change",t=>{if(!this.isInserting)if(this.lastRange=this.range,this.range=null,t){this.pasteUseRange=t;let e=this.quill.getBounds(t.index,t.length),i=this.textEditNode.getBoundingClientRect(),n={left:e.left+i.left,top:e.top+i.top,right:e.right+i.left,bottom:e.bottom+i.top,width:e.width},o=this.quill.getFormat(t.index,t.length),s=!1;t.length==0?s=!1:(this.range=t,s=!0),this.mindMap.emit("rich_text_selection_change",s,n,o)}else this.mindMap.emit("rich_text_selection_change",!1,null,null)}),this.quill.on("text-change",()=>{this.mindMap.emit("node_text_edit_change",{node:this.node,text:this.getEditText(),richText:!0})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,e)=>{let i=[],n=this.getPasteTextStyle();return e.ops.forEach(o=>{o.insert&&typeof o.insert=="string"&&i.push({attributes:{...n},insert:this.formatPasteText(o.insert)})}),e.ops=i,e}),this.quill.root.addEventListener("paste",t=>{t.clipboardData&&t.clipboardData.files&&t.clipboardData.files.length&&t.preventDefault()},!0)}getPasteTextStyle(){return this.pasteUseRange?this.quill.getFormat(this.pasteUseRange.index,this.pasteUseRange.length):{}}formatPasteText(t){const{isSmm:e,data:i}=Ga(t);return e&&i[0]&&i[0].data?Fn(i[0].data.text):t}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionUpdate(){!this.showTextEdit||!this.node||this.mindMap.emit("node_text_edit_change",{node:this.node,text:this.getEditText(),richText:!0})}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1)}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(t){const e=this.quill.getLength();this.quill.setSelection(typeof t=="number"?t:e,e)}formatText(t={},e=!1){if(!this.range&&!this.lastRange)return;const i=!this.range,n=i?this.lastRange:this.range;if(e)this.quill.removeFormat(n.index,n.length);else{const{align:o,...s}=t;o&&this.quill.formatLine(n.index,n.length,"align",o),Object.keys(s).length>0&&this.quill.formatText(n.index,n.length,s)}i&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(t,e={}){t&&this.quill.formatText(t.index,t.length,e)}formatAllText(t={}){this.quill.formatText(0,this.quill.getLength(),t)}normalStyleToRichTextStyle(t){const e={};return Object.keys(t).forEach(i=>{const n=t[i];switch(i){case"fontFamily":e.font=n;break;case"fontSize":e.size=n+"px";break;case"fontWeight":e.bold=n==="bold";break;case"fontStyle":e.italic=n==="italic";break;case"textDecoration":e.underline=n==="underline",e.strike=n==="line-through";break;case"color":e.color=n;break;case"textAlign":e.align=n;break}}),e}richTextStyleToNormalStyle(t){const e={};return Object.keys(t).forEach(i=>{const n=t[i];switch(i){case"font":e.fontFamily=n;break;case"size":e.fontSize=parseFloat(n);break;case"bold":e.fontWeight=n?"bold":"normal";break;case"italic":e.fontStyle=n?"italic":"normal";break;case"underline":e.textDecoration=n?"underline":"none";break;case"strike":e.textDecoration=n?"line-through":"none";break;case"color":e.color=n;break;case"align":e.textAlign=n;break}}),e}isHasRichTextStyle(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const n=e[i];if(_a.includes(n))return!0}return!1}checkNodeHasCustomRichTextStyle(t){const e=t instanceof xs?t.getData():t;for(let i=0;i<_a.length;i++)if(e[_a[i]]!==void 0)return!0;return!1}afterHandleData(){this.mindMap.command.clearHistory(),this.mindMap.command.addHistory(),this.mindMap.render()}handleDataToRichTextOnInit(){this.mindMap.renderer.renderTree?(this.handleSetData(this.mindMap.renderer.renderTree),this.afterHandleData()):this.mindMap.opt.data&&this.handleSetData(this.mindMap.opt.data)}transformAllNodesToNormalNode(){const t=this.mindMap.renderer.renderTree;t&&(ge(t,null,e=>{e.data.richText&&(e.data.richText=!1,e.data.text=Fn(e.data.text)),e.data&&$r(e.data).forEach(n=>{n.richText=!1,n.text=Fn(n.text)})},null,!0,0,0),this.afterHandleData())}handleDataToRichText(t){const e=t.richText;t.richText=!0,t.resetRichText=!0,e||(t.text=bs(t.text))}handleSetData(t){const e=!t.smmVersion||z6(t.smmVersion,"0.13.0")==="<",i=n=>{n.data&&(!n.data.richText||e)&&this.handleDataToRichText(n.data),n.data&&$r(n.data).forEach(s=>{(!s.richText||e)&&this.handleDataToRichText(s)}),n.children&&n.children.length>0&&Array.from(n.children).forEach(o=>{i(o)})};return i(t),t}beforePluginRemove(){this.transformAllNodesToNormalNode(),document.head.removeChild(this.styleEl),this.unbindEvent(),this.mindMap.removeAppendCss("richText")}beforePluginDestroy(){document.head.removeChild(this.styleEl),this.unbindEvent()}}_2.instanceName="richText";const k2=[{name:"脑图经典",value:"classic",theme:{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(58, 65, 68)",backgroundImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1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Size:"auto",root:{fillColor:"rgb(233, 223, 152)",color:"#333",fontSize:24,borderRadius:21},second:{fillColor:"rgb(164, 197, 192)",borderColor:"transparent",color:"#333",fontSize:16,borderRadius:10},node:{fontSize:12,color:"#fff",fontWeight:"bold"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333"}}},{name:"黑色幽默",value:"blackHumour",theme:{backgroundColor:"rgb(27, 31, 34)",lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(204, 204, 204)"},generalization:{fontSize:14,fillColor:"rgb(27, 31, 34)",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)"}}},{name:"深夜办公室",value:"lateNightOffice",theme:{backgroundColor:"rgb(32, 37, 49)",lineColor:"rgb(137, 167, 196)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(23, 153, 243)",color:"rgb(255, 255, 255)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(70, 78, 94)",color:"rgb(209, 210, 210)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(204, 204, 204)"},generalization:{fontSize:14,fillColor:"rgb(255, 119, 34)",borderColor:"",borderWidth:2,color:"#fff"}}},{name:"黑金",value:"blackGold",theme:{backgroundColor:"rgb(18, 20, 20)",lineColor:"rgb(205, 186, 156)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(245, 224, 191)",root:{fillColor:"rgb(255, 208, 124)",color:"rgb(111, 61, 6)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(66, 57, 46)",color:"rgb(225, 201, 158)",borderColor:"rgb(245, 224, 191)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(231, 203, 155)"},generalization:{fontSize:14,fillColor:"rgb(56, 45, 34)",borderColor:"rgb(104, 84, 61)",borderWidth:2,color:"rgb(242, 216, 176)"}}},{name:"橙汁",value:"orangeJuice",theme:{backgroundColor:"#070616",lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",root:{fillColor:"#ff6811",color:"#110501",borderColor:"#ff6811",borderWidth:0,fontSize:24},second:{fillColor:"#070616",color:"#a9a4a9",borderColor:"#ff6811",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#a9a4a9"},generalization:{fontSize:14,fillColor:"",borderColor:"#ff6811",borderWidth:2,color:"#a9a4a9"}}},{name:"霓虹灯",value:"neonLamp",theme:{backgroundColor:"rgb(17, 17, 84)",lineColor:"rgb(255, 0, 214)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 181, 0)",associativeLineColor:"rgb(255, 255, 255)",associativeLineTextColor:"rgb(255, 255, 255)",root:{fillColor:"rgb(251, 233, 248)",color:"rgb(208, 5, 176)",borderColor:"rgb(255, 0, 214)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"transparent",color:"rgb(248, 177, 237)",borderColor:"",borderWidth:3,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(255, 181, 0)",borderWidth:2,color:"rgb(17, 17, 84)"}}},{name:"暗夜冰刃",value:"darkNightLceBlade",theme:{backgroundColor:"rgb(0, 21, 21)",lineColor:"rgb(0, 139, 146)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgba(2, 167, 240, 0.5)",associativeLineColor:"rgb(255, 255, 255)",associativeLineTextColor:"rgb(255, 255, 255)",root:{fillColor:"rgb(0, 243, 255)",color:"rgb(0, 21, 21)",borderColor:"#fff",borderWidth:3,fontSize:24,shape:"parallelogram"},second:{fillColor:"rgb(0, 21, 21)",color:"#fff",borderColor:"#fff",borderWidth:3,fontSize:18,shape:"diamond"},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(0, 117, 255)",borderWidth:2,color:"rgb(0, 21, 21)"}}},{name:"暗色",value:"dark",theme:{lineColor:"rgb(17, 68, 23)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#fff",backgroundColor:"rgb(15, 16, 17)",root:{fillColor:"rgb(28, 178, 43)",color:"#fff",fontSize:24,borderRadius:10},second:{fillColor:"rgb(55, 56, 58)",color:"rgb(147,148,149)",fontSize:18,borderRadius:10,borderWidth:0},node:{fontSize:14,color:"rgb(147, 148, 149)"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333"}}},{name:"暗色2",value:"dark2",theme:{lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",backgroundColor:"rgb(27, 31, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"rgb(204, 204, 204)"},generalization:{fillColor:"transparent",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)"}}},{name:"暗色3",value:"dark3",theme:{backgroundColor:"rgb(0, 0, 0)",lineColor:"rgb(172, 172, 172)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(172, 172, 172)",associativeLineColor:"rgb(57, 130, 252)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"#fff",color:"rgb(241, 79, 81)",borderColor:"",borderWidth:0,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(241, 79, 81)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(241, 79, 81)"}}},{name:"暗色4",value:"dark4",theme:{backgroundColor:"rgb(32, 34, 43)",lineColor:"rgb(90, 136, 116)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(90, 136, 116)",associativeLineColor:"rgb(57, 130, 252)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(1, 192, 116)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(48, 51, 63)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"rgb(1, 192, 116)",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"暗色5",value:"dark5",theme:{backgroundColor:"#16181d",lineColor:"#7da578",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#7da578",associativeLineColor:"#7da578",associativeLineTextColor:"#9ce81d",associativeLineActiveColor:"#9ce81d",root:{fillColor:"#9ce81d",color:"#15521b",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#24272f",color:"#97b65e",borderColor:"#80a97a",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#789e73"},generalization:{fontSize:14,fillColor:"#9ce81d",borderColor:"",borderWidth:0,color:"#13501b"}}},{name:"暗色6",value:"dark6",theme:{backgroundColor:"#051422",lineColor:"#55dff3",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#55dff3",associativeLineColor:"#55dff3",associativeLineTextColor:"#78b3ff",associativeLineActiveColor:"#78b3ff",root:{fillColor:"#55dff3",color:"#0f4956",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#0b1632",color:"#fff",borderColor:"#78b3ff",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#78b3ff"},generalization:{fontSize:14,fillColor:"#55dff3",borderColor:"",borderWidth:0,color:"#0f4956"}}},{name:"暗色7",value:"dark7",theme:{backgroundColor:"#192b3b",lineColor:"#4986bc",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#4986bc",associativeLineColor:"#4986bc",associativeLineTextColor:"#679fba",associativeLineActiveColor:"#679fba",root:{fillColor:"#3462b0",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#679fba",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#679fba"},generalization:{fontSize:14,fillColor:"#3462b0",borderColor:"",borderWidth:0,color:"#fff"}}}].map(r=>({...r,dark:!0})),L2=[{name:"天清绿",value:"skyGreen",theme:{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(80, 156, 170)",root:{fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(65, 89, 158)"},second:{fillColor:"rgb(251, 227, 188)",color:"rgb(65, 89, 158)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"rgb(65, 89, 158)"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"rgb(65, 89, 158)"}}},{name:"经典绿",value:"classicGreen",theme:{lineColor:"rgb(123, 199, 120)",backgroundColor:"rgb(236, 245, 231)",generalizationLineWidth:2,generalizationLineColor:"rgb(123, 199, 120)",root:{fillColor:"rgb(253, 244, 217)",color:"#222"},second:{fillColor:"rgb(253, 244, 217)",color:"#222",borderColor:"rgb(242, 200, 104)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"rgb(123, 199, 120)",borderColor:"transparent",borderWidth:2,color:"#fff"}}},{name:"经典蓝",value:"classicBlue",theme:{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"rgb(239, 248, 250)",root:{fillColor:"rgb(255, 255, 255)",color:"#222"},second:{fillColor:"rgb(255, 255, 255)",color:"#222",borderColor:"rgb(255, 255, 255)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",color:"#333"}}},{name:"天空蓝",value:"blueSky",theme:{lineColor:"rgb(115, 161, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(115, 161, 191)"},second:{fillColor:"rgb(238, 243, 246)",color:"#333",borderColor:"rgb(115, 161, 191)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}},{name:"脑残粉",value:"brainImpairedPink",theme:{lineColor:"rgb(191, 115, 148)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 148)"},second:{fillColor:"rgb(246, 238, 242)",color:"#333",borderColor:"rgb(191, 115, 148)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}},{name:"泥土黄",value:"earthYellow",theme:{lineColor:"rgb(191, 147, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 147, 115)"},second:{fillColor:"rgb(246, 242, 238)",color:"#333",borderColor:"rgb(191, 147, 115)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}},{name:"清新绿",value:"freshGreen",theme:{lineColor:"#333",backgroundColor:"#d1f6ec",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"#1fb27d"},second:{fillColor:"#fff",color:"#565656",borderColor:"transparent",borderWidth:0},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}},{name:"清新红",value:"freshRed",theme:{lineColor:"rgb(191, 115, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 115)"},second:{fillColor:"rgb(246, 238, 238)",color:"#333",borderColor:"rgb(191, 115, 115)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}},{name:"浪漫紫",value:"romanticPurple",theme:{lineColor:"rgb(123, 115, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(123, 115, 191)"},second:{fillColor:"rgb(239, 238, 246)",color:"#333",borderColor:"rgb(123, 115, 191)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}},{name:"粉红葡萄",value:"pinkGrape",theme:{lineColor:"rgb(166, 101, 106)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(255, 208, 211)",root:{fillColor:"rgb(139, 109, 225)",borderColor:"",borderWidth:0},second:{fillColor:"rgb(243, 104, 138)",color:"#fff",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#222"}}},{name:"薄荷",value:"mint",theme:{lineColor:"rgb(104, 204, 202)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(90, 206, 241)",backgroundColor:"rgb(239, 255, 255)",root:{fillColor:"rgb(0, 192, 184)",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"#222",borderColor:"rgb(184, 235, 233)",borderWidth:2,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(90, 206, 241)",borderColor:"transparent",color:"#fff"}}},{name:"金色vip",value:"gold",theme:{lineColor:"rgb(51, 56, 62)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(127, 93, 64)",backgroundColor:"#fff",root:{fillColor:"rgb(51, 56, 62)",color:"rgb(247, 208, 160)",borderColor:"",borderWidth:0},second:{fillColor:"rgb(239, 209, 176)",color:"rgb(81, 58, 42)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(127, 93, 64)",borderColor:"transparent",color:"rgb(255, 214, 175)"}}},{name:"活力橙",value:"vitalityOrange",theme:{lineColor:"rgb(254, 146, 0)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 222, 69)",backgroundColor:"rgb(255, 246, 243)",root:{fillColor:"rgb(255, 112, 52)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"rgb(51, 51, 51)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(255, 222, 69)",borderColor:"transparent",color:"rgb(51, 51, 51)"}}},{name:"绿叶",value:"greenLeaf",theme:{lineColor:"rgb(40, 193, 84)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(251, 158, 0)",backgroundColor:"rgb(238, 255, 243)",root:{fillColor:"rgb(25, 193, 73)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"rgb(69, 149, 96)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"#fff",borderColor:"rgb(251, 158, 0)",borderWidth:2,color:"rgb(51, 51, 51)"}}},{name:"小黄人",value:"minions",theme:{lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#222",backgroundColor:"rgb(248, 215, 49)",root:{fillColor:"rgb(55, 165, 255)",borderColor:"rgb(51, 51, 51)",borderWidth:3},second:{fillColor:"rgb(255, 160, 36)",color:"#222",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{borderColor:"#222",borderWidth:3,color:"#222"}}},{name:"简约黑",value:"simpleBlack",theme:{lineColor:"rgb(34, 34, 34)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(34, 34, 34)",root:{fillColor:"#fff",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:24},second:{fillColor:"rgb(241, 246, 248)",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:18},node:{fontSize:14,color:"rgb(34, 34, 34)"},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)"}}},{name:"课程绿",value:"courseGreen",theme:{lineColor:"rgb(113, 195, 169)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(113, 195, 169)",root:{fillColor:"rgb(16, 160, 121)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(240, 252, 249)",color:"rgb(50, 113, 96)",borderColor:"rgb(113, 195, 169)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(10, 59, 43)"},generalization:{fontSize:14,fillColor:"rgb(246, 238, 211)",borderColor:"",borderWidth:0,color:"rgb(173, 91, 12)"}}},{name:"咖啡",value:"coffee",theme:{lineColor:"rgb(173, 123, 91)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(173, 123, 91)",root:{fillColor:"rgb(202, 117, 79)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(245, 231, 216)",color:"rgb(125, 86, 42)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(96, 71, 47)"},generalization:{fontSize:14,fillColor:"rgb(255, 249, 239)",borderColor:"rgb(173, 123, 91)",borderWidth:2,color:"rgb(122, 83, 44)"}}},{name:"红色精神",value:"redSpirit",theme:{backgroundColor:"rgb(255, 238, 228)",lineColor:"rgb(230, 138, 131)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(222, 101, 85)",root:{fillColor:"rgb(207, 44, 44)",color:"rgb(255, 233, 157)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(255, 255, 255)",color:"rgb(211, 58, 21)",borderColor:"rgb(222, 101, 85)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(144, 71, 43)"},generalization:{fontSize:14,fillColor:"rgb(255, 247, 211)",borderColor:"rgb(255, 202, 162)",borderWidth:2,color:"rgb(187, 101, 69)"}}},{name:"牛油果",value:"avocado",theme:{backgroundColor:"#e6f1de",lineColor:"#f5ffad",lineWidth:4,generalizationLineWidth:3,generalizationLineColor:"#749336",root:{fillColor:"#94c143",color:"#fff",borderColor:"#94c143",borderWidth:0,fontSize:24},second:{fillColor:"#cee498",color:"#749336",borderColor:"#aec668",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#749336"},generalization:{fontSize:14,fillColor:"#cee498",borderColor:"#aec668",borderWidth:2,color:"#749336"}}},{name:"秋天",value:"autumn",theme:{backgroundColor:"#fff2df",lineColor:"#b0bc47",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#b0bc47",root:{fillColor:"#e68112",color:"#fff",borderColor:"#e68112",borderWidth:0,fontSize:24},second:{fillColor:"#ffd683",color:"#8c5416",borderColor:"#b0bc47",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#8c5416"},generalization:{fontSize:14,fillColor:"#ffd683",borderColor:"#b0bc47",borderWidth:2,color:"#8c5416"}}},{name:"奥利奥",value:"oreo",theme:{lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",root:{fillColor:"rgb(22, 22, 22)",color:"#fff",borderColor:"rgb(22, 22, 22)",borderWidth:3,fontSize:24},second:{fillColor:"rgb(244, 246, 253)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)"}}},{name:"浅海",value:"shallowSea",theme:{backgroundColor:"rgb(187, 241, 250)",lineColor:"rgb(74, 139, 170)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 168, 101)",root:{fillColor:"rgb(51, 149, 255)",color:"#fff",borderColor:"rgb(51, 149, 255)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(74, 139, 170)",color:"#fff",borderColor:"",borderWidth:3,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(255, 168, 101)",borderWidth:2,color:"#000"}}},{name:"柠檬气泡",value:"lemonBubbles",theme:{backgroundColor:"rgb(236, 254, 255)",lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",root:{fillColor:"rgb(39, 222, 232)",color:"rgb(26, 26, 26)",borderColor:"rgb(26, 26, 26)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(235, 255, 187)",color:"rgb(0, 0, 0)",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(26, 26, 26)",borderWidth:2,color:"rgb(26, 26, 26)"}}},{name:"玫瑰",value:"rose",theme:{backgroundColor:"rgb(255, 251, 231)",lineColor:"rgb(110, 165, 79)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(136, 100, 0)",root:{fillColor:"rgb(254, 92, 92)",color:"#fff",borderColor:"rgb(18, 187, 55)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(209, 237, 176)",color:"rgb(85, 136, 55)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(26, 26, 26)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(136, 100, 0)",borderWidth:2,color:"rgb(136, 100, 0)"}}},{name:"海蓝线",value:"seaBlueLine",theme:{backgroundColor:"rgb(231, 245, 255)",lineColor:"rgb(96, 189, 255)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(0, 155, 255)",root:{fillColor:"rgb(96, 189, 255)",color:"#fff",borderColor:"#fff",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"#fff",color:"rgb(0, 149, 255)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 66, 157)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(0, 155, 255)",borderWidth:2,color:"rgb(0, 155, 255)"}}},{name:"莫兰迪",value:"morandi",theme:{backgroundColor:"rgb(252, 245, 241)",lineColor:"rgb(144, 114, 110)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(128, 154, 151)",associativeLineColor:"rgb(166, 124, 106)",associativeLineTextColor:"rgb(166, 124, 106)",root:{fillColor:"rgb(207, 121, 105)",color:"#fff",borderColor:"rgb(207, 121, 105)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(239, 210, 207)",color:"rgb(144, 79, 68)",borderColor:"rgb(222, 186, 183)",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(131, 90, 64)"},generalization:{fontSize:14,fillColor:"rgb(172, 202, 199)",borderColor:"rgb(172, 202, 199)",borderWidth:2,color:"rgb(91, 102, 97)"}}},{name:"仙人掌",value:"cactus",theme:{backgroundColor:"rgb(219, 255, 211)",lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 127, 71)",associativeLineColor:"rgb(160, 220, 63)",associativeLineTextColor:"rgb(160, 220, 63)",root:{fillColor:"rgb(15, 198, 113)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"#fff",color:"rgb(26, 26, 26)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"rgb(255, 127, 71)",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"脑图经典2",value:"classic2",theme:{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"#fff",root:{fillColor:"rgb(18, 187, 55)",color:"#fff",fontSize:24,borderRadius:10},second:{fillColor:"rgb(241, 242, 241)",borderColor:"transparent",color:"#1a1a1a",fontSize:18,borderRadius:10},node:{fontSize:14,color:"#1a1a1a"},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",borderWidth:2,color:"#1a1a1a"}}},{name:"脑图经典3",value:"classic3",theme:{lineColor:"rgb(94, 202, 110)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"#1a1a1a",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(255, 245, 214)",color:"#1a1a1a",fontSize:24,borderRadius:10,borderColor:"rgb(249, 199, 84)",borderWidth:1},second:{fillColor:"rgb(255, 245, 214)",borderColor:"rgb(249, 199, 84)",borderWidth:1,color:"#1a1a1a",fontSize:18,borderRadius:10},node:{fontSize:14,color:"#1a1a1a"},generalization:{fillColor:"#fff",borderColor:"#1a1a1a",color:"#1a1a1a",borderWidth:2}}},{name:"脑图经典4",value:"classic4",theme:{lineColor:"rgb(30, 53, 86)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(56, 123, 233)",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(30, 53, 86)",color:"#fff",fontSize:24,borderRadius:10,borderColor:"rgb(189, 197, 201)",borderWidth:2},second:{fillColor:"rgb(169, 218, 218)",borderColor:"rgb(30, 53, 86)",borderWidth:2,color:"#fff",fontSize:18,borderRadius:10},node:{fontSize:14,color:"rgb(30, 53, 86)",borderColor:"rgb(30, 53, 86)",borderWidth:1,marginY:20},generalization:{fillColor:"rgb(56, 123, 233)",borderColor:"rgb(56, 123, 233)",color:"#fff",borderWidth:0}}},{name:"脑图经典5",value:"classic5",theme:{backgroundColor:"rgb(233, 245, 241)",lineColor:"rgb(34, 34, 34)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(34, 34, 34)",associativeLineColor:"rgb(56, 44, 116)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(56, 44, 116)",color:"#fff",borderColor:"rgb(56, 44, 116)",borderWidth:0,fontSize:24},second:{fillColor:"rgb(161, 213, 188)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"rgb(56, 44, 116)",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"脑图经典6",value:"classic6",theme:{backgroundColor:"rgb(255, 255, 255)",lineColor:"rgb(0, 0, 0)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(0, 0, 0)",associativeLineColor:"rgb(152, 162, 171)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(237, 182, 72)",color:"rgb(0, 0, 0)",borderColor:"rgb(0, 0, 0)",borderWidth:2,fontSize:24},second:{fillColor:"rgb(114, 158, 28)",color:"#fff",borderColor:"rgb(0, 0, 0)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(10, 2, 2)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(10, 2, 2)"}}},{name:"脑图经典7",value:"classic7",theme:{backgroundColor:"rgb(255, 255, 255)",lineColor:"rgb(237, 185, 81)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(226, 90, 64)",associativeLineColor:"rgb(152, 162, 171)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(226, 90, 64)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(43, 118, 239)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(43, 118, 239)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(43, 118, 239)"}}},{name:"脑图经典8",value:"classic8",theme:{backgroundColor:"#fff",lineColor:"#36aaa9",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#36aaa9",associativeLineColor:"#3e58ea",associativeLineTextColor:"#679fba",associativeLineActiveColor:"#50a4b4",root:{fillColor:"#3e58ea",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#e3fbff",color:"#58aabc",borderColor:"#50a4b4",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#50a4b4"},generalization:{fontSize:14,fillColor:"#3e58ea",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"脑图经典9",value:"classic9",theme:{backgroundColor:"#fffcf2",lineColor:"#333333",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#ffda60",associativeLineColor:"#ffda60",associativeLineTextColor:"#333333",associativeLineActiveColor:"#333333",root:{fillColor:"#ffda60",color:"#3b3a37",borderColor:"#343334",borderWidth:2,fontSize:24},second:{fillColor:"#fff",color:"#131312",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#131312"},generalization:{fontSize:14,fillColor:"#ffda60",borderColor:"",borderWidth:0,color:"#464339"}}},{name:"脑图经典10",value:"classic10",theme:{backgroundColor:"#fffef6",lineColor:"#273d62",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#273d62",associativeLineColor:"#9edeee",associativeLineTextColor:"#395c85",associativeLineActiveColor:"#273d62",root:{fillColor:"#273d62",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#9edeee",color:"#406080",borderColor:"#395c85",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#395c85"},generalization:{fontSize:14,fillColor:"#273d62",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"脑图经典11",value:"classic11",theme:{backgroundColor:"#ffffff",lineColor:"#333333",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#2176ef",associativeLineColor:"#2176ef",associativeLineTextColor:"#343433",associativeLineActiveColor:"#343433",root:{fillColor:"#2176ef",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#fff9e4",color:"#4c4b46",borderColor:"#343433",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#343433"},generalization:{fontSize:14,fillColor:"#2176ef",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"脑图经典12",value:"classic12",theme:{backgroundColor:"#ffffff",lineColor:"#35b398",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#21c384",associativeLineColor:"#21c384",associativeLineTextColor:"#4d754b",associativeLineActiveColor:"#f5ffe6",root:{fillColor:"#21c384",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#f5ffe6",color:"#386437",borderColor:"#35b398",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#326032"},generalization:{fontSize:14,fillColor:"#21c384",borderColor:"",borderWidth:0,color:"#fff"}}},{name:"脑图经典13",value:"classic13",theme:{backgroundColor:"#ffffff",lineColor:"#333333",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#ffd613",associativeLineColor:"#ffd613",associativeLineTextColor:"#2d2b23",associativeLineActiveColor:"#d1ebf8",root:{fillColor:"#ffd613",color:"#2d2b23",borderColor:"#1f2021",borderWidth:2,fontSize:24},second:{fillColor:"#d1ebf8",color:"#717b80",borderColor:"#333333",borderWidth:2,fontSize:18,borderRadius:5},node:{fontSize:14,color:"#333333"},generalization:{fontSize:14,fillColor:"#ffd613",borderColor:"",borderWidth:0,color:"#2d2b23"}}},{name:"脑图经典14",value:"classic14",theme:{backgroundColor:"#ffeed2",lineColor:"#976a43",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#19807e",associativeLineColor:"#19807e",associativeLineTextColor:"#764014",associativeLineActiveColor:"#976a43",root:{fillColor:"#19807e",color:"#f3f0b8",borderColor:"",borderWidth:0,fontSize:24,shape:"circle"},second:{fillColor:"#eacdb3",color:"#7f4d1f",borderColor:"#764014",borderWidth:2,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"#764014"},generalization:{fontSize:14,fillColor:"#19807e",borderColor:"",borderWidth:0,color:"#f3f0b8"}}},{name:"脑图经典15",value:"classic15",theme:{backgroundColor:"#c8e4ea",lineColor:"#3e416c",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#3e416c",associativeLineColor:"#ffdb9c",associativeLineTextColor:"#383b70",associativeLineActiveColor:"#3e416c",root:{fillColor:"#383b70",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"#ffdb9c",color:"#5e5c76",borderColor:"#3e416c",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#3e416c"},generalization:{fontSize:14,fillColor:"#383b70",borderColor:"",borderWidth:0,color:"#fff"}}}].map(r=>({...r,dark:!1})),M2=[...k2,...L2],Bd={darkList:k2,lightList:L2,init(r){M2.forEach(t=>{r.defineTheme(t.value,t.theme)})},remove(r){M2.forEach(t=>{r.removeTheme(t.value)})}},D2={zh:{toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"同级节点",insertChildNode:"子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",associativeLine:"关联线",outerFrame:"外框",more:"更多"},leftTopMenu:{menu:"菜单",enterFullScreen:"全屏",exitFullScreen:"退出全屏",enterFullTab:"全标签页",exitFullTab:"退出全标签页",exportFile:"导出",selectExportType:"选择导出类型",saveAttachment:"保存图片附件",selection:"鼠标按键",mouseRightSelect:"左键框选节点,右键拖动画布",mouseLeftSelect:"左键拖动画布,右键框选节点",rainbowLines:"彩虹线条",open:"开启",close:"关闭",structure:"结构",logicalStructure:"逻辑结构图",logicalStructureLeft:"向左逻辑结构图",mindMap:"思维导图",organizationStructure:"组织结构图",catalogOrganization:"目录组织图",timeline:"时间轴",timeline2:"时间轴2",fishbone:"鱼骨图",verticalTimeline:"竖向时间轴",theme:"主题",help:"帮助"},backdrops:{imageOnTitle:"图片",imageUrl:"图片地址",imageUrlPlaceholder:"输入图片地址",imageTitle:"图片标题",linkOnTitle:"超链接",linkUrl:"链接",linkUrlPlaceholder:"输入链接地址",linkName:"名称",remarkOnTitle:"备注",iconOnTitle:"图标",close:"关闭",save:"保存"},showMessage:{themeNotExist:"当前导图笔记的主题不存在,自动更换为默认主题",imageNoteCreated:"图像笔记已经创建成功了!",imageAttachmentCreated:"图像附件已经创建成功了!"},richTextToolbar:{bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",removeFormat:"清除样式"}},en:{toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Sibling node",insertChildNode:"Child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",associativeLine:"Associative line",outerFrame:"Outer frame",more:"more"},leftTopMenu:{menu:"Menu",enterFullScreen:"Enter Full Screen",exitFullScreen:"Exit Full Screen",enterFullTab:"Enter Full Tab",exitFullTab:"Exit Full Tab",exportFile:"Export File",selectExportType:"Select Export Type",saveAttachment:"Save Image Attachment",selection:"Selection",mouseRightSelect:"Left click to drag the canvas, right click to box select nodes",mouseLeftSelect:"Left click to box select nodes, right click to drag the canva",rainbowLines:"RainbowLines",open:"open",close:"close",structure:"Structure",logicalStructure:"logicalStructure",logicalStructureLeft:"logicalStructureLeft",mindMap:"mindMap",organizationStructure:"organizationStructure",catalogOrganization:"catalogOrganization",timeline:"timeline",timeline2:"timeline2",fishbone:"fishbone",verticalTimeline:"verticalTimeline",theme:"Theme",help:"Help"},backdrops:{imageOnTitle:"Image",imageUrl:"Image URL",imageUrlPlaceholder:"Input Image URL",imageTitle:"Image Title",linkOnTitle:"Link",linkUrl:"Link URL",linkUrlPlaceholder:"Input Link URL",linkName:"Link Name",remarkOnTitle:"Remark",iconOnTitle:"Icon",close:"Close",save:"Save"},showMessage:{themeNotExist:"The theme of the current map note does not exist and is automatically changed to the default one",imageNoteCreated:"The image note has been created successfully!",imageAttachmentCreated:"The image attachment has been created!"},richTextToolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strike",removeFormat:"Clear Style"}}};class RS{constructor(t){Nt(this,"lang");this.lang=t}t(t,e){return D2[this.lang][t][e]}p(t){return D2[this.lang][t]}}async function FS(r,t,e,i){await api.runOnBackend((n,o,s,a)=>{let l=api.searchForNote(`#smmImageAttachment AND note.parents.noteId='${n}' AND note.title='${o}'`),h=Buffer.from(a.replace(/^data:image\/[a-zA-Z+]+;base64,/,""),"base64");function c(d){let m=new RegExp("data:image/(?<ext>.*?);base64,.*").exec(d);if(m)return m.groups.ext}const u=c(a);if(s==="svg"&&(h=h.toString("utf-8")),l===null){const d={parentNoteId:n,title:o,content:h,type:"image"};var f=api.createNewNote(d);l=f.note}else l.setContent(h);l.mime=`image/${u}`,l.setLabel("smmImageAttachment"),l.save()},[r,t,e,i])}async function IS(r,t,e,i){await api.runOnBackend((n,o,s,a)=>{const l=api.getNote(n);let h=l.getAttachmentByTitle(o),c=Buffer.from(a.replace(/^data:image\/[a-zA-Z+]+;base64,/,""),"base64");function u(d){let m=new RegExp("data:image/(?<ext>.*?);base64,.*").exec(d);if(m)return m.groups.ext}const f=u(a);if(s==="svg"&&(c=c.toString("utf-8")),h)api.log(h.attachmentId),h.setContent(c),h.utcDateScheduledForErasureSince=null,h.save();else{const d=l.saveAttachment({role:"image",mime:`image/${f}`,title:o,content:c});d.utcDateScheduledForErasureSince=null,d.save()}},[r,t,e,i])}function BS(r,t,e){api.runAsyncOnBackendWithManualTransactionHandling(async(i,n,o)=>{const s=await api.getNote(i);s.title=n,s.setContent(o)},[r,t,e])}const zd={setData:BS,createImageNote:FS,createImageAttachment:IS};var Pd={},Ud={},O2;function zS(){return O2||(O2=1,function(r){var t=/[|\\{}()[\]^$+*?.]/g,e=Object.prototype.hasOwnProperty,i=function(h,c){return e.apply(h,[c])};r.escapeRegExpChars=function(h){return h?String(h).replace(t,"\\$&"):""};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},o=/[&<>'"]/g;function s(h){return n[h]||h}var a=`var _ENCODE_HTML_RULES = {
      "&": "&amp;"
    , "<": "&lt;"
    , ">": "&gt;"
    , '"': "&#34;"
    , "'": "&#39;"
    }
  , _MATCH_HTML = /[&<>'"]/g;
function encode_char(c) {
  return _ENCODE_HTML_RULES[c] || c;
};
`;r.escapeXML=function(h){return h==null?"":String(h).replace(o,s)};function l(){return Function.prototype.toString.call(this)+`;
`+a}try{typeof Object.defineProperty=="function"?Object.defineProperty(r.escapeXML,"toString",{value:l}):r.escapeXML.toString=l}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}r.shallowCopy=function(h,c){if(c=c||{},h!=null)for(var u in c)i(c,u)&&(u==="__proto__"||u==="constructor"||(h[u]=c[u]));return h},r.shallowCopyFromList=function(h,c,u){if(u=u||[],c=c||{},h!=null)for(var f=0;f<u.length;f++){var d=u[f];if(typeof c[d]<"u"){if(!i(c,d)||d==="__proto__"||d==="constructor")continue;h[d]=c[d]}}return h},r.cache={_data:{},set:function(h,c){this._data[h]=c},get:function(h){return this._data[h]},remove:function(h){delete this._data[h]},reset:function(){this._data={}}},r.hyphenToCamel=function(h){return h.replace(/-[a-z]/g,function(c){return c[1].toUpperCase()})},r.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}(),r.hasOwnOnlyObject=function(h){var c=r.createNullProtoObjWherePossible();for(var u in h)i(h,u)&&(c[u]=h[u]);return c}}(Ud)),Ud}const PS={version:"3.1.10"};var R2;function US(){return R2||(R2=1,function(r){/**
 * @file Embedded JavaScript templating engine. {@link http://ejs.co}
 * @author Matthew Eernisse <mde@fleegix.org>
 * @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
 * @project EJS
 * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
 */var t=Su,e=Su,i=zS(),n=!1,o=PS.version,s="<",a=">",l="%",h="locals",c="ejs",u="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",f=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],d=f.concat("cache"),p=/^\uFEFF/,m=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;r.cache=i.cache,r.fileLoader=t.readFileSync,r.localsName=h,r.promiseImpl=new Function("return this;")().Promise,r.resolveInclude=function(T,H,_){var k=e.dirname,O=e.extname,N=e.resolve,X=N(_?H:k(H),T),Z=O(T);return Z||(X+=".ejs"),X};function v(T,H){var _;if(H.some(function(k){return _=r.resolveInclude(T,k,!0),t.existsSync(_)}))return _}function g(T,H){var _,k,O=H.views,N=/^[A-Za-z]+:\\|^\//.exec(T);if(N&&N.length)T=T.replace(/^\/*/,""),Array.isArray(H.root)?_=v(T,H.root):_=r.resolveInclude(T,H.root||"/",!0);else if(H.filename&&(k=r.resolveInclude(T,H.filename),t.existsSync(k)&&(_=k)),!_&&Array.isArray(O)&&(_=v(T,O)),!_&&typeof H.includer!="function")throw new Error('Could not find the include file "'+H.escapeFunction(T)+'"');return _}function b(T,H){var _,k=T.filename,O=arguments.length>1;if(T.cache){if(!k)throw new Error("cache option requires a filename");if(_=r.cache.get(k),_)return _;O||(H=x(k).toString().replace(p,""))}else if(!O){if(!k)throw new Error("Internal EJS error: no file name or template provided");H=x(k).toString().replace(p,"")}return _=r.compile(H,T),T.cache&&r.cache.set(k,_),_}function y(T,H,_){var k;if(_){try{k=b(T)(H)}catch(O){return _(O)}_(null,k)}else{if(typeof r.promiseImpl=="function")return new r.promiseImpl(function(O,N){try{k=b(T)(H),O(k)}catch(X){N(X)}});throw new Error("Please provide a callback function")}}function x(T){return r.fileLoader(T)}function C(T,H){var _=i.shallowCopy(i.createNullProtoObjWherePossible(),H);if(_.filename=g(T,_),typeof H.includer=="function"){var k=H.includer(T,_.filename);if(k&&(k.filename&&(_.filename=k.filename),k.template))return b(_,k.template)}return b(_)}function R(T,H,_,k,O){var N=H.split(`
`),X=Math.max(k-3,0),Z=Math.min(N.length,k+3),W=O(_),yt=N.slice(X,Z).map(function(st,bt){var tt=bt+X+1;return(tt==k?" >> ":"    ")+tt+"| "+st}).join(`
`);throw T.path=W,T.message=(W||"ejs")+":"+k+`
`+yt+`

`+T.message,T}function F(T){return T.replace(/;(\s*$)/,"$1")}r.compile=function(H,_){var k;return _&&_.scope&&(n||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),n=!0),_.context||(_.context=_.scope),delete _.scope),k=new U(H,_),k.compile()},r.render=function(T,H,_){var k=H||i.createNullProtoObjWherePossible(),O=_||i.createNullProtoObjWherePossible();return arguments.length==2&&i.shallowCopyFromList(O,k,f),b(O,T)(k)},r.renderFile=function(){var T=Array.prototype.slice.call(arguments),H=T.shift(),_,k={filename:H},O,N;return typeof arguments[arguments.length-1]=="function"&&(_=T.pop()),T.length?(O=T.shift(),T.length?i.shallowCopy(k,T.pop()):(O.settings&&(O.settings.views&&(k.views=O.settings.views),O.settings["view cache"]&&(k.cache=!0),N=O.settings["view options"],N&&i.shallowCopy(k,N)),i.shallowCopyFromList(k,O,d)),k.filename=H):O=i.createNullProtoObjWherePossible(),y(k,O,_)},r.Template=U,r.clearCache=function(){r.cache.reset()};function U(T,H){var _=i.hasOwnOnlyObject(H),k=i.createNullProtoObjWherePossible();this.templateText=T,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",k.client=_.client||!1,k.escapeFunction=_.escape||_.escapeFunction||i.escapeXML,k.compileDebug=_.compileDebug!==!1,k.debug=!!_.debug,k.filename=_.filename,k.openDelimiter=_.openDelimiter||r.openDelimiter||s,k.closeDelimiter=_.closeDelimiter||r.closeDelimiter||a,k.delimiter=_.delimiter||r.delimiter||l,k.strict=_.strict||!1,k.context=_.context,k.cache=_.cache||!1,k.rmWhitespace=_.rmWhitespace,k.root=_.root,k.includer=_.includer,k.outputFunctionName=_.outputFunctionName,k.localsName=_.localsName||r.localsName||h,k.views=_.views,k.async=_.async,k.destructuredLocals=_.destructuredLocals,k.legacyInclude=typeof _.legacyInclude<"u"?!!_.legacyInclude:!0,k.strict?k._with=!1:k._with=typeof _._with<"u"?_._with:!0,this.opts=k,this.regex=this.createRegex()}U.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},U.prototype={createRegex:function(){var T=u,H=i.escapeRegExpChars(this.opts.delimiter),_=i.escapeRegExpChars(this.opts.openDelimiter),k=i.escapeRegExpChars(this.opts.closeDelimiter);return T=T.replace(/%/g,H).replace(/</g,_).replace(/>/g,k),new RegExp(T)},compile:function(){var T,H,_=this.opts,k="",O="",N=_.escapeFunction,X,Z=_.filename?JSON.stringify(_.filename):"undefined";if(!this.source){if(this.generateSource(),k+=`  var __output = "";
  function __append(s) { if (s !== undefined && s !== null) __output += s }
`,_.outputFunctionName){if(!m.test(_.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");k+="  var "+_.outputFunctionName+` = __append;
`}if(_.localsName&&!m.test(_.localsName))throw new Error("localsName is not a valid JS identifier.");if(_.destructuredLocals&&_.destructuredLocals.length){for(var W="  var __locals = ("+_.localsName+` || {}),
`,yt=0;yt<_.destructuredLocals.length;yt++){var st=_.destructuredLocals[yt];if(!m.test(st))throw new Error("destructuredLocals["+yt+"] is not a valid JS identifier.");yt>0&&(W+=`,
  `),W+=st+" = __locals."+st}k+=W+`;
`}_._with!==!1&&(k+="  with ("+_.localsName+` || {}) {
`,O+=`  }
`),O+=`  return __output;
`,this.source=k+this.source+O}_.compileDebug?T=`var __line = 1
  , __lines = `+JSON.stringify(this.templateText)+`
  , __filename = `+Z+`;
try {
`+this.source+`} catch (e) {
  rethrow(e, __lines, __filename, __line, escapeFn);
}
`:T=this.source,_.client&&(T="escapeFn = escapeFn || "+N.toString()+`;
`+T,_.compileDebug&&(T="rethrow = rethrow || "+R.toString()+`;
`+T)),_.strict&&(T=`"use strict";
`+T),_.debug&&console.log(T),_.compileDebug&&_.filename&&(T=T+`
//# sourceURL=`+Z+`
`);try{if(_.async)try{X=new Function("return (async function(){}).constructor;")()}catch(Tt){throw Tt instanceof SyntaxError?new Error("This environment does not support async/await"):Tt}else X=Function;H=new X(_.localsName+", escapeFn, include, rethrow",T)}catch(Tt){throw Tt instanceof SyntaxError&&(_.filename&&(Tt.message+=" in "+_.filename),Tt.message+=` while compiling ejs

`,Tt.message+=`If the above error is not helpful, you may want to try EJS-Lint:
`,Tt.message+="https://github.com/RyanZim/EJS-Lint",_.async||(Tt.message+=`
`,Tt.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),Tt}var bt=_.client?H:function(wt){var ft=function(Bt,z){var M=i.shallowCopy(i.createNullProtoObjWherePossible(),wt);return z&&(M=i.shallowCopy(M,z)),C(Bt,_)(M)};return H.apply(_.context,[wt||i.createNullProtoObjWherePossible(),N,ft,R])};if(_.filename&&typeof Object.defineProperty=="function"){var tt=_.filename,Q=e.basename(tt,e.extname(tt));try{Object.defineProperty(bt,"name",{value:Q,writable:!1,enumerable:!1,configurable:!0})}catch{}}return bt},generateSource:function(){var T=this.opts;T.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var H=this,_=this.parseTemplateText(),k=this.opts.delimiter,O=this.opts.openDelimiter,N=this.opts.closeDelimiter;_&&_.length&&_.forEach(function(X,Z){var W;if(X.indexOf(O+k)===0&&X.indexOf(O+k+k)!==0&&(W=_[Z+2],!(W==k+N||W=="-"+k+N||W=="_"+k+N)))throw new Error('Could not find matching close tag for "'+X+'".');H.scanLine(X)})},parseTemplateText:function(){for(var T=this.templateText,H=this.regex,_=H.exec(T),k=[],O;_;)O=_.index,O!==0&&(k.push(T.substring(0,O)),T=T.slice(O)),k.push(_[0]),T=T.slice(_[0].length),_=H.exec(T);return T&&k.push(T),k},_addOutput:function(T){if(this.truncate&&(T=T.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!T)return T;T=T.replace(/\\/g,"\\\\"),T=T.replace(/\n/g,"\\n"),T=T.replace(/\r/g,"\\r"),T=T.replace(/"/g,'\\"'),this.source+='    ; __append("'+T+`")
`},scanLine:function(T){var H=this,_=this.opts.delimiter,k=this.opts.openDelimiter,O=this.opts.closeDelimiter,N=0;switch(N=T.split(`
`).length-1,T){case k+_:case k+_+"_":this.mode=U.modes.EVAL;break;case k+_+"=":this.mode=U.modes.ESCAPED;break;case k+_+"-":this.mode=U.modes.RAW;break;case k+_+"#":this.mode=U.modes.COMMENT;break;case k+_+_:this.mode=U.modes.LITERAL,this.source+='    ; __append("'+T.replace(k+_+_,k+_)+`")
`;break;case _+_+O:this.mode=U.modes.LITERAL,this.source+='    ; __append("'+T.replace(_+_+O,_+O)+`")
`;break;case _+O:case"-"+_+O:case"_"+_+O:this.mode==U.modes.LITERAL&&this._addOutput(T),this.mode=null,this.truncate=T.indexOf("-")===0||T.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case U.modes.EVAL:case U.modes.ESCAPED:case U.modes.RAW:T.lastIndexOf("//")>T.lastIndexOf(`
`)&&(T+=`
`)}switch(this.mode){case U.modes.EVAL:this.source+="    ; "+T+`
`;break;case U.modes.ESCAPED:this.source+="    ; __append(escapeFn("+F(T)+`))
`;break;case U.modes.RAW:this.source+="    ; __append("+F(T)+`)
`;break;case U.modes.COMMENT:break;case U.modes.LITERAL:this._addOutput(T);break}}else this._addOutput(T)}H.opts.compileDebug&&N&&(this.currentLine+=N,this.source+="    ; __line = "+this.currentLine+`
`)}},r.escapeXML=i.escapeXML,r.__express=r.renderFile,r.VERSION=o,r.name=c,typeof window<"u"&&(window.ejs=r)}(Pd)),Pd}var jS=US();const vh=Sn(jS),qS=`<div class="smm-toolbar">
    <div class="smm-toolbar-block">
        <div class="smm-toolbar-btn-list">
            <div class="smm-toolbar-btn" id="smm_back"><span class="bx bx-undo icon iconfont"></span><span class="text"><%= toolbar.undo %></span></div>
            <div class="smm-toolbar-btn" id="smm_forward"><span class="bx bx-redo icon iconfont"></span><span class="text"><%= toolbar.redo %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_node"><span class="bx bx-git-branch icon iconfont"></span><span class="text"><%= toolbar.insertSiblingNode %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_child_node"><span class="bx bx-sitemap icon iconfont"></span><span class="text"><%= toolbar.insertChildNode %></span></div>
            <div class="smm-toolbar-btn" id="smm_delete_node"><span class="bx bx-trash icon iconfont"></span><span class="text"><%= toolbar.deleteNode %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_image"><span class="bx bx-image icon iconfont"></span><span class="text"><%= toolbar.image %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_icon"><span class="bx bx-smile icon iconfont"></span><span class="text"><%= toolbar.icon %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_url"><span class="bx bx-link icon iconfont"></span><span class="text"><%= toolbar.link %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_remark"><span class="bx bx-detail icon iconfont"></span><span class="text"><%= toolbar.note %></span></div>
            <div class="smm-toolbar-btn" id="smm_insert_ga"><span class="bx bxs-dashboard icon iconfont"></span><span class="text"><%= toolbar.summary %></span></div>
        </div>
        
        <div class="dropdown">
            <div class="smm-toolbar-btn dropdown-toggle" id="smm_more_dropdown" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="margin-left: 20px;margin-right: 0px;">
                <span class="bx bxs-shapes icon iconfont"></span><span class="text"><%= toolbar.more %></span>
            </div>
            <div class="dropdown-menu" aria-labelledby="smm_more_dropdown">
                <div class="smm-toolbar-btn-list v">
                    <div class="smm-toolbar-btn" id="smm_insert_relation_line"><span class="bx bx-git-compare icon iconfont"></span><span class="text"><%= toolbar.associativeLine %></span></div>
                    <div class="smm-toolbar-btn" id="smm_add_outer_frame"><span class="bx bx-border-none icon iconfont"></span><span class="text"><%= toolbar.outerFrame %></span></div>
                </div>
            </div>
        </div>
    </div>
</div>`;function WS(r){return vh.render(qS,r,{async:!1})}const HS=`<div id="smm_tools" class="smm-tools">
    <ul class="menu">
        <li id="smmtools_menu" class="menu-item action-trigger title">
            <span class="bx bx-menu" />
            <span class="menu-text"><%= leftTopMenu.menu %></span>
        </li>
        <li class="menu-item menu-divider" />
        <li id="smmtools_enter_fullscreen" class="menu-item action-trigger">
            <span class="bx bx-fullscreen" />
            <span class="menu-text"><%= leftTopMenu.enterFullScreen %></span>
        </li>
        <li id="smmtools_exit_fullscreen" class="menu-item action-trigger">
            <span class="bx bx-exit-fullscreen" />
            <span class="menu-text"><%= leftTopMenu.exitFullScreen %></span>
        </li>
        <li id="smmtools_enter_fulltab" class="menu-item action-trigger">
            <span class="bx bx-expand-alt" />
            <span class="menu-text"><%= leftTopMenu.enterFullTab %></span>
        </li>
        <li id="smmtools_exit_fulltab" class="menu-item action-trigger">
            <span class="bx bx-collapse-alt" />
            <span class="menu-text"><%= leftTopMenu.exitFullTab %></span>
        </li>
        <li class="menu-item menu-divider" />
        <li id="smmtools_export" class="menu-item action-trigger">
            <span class="bx bx-export" />
            <span class="menu-text"><%= leftTopMenu.exportFile %></span>
            <select>
                <option value=""><%= leftTopMenu.selectExportType %></option>
                <option value="png">.png</option>
                <option value="json">.json</option>
                <option value="svg">.svg</option>
                <option value="pdf">.pdf</option>
                <option value="md">.md</option>
                <option value="xmind">.xmind</option>
            </select>
        </li>
        <li id="smmtools_save_imagenote" class="menu-item action-trigger">
            <span class="bx bx-image-add" />
            <span class="menu-text"><%= leftTopMenu.saveAttachment %></span>
        </li>
        <li class="menu-item menu-divider" />
        <li id="smmtools_mouse_select" class="menu-item">
            <span class="bx bx-mouse-alt" />
            <span class="menu-text"><%= leftTopMenu.selection %></span>
            <select style="max-width:180px;">
                <option value="0"><%= leftTopMenu.mouseLeftSelect %></option>
                <option value="1"><%= leftTopMenu.mouseRightSelect %></option>
            </select>
        </li>
        <li id="smmtools_rainbow_lines" class="menu-item">
            <span class="bx bxs-magic-wand" />
            <span class="menu-text"><%= leftTopMenu.rainbowLines %></span>
            <select style="max-width:180px;">
                <option value="0"><%= leftTopMenu.close %></option>
                <option value="1"><%= leftTopMenu.open %></option>
            </select>
        </li>
        <li id="smmtools_struct" class="menu-item">
            <span class="bx bx-grid-alt" />
            <span class="menu-text"><%= leftTopMenu.structure %></span>
            <select>
                <option value="logicalStructure"><%= leftTopMenu.logicalStructure %></option>
                <option value="logicalStructureLeft"><%= leftTopMenu.logicalStructureLeft %></option>
                <option value="mindMap"><%= leftTopMenu.mindMap %></option>
                <option value="organizationStructure"><%= leftTopMenu.organizationStructure %></option>
                <option value="catalogOrganization"><%= leftTopMenu.catalogOrganization %></option>
                <option value="timeline"><%= leftTopMenu.timeline %></option>
                <option value="timeline2"><%= leftTopMenu.timeline2 %></option>
                <option value="fishbone"><%= leftTopMenu.fishbone %></option>
                <option value="verticalTimeline"><%= leftTopMenu.verticalTimeline %></option>
            </select>
        </li>
        <li id="smmtools_theme" class="menu-item">
            <span class="bx bx-palette" />
            <span class="menu-text"><%= leftTopMenu.theme %></span>
            <select>
            </select>
        </li>
        <li class="menu-item menu-divider" />
        <li id="smmtools_help" class="menu-item action-trigger">
            <span class="bx bx-help-circle" />
            <span class="menu-text"><%= leftTopMenu.help %></span>
        </li>
    </ul>
</div>`;function GS(r){return vh.render(HS,r,{async:!1})}const VS=`
<div class="smm-backdrops-container">
    <div class="modal fade" id="imageBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="imageBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="imageBackdropLabel"><%= backdrops.imageOnTitle %></h5>
                </div>
                <div class="modal-body">
                    <div class="input-group input-group-sm mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text"><%= backdrops.imageUrl %></span>
                        </div>
                        <input name="imageUrlContent" type="text" class="form-control" placeholder="<%= backdrops.imageUrlPlaceholder %>" />
                    </div>
                    <div class="input-group input-group-sm mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text"><%= backdrops.imageTitle %></span>
                        </div>
                        <input name="imageTitleContent" type="text" class="form-control" />
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-light" data-dismiss="modal" data-bs-dismiss="modal"><%= backdrops.close %></button>
                    <button type="button" id="imageSave" class="btn btn-primary"><%= backdrops.save %></button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="urlLinkBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="urlLinkBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="urlLinkBackdropLabel"><%= backdrops.linkOnTitle %></h5>
                </div>
                <div class="modal-body">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-light" data-dismiss="modal" data-bs-dismiss="modal"><%= backdrops.close %></button>
                    <button type="button" id="urlLinkSave" class="btn btn-primary"><%= backdrops.save %></button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="remarkBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="remarkBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="remarkBackdropLabel"><%= backdrops.remarkOnTitle %></h5>
                </div>
                <div class="modal-body">
                    <div class="input-group mb-3">
                        <textarea class="form-control" name="remarkContent" rows="3"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-light" data-dismiss="modal" data-bs-dismiss="modal"><%= backdrops.close %></button>
                    <button type="button" id="remarkSave" class="btn btn-primary"><%= backdrops.save %></button>
                </div>
            </div>
        </div>
    </div>
    
    <div class="modal fade" id="iconListBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="iconListBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="iconListBackdropLabel"><%= backdrops.iconOnTitle %></h5>
                </div>
                <div class="modal-body">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-light" data-dismiss="modal" data-bs-dismiss="modal"><%= backdrops.close %></button>
                </div>
            </div>
        </div>
    </div>
</div>`;function KS(r){return vh.render(VS,r,{async:!1})}class jd{constructor(t){Nt(this,"context");Nt(this,"mindMap");Nt(this,"config");Nt(this,"$widget");Nt(this,"i18n")}get renderOn(){return"components"}doRender(){return this.$widget=$(""),this.$widget}registerEvent(){}}let XS=`
<div class="smm-richTextToolbar-widget">
    <style>
    .smm-richTextToolbar-widget.hide {
        display: none;
    }
    .smm-richTextToolbar-widget .richTextToolbar {
        position:fixed;
        z-index:3001;
        height:55px;
        background:#fff;
        border:1px solid rgba(0,0,0,0.06);
        border-radius:8px !important;
        box-shadow:0 2px 16px 0 rgba(0,0,0,0.06);
        display:flex;
        align-items:center;
        transform:translateX(-50%);
    }
    .smm-richTextToolbar-widget .richTextToolbar.isDark {
        background:#363b3f;
    }
    .smm-richTextToolbar-widget .richTextToolbar.isDark .rttBtn {
        color:#fff;
    }
    .smm-richTextToolbar-widget .richTextToolbar.isDark .rttBtn:hover {
        background:hsla(0,0%,100%,0.05);
    }
    .smm-richTextToolbar-widget .richTextToolbar .rttBtn {
        width:55px;
        height:55px;
        display:flex;
        justify-content:center;
        align-items:center;
        cursor:pointer;
    }
    .smm-richTextToolbar-widget .richTextToolbar .rttBtn:hover {
        background-color:#eefbed;
    }
    .smm-richTextToolbar-widget .richTextToolbar .rttBtn.active {
        color:#12bb37;
    }
    .smm-richTextToolbar-widget .richTextToolbar .rttBtn .icon {
        font-size:20px;
    }
    .smm-richTextToolbar-widget .richTextToolbar .rttBtn .icon.fontColor {
        font-size:26px;
    }
    .smm-richTextToolbar-widget .fontOptionsList {
        width:150px;
    }
    .smm-richTextToolbar-widget .fontOptionsList.isDark .fontOptionItem {
        color:#fff;
    }
    .smm-richTextToolbar-widget .fontOptionsList.isDark .fontOptionItem:hover {
        background-color:hsla(0,0%,100%,0.05);
    }
    .smm-richTextToolbar-widget .fontOptionsList .fontOptionItem {
        height:30px;
        width:100%;
        display:flex;
        align-items:center;
        cursor:pointer;
    }
    .smm-richTextToolbar-widget .fontOptionsList .fontOptionItem:hover {
        background-color:#f7f7f7;
    }
    .smm-richTextToolbar-widget .fontOptionsList .fontOptionItem.active {
        color:#12bb37;
    }
    </style>

    <div class="richTextToolbar">
        <div class="rttBtn" id="smmRichTextBoldBtn">
            <span class="icon iconfont bx bx-bold"></span>
        </div>
        <div class="rttBtn" id="smmRichTextItalicBtn">
            <span class="icon iconfont bx bx-italic"></span>
        </div>
        <div class="rttBtn" id="smmRichTextUnderlineBtn">
            <span class="icon iconfont bx bx-underline"></span>
        </div>
        <div class="rttBtn" id="smmRichTextStrikeBtn">
            <span class="icon iconfont bx bx-strikethrough"></span>
        </div>
        <div class="rttBtn" id="smmRichTextRemoveFormatBtn">
            <span class="icon iconfont bx bxs-eraser"></span>
        </div>
    </div>
</div>`;class F2 extends jd{constructor(e){super();Nt(this,"context");Nt(this,"mindMap");Nt(this,"config");Nt(this,"showRichTextToolbar");Nt(this,"style");Nt(this,"fontColor");Nt(this,"fontBackgroundColor");Nt(this,"formatInfo");Nt(this,"$richTextToolbar");Nt(this,"$boldBtn");Nt(this,"$italicBtn");Nt(this,"$underlineBtn");Nt(this,"$strikeBtn");Nt(this,"$removeFormatBtn");Nt(this,"onRichTextSelectionChange");Nt(this,"toggleBold");Nt(this,"toggleItalic");Nt(this,"toggleUnderline");Nt(this,"toggleStrike");Nt(this,"removeFormat");this.context=e.context,this.mindMap=e.mindMap,this.config=this.context.config,this.showRichTextToolbar=!1,this.style={left:"200px",top:"100px"},this.fontColor="",this.fontBackgroundColor="",this.formatInfo={},this.i18n=e.i18n}get renderOn(){return"components"}doRender(){return this.$widget=$(XS),this.$richTextToolbar=this.$widget.find(".richTextToolbar"),this.$richTextToolbar.css(this.style),this.$boldBtn=this.$richTextToolbar.find("#smmRichTextBoldBtn"),this.$italicBtn=this.$richTextToolbar.find("#smmRichTextItalicBtn"),this.$underlineBtn=this.$richTextToolbar.find("#smmRichTextUnderlineBtn"),this.$strikeBtn=this.$richTextToolbar.find("#smmRichTextStrikeBtn"),this.$removeFormatBtn=this.$richTextToolbar.find("#smmRichTextRemoveFormatBtn"),this.registerEvent(),this.toggleShowToolBar(),this.$widget}registerEvent(){this.onRichTextSelectionChange=(e,i,n)=>{e&&(this.style.left=i.left+i.width/2+"px",this.style.top=i.top-60+"px",this.formatInfo={...n||{}}),this.showRichTextToolbar=e,this.toggleShowToolBar(),this.toggleBtnActive()},this.toggleBold=()=>{this.setFormatInfo("bold"),this.mindMap.richText.formatText({bold:this.formatInfo.bold})},this.toggleItalic=()=>{this.setFormatInfo("italic"),this.mindMap.richText.formatText({italic:this.formatInfo.italic})},this.toggleUnderline=()=>{this.setFormatInfo("underline"),this.mindMap.richText.formatText({underline:this.formatInfo.underline})},this.toggleStrike=()=>{this.setFormatInfo("strike"),this.mindMap.richText.formatText({strike:this.formatInfo.strike})},this.removeFormat=()=>{this.mindMap.richText.removeFormat()},this.mindMap.on("rich_text_selection_change",this.onRichTextSelectionChange),this.$boldBtn.on("click",this.toggleBold),this.$boldBtn.attr("title",this.i18n.t("richTextToolbar","bold")),this.$italicBtn.click(this.toggleItalic),this.$italicBtn.attr("title",this.i18n.t("richTextToolbar","italic")),this.$underlineBtn.click(this.toggleUnderline),this.$underlineBtn.attr("title",this.i18n.t("richTextToolbar","underline")),this.$strikeBtn.click(this.toggleStrike),this.$strikeBtn.attr("title",this.i18n.t("richTextToolbar","strike")),this.$removeFormatBtn.click(this.removeFormat),this.$removeFormatBtn.attr("title",this.i18n.t("richTextToolbar","removeFormat"))}toggleShowToolBar(){this.showRichTextToolbar?this.$widget.removeClass("hide"):this.$widget.addClass("hide"),this.$richTextToolbar.css(this.style)}toggleBtnActive(){this.formatInfo.bold?this.$boldBtn.addClass("active"):this.$boldBtn.removeClass("active"),this.formatInfo.italic?this.$italicBtn.addClass("active"):this.$italicBtn.removeClass("active"),this.formatInfo.underline?this.$underlineBtn.addClass("active"):this.$underlineBtn.removeClass("active"),this.formatInfo.strike?this.$strikeBtn.addClass("active"):this.$strikeBtn.removeClass("active")}setFormatInfo(e){e in this.formatInfo?this.formatInfo[e]=!this.formatInfo[e]:this.formatInfo[e]=!0,this.toggleBtnActive()}}module.exports=F2;const YS=`
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
    <span class="input-group-text"><%= backdrops.linkUrl %></span>
</div>
<input name="urlLinkContent" type="text" class="form-control" placeholder="<%= backdrops.linkUrlPlaceholder %>" />
</div>
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
    <span class="input-group-text"><%= backdrops.linkName %></span>
</div>
<input name="urlTextContent" type="text" class="form-control" />
</div>
<div class="quick-search input-group input-group-sm mb-3">
  <style>
    .quick-search {
        padding: 10px 10px 10px 0px;
        height: 50px;
    }
  
    .quick-search .dropdown-menu {
        max-height: 600px;
        max-width: 400px;
        overflow-y: auto;
        overflow-x: auto;
        text-overflow: ellipsis;
        box-shadow: -30px 50px 93px -50px black;
    }
  </style>
  <div class="input-group-prepend">
    <button class="btn btn-outline-secondary search-button" type="button" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="bx bx-search"></span>
    </button>
    <div class="dropdown-menu dropdown-menu-left"></div>
  </div>
  <input type="text" class="form-control search-string" placeholder="快速添加笔记超链接">
  </div>
</div>`,qd=15;class ZS extends jd{constructor(e){super();Nt(this,"$searchString");Nt(this,"$dropdownMenu");Nt(this,"$dropdownToggle");Nt(this,"isShowUrl");this.context=e.context,this.mindMap=e.mindMap,this.config=this.context.config,this.i18n=e.i18n,this.isShowUrl=e.isShowUrl}get renderOn(){return"backdrops"}doRender(){return this.$widget=$(vh.render(YS,{backdrops:this.i18n.p("backdrops")},{async:!1})),this.$searchString=this.$widget.find(".search-string"),this.$dropdownMenu=this.$widget.find(".dropdown-menu"),this.$dropdownToggle=this.$widget.find(".search-button"),this.$dropdownToggle.dropdown(),this.$widget.find(".input-group-prepend").on("shown.bs.dropdown",()=>this.search()),this.$searchString.keydown(e=>{e.which===13&&(this.$dropdownMenu.is(":visible")?this.search():this.$dropdownToggle.dropdown("show"),e.preventDefault(),e.stopPropagation())}),this.$widget}async search(){const e=this.$searchString.val().trim();if(!e){this.$dropdownToggle.dropdown("hide");return}this.$dropdownMenu.empty(),this.$dropdownMenu.append('<span class="dropdown-item disabled"><span class="bx bx-loader bx-spin"></span> Searching ...</span>');const i=await api.searchForNotes(e),n=i.slice(0,Math.min(qd,i.length));this.$dropdownMenu.empty(),n.length===0&&this.$dropdownMenu.append('<span class="dropdown-item disabled">No results found</span>');for(const o of n){const s=await api.createLink(o.noteId,{showNotePath:!0,showNoteIcon:!0}),a=s.find("a");s.addClass("dropdown-item"),s.attr("tabIndex","0");let l=a.attr("href")??"",h=a.text();this.isShowUrl||a.replaceWith($(`<span value="${l}">${h}</span>`)),s.on("click",c=>{this.$dropdownToggle.dropdown("hide"),this.callback(c,{url:l,title:h}),(!c.target||c.target.nodeName!=="A")&&(this.$widget.find('input[name="urlLinkContent"]').val(l),this.$widget.find('input[name="urlTextContent"]').val(h))}),this.$dropdownMenu.append(s)}i.length>qd&&this.$dropdownMenu.append(`<span class="dropdown-item disabled">... and ${i.length-qd} more results.</span>`),this.$dropdownToggle.dropdown("update")}callback(e,i){throw new Error("Method not implemented.")}}const JS=`
<div class="smm-icon-widget">
    <style>
    .smm-icon-widget .icon-container {
    }
    
    .smm-icon-widget .icon-box .icon-box-item {
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    .smm-icon-widget .icon-box .icon-box-item .icon-title {
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }
    
    .smm-icon-widget .icon-list {
        display: flex;
        flex-wrap: wrap;
    }
    
    .smm-icon-widget .icon-list .icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        margin-bottom: 10px;
        cursor: pointer;
        position: relative;
    }
    
    .smm-icon-widget .icon-list .icon.selected:after {
        content: "";
        position: absolute;
        left: -4px;
        top: -2.5px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid #409eff;
        box-sizing: content-box !important;
    }
    
    .smm-icon-widget .icon-list .icon svg{
        width: 100%;
        height: 100%;
    }
    </style>
    <div class="icon-container">
        <div class="icon-box"></div>
    </div>
</div>`;class QS extends jd{constructor(e){super();Nt(this,"nodeIconList");Nt(this,"activeName");Nt(this,"iconList");Nt(this,"$iconBox");Nt(this,"smmRender");this.smmRender=e.smmRender,this.nodeIconList=e.iconList,this.activeName="icon",this.iconList=[]}get renderOn(){return"backdrops"}doRender(){return this.$widget=$(JS),this.$iconBox=this.$widget.find(".icon-box"),this.renderIconBoxItem(),this.$widget}renderIconBoxItem(){this.$iconBox.empty();for(const e of this.nodeIconList){let i=$(`<div class="icon-box-item" name="${e.type}"></div>`),n=$(`<div class="icon-title">${e.name}</div>`);i.append(n),i.append(this.renderIconList(e)),this.$iconBox.append(i)}}renderIconList(e){let i=$('<div class="icon-list"></div>');for(const n of e.list){const o=this.renderIcon(e.type,n);o.click(()=>{this.setIcon(e.type,n.name)}),i.append(o)}return i}renderIcon(e,i){const n=$(this.getHtml(i.icon)),o=`<div class="icon" name="${e}_${i.name}"></div>`;return $(o).append(n)}getHtml(e){return/^<svg/.test(e)?e:`<img src="${e}" />`}setIcon(e,i){this.smmRender.activeNodes.forEach(n=>{const o=[...n.getData("icon")||[]];let s=e+"_"+i,a=o.findIndex(l=>l===s);if(a!==-1)o.splice(a,1);else{let l=o.findIndex(h=>h.split("_")[0]===e);l!==-1?o.splice(l,1,s):o.push(s)}n.setIcon(o),this.smmRender.activeNodes.length===1&&(this.iconList=o,this.smmRender.set_icon_selected(o))})}}Ue.usePlugin(I0).usePlugin(z0).usePlugin(G0).usePlugin(V1).usePlugin(gg).usePlugin(K0).usePlugin(vg).usePlugin(yg).usePlugin(TouchEvent).usePlugin(_2),Bd.init(Ue);class $S{constructor(t){Nt(this,"initialized");Nt(this,"smmContainerId");Nt(this,"MindMap");Nt(this,"activeNodes");Nt(this,"themeList");Nt(this,"iconList");Nt(this,"toolbarBtnsRole");Nt(this,"context");Nt(this,"mindMap");Nt(this,"t");Nt(this,"i18n");Nt(this,"$render");Nt(this,"isStart");Nt(this,"isEnd");Nt(this,"outerFramePositionBtnShow");Nt(this,"outerFramePosition");Nt(this,"$nodeOuterFrameContainer");Nt(this,"$backdrops");Nt(this,"switch_fullscreen_button",()=>{t9()?(this.$render.addClass("full"),this.context.widget.find("#smmtools_enter_fullscreen").addClass("hidden-ext"),this.context.widget.find("#smmtools_exit_fullscreen").removeClass("hidden-ext")):(this.$render.removeClass("full"),this.context.widget.find("#smmtools_enter_fullscreen").removeClass("hidden-ext"),this.context.widget.find("#smmtools_exit_fullscreen").addClass("hidden-ext"))});this.context=t,this.smmContainerId="smm_container",this.MindMap=Ue,this.initialized=!1,this.activeNodes=[],this.themeList=[{name:"默认主题",value:"default",dark:!1},...Bd.lightList,...Bd.darkList].reverse(),this.iconList=yc,this.toolbarBtnsRole={unselected:[{id:"smm_delete_node",enabled:!1},{id:"smm_insert_node",enabled:!1},{id:"smm_insert_child_node",enabled:!1},{id:"smm_insert_image",enabled:!1},{id:"smm_insert_url",enabled:!1},{id:"smm_insert_icon",enabled:!1},{id:"smm_insert_remark",enabled:!1},{id:"smm_insert_ga",enabled:!1},{id:"smm_insert_relation_line",enabled:!1},{id:"smm_add_outer_frame",enabled:!1}],root:[{id:"smm_delete_node",enabled:!0},{id:"smm_insert_node",enabled:!1},{id:"smm_insert_child_node",enabled:!0},{id:"smm_insert_image",enabled:!0},{id:"smm_insert_url",enabled:!0},{id:"smm_insert_icon",enabled:!0},{id:"smm_insert_remark",enabled:!0},{id:"smm_insert_ga",enabled:!1},{id:"smm_insert_relation_line",enabled:!0},{id:"smm_add_outer_frame",enabled:!0}],node:[{id:"smm_delete_node",enabled:!0},{id:"smm_insert_node",enabled:!0},{id:"smm_insert_child_node",enabled:!0},{id:"smm_insert_image",enabled:!0},{id:"smm_insert_url",enabled:!0},{id:"smm_insert_icon",enabled:!0},{id:"smm_insert_remark",enabled:!0},{id:"smm_insert_ga",enabled:!0},{id:"smm_insert_relation_line",enabled:!0},{id:"smm_add_outer_frame",enabled:!0}],generalization:[{id:"smm_delete_node",enabled:!0},{id:"smm_insert_node",enabled:!1},{id:"smm_insert_child_node",enabled:!1},{id:"smm_insert_image",enabled:!0},{id:"smm_insert_url",enabled:!0},{id:"smm_insert_icon",enabled:!0},{id:"smm_insert_remark",enabled:!0},{id:"smm_insert_ga",enabled:!1},{id:"smm_insert_relation_line",enabled:!1},{id:"smm_add_outer_frame",enabled:!1}]},this.i18n=new RS(this.context.config.lang)}async init(){this.$render=this.context.widget.find(".smm-render"),this.$render.append($('<div id="smm_container" class="smm-container"></div>')),this.$render.append($(WS({toolbar:this.i18n.p("toolbar")}))),this.$render.append($(GS({leftTopMenu:this.i18n.p("leftTopMenu")}))),this.$backdrops=$(KS({backdrops:this.i18n.p("backdrops")})),this.$render.append(this.$backdrops),this.$render.append(`
<div class="smm-components-container">
    <div id="nodeOuterFrameContainer">
        <div class="smm-outer-frame-btn" id="smm_delete_outer_frame">
            <span class="bx bx-trash iconfont"></span>
        </div>
    </div>
</div>`);{let t=this.context.widget.parent().attr("data-component-id");this.context.config.showSource?(this.context.widget.addClass("smm-show-source"),this.context.widget.removeClass("smm-hide-source")):(this.context.widget.parent().css("position","relative"),this.context.widget.addClass("smm-hide-source"),this.context.widget.removeClass("smm-show-source")),this.smmContainerId=`smm_container_${t}`,this.context.widget.find("#smm_container").attr("id",this.smmContainerId),this.context.widget.insertBefore(this.context.widget.parent().find(".mermaid-widget")),this.context.widget.addClass("scrolling-container")}await this.render_mind_data(),this.toolbar_render(),this.register_toolbar_event(),this.register_components_event(),this.register_smmtools(),this.register_widget(F2,{}),this.register_widget(ZS,{id:"urlLinkBackdrop",showUrl:!1}),this.register_widget(QS,{id:"iconListBackdrop",iconList:this.iconList,activeNodes:this.activeNodes,smmRender:this}),this.context.widget.parent().children(".smm-backdrops-container").remove(),this.$backdrops.insertBefore(this.context.widget)}register_widget(t,e){const i=new t({context:this.context,mindMap:this.mindMap,i18n:this.i18n,...e});switch(i.renderOn){case"components":this.$render.find(".smm-components-container").append(i.doRender());break;case"backdrops":this.$backdrops.find(`#${e.id} .modal-body`).append(i.doRender());break}}async render_mind_data(){if(this.context.note.isJson()){let t=await this.context.note.getContent();this.initialized||(this.create_mind_map(t),this.initialized=!0),console.log("smm render success")}}create_mind_map(t){const e={el:this.context.widget.find(`#${this.smmContainerId}`).get(0),initRootNodePosition:["center","center"],layout:"logicalStructure"};this.mindMap=new Ue(e),this.mindMap.rainbowLines.updateRainLinesConfig(this.context.config.rainbowLinesConfig??!1);let i=JSON.parse(t),n=i.theme.template;this.themeList.findIndex(s=>s.value==n)===-1&&(i.theme.template="classic4",api.showMessage(this.i18n.t("showMessage","themeNotExist"))),this.mindMap.setFullData(i),this.mindMap.on("node_active",(s,a)=>{this.activeNodes=a,this.toolbar_render()}),this.mindMap.on("data_change",s=>{this.save_mind_note()}),this.mindMap.on("node_tree_render_end",s=>{this.set_note_link_target()}),this.isStart=!0,this.isEnd=!0,this.mindMap.on("back_forward",(s,a)=>{this.isStart=s<=0,this.isEnd=s>=a-1,this.toolbar_btn_toggle_status("smm_back",!this.isStart),this.toolbar_btn_toggle_status("smm_forward",!this.isEnd)}),this.outerFramePositionBtnShow=!1,this.outerFramePosition={left:"0px",top:"0px"},this.$nodeOuterFrameContainer=this.$render.find("#nodeOuterFrameContainer"),this.mindMap.on("outer_frame_active",(s,a,l)=>{a.children[l[0]].getData("outerFrame");const{x:c,y:u,width:f}=s.rbox();this.outerFramePosition.left=c+f+"px",this.outerFramePosition.top=u+"px",this.outerFramePositionBtnShow=!0,this.$nodeOuterFrameContainer.css(this.outerFramePosition),this.$nodeOuterFrameContainer.addClass("smm-outer-frame-active")});const o=()=>{this.outerFramePositionBtnShow=!1,this.$nodeOuterFrameContainer.removeClass("smm-outer-frame-active")};this.mindMap.on("scale",o),this.mindMap.on("translate",o),this.mindMap.on("svg_mousedown",o),this.mindMap.on("expand_btn_click",o),this.mindMap.on("outer_frame_delete",o)}save_mind_note(){let t=this.mindMap.getData(!0),e=JSON.stringify(t);zd.setData(this.context.note.noteId,this.context.note.title,e)}set_note_link_target(t=/^#root/,e="_self"){this.context.widget.find(".smm-container svg g.smm-node a").each((i,n)=>{let o=$(n);t.test(o.attr("href")??"")&&o.attr("target",e)})}toolbar_render(){if(this.activeNodes.length===0){this.toolbarBtnsRole.unselected.forEach(t=>{this.toolbar_btn_toggle_status(t.id,t.enabled)});return}if(this.has_generalization()){this.toolbarBtnsRole.generalization.forEach(t=>{this.toolbar_btn_toggle_status(t.id,t.enabled)});return}if(this.has_root()){this.toolbarBtnsRole.root.forEach(t=>{this.toolbar_btn_toggle_status(t.id,t.enabled)});return}this.toolbarBtnsRole.node.forEach(t=>{this.toolbar_btn_toggle_status(t.id,t.enabled)})}has_root(){return this.activeNodes.findIndex(t=>t.isRoot)!==-1}has_generalization(){return this.activeNodes.findIndex(t=>t.isGeneralization)!==-1}toolbar_btn_toggle_status(t,e){let i=this.context.widget.find(`.smm-toolbar-btn#${t}`);e?i.removeClass("disabled"):i.addClass("disabled")}register_toolbar_event(){this.$render.find(".smm-toolbar-btn#smm_back").on("click",()=>!this.isStart&&this.back()),this.$render.find(".smm-toolbar-btn#smm_forward").on("click",()=>!this.isEnd&&this.forward()),this.$render.find(".smm-toolbar-btn#smm_delete_node").on("click",()=>this.delete_node()),this.$render.find(".smm-toolbar-btn#smm_insert_node").on("click",()=>this.insert_node()),this.$render.find(".smm-toolbar-btn#smm_insert_child_node").on("click",()=>this.insert_child_node()),this.$render.find(".smm-toolbar-btn#smm_insert_image").on("click",()=>this.insert_image()),this.$render.find(".smm-toolbar-btn#smm_insert_url").on("click",()=>this.insert_url()),this.$render.find(".smm-toolbar-btn#smm_insert_icon").on("click",()=>this.insert_icon()),this.$render.find(".smm-toolbar-btn#smm_insert_remark").on("click",()=>this.insert_remark()),this.$render.find(".smm-toolbar-btn#smm_insert_ga").on("click",()=>this.insert_ga()),this.$render.find(".smm-toolbar-btn#smm_insert_relation_line").on("click",()=>this.insert_relation_line()),this.$render.find(".smm-toolbar-btn#smm_add_outer_frame").on("click",()=>this.add_outer_frame())}register_components_event(){this.$render.find(".smm-components-container #nodeOuterFrameContainer #smm_delete_outer_frame").on("click",()=>this.delete_outer_frame())}back(){this.mindMap.execCommand("BACK"),this.save_mind_note()}forward(){this.mindMap.execCommand("FORWARD"),this.save_mind_note()}delete_node(){this.mindMap.execCommand("REMOVE_NODE")}insert_node(){this.mindMap.execCommand("INSERT_NODE")}insert_child_node(){this.mindMap.execCommand("INSERT_CHILD_NODE")}insert_image(){let t="",e="";this.activeNodes.forEach(i=>{i.getData("image")&&i.getData("image")!==""&&(t=i.getData("image"),e=i.getData("imageTitle"))}),this.$backdrops.find('#imageBackdrop input[name="imageUrlContent"]').val(t),this.$backdrops.find('#imageBackdrop input[name="imageTitleContent"]').val(e),this.$backdrops.find("#imageBackdrop").modal("show"),this.$backdrops.find("#imageSave").on("click",()=>{t=this.$backdrops.find('#imageBackdrop input[name="imageUrlContent"]').val(),e=this.$backdrops.find('#imageBackdrop input[name="imageTitleContent"]').val();let i=100,n=100;this.activeNodes.forEach(o=>{o.setImage({url:t,title:e,width:i,height:n})}),this.$backdrops.find("#imageBackdrop").modal("hide")})}insert_url(){let t="",e="";this.activeNodes.length==1&&this.activeNodes.forEach(i=>{i.getData("hyperlink")&&i.getData("hyperlink")!==""&&(t=i.getData("hyperlink"),e=i.getData("hyperlinkTitle"))}),this.$backdrops.find('#urlLinkBackdrop input[name="urlLinkContent"]').val(t),this.$backdrops.find('#urlLinkBackdrop input[name="urlTextContent"]').val(e),this.$backdrops.find("#urlLinkBackdrop").modal("show"),this.$backdrops.find("#urlLinkSave").on("click",()=>{t=this.$backdrops.find('#urlLinkBackdrop input[name="urlLinkContent"]').val(),e=this.$backdrops.find('#urlLinkBackdrop input[name="urlTextContent"]').val(),this.activeNodes.forEach(i=>{i.setHyperlink(t,e)}),this.$backdrops.find("#urlLinkBackdrop").modal("hide")})}insert_icon(){let t=[];this.activeNodes.length>0&&this.activeNodes.length===1&&(t=this.activeNodes[0].getData("icon")||[]),this.set_icon_selected(t),this.$backdrops.find("#iconListBackdrop").modal("show")}set_icon_selected(t){this.$backdrops.find(".icon-box .icon-list .icon").removeClass("selected");for(const e of t)this.$backdrops.find(`.icon-box .icon-list .icon[name="${e}"]`).addClass("selected")}insert_remark(){let t="";this.activeNodes.forEach(e=>{e.getData("note")&&e.getData("note")!==""&&(t=e.getData("note"))}),this.$backdrops.find('#remarkBackdrop textarea[name="remarkContent"]').val(t),this.$backdrops.find("#remarkBackdrop").modal("show"),this.$backdrops.find("#remarkSave").on("click",()=>{t=this.$backdrops.find('#remarkBackdrop textarea[name="remarkContent"]').val(),this.activeNodes.forEach(e=>{e.setNote(t)}),this.$backdrops.find("#remarkBackdrop").modal("hide")})}insert_ga(){this.mindMap.execCommand("ADD_GENERALIZATION")}insert_relation_line(){this.mindMap.associativeLine.createLineFromActiveNode()}add_outer_frame(){this.mindMap.execCommand("ADD_OUTER_FRAME",[],{fill:"transparent"})}delete_outer_frame(){this.outerFramePositionBtnShow=!1,this.$nodeOuterFrameContainer.removeClass("smm-outer-frame-active"),this.mindMap.outerFrame.removeActiveOuterFrame()}register_smmtools(){let t=this.$render.find("#smmtools_menu"),e=this.$render.find("#smm_tools"),i=this.$render.find("#smmtools_save_imagenote"),n=this.$render.find("#smmtools_help");t.on("click",()=>{this.switch_fullscreen_button(),e.toggleClass("smm-tools-active")}),this.register_fullscreen_event(),this.register_fulltab_event(),$(document).on("click",function(o){$(o.target).closest(e).length>0||e.removeClass("smm-tools-active")}),i.on("click",()=>{let o=this.context.config.imageNoteType;this.mindMap.export(o,!1).then(s=>{this.context.config.exportType==="note"?zd.createImageNote(this.context.note.noteId,`simple-mind-map-export.${o}`,o,s).then(a=>{api.showMessage(this.i18n.t("showMessage","imageNoteCreated"))}):zd.createImageAttachment(this.context.note.noteId,`simple-mind-map-export.${o}`,o,s).then(a=>{api.showMessage(this.i18n.t("showMessage","imageAttachmentCreated"))})})}),n.on("click",()=>{this.open_help_info()}),this.render_smm_export_select(),this.render_smm_mouse_select(),this.render_smm_rainbow_lines_select(),this.render_smm_theme_select(),this.render_smm_struct_select()}register_fullscreen_event(){this.switch_fullscreen_button(),this.context.widget.find("#smmtools_enter_fullscreen").on("click",()=>{var t=document.body;e9(t)}),this.context.widget.find("#smmtools_exit_fullscreen").on("click",()=>{i9()}),window.addEventListener("resize",t=>{try{this.mindMap.resize()}catch{}this.switch_fullscreen_button()},!0)}register_fulltab_event(){let t=this.context.widget.find("#smmtools_enter_fulltab"),e=this.context.widget.find("#smmtools_exit_fulltab");t.click(()=>{this.context.widget.parent().css("position","relative"),this.context.widget.addClass("smm-hide-source"),this.context.widget.removeClass("smm-show-source"),t.addClass("hidden-ext"),e.removeClass("hidden-ext"),this.mindMap.resize()}),e.click(()=>{this.context.widget.parent().css("position",""),this.context.widget.addClass("smm-show-source"),this.context.widget.removeClass("smm-hide-source"),t.removeClass("hidden-ext"),e.addClass("hidden-ext"),this.mindMap.resize()}),this.context.config.showSource?(t.removeClass("hidden-ext"),e.addClass("hidden-ext")):(t.addClass("hidden-ext"),e.removeClass("hidden-ext"))}render_smm_export_select(){let t=this.context.widget.find("#smmtools_export select");t.val(""),t.on("change",e=>{let i=$(e.target).children("option:selected").val();this.mindMap.export(i,!0,this.context.note.title),$(e.target).val("")})}render_smm_mouse_select(){let t=this.context.widget.find("#smmtools_mouse_select select");t.val(this.context.config.useLeftKeySelectionRightKeyDrag?"1":"0"),this.mindMap.updateConfig({useLeftKeySelectionRightKeyDrag:this.context.config.useLeftKeySelectionRightKeyDrag}),t.on("change",e=>{$(e.target).children("option:selected").val()=="0"?this.context.config.useLeftKeySelectionRightKeyDrag=!1:this.context.config.useLeftKeySelectionRightKeyDrag=!0,this.mindMap.updateConfig({useLeftKeySelectionRightKeyDrag:this.context.config.useLeftKeySelectionRightKeyDrag})})}render_smm_rainbow_lines_select(){let t=this.context.widget.find("#smmtools_rainbow_lines select");t.val(this.mindMap.opt.rainbowLinesConfig.open?"1":"0"),t.on("change",e=>{this.mindMap.rainbowLines.updateRainLinesConfig({open:$(e.target).children("option:selected").val()=="1"})})}render_smm_theme_select(){let t=this.$render.find("#smmtools_theme select");const e=i=>{this.context.config.lang==="en"?t.append(`<option value="${i.value}">${i.value}</option>`):t.append(`<option value="${i.value}">${i.name}</option>`)};for(const i of this.themeList)e(i);t.val(this.mindMap.getTheme()),t.on("change",i=>{this.mindMap.setTheme($(i.target).children("option:selected").val()),this.save_mind_note()})}render_smm_struct_select(){let t=this.$render.find("#smmtools_struct select");t.val(this.mindMap.getLayout()),t.on("change",e=>{this.mindMap.setLayout($(e.target).children("option:selected").val()),this.save_mind_note()})}open_help_info(){window.open(this.context.config.helpUrl,"_blank").focus()}}function t9(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}function e9(r,t){r.requestFullscreen?r.requestFullscreen().then(()=>{}):r.mozRequestFullScreen?r.mozRequestFullScreen().then(()=>{}):r.webkitRequestFullScreen&&r.webkitRequestFullScreen().then(()=>{})}function i9(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}return $S});