diff --git a/README.md b/README.md index 91abbb8..6b31293 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ | path | 所有上级id | 默认: -, 例如: -1-2-3- | | sort | 排序 | 正序 | -### 修改组件鉴权 `permission` 方法 +### 修改扩展 slowlyo/owl-admin 鉴权 `permission` 方法 - `vendor\slowlyo\owl-admin\src\Renderers\BaseRenderer.php` diff --git a/composer.lock b/composer.lock index 0f1e4a2..7e81a42 100644 --- a/composer.lock +++ b/composer.lock @@ -3395,16 +3395,16 @@ }, { "name": "slowlyo/owl-admin", - "version": "v4.0.0", + "version": "v4.0.3", "source": { "type": "git", "url": "https://github.com/slowlyo/owl-admin.git", - "reference": "8d7be77b8cba8703b4573d54119bdda2bdcef233" + "reference": "667249c5d333777f78625d5a355b7587cff5c549" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slowlyo/owl-admin/zipball/8d7be77b8cba8703b4573d54119bdda2bdcef233", - "reference": "8d7be77b8cba8703b4573d54119bdda2bdcef233", + "url": "https://api.github.com/repos/slowlyo/owl-admin/zipball/667249c5d333777f78625d5a355b7587cff5c549", + "reference": "667249c5d333777f78625d5a355b7587cff5c549", "shasum": "" }, "require": { @@ -3456,10 +3456,10 @@ "email": "slowlyo_email@qq.com", "forum": "https://github.com/orgs/owl-admin/discussions", "issues": "https://github.com/Slowlyo/owl-admin/issues", - "source": "https://github.com/slowlyo/owl-admin/tree/v4.0.0", + "source": "https://github.com/slowlyo/owl-admin/tree/v4.0.3", "wiki": "https://doc.owladmin.com/" }, - "time": "2024-09-23T14:55:43+00:00" + "time": "2024-10-28T14:20:18+00:00" }, { "name": "symfony/clock", diff --git a/public/admin-assets/assets/BarCode-BTxv7DZS.js.gz b/public/admin-assets/assets/BarCode-BTxv7DZS.js.gz deleted file mode 100644 index b2467cd..0000000 Binary files a/public/admin-assets/assets/BarCode-BTxv7DZS.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/BarCode-BTxv7DZS.js b/public/admin-assets/assets/BarCode-DpnPIDra.js similarity index 99% rename from public/admin-assets/assets/BarCode-BTxv7DZS.js rename to public/admin-assets/assets/BarCode-DpnPIDra.js index 3af1b5a..111ffb1 100644 --- a/public/admin-assets/assets/BarCode-BTxv7DZS.js +++ b/public/admin-assets/assets/BarCode-DpnPIDra.js @@ -1 +1 @@ -import{o as At,s as Pt,R as te,Q as Tt}from"./index-CgQH3-O6.js";var he={},U={},l={};Object.defineProperty(l,"__esModule",{value:!0});function Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var kt=function t(e,r){Mt(this,t),this.data=e,this.text=r.text||e,this.options=r};l.default=kt;Object.defineProperty(U,"__esModule",{value:!0});U.CODE39=void 0;var It=function(){function t(e,r){for(var n=0;n=200){u=n.shift()-105;var y=h.SWAP[u];y!==void 0?o=e.next(n,a+1,y):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var $=e.getBar(u),Rt=u*a;return{result:$+o.result,checksum:Rt+o.checksum}}}]),e}(Wt.default);P.default=tn;var _e={};Object.defineProperty(_e,"__esModule",{value:!0});var g=f,ut=function(e){return e.match(new RegExp("^"+g.A_CHARS+"*"))[0].length},ft=function(e){return e.match(new RegExp("^"+g.B_CHARS+"*"))[0].length},ct=function(e){return e.match(new RegExp("^"+g.C_CHARS+"*"))[0]};function ve(t,e){var r=e?g.A_CHARS:g.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+"Ì"+lt(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+ve(t.substring(a.length),!e)}function lt(t){var e=ct(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=ut(t)>=ft(t);return e+String.fromCharCode(n?206:205)+ve(t,n)}_e.default=function(t){var e=void 0,r=ct(t).length;if(r>=2)e=g.C_START_CHAR+lt(t);else{var n=ut(t)>ft(t);e=(n?g.A_START_CHAR:g.B_START_CHAR)+ve(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return"Ë"+i})};Object.defineProperty(de,"__esModule",{value:!0});var nn=P,rn=ht(nn),an=_e,on=ht(an);function ht(t){return t&&t.__esModule?t:{default:t}}function un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cn=function(t){fn(e,t);function e(r,n){if(un(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,on.default)(r),n));else var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return ae(a)}return e}(rn.default);de.default=cn;var se={};Object.defineProperty(se,"__esModule",{value:!0});var ln=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:S.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:S.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:S.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[S.SIDE_BIN,this.leftEncode(),S.MIDDLE_BIN,this.rightEncode(),S.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(Vn.default);V.default=Yn;Object.defineProperty(ge,"__esModule",{value:!0});var Zn=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Br(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==fe(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,x.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,x.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,x.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,x.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Cr.default);function fe(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}L.default=Xr;var me={};Object.defineProperty(me,"__esModule",{value:!0});var zr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=Kr[parseInt(a)][parseInt(n)];return(0,qr.default)(this.middleDigits,i)}}]),e}(Jr.default);function Je(t,e){for(var r=parseInt(t[t.length-1]),n=Zr[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(ki.default);Q.pharmacode=Li;var W={};Object.defineProperty(W,"__esModule",{value:!0});W.codabar=void 0;var Ni=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Et(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function Eo(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}d.getMaximumHeightOfEncodings=Oo;d.getEncodingHeight=Ot;d.getBarcodePadding=Et;d.calculateEncodingAttributes=po;d.getTotalWidthOfEncodings=go;Object.defineProperty(Ie,"__esModule",{value:!0});var bo=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();Ie.default=xo;var De={};Object.defineProperty(De,"__esModule",{value:!0});var Ro=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(z,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",z),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(z,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(z,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();De.default=ko;var je={};Object.defineProperty(je,"__esModule",{value:!0});var Io=function(){function t(e,r){for(var n=0;n"u"?"undefined":Uo(t))==="object"&&!t.nodeName)return{element:t,renderer:B.default.ObjectRenderer};throw new Jo.InvalidElementException}}function Qo(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,iu.default)(e),a._encodings=[],a._options=$t.default,a._errorHandler=new cu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=xt()),a.options(n)[n.format](r,n).render()),a};ee.getModule=function(t){return E.default[t]};for(var tt in E.default)E.default.hasOwnProperty(tt)&&hu(E.default,tt);function hu(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,G.default)(a._options,n);i=(0,uu.default)(i);var o=t[e],u=St(r,o,i);return a._encodings.push(u),a})}}function St(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new wt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,mt.default)(a);for(var i=0;i=200){u=n.shift()-105;var y=h.SWAP[u];y!==void 0?o=e.next(n,a+1,y):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var $=e.getBar(u),Rt=u*a;return{result:$+o.result,checksum:Rt+o.checksum}}}]),e}(Wt.default);P.default=tn;var _e={};Object.defineProperty(_e,"__esModule",{value:!0});var g=f,ut=function(e){return e.match(new RegExp("^"+g.A_CHARS+"*"))[0].length},ft=function(e){return e.match(new RegExp("^"+g.B_CHARS+"*"))[0].length},ct=function(e){return e.match(new RegExp("^"+g.C_CHARS+"*"))[0]};function ve(t,e){var r=e?g.A_CHARS:g.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+"Ì"+lt(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+ve(t.substring(a.length),!e)}function lt(t){var e=ct(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=ut(t)>=ft(t);return e+String.fromCharCode(n?206:205)+ve(t,n)}_e.default=function(t){var e=void 0,r=ct(t).length;if(r>=2)e=g.C_START_CHAR+lt(t);else{var n=ut(t)>ft(t);e=(n?g.A_START_CHAR:g.B_START_CHAR)+ve(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return"Ë"+i})};Object.defineProperty(de,"__esModule",{value:!0});var nn=P,rn=ht(nn),an=_e,on=ht(an);function ht(t){return t&&t.__esModule?t:{default:t}}function un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cn=function(t){fn(e,t);function e(r,n){if(un(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,on.default)(r),n));else var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return ae(a)}return e}(rn.default);de.default=cn;var se={};Object.defineProperty(se,"__esModule",{value:!0});var ln=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:S.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:S.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:S.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[S.SIDE_BIN,this.leftEncode(),S.MIDDLE_BIN,this.rightEncode(),S.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(Vn.default);V.default=Yn;Object.defineProperty(ge,"__esModule",{value:!0});var Zn=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Br(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==fe(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,x.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,x.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,x.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,x.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Cr.default);function fe(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}L.default=Xr;var me={};Object.defineProperty(me,"__esModule",{value:!0});var zr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=Kr[parseInt(a)][parseInt(n)];return(0,qr.default)(this.middleDigits,i)}}]),e}(Jr.default);function Je(t,e){for(var r=parseInt(t[t.length-1]),n=Zr[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(ki.default);Q.pharmacode=Li;var W={};Object.defineProperty(W,"__esModule",{value:!0});W.codabar=void 0;var Ni=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Et(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function Eo(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}d.getMaximumHeightOfEncodings=Oo;d.getEncodingHeight=Ot;d.getBarcodePadding=Et;d.calculateEncodingAttributes=po;d.getTotalWidthOfEncodings=go;Object.defineProperty(Ie,"__esModule",{value:!0});var bo=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();Ie.default=xo;var De={};Object.defineProperty(De,"__esModule",{value:!0});var Ro=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(z,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",z),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(z,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(z,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();De.default=ko;var je={};Object.defineProperty(je,"__esModule",{value:!0});var Io=function(){function t(e,r){for(var n=0;n"u"?"undefined":Uo(t))==="object"&&!t.nodeName)return{element:t,renderer:B.default.ObjectRenderer};throw new Jo.InvalidElementException}}function Qo(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,iu.default)(e),a._encodings=[],a._options=$t.default,a._errorHandler=new cu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=xt()),a.options(n)[n.format](r,n).render()),a};ee.getModule=function(t){return E.default[t]};for(var tt in E.default)E.default.hasOwnProperty(tt)&&hu(E.default,tt);function hu(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,G.default)(a._options,n);i=(0,uu.default)(i);var o=t[e],u=St(r,o,i);return a._encodings.push(u),a})}}function St(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new wt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,mt.default)(a);for(var i=0;i255||e<0||e>255||a<0||a>255)return"#00000000";(typeof s>"u"||s>1)&&(s=1),s<.01&&(s=0);var i=function(C){return C.toString(16).padStart(2,"0").toUpperCase()},p=i(Math.round(s*255)),f=i(t),u=i(e),h=i(a);return"#".concat(f).concat(u).concat(h).concat(p)},r.prototype.render=function(){var t=this,e=this.props,a=e.classPrefix,s=e.className,i=e.popoverClassName,p=e.value,f=e.placeholder,u=e.disabled,h=e.popOverContainer,C=e.popOverContainerSelector,y=e.format,N=e.clearable,S=e.placement,l=e.classnames,c=e.presetColors,k=e.allowCustomColor,g=e.mobileUI,w=this.props.translate,b=this.state.isOpened,_=this.state.isFocused,x=this.state.tempValue;return o.createElement("div",{className:l("ColorPicker",{"is-disabled":u,"is-focused":_,"is-opened":b},s)},o.createElement("span",{onClick:this.handleClick,className:l("ColorPicker-preview")},o.createElement("i",{ref:this.preview,className:"".concat(a,"ColorPicker-previewIcon"),style:{background:this.state.inputValue||"#ccc"}})),o.createElement("input",{ref:this.input,type:"text",autoComplete:"off",size:10,className:l("ColorPicker-input"),value:this.state.inputValue||"",placeholder:w(f),disabled:u,onChange:this.handleInputChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,readOnly:g}),N&&!u&&p?o.createElement("a",{onClick:this.clearValue,className:l("ColorPicker-clear")},o.createElement(V,{icon:"input-clear",className:"icon"})):null,o.createElement("span",{className:l("ColorPicker-arrow")},o.createElement(V,{icon:"right-arrow-bold",className:"icon",onClick:this.handleClick})),!g&&b?o.createElement(F,{placement:S||"auto",target:function(){return O.findDOMNode(t)},onHide:this.close,container:h||function(){return O.findDOMNode(t)},containerSelector:C,rootClose:!1,show:!0},o.createElement(M,{classPrefix:a,className:l("ColorPicker-popover",i),onHide:this.close,overlay:!0},k?o.createElement(P,{styles:{},disableAlpha:!!~["rgb","hex"].indexOf(y),color:p,presetColors:c,onChangeComplete:this.handleChange}):o.createElement(E,{color:p,colors:Array.isArray(c)?c.filter(function(n){return typeof n=="string"||d(n)}).map(function(n){return typeof n=="string"?n:d(n)?n==null?void 0:n.color:n}):void 0,onChangeComplete:this.handleChange}))):null,g&&o.createElement(T,{className:l("".concat(a,"ColorPicker-popup")),container:h,isShow:b,onHide:this.handleClick,showConfirm:!0,onConfirm:this.handleConfirm},k?o.createElement(P,{styles:{},disableAlpha:!!~["rgb","hex"].indexOf(y),color:x,presetColors:c,onChangeComplete:this.handleTempChange}):o.createElement(E,{color:x,colors:Array.isArray(c)?c.filter(function(n){return typeof n=="string"||d(n)}).map(function(n){return typeof n=="string"?n:d(n)?n==null?void 0:n.color:n}):void 0,onChangeComplete:this.handleTempChange})))},r.defaultProps={format:"hex",clearable:!0,placeholder:"ColorPicker.placeholder",allowCustomColor:!0},I([A,m("design:type",Function),m("design:paramtypes",[String]),m("design:returntype",void 0)],r.prototype,"validateColor",null),r}(o.PureComponent),$=U(B(D(R,{value:"onChange"})));export{R as ColorControl,$ as default}; +import{s as H,R as o,H as V,O as F,J as O,P as M,K as P,L as E,M as d,N as T,x as I,y as A,z as m,Q as U,T as B,U as D}from"./index-Hn-s1JD5.js";var R=function(v){H(r,v);function r(t){var e=v.call(this,t)||this;return e.state={isOpened:!1,isFocused:!1,inputValue:e.props.value||"",tempValue:e.props.value||""},e.open=e.open.bind(e),e.close=e.close.bind(e),e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e.handleChange=e.handleChange.bind(e),e.handleTempChange=e.handleTempChange.bind(e),e.handleConfirm=e.handleConfirm.bind(e),e.handleFocus=e.handleFocus.bind(e),e.handleBlur=e.handleBlur.bind(e),e.clearValue=e.clearValue.bind(e),e.handleInputChange=e.handleInputChange.bind(e),e.handleClick=e.handleClick.bind(e),e.preview=o.createRef(),e.input=o.createRef(),e}return r.prototype.componentDidUpdate=function(t){var e=this.props;t.value!==e.value&&this.setState({inputValue:e.value||""})},r.prototype.handleFocus=function(){this.setState({isFocused:!0})},r.prototype.handleBlur=function(){this.setState({isFocused:!1,inputValue:this.props.value})},r.prototype.focus=function(){this.input.current&&this.input.current.focus()},r.prototype.blur=function(){this.input.current&&this.input.current.blur()},r.prototype.open=function(t){this.props.disabled||this.setState({isOpened:!0},t)},r.prototype.close=function(){this.setState({isOpened:!1})},r.prototype.clearValue=function(){var t=this.props,e=t.onChange,a=t.resetValue;e(a||"")},r.prototype.handleClick=function(){this.state.isOpened?this.close():this.open(this.focus)},r.prototype.handleInputChange=function(t){var e=this;if(this.props.allowCustomColor){var a=this.props.onChange;this.setState({inputValue:t.currentTarget.value},function(){var s=e.validateColor(e.state.inputValue);s&&a(e.state.inputValue)})}},r.prototype.validateColor=function(t){if(t===""||t==="inherit"||t==="transparent")return!1;var e=document.createElement("img");return e.style.color="rgb(0, 0, 0)",e.style.color=t,e.style.color!=="rgb(0, 0, 0)"?!0:(e.style.color="rgb(255, 255, 255)",e.style.color=t,e.style.color!=="rgb(255, 255, 255)")},r.prototype.handleChange=function(t){var e=this.props,a=e.onChange,s=e.format;a(s==="rgba"?"rgba(".concat(t.rgb.r,", ").concat(t.rgb.g,", ").concat(t.rgb.b,", ").concat(t.rgb.a,")"):s==="rgb"?"rgb(".concat(t.rgb.r,", ").concat(t.rgb.g,", ").concat(t.rgb.b,")"):s==="hexa"?this.rgbaToHex(t.rgb.r,t.rgb.g,t.rgb.b,t.rgb.a):s==="hsl"?"hsl(".concat(Math.round(t.hsl.h),", ").concat(Math.round(t.hsl.s*100),"%, ").concat(Math.round(t.hsl.l*100),"%)"):t.hex)},r.prototype.handleTempChange=function(t){var e=this.state.tempValue,a=this.props.format;a==="rgba"?e="rgba(".concat(t.rgb.r,", ").concat(t.rgb.g,", ").concat(t.rgb.b,", ").concat(t.rgb.a,")"):a==="rgb"?e="rgb(".concat(t.rgb.r,", ").concat(t.rgb.g,", ").concat(t.rgb.b,")"):a==="hexa"?e=this.rgbaToHex(t.rgb.r,t.rgb.g,t.rgb.b,t.rgb.a):a==="hsl"?e="hsl(".concat(Math.round(t.hsl.h),", ").concat(Math.round(t.hsl.s*100),"%, ").concat(Math.round(t.hsl.l*100),"%)"):e=t.hex,this.setState({tempValue:e})},r.prototype.handleConfirm=function(){var t=this.props.onChange,e=this.state.tempValue;t(e),this.close()},r.prototype.rgbaToHex=function(t,e,a,s){if(t<0||t>255||e<0||e>255||a<0||a>255)return"#00000000";(typeof s>"u"||s>1)&&(s=1),s<.01&&(s=0);var i=function(C){return C.toString(16).padStart(2,"0").toUpperCase()},p=i(Math.round(s*255)),f=i(t),u=i(e),h=i(a);return"#".concat(f).concat(u).concat(h).concat(p)},r.prototype.render=function(){var t=this,e=this.props,a=e.classPrefix,s=e.className,i=e.popoverClassName,p=e.value,f=e.placeholder,u=e.disabled,h=e.popOverContainer,C=e.popOverContainerSelector,y=e.format,N=e.clearable,S=e.placement,l=e.classnames,c=e.presetColors,k=e.allowCustomColor,g=e.mobileUI,w=this.props.translate,b=this.state.isOpened,_=this.state.isFocused,x=this.state.tempValue;return o.createElement("div",{className:l("ColorPicker",{"is-disabled":u,"is-focused":_,"is-opened":b},s)},o.createElement("span",{onClick:this.handleClick,className:l("ColorPicker-preview")},o.createElement("i",{ref:this.preview,className:"".concat(a,"ColorPicker-previewIcon"),style:{background:this.state.inputValue||"#ccc"}})),o.createElement("input",{ref:this.input,type:"text",autoComplete:"off",size:10,className:l("ColorPicker-input"),value:this.state.inputValue||"",placeholder:w(f),disabled:u,onChange:this.handleInputChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,readOnly:g}),N&&!u&&p?o.createElement("a",{onClick:this.clearValue,className:l("ColorPicker-clear")},o.createElement(V,{icon:"input-clear",className:"icon"})):null,o.createElement("span",{className:l("ColorPicker-arrow")},o.createElement(V,{icon:"right-arrow-bold",className:"icon",onClick:this.handleClick})),!g&&b?o.createElement(F,{placement:S||"auto",target:function(){return O.findDOMNode(t)},onHide:this.close,container:h||function(){return O.findDOMNode(t)},containerSelector:C,rootClose:!1,show:!0},o.createElement(M,{classPrefix:a,className:l("ColorPicker-popover",i),onHide:this.close,overlay:!0},k?o.createElement(P,{styles:{},disableAlpha:!!~["rgb","hex"].indexOf(y),color:p,presetColors:c,onChangeComplete:this.handleChange}):o.createElement(E,{color:p,colors:Array.isArray(c)?c.filter(function(n){return typeof n=="string"||d(n)}).map(function(n){return typeof n=="string"?n:d(n)?n==null?void 0:n.color:n}):void 0,onChangeComplete:this.handleChange}))):null,g&&o.createElement(T,{className:l("".concat(a,"ColorPicker-popup")),container:h,isShow:b,onHide:this.handleClick,showConfirm:!0,onConfirm:this.handleConfirm},k?o.createElement(P,{styles:{},disableAlpha:!!~["rgb","hex"].indexOf(y),color:x,presetColors:c,onChangeComplete:this.handleTempChange}):o.createElement(E,{color:x,colors:Array.isArray(c)?c.filter(function(n){return typeof n=="string"||d(n)}).map(function(n){return typeof n=="string"?n:d(n)?n==null?void 0:n.color:n}):void 0,onChangeComplete:this.handleTempChange})))},r.defaultProps={format:"hex",clearable:!0,placeholder:"ColorPicker.placeholder",allowCustomColor:!0},I([A,m("design:type",Function),m("design:paramtypes",[String]),m("design:returntype",void 0)],r.prototype,"validateColor",null),r}(o.PureComponent),$=U(B(D(R,{value:"onChange"})));export{R as ColorControl,$ as default}; diff --git a/public/admin-assets/assets/ColorPicker-BPkVFI95.js.gz b/public/admin-assets/assets/ColorPicker-BPkVFI95.js.gz new file mode 100644 index 0000000..88679a2 Binary files /dev/null and b/public/admin-assets/assets/ColorPicker-BPkVFI95.js.gz differ diff --git a/public/admin-assets/assets/ColorPicker-DWAy7_Fh.js.gz b/public/admin-assets/assets/ColorPicker-DWAy7_Fh.js.gz deleted file mode 100644 index 6eb667c..0000000 Binary files a/public/admin-assets/assets/ColorPicker-DWAy7_Fh.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/Markdown-CsjWC09Y.js b/public/admin-assets/assets/Markdown-BbjlcnEg.js similarity index 99% rename from public/admin-assets/assets/Markdown-CsjWC09Y.js rename to public/admin-assets/assets/Markdown-BbjlcnEg.js index 859be14..3895799 100644 --- a/public/admin-assets/assets/Markdown-CsjWC09Y.js +++ b/public/admin-assets/assets/Markdown-BbjlcnEg.js @@ -1,4 +1,4 @@ -import{V as Kr,o as Xr,s as nt,v as rt,w as tt,R as Hn}from"./index-CgQH3-O6.js";var q={};const ot="Á",et="á",st="Ă",ct="ă",it="∾",at="∿",lt="∾̳",ut="Â",pt="â",ft="´",ht="А",dt="а",mt="Æ",gt="æ",bt="⁡",_t="𝔄",kt="𝔞",xt="À",vt="à",yt="ℵ",Ct="ℵ",wt="Α",At="α",qt="Ā",Dt="ā",Et="⨿",St="&",Ft="&",Tt="⩕",Rt="⩓",Lt="∧",zt="⩜",It="⩘",Bt="⩚",Mt="∠",Nt="⦤",Pt="∠",Ot="⦨",Ut="⦩",Vt="⦪",$t="⦫",Gt="⦬",Ht="⦭",jt="⦮",Zt="⦯",Jt="∡",Yt="∟",Wt="⊾",Qt="⦝",Kt="∢",Xt="Å",no="⍼",ro="Ą",to="ą",oo="𝔸",eo="𝕒",so="⩯",co="≈",io="⩰",ao="≊",lo="≋",uo="'",po="⁡",fo="≈",ho="≊",mo="Å",go="å",bo="𝒜",_o="𝒶",ko="≔",xo="*",vo="≈",yo="≍",Co="Ã",wo="ã",Ao="Ä",qo="ä",Do="∳",Eo="⨑",So="≌",Fo="϶",To="‵",Ro="∽",Lo="⋍",zo="∖",Io="⫧",Bo="⊽",Mo="⌅",No="⌆",Po="⌅",Oo="⎵",Uo="⎶",Vo="≌",$o="Б",Go="б",Ho="„",jo="∵",Zo="∵",Jo="∵",Yo="⦰",Wo="϶",Qo="ℬ",Ko="ℬ",Xo="Β",ne="β",re="ℶ",te="≬",oe="𝔅",ee="𝔟",se="⋂",ce="◯",ie="⋃",ae="⨀",le="⨁",ue="⨂",pe="⨆",fe="★",he="▽",de="△",me="⨄",ge="⋁",be="⋀",_e="⤍",ke="⧫",xe="▪",ve="▴",ye="▾",Ce="◂",we="▸",Ae="␣",qe="▒",De="░",Ee="▓",Se="█",Fe="=⃥",Te="≡⃥",Re="⫭",Le="⌐",ze="𝔹",Ie="𝕓",Be="⊥",Me="⊥",Ne="⋈",Pe="⧉",Oe="┐",Ue="╕",Ve="╖",$e="╗",Ge="┌",He="╒",je="╓",Ze="╔",Je="─",Ye="═",We="┬",Qe="╤",Ke="╥",Xe="╦",ns="┴",rs="╧",ts="╨",os="╩",es="⊟",ss="⊞",cs="⊠",is="┘",as="╛",ls="╜",us="╝",ps="└",fs="╘",hs="╙",ds="╚",ms="│",gs="║",bs="┼",_s="╪",ks="╫",xs="╬",vs="┤",ys="╡",Cs="╢",ws="╣",As="├",qs="╞",Ds="╟",Es="╠",Ss="‵",Fs="˘",Ts="˘",Rs="¦",Ls="𝒷",zs="ℬ",Is="⁏",Bs="∽",Ms="⋍",Ns="⧅",Ps="\\",Os="⟈",Us="•",Vs="•",$s="≎",Gs="⪮",Hs="≏",js="≎",Zs="≏",Js="Ć",Ys="ć",Ws="⩄",Qs="⩉",Ks="⩋",Xs="∩",nc="⋒",rc="⩇",tc="⩀",oc="ⅅ",ec="∩︀",sc="⁁",cc="ˇ",ic="ℭ",ac="⩍",lc="Č",uc="č",pc="Ç",fc="ç",hc="Ĉ",dc="ĉ",mc="∰",gc="⩌",bc="⩐",_c="Ċ",kc="ċ",xc="¸",vc="¸",yc="⦲",Cc="¢",wc="·",Ac="·",qc="𝔠",Dc="ℭ",Ec="Ч",Sc="ч",Fc="✓",Tc="✓",Rc="Χ",Lc="χ",zc="ˆ",Ic="≗",Bc="↺",Mc="↻",Nc="⊛",Pc="⊚",Oc="⊝",Uc="⊙",Vc="®",$c="Ⓢ",Gc="⊖",Hc="⊕",jc="⊗",Zc="○",Jc="⧃",Yc="≗",Wc="⨐",Qc="⫯",Kc="⧂",Xc="∲",ni="”",ri="’",ti="♣",oi="♣",ei=":",si="∷",ci="⩴",ii="≔",ai="≔",li=",",ui="@",pi="∁",fi="∘",hi="∁",di="ℂ",mi="≅",gi="⩭",bi="≡",_i="∮",ki="∯",xi="∮",vi="𝕔",yi="ℂ",Ci="∐",wi="∐",Ai="©",qi="©",Di="℗",Ei="∳",Si="↵",Fi="✗",Ti="⨯",Ri="𝒞",Li="𝒸",zi="⫏",Ii="⫑",Bi="⫐",Mi="⫒",Ni="⋯",Pi="⤸",Oi="⤵",Ui="⋞",Vi="⋟",$i="↶",Gi="⤽",Hi="⩈",ji="⩆",Zi="≍",Ji="∪",Yi="⋓",Wi="⩊",Qi="⊍",Ki="⩅",Xi="∪︀",na="↷",ra="⤼",ta="⋞",oa="⋟",ea="⋎",sa="⋏",ca="¤",ia="↶",aa="↷",la="⋎",ua="⋏",pa="∲",fa="∱",ha="⌭",da="†",ma="‡",ga="ℸ",ba="↓",_a="↡",ka="⇓",xa="‐",va="⫤",ya="⊣",Ca="⤏",wa="˝",Aa="Ď",qa="ď",Da="Д",Ea="д",Sa="‡",Fa="⇊",Ta="ⅅ",Ra="ⅆ",La="⤑",za="⩷",Ia="°",Ba="∇",Ma="Δ",Na="δ",Pa="⦱",Oa="⥿",Ua="𝔇",Va="𝔡",$a="⥥",Ga="⇃",Ha="⇂",ja="´",Za="˙",Ja="˝",Ya="`",Wa="˜",Qa="⋄",Ka="⋄",Xa="⋄",nl="♦",rl="♦",tl="¨",ol="ⅆ",el="ϝ",sl="⋲",cl="÷",il="÷",al="⋇",ll="⋇",ul="Ђ",pl="ђ",fl="⌞",hl="⌍",dl="$",ml="𝔻",gl="𝕕",bl="¨",_l="˙",kl="⃜",xl="≐",vl="≑",yl="≐",Cl="∸",wl="∔",Al="⊡",ql="⌆",Dl="∯",El="¨",Sl="⇓",Fl="⇐",Tl="⇔",Rl="⫤",Ll="⟸",zl="⟺",Il="⟹",Bl="⇒",Ml="⊨",Nl="⇑",Pl="⇕",Ol="∥",Ul="⤓",Vl="↓",$l="↓",Gl="⇓",Hl="⇵",jl="̑",Zl="⇊",Jl="⇃",Yl="⇂",Wl="⥐",Ql="⥞",Kl="⥖",Xl="↽",nu="⥟",ru="⥗",tu="⇁",ou="↧",eu="⊤",su="⤐",cu="⌟",iu="⌌",au="𝒟",lu="𝒹",uu="Ѕ",pu="ѕ",fu="⧶",hu="Đ",du="đ",mu="⋱",gu="▿",bu="▾",_u="⇵",ku="⥯",xu="⦦",vu="Џ",yu="џ",Cu="⟿",wu="É",Au="é",qu="⩮",Du="Ě",Eu="ě",Su="Ê",Fu="ê",Tu="≖",Ru="≕",Lu="Э",zu="э",Iu="⩷",Bu="Ė",Mu="ė",Nu="≑",Pu="ⅇ",Ou="≒",Uu="𝔈",Vu="𝔢",$u="⪚",Gu="È",Hu="è",ju="⪖",Zu="⪘",Ju="⪙",Yu="∈",Wu="⏧",Qu="ℓ",Ku="⪕",Xu="⪗",np="Ē",rp="ē",tp="∅",op="∅",ep="◻",sp="∅",cp="▫",ip=" ",ap=" ",lp=" ",up="Ŋ",pp="ŋ",fp=" ",hp="Ę",dp="ę",mp="𝔼",gp="𝕖",bp="⋕",_p="⧣",kp="⩱",xp="ε",vp="Ε",yp="ε",Cp="ϵ",wp="≖",Ap="≕",qp="≂",Dp="⪖",Ep="⪕",Sp="⩵",Fp="=",Tp="≂",Rp="≟",Lp="⇌",zp="≡",Ip="⩸",Bp="⧥",Mp="⥱",Np="≓",Pp="ℯ",Op="ℰ",Up="≐",Vp="⩳",$p="≂",Gp="Η",Hp="η",jp="Ð",Zp="ð",Jp="Ë",Yp="ë",Wp="€",Qp="!",Kp="∃",Xp="∃",nf="ℰ",rf="ⅇ",tf="ⅇ",of="≒",ef="Ф",sf="ф",cf="♀",af="ffi",lf="ff",uf="ffl",pf="𝔉",ff="𝔣",hf="fi",df="◼",mf="▪",gf="fj",bf="♭",_f="fl",kf="▱",xf="ƒ",vf="𝔽",yf="𝕗",Cf="∀",wf="∀",Af="⋔",qf="⫙",Df="ℱ",Ef="⨍",Sf="½",Ff="⅓",Tf="¼",Rf="⅕",Lf="⅙",zf="⅛",If="⅔",Bf="⅖",Mf="¾",Nf="⅗",Pf="⅜",Of="⅘",Uf="⅚",Vf="⅝",$f="⅞",Gf="⁄",Hf="⌢",jf="𝒻",Zf="ℱ",Jf="ǵ",Yf="Γ",Wf="γ",Qf="Ϝ",Kf="ϝ",Xf="⪆",nh="Ğ",rh="ğ",th="Ģ",oh="Ĝ",eh="ĝ",sh="Г",ch="г",ih="Ġ",ah="ġ",lh="≥",uh="≧",ph="⪌",fh="⋛",hh="≥",dh="≧",mh="⩾",gh="⪩",bh="⩾",_h="⪀",kh="⪂",xh="⪄",vh="⋛︀",yh="⪔",Ch="𝔊",wh="𝔤",Ah="≫",qh="⋙",Dh="⋙",Eh="ℷ",Sh="Ѓ",Fh="ѓ",Th="⪥",Rh="≷",Lh="⪒",zh="⪤",Ih="⪊",Bh="⪊",Mh="⪈",Nh="≩",Ph="⪈",Oh="≩",Uh="⋧",Vh="𝔾",$h="𝕘",Gh="`",Hh="≥",jh="⋛",Zh="≧",Jh="⪢",Yh="≷",Wh="⩾",Qh="≳",Kh="𝒢",Xh="ℊ",nd="≳",rd="⪎",td="⪐",od="⪧",ed="⩺",sd=">",cd=">",id="≫",ad="⋗",ld="⦕",ud="⩼",pd="⪆",fd="⥸",hd="⋗",dd="⋛",md="⪌",gd="≷",bd="≳",_d="≩︀",kd="≩︀",xd="ˇ",vd=" ",yd="½",Cd="ℋ",wd="Ъ",Ad="ъ",qd="⥈",Dd="↔",Ed="⇔",Sd="↭",Fd="^",Td="ℏ",Rd="Ĥ",Ld="ĥ",zd="♥",Id="♥",Bd="…",Md="⊹",Nd="𝔥",Pd="ℌ",Od="ℋ",Ud="⤥",Vd="⤦",$d="⇿",Gd="∻",Hd="↩",jd="↪",Zd="𝕙",Jd="ℍ",Yd="―",Wd="─",Qd="𝒽",Kd="ℋ",Xd="ℏ",nm="Ħ",rm="ħ",tm="≎",om="≏",em="⁃",sm="‐",cm="Í",im="í",am="⁣",lm="Î",um="î",pm="И",fm="и",hm="İ",dm="Е",mm="е",gm="¡",bm="⇔",_m="𝔦",km="ℑ",xm="Ì",vm="ì",ym="ⅈ",Cm="⨌",wm="∭",Am="⧜",qm="℩",Dm="IJ",Em="ij",Sm="Ī",Fm="ī",Tm="ℑ",Rm="ⅈ",Lm="ℐ",zm="ℑ",Im="ı",Bm="ℑ",Mm="⊷",Nm="Ƶ",Pm="⇒",Om="℅",Um="∞",Vm="⧝",$m="ı",Gm="⊺",Hm="∫",jm="∬",Zm="ℤ",Jm="∫",Ym="⊺",Wm="⋂",Qm="⨗",Km="⨼",Xm="⁣",ng="⁢",rg="Ё",tg="ё",og="Į",eg="į",sg="𝕀",cg="𝕚",ig="Ι",ag="ι",lg="⨼",ug="¿",pg="𝒾",fg="ℐ",hg="∈",dg="⋵",mg="⋹",gg="⋴",bg="⋳",_g="∈",kg="⁢",xg="Ĩ",vg="ĩ",yg="І",Cg="і",wg="Ï",Ag="ï",qg="Ĵ",Dg="ĵ",Eg="Й",Sg="й",Fg="𝔍",Tg="𝔧",Rg="ȷ",Lg="𝕁",zg="𝕛",Ig="𝒥",Bg="𝒿",Mg="Ј",Ng="ј",Pg="Є",Og="є",Ug="Κ",Vg="κ",$g="ϰ",Gg="Ķ",Hg="ķ",jg="К",Zg="к",Jg="𝔎",Yg="𝔨",Wg="ĸ",Qg="Х",Kg="х",Xg="Ќ",n0="ќ",r0="𝕂",t0="𝕜",o0="𝒦",e0="𝓀",s0="⇚",c0="Ĺ",i0="ĺ",a0="⦴",l0="ℒ",u0="Λ",p0="λ",f0="⟨",h0="⟪",d0="⦑",m0="⟨",g0="⪅",b0="ℒ",_0="«",k0="⇤",x0="⤟",v0="←",y0="↞",C0="⇐",w0="⤝",A0="↩",q0="↫",D0="⤹",E0="⥳",S0="↢",F0="⤙",T0="⤛",R0="⪫",L0="⪭",z0="⪭︀",I0="⤌",B0="⤎",M0="❲",N0="{",P0="[",O0="⦋",U0="⦏",V0="⦍",$0="Ľ",G0="ľ",H0="Ļ",j0="ļ",Z0="⌈",J0="{",Y0="Л",W0="л",Q0="⤶",K0="“",X0="„",nb="⥧",rb="⥋",tb="↲",ob="≤",eb="≦",sb="⟨",cb="⇤",ib="←",ab="←",lb="⇐",ub="⇆",pb="↢",fb="⌈",hb="⟦",db="⥡",mb="⥙",gb="⇃",bb="⌊",_b="↽",kb="↼",xb="⇇",vb="↔",yb="↔",Cb="⇔",wb="⇆",Ab="⇋",qb="↭",Db="⥎",Eb="↤",Sb="⊣",Fb="⥚",Tb="⋋",Rb="⧏",Lb="⊲",zb="⊴",Ib="⥑",Bb="⥠",Mb="⥘",Nb="↿",Pb="⥒",Ob="↼",Ub="⪋",Vb="⋚",$b="≤",Gb="≦",Hb="⩽",jb="⪨",Zb="⩽",Jb="⩿",Yb="⪁",Wb="⪃",Qb="⋚︀",Kb="⪓",Xb="⪅",n_="⋖",r_="⋚",t_="⪋",o_="⋚",e_="≦",s_="≶",c_="≶",i_="⪡",a_="≲",l_="⩽",u_="≲",p_="⥼",f_="⌊",h_="𝔏",d_="𝔩",m_="≶",g_="⪑",b_="⥢",__="↽",k_="↼",x_="⥪",v_="▄",y_="Љ",C_="љ",w_="⇇",A_="≪",q_="⋘",D_="⌞",E_="⇚",S_="⥫",F_="◺",T_="Ŀ",R_="ŀ",L_="⎰",z_="⎰",I_="⪉",B_="⪉",M_="⪇",N_="≨",P_="⪇",O_="≨",U_="⋦",V_="⟬",$_="⇽",G_="⟦",H_="⟵",j_="⟵",Z_="⟸",J_="⟷",Y_="⟷",W_="⟺",Q_="⟼",K_="⟶",X_="⟶",nk="⟹",rk="↫",tk="↬",ok="⦅",ek="𝕃",sk="𝕝",ck="⨭",ik="⨴",ak="∗",lk="_",uk="↙",pk="↘",fk="◊",hk="◊",dk="⧫",mk="(",gk="⦓",bk="⇆",_k="⌟",kk="⇋",xk="⥭",vk="‎",yk="⊿",Ck="‹",wk="𝓁",Ak="ℒ",qk="↰",Dk="↰",Ek="≲",Sk="⪍",Fk="⪏",Tk="[",Rk="‘",Lk="‚",zk="Ł",Ik="ł",Bk="⪦",Mk="⩹",Nk="<",Pk="<",Ok="≪",Uk="⋖",Vk="⋋",$k="⋉",Gk="⥶",Hk="⩻",jk="◃",Zk="⊴",Jk="◂",Yk="⦖",Wk="⥊",Qk="⥦",Kk="≨︀",Xk="≨︀",nx="¯",rx="♂",tx="✠",ox="✠",ex="↦",sx="↦",cx="↧",ix="↤",ax="↥",lx="▮",ux="⨩",px="М",fx="м",hx="—",dx="∺",mx="∡",gx=" ",bx="ℳ",_x="𝔐",kx="𝔪",xx="℧",vx="µ",yx="*",Cx="⫰",wx="∣",Ax="·",qx="⊟",Dx="−",Ex="∸",Sx="⨪",Fx="∓",Tx="⫛",Rx="…",Lx="∓",zx="⊧",Ix="𝕄",Bx="𝕞",Mx="∓",Nx="𝓂",Px="ℳ",Ox="∾",Ux="Μ",Vx="μ",$x="⊸",Gx="⊸",Hx="∇",jx="Ń",Zx="ń",Jx="∠⃒",Yx="≉",Wx="⩰̸",Qx="≋̸",Kx="ʼn",Xx="≉",nv="♮",rv="ℕ",tv="♮",ov=" ",ev="≎̸",sv="≏̸",cv="⩃",iv="Ň",av="ň",lv="Ņ",uv="ņ",pv="≇",fv="⩭̸",hv="⩂",dv="Н",mv="н",gv="–",bv="⤤",_v="↗",kv="⇗",xv="↗",vv="≠",yv="≐̸",Cv="​",wv="​",Av="​",qv="​",Dv="≢",Ev="⤨",Sv="≂̸",Fv="≫",Tv="≪",Rv=` +import{V as Kr,o as Xr,s as nt,v as rt,w as tt,R as Hn}from"./index-Hn-s1JD5.js";var q={};const ot="Á",et="á",st="Ă",ct="ă",it="∾",at="∿",lt="∾̳",ut="Â",pt="â",ft="´",ht="А",dt="а",mt="Æ",gt="æ",bt="⁡",_t="𝔄",kt="𝔞",xt="À",vt="à",yt="ℵ",Ct="ℵ",wt="Α",At="α",qt="Ā",Dt="ā",Et="⨿",St="&",Ft="&",Tt="⩕",Rt="⩓",Lt="∧",zt="⩜",It="⩘",Bt="⩚",Mt="∠",Nt="⦤",Pt="∠",Ot="⦨",Ut="⦩",Vt="⦪",$t="⦫",Gt="⦬",Ht="⦭",jt="⦮",Zt="⦯",Jt="∡",Yt="∟",Wt="⊾",Qt="⦝",Kt="∢",Xt="Å",no="⍼",ro="Ą",to="ą",oo="𝔸",eo="𝕒",so="⩯",co="≈",io="⩰",ao="≊",lo="≋",uo="'",po="⁡",fo="≈",ho="≊",mo="Å",go="å",bo="𝒜",_o="𝒶",ko="≔",xo="*",vo="≈",yo="≍",Co="Ã",wo="ã",Ao="Ä",qo="ä",Do="∳",Eo="⨑",So="≌",Fo="϶",To="‵",Ro="∽",Lo="⋍",zo="∖",Io="⫧",Bo="⊽",Mo="⌅",No="⌆",Po="⌅",Oo="⎵",Uo="⎶",Vo="≌",$o="Б",Go="б",Ho="„",jo="∵",Zo="∵",Jo="∵",Yo="⦰",Wo="϶",Qo="ℬ",Ko="ℬ",Xo="Β",ne="β",re="ℶ",te="≬",oe="𝔅",ee="𝔟",se="⋂",ce="◯",ie="⋃",ae="⨀",le="⨁",ue="⨂",pe="⨆",fe="★",he="▽",de="△",me="⨄",ge="⋁",be="⋀",_e="⤍",ke="⧫",xe="▪",ve="▴",ye="▾",Ce="◂",we="▸",Ae="␣",qe="▒",De="░",Ee="▓",Se="█",Fe="=⃥",Te="≡⃥",Re="⫭",Le="⌐",ze="𝔹",Ie="𝕓",Be="⊥",Me="⊥",Ne="⋈",Pe="⧉",Oe="┐",Ue="╕",Ve="╖",$e="╗",Ge="┌",He="╒",je="╓",Ze="╔",Je="─",Ye="═",We="┬",Qe="╤",Ke="╥",Xe="╦",ns="┴",rs="╧",ts="╨",os="╩",es="⊟",ss="⊞",cs="⊠",is="┘",as="╛",ls="╜",us="╝",ps="└",fs="╘",hs="╙",ds="╚",ms="│",gs="║",bs="┼",_s="╪",ks="╫",xs="╬",vs="┤",ys="╡",Cs="╢",ws="╣",As="├",qs="╞",Ds="╟",Es="╠",Ss="‵",Fs="˘",Ts="˘",Rs="¦",Ls="𝒷",zs="ℬ",Is="⁏",Bs="∽",Ms="⋍",Ns="⧅",Ps="\\",Os="⟈",Us="•",Vs="•",$s="≎",Gs="⪮",Hs="≏",js="≎",Zs="≏",Js="Ć",Ys="ć",Ws="⩄",Qs="⩉",Ks="⩋",Xs="∩",nc="⋒",rc="⩇",tc="⩀",oc="ⅅ",ec="∩︀",sc="⁁",cc="ˇ",ic="ℭ",ac="⩍",lc="Č",uc="č",pc="Ç",fc="ç",hc="Ĉ",dc="ĉ",mc="∰",gc="⩌",bc="⩐",_c="Ċ",kc="ċ",xc="¸",vc="¸",yc="⦲",Cc="¢",wc="·",Ac="·",qc="𝔠",Dc="ℭ",Ec="Ч",Sc="ч",Fc="✓",Tc="✓",Rc="Χ",Lc="χ",zc="ˆ",Ic="≗",Bc="↺",Mc="↻",Nc="⊛",Pc="⊚",Oc="⊝",Uc="⊙",Vc="®",$c="Ⓢ",Gc="⊖",Hc="⊕",jc="⊗",Zc="○",Jc="⧃",Yc="≗",Wc="⨐",Qc="⫯",Kc="⧂",Xc="∲",ni="”",ri="’",ti="♣",oi="♣",ei=":",si="∷",ci="⩴",ii="≔",ai="≔",li=",",ui="@",pi="∁",fi="∘",hi="∁",di="ℂ",mi="≅",gi="⩭",bi="≡",_i="∮",ki="∯",xi="∮",vi="𝕔",yi="ℂ",Ci="∐",wi="∐",Ai="©",qi="©",Di="℗",Ei="∳",Si="↵",Fi="✗",Ti="⨯",Ri="𝒞",Li="𝒸",zi="⫏",Ii="⫑",Bi="⫐",Mi="⫒",Ni="⋯",Pi="⤸",Oi="⤵",Ui="⋞",Vi="⋟",$i="↶",Gi="⤽",Hi="⩈",ji="⩆",Zi="≍",Ji="∪",Yi="⋓",Wi="⩊",Qi="⊍",Ki="⩅",Xi="∪︀",na="↷",ra="⤼",ta="⋞",oa="⋟",ea="⋎",sa="⋏",ca="¤",ia="↶",aa="↷",la="⋎",ua="⋏",pa="∲",fa="∱",ha="⌭",da="†",ma="‡",ga="ℸ",ba="↓",_a="↡",ka="⇓",xa="‐",va="⫤",ya="⊣",Ca="⤏",wa="˝",Aa="Ď",qa="ď",Da="Д",Ea="д",Sa="‡",Fa="⇊",Ta="ⅅ",Ra="ⅆ",La="⤑",za="⩷",Ia="°",Ba="∇",Ma="Δ",Na="δ",Pa="⦱",Oa="⥿",Ua="𝔇",Va="𝔡",$a="⥥",Ga="⇃",Ha="⇂",ja="´",Za="˙",Ja="˝",Ya="`",Wa="˜",Qa="⋄",Ka="⋄",Xa="⋄",nl="♦",rl="♦",tl="¨",ol="ⅆ",el="ϝ",sl="⋲",cl="÷",il="÷",al="⋇",ll="⋇",ul="Ђ",pl="ђ",fl="⌞",hl="⌍",dl="$",ml="𝔻",gl="𝕕",bl="¨",_l="˙",kl="⃜",xl="≐",vl="≑",yl="≐",Cl="∸",wl="∔",Al="⊡",ql="⌆",Dl="∯",El="¨",Sl="⇓",Fl="⇐",Tl="⇔",Rl="⫤",Ll="⟸",zl="⟺",Il="⟹",Bl="⇒",Ml="⊨",Nl="⇑",Pl="⇕",Ol="∥",Ul="⤓",Vl="↓",$l="↓",Gl="⇓",Hl="⇵",jl="̑",Zl="⇊",Jl="⇃",Yl="⇂",Wl="⥐",Ql="⥞",Kl="⥖",Xl="↽",nu="⥟",ru="⥗",tu="⇁",ou="↧",eu="⊤",su="⤐",cu="⌟",iu="⌌",au="𝒟",lu="𝒹",uu="Ѕ",pu="ѕ",fu="⧶",hu="Đ",du="đ",mu="⋱",gu="▿",bu="▾",_u="⇵",ku="⥯",xu="⦦",vu="Џ",yu="џ",Cu="⟿",wu="É",Au="é",qu="⩮",Du="Ě",Eu="ě",Su="Ê",Fu="ê",Tu="≖",Ru="≕",Lu="Э",zu="э",Iu="⩷",Bu="Ė",Mu="ė",Nu="≑",Pu="ⅇ",Ou="≒",Uu="𝔈",Vu="𝔢",$u="⪚",Gu="È",Hu="è",ju="⪖",Zu="⪘",Ju="⪙",Yu="∈",Wu="⏧",Qu="ℓ",Ku="⪕",Xu="⪗",np="Ē",rp="ē",tp="∅",op="∅",ep="◻",sp="∅",cp="▫",ip=" ",ap=" ",lp=" ",up="Ŋ",pp="ŋ",fp=" ",hp="Ę",dp="ę",mp="𝔼",gp="𝕖",bp="⋕",_p="⧣",kp="⩱",xp="ε",vp="Ε",yp="ε",Cp="ϵ",wp="≖",Ap="≕",qp="≂",Dp="⪖",Ep="⪕",Sp="⩵",Fp="=",Tp="≂",Rp="≟",Lp="⇌",zp="≡",Ip="⩸",Bp="⧥",Mp="⥱",Np="≓",Pp="ℯ",Op="ℰ",Up="≐",Vp="⩳",$p="≂",Gp="Η",Hp="η",jp="Ð",Zp="ð",Jp="Ë",Yp="ë",Wp="€",Qp="!",Kp="∃",Xp="∃",nf="ℰ",rf="ⅇ",tf="ⅇ",of="≒",ef="Ф",sf="ф",cf="♀",af="ffi",lf="ff",uf="ffl",pf="𝔉",ff="𝔣",hf="fi",df="◼",mf="▪",gf="fj",bf="♭",_f="fl",kf="▱",xf="ƒ",vf="𝔽",yf="𝕗",Cf="∀",wf="∀",Af="⋔",qf="⫙",Df="ℱ",Ef="⨍",Sf="½",Ff="⅓",Tf="¼",Rf="⅕",Lf="⅙",zf="⅛",If="⅔",Bf="⅖",Mf="¾",Nf="⅗",Pf="⅜",Of="⅘",Uf="⅚",Vf="⅝",$f="⅞",Gf="⁄",Hf="⌢",jf="𝒻",Zf="ℱ",Jf="ǵ",Yf="Γ",Wf="γ",Qf="Ϝ",Kf="ϝ",Xf="⪆",nh="Ğ",rh="ğ",th="Ģ",oh="Ĝ",eh="ĝ",sh="Г",ch="г",ih="Ġ",ah="ġ",lh="≥",uh="≧",ph="⪌",fh="⋛",hh="≥",dh="≧",mh="⩾",gh="⪩",bh="⩾",_h="⪀",kh="⪂",xh="⪄",vh="⋛︀",yh="⪔",Ch="𝔊",wh="𝔤",Ah="≫",qh="⋙",Dh="⋙",Eh="ℷ",Sh="Ѓ",Fh="ѓ",Th="⪥",Rh="≷",Lh="⪒",zh="⪤",Ih="⪊",Bh="⪊",Mh="⪈",Nh="≩",Ph="⪈",Oh="≩",Uh="⋧",Vh="𝔾",$h="𝕘",Gh="`",Hh="≥",jh="⋛",Zh="≧",Jh="⪢",Yh="≷",Wh="⩾",Qh="≳",Kh="𝒢",Xh="ℊ",nd="≳",rd="⪎",td="⪐",od="⪧",ed="⩺",sd=">",cd=">",id="≫",ad="⋗",ld="⦕",ud="⩼",pd="⪆",fd="⥸",hd="⋗",dd="⋛",md="⪌",gd="≷",bd="≳",_d="≩︀",kd="≩︀",xd="ˇ",vd=" ",yd="½",Cd="ℋ",wd="Ъ",Ad="ъ",qd="⥈",Dd="↔",Ed="⇔",Sd="↭",Fd="^",Td="ℏ",Rd="Ĥ",Ld="ĥ",zd="♥",Id="♥",Bd="…",Md="⊹",Nd="𝔥",Pd="ℌ",Od="ℋ",Ud="⤥",Vd="⤦",$d="⇿",Gd="∻",Hd="↩",jd="↪",Zd="𝕙",Jd="ℍ",Yd="―",Wd="─",Qd="𝒽",Kd="ℋ",Xd="ℏ",nm="Ħ",rm="ħ",tm="≎",om="≏",em="⁃",sm="‐",cm="Í",im="í",am="⁣",lm="Î",um="î",pm="И",fm="и",hm="İ",dm="Е",mm="е",gm="¡",bm="⇔",_m="𝔦",km="ℑ",xm="Ì",vm="ì",ym="ⅈ",Cm="⨌",wm="∭",Am="⧜",qm="℩",Dm="IJ",Em="ij",Sm="Ī",Fm="ī",Tm="ℑ",Rm="ⅈ",Lm="ℐ",zm="ℑ",Im="ı",Bm="ℑ",Mm="⊷",Nm="Ƶ",Pm="⇒",Om="℅",Um="∞",Vm="⧝",$m="ı",Gm="⊺",Hm="∫",jm="∬",Zm="ℤ",Jm="∫",Ym="⊺",Wm="⋂",Qm="⨗",Km="⨼",Xm="⁣",ng="⁢",rg="Ё",tg="ё",og="Į",eg="į",sg="𝕀",cg="𝕚",ig="Ι",ag="ι",lg="⨼",ug="¿",pg="𝒾",fg="ℐ",hg="∈",dg="⋵",mg="⋹",gg="⋴",bg="⋳",_g="∈",kg="⁢",xg="Ĩ",vg="ĩ",yg="І",Cg="і",wg="Ï",Ag="ï",qg="Ĵ",Dg="ĵ",Eg="Й",Sg="й",Fg="𝔍",Tg="𝔧",Rg="ȷ",Lg="𝕁",zg="𝕛",Ig="𝒥",Bg="𝒿",Mg="Ј",Ng="ј",Pg="Є",Og="є",Ug="Κ",Vg="κ",$g="ϰ",Gg="Ķ",Hg="ķ",jg="К",Zg="к",Jg="𝔎",Yg="𝔨",Wg="ĸ",Qg="Х",Kg="х",Xg="Ќ",n0="ќ",r0="𝕂",t0="𝕜",o0="𝒦",e0="𝓀",s0="⇚",c0="Ĺ",i0="ĺ",a0="⦴",l0="ℒ",u0="Λ",p0="λ",f0="⟨",h0="⟪",d0="⦑",m0="⟨",g0="⪅",b0="ℒ",_0="«",k0="⇤",x0="⤟",v0="←",y0="↞",C0="⇐",w0="⤝",A0="↩",q0="↫",D0="⤹",E0="⥳",S0="↢",F0="⤙",T0="⤛",R0="⪫",L0="⪭",z0="⪭︀",I0="⤌",B0="⤎",M0="❲",N0="{",P0="[",O0="⦋",U0="⦏",V0="⦍",$0="Ľ",G0="ľ",H0="Ļ",j0="ļ",Z0="⌈",J0="{",Y0="Л",W0="л",Q0="⤶",K0="“",X0="„",nb="⥧",rb="⥋",tb="↲",ob="≤",eb="≦",sb="⟨",cb="⇤",ib="←",ab="←",lb="⇐",ub="⇆",pb="↢",fb="⌈",hb="⟦",db="⥡",mb="⥙",gb="⇃",bb="⌊",_b="↽",kb="↼",xb="⇇",vb="↔",yb="↔",Cb="⇔",wb="⇆",Ab="⇋",qb="↭",Db="⥎",Eb="↤",Sb="⊣",Fb="⥚",Tb="⋋",Rb="⧏",Lb="⊲",zb="⊴",Ib="⥑",Bb="⥠",Mb="⥘",Nb="↿",Pb="⥒",Ob="↼",Ub="⪋",Vb="⋚",$b="≤",Gb="≦",Hb="⩽",jb="⪨",Zb="⩽",Jb="⩿",Yb="⪁",Wb="⪃",Qb="⋚︀",Kb="⪓",Xb="⪅",n_="⋖",r_="⋚",t_="⪋",o_="⋚",e_="≦",s_="≶",c_="≶",i_="⪡",a_="≲",l_="⩽",u_="≲",p_="⥼",f_="⌊",h_="𝔏",d_="𝔩",m_="≶",g_="⪑",b_="⥢",__="↽",k_="↼",x_="⥪",v_="▄",y_="Љ",C_="љ",w_="⇇",A_="≪",q_="⋘",D_="⌞",E_="⇚",S_="⥫",F_="◺",T_="Ŀ",R_="ŀ",L_="⎰",z_="⎰",I_="⪉",B_="⪉",M_="⪇",N_="≨",P_="⪇",O_="≨",U_="⋦",V_="⟬",$_="⇽",G_="⟦",H_="⟵",j_="⟵",Z_="⟸",J_="⟷",Y_="⟷",W_="⟺",Q_="⟼",K_="⟶",X_="⟶",nk="⟹",rk="↫",tk="↬",ok="⦅",ek="𝕃",sk="𝕝",ck="⨭",ik="⨴",ak="∗",lk="_",uk="↙",pk="↘",fk="◊",hk="◊",dk="⧫",mk="(",gk="⦓",bk="⇆",_k="⌟",kk="⇋",xk="⥭",vk="‎",yk="⊿",Ck="‹",wk="𝓁",Ak="ℒ",qk="↰",Dk="↰",Ek="≲",Sk="⪍",Fk="⪏",Tk="[",Rk="‘",Lk="‚",zk="Ł",Ik="ł",Bk="⪦",Mk="⩹",Nk="<",Pk="<",Ok="≪",Uk="⋖",Vk="⋋",$k="⋉",Gk="⥶",Hk="⩻",jk="◃",Zk="⊴",Jk="◂",Yk="⦖",Wk="⥊",Qk="⥦",Kk="≨︀",Xk="≨︀",nx="¯",rx="♂",tx="✠",ox="✠",ex="↦",sx="↦",cx="↧",ix="↤",ax="↥",lx="▮",ux="⨩",px="М",fx="м",hx="—",dx="∺",mx="∡",gx=" ",bx="ℳ",_x="𝔐",kx="𝔪",xx="℧",vx="µ",yx="*",Cx="⫰",wx="∣",Ax="·",qx="⊟",Dx="−",Ex="∸",Sx="⨪",Fx="∓",Tx="⫛",Rx="…",Lx="∓",zx="⊧",Ix="𝕄",Bx="𝕞",Mx="∓",Nx="𝓂",Px="ℳ",Ox="∾",Ux="Μ",Vx="μ",$x="⊸",Gx="⊸",Hx="∇",jx="Ń",Zx="ń",Jx="∠⃒",Yx="≉",Wx="⩰̸",Qx="≋̸",Kx="ʼn",Xx="≉",nv="♮",rv="ℕ",tv="♮",ov=" ",ev="≎̸",sv="≏̸",cv="⩃",iv="Ň",av="ň",lv="Ņ",uv="ņ",pv="≇",fv="⩭̸",hv="⩂",dv="Н",mv="н",gv="–",bv="⤤",_v="↗",kv="⇗",xv="↗",vv="≠",yv="≐̸",Cv="​",wv="​",Av="​",qv="​",Dv="≢",Ev="⤨",Sv="≂̸",Fv="≫",Tv="≪",Rv=` `,Lv="∄",zv="∄",Iv="𝔑",Bv="𝔫",Mv="≧̸",Nv="≱",Pv="≱",Ov="≧̸",Uv="⩾̸",Vv="⩾̸",$v="⋙̸",Gv="≵",Hv="≫⃒",jv="≯",Zv="≯",Jv="≫̸",Yv="↮",Wv="⇎",Qv="⫲",Kv="∋",Xv="⋼",ny="⋺",ry="∋",ty="Њ",oy="њ",ey="↚",sy="⇍",cy="‥",iy="≦̸",ay="≰",ly="↚",uy="⇍",py="↮",fy="⇎",hy="≰",dy="≦̸",my="⩽̸",gy="⩽̸",by="≮",_y="⋘̸",ky="≴",xy="≪⃒",vy="≮",yy="⋪",Cy="⋬",wy="≪̸",Ay="∤",qy="⁠",Dy=" ",Ey="𝕟",Sy="ℕ",Fy="⫬",Ty="¬",Ry="≢",Ly="≭",zy="∦",Iy="∉",By="≠",My="≂̸",Ny="∄",Py="≯",Oy="≱",Uy="≧̸",Vy="≫̸",$y="≹",Gy="⩾̸",Hy="≵",jy="≎̸",Zy="≏̸",Jy="∉",Yy="⋵̸",Wy="⋹̸",Qy="∉",Ky="⋷",Xy="⋶",nC="⧏̸",rC="⋪",tC="⋬",oC="≮",eC="≰",sC="≸",cC="≪̸",iC="⩽̸",aC="≴",lC="⪢̸",uC="⪡̸",pC="∌",fC="∌",hC="⋾",dC="⋽",mC="⊀",gC="⪯̸",bC="⋠",_C="∌",kC="⧐̸",xC="⋫",vC="⋭",yC="⊏̸",CC="⋢",wC="⊐̸",AC="⋣",qC="⊂⃒",DC="⊈",EC="⊁",SC="⪰̸",FC="⋡",TC="≿̸",RC="⊃⃒",LC="⊉",zC="≁",IC="≄",BC="≇",MC="≉",NC="∤",PC="∦",OC="∦",UC="⫽⃥",VC="∂̸",$C="⨔",GC="⊀",HC="⋠",jC="⊀",ZC="⪯̸",JC="⪯̸",YC="⤳̸",WC="↛",QC="⇏",KC="↝̸",XC="↛",nw="⇏",rw="⋫",tw="⋭",ow="⊁",ew="⋡",sw="⪰̸",cw="𝒩",iw="𝓃",aw="∤",lw="∦",uw="≁",pw="≄",fw="≄",hw="∤",dw="∦",mw="⋢",gw="⋣",bw="⊄",_w="⫅̸",kw="⊈",xw="⊂⃒",vw="⊈",yw="⫅̸",Cw="⊁",ww="⪰̸",Aw="⊅",qw="⫆̸",Dw="⊉",Ew="⊃⃒",Sw="⊉",Fw="⫆̸",Tw="≹",Rw="Ñ",Lw="ñ",zw="≸",Iw="⋪",Bw="⋬",Mw="⋫",Nw="⋭",Pw="Ν",Ow="ν",Uw="#",Vw="№",$w=" ",Gw="≍⃒",Hw="⊬",jw="⊭",Zw="⊮",Jw="⊯",Yw="≥⃒",Ww=">⃒",Qw="⤄",Kw="⧞",Xw="⤂",nA="≤⃒",rA="<⃒",tA="⊴⃒",oA="⤃",eA="⊵⃒",sA="∼⃒",cA="⤣",iA="↖",aA="⇖",lA="↖",uA="⤧",pA="Ó",fA="ó",hA="⊛",dA="Ô",mA="ô",gA="⊚",bA="О",_A="о",kA="⊝",xA="Ő",vA="ő",yA="⨸",CA="⊙",wA="⦼",AA="Œ",qA="œ",DA="⦿",EA="𝔒",SA="𝔬",FA="˛",TA="Ò",RA="ò",LA="⧁",zA="⦵",IA="Ω",BA="∮",MA="↺",NA="⦾",PA="⦻",OA="‾",UA="⧀",VA="Ō",$A="ō",GA="Ω",HA="ω",jA="Ο",ZA="ο",JA="⦶",YA="⊖",WA="𝕆",QA="𝕠",KA="⦷",XA="“",n1="‘",r1="⦹",t1="⊕",o1="↻",e1="⩔",s1="∨",c1="⩝",i1="ℴ",a1="ℴ",l1="ª",u1="º",p1="⊶",f1="⩖",h1="⩗",d1="⩛",m1="Ⓢ",g1="𝒪",b1="ℴ",_1="Ø",k1="ø",x1="⊘",v1="Õ",y1="õ",C1="⨶",w1="⨷",A1="⊗",q1="Ö",D1="ö",E1="⌽",S1="‾",F1="⏞",T1="⎴",R1="⏜",L1="¶",z1="∥",I1="∥",B1="⫳",M1="⫽",N1="∂",P1="∂",O1="П",U1="п",V1="%",$1=".",G1="‰",H1="⊥",j1="‱",Z1="𝔓",J1="𝔭",Y1="Φ",W1="φ",Q1="ϕ",K1="ℳ",X1="☎",nq="Π",rq="π",tq="⋔",oq="ϖ",eq="ℏ",sq="ℎ",cq="ℏ",iq="⨣",aq="⊞",lq="⨢",uq="+",pq="∔",fq="⨥",hq="⩲",dq="±",mq="±",gq="⨦",bq="⨧",_q="±",kq="ℌ",xq="⨕",vq="𝕡",yq="ℙ",Cq="£",wq="⪷",Aq="⪻",qq="≺",Dq="≼",Eq="⪷",Sq="≺",Fq="≼",Tq="≺",Rq="⪯",Lq="≼",zq="≾",Iq="⪯",Bq="⪹",Mq="⪵",Nq="⋨",Pq="⪯",Oq="⪳",Uq="≾",Vq="′",$q="″",Gq="ℙ",Hq="⪹",jq="⪵",Zq="⋨",Jq="∏",Yq="∏",Wq="⌮",Qq="⌒",Kq="⌓",Xq="∝",nD="∝",rD="∷",tD="∝",oD="≾",eD="⊰",sD="𝒫",cD="𝓅",iD="Ψ",aD="ψ",lD=" ",uD="𝔔",pD="𝔮",fD="⨌",hD="𝕢",dD="ℚ",mD="⁗",gD="𝒬",bD="𝓆",_D="ℍ",kD="⨖",xD="?",vD="≟",yD='"',CD='"',wD="⇛",AD="∽̱",qD="Ŕ",DD="ŕ",ED="√",SD="⦳",FD="⟩",TD="⟫",RD="⦒",LD="⦥",zD="⟩",ID="»",BD="⥵",MD="⇥",ND="⤠",PD="⤳",OD="→",UD="↠",VD="⇒",$D="⤞",GD="↪",HD="↬",jD="⥅",ZD="⥴",JD="⤖",YD="↣",WD="↝",QD="⤚",KD="⤜",XD="∶",nE="ℚ",rE="⤍",tE="⤏",oE="⤐",eE="❳",sE="}",cE="]",iE="⦌",aE="⦎",lE="⦐",uE="Ř",pE="ř",fE="Ŗ",hE="ŗ",dE="⌉",mE="}",gE="Р",bE="р",_E="⤷",kE="⥩",xE="”",vE="”",yE="↳",CE="ℜ",wE="ℛ",AE="ℜ",qE="ℝ",DE="ℜ",EE="▭",SE="®",FE="®",TE="∋",RE="⇋",LE="⥯",zE="⥽",IE="⌋",BE="𝔯",ME="ℜ",NE="⥤",PE="⇁",OE="⇀",UE="⥬",VE="Ρ",$E="ρ",GE="ϱ",HE="⟩",jE="⇥",ZE="→",JE="→",YE="⇒",WE="⇄",QE="↣",KE="⌉",XE="⟧",nS="⥝",rS="⥕",tS="⇂",oS="⌋",eS="⇁",sS="⇀",cS="⇄",iS="⇌",aS="⇉",lS="↝",uS="↦",pS="⊢",fS="⥛",hS="⋌",dS="⧐",mS="⊳",gS="⊵",bS="⥏",_S="⥜",kS="⥔",xS="↾",vS="⥓",yS="⇀",CS="˚",wS="≓",AS="⇄",qS="⇌",DS="‏",ES="⎱",SS="⎱",FS="⫮",TS="⟭",RS="⇾",LS="⟧",zS="⦆",IS="𝕣",BS="ℝ",MS="⨮",NS="⨵",PS="⥰",OS=")",US="⦔",VS="⨒",$S="⇉",GS="⇛",HS="›",jS="𝓇",ZS="ℛ",JS="↱",YS="↱",WS="]",QS="’",KS="’",XS="⋌",nF="⋊",rF="▹",tF="⊵",oF="▸",eF="⧎",sF="⧴",cF="⥨",iF="℞",aF="Ś",lF="ś",uF="‚",pF="⪸",fF="Š",hF="š",dF="⪼",mF="≻",gF="≽",bF="⪰",_F="⪴",kF="Ş",xF="ş",vF="Ŝ",yF="ŝ",CF="⪺",wF="⪶",AF="⋩",qF="⨓",DF="≿",EF="С",SF="с",FF="⊡",TF="⋅",RF="⩦",LF="⤥",zF="↘",IF="⇘",BF="↘",MF="§",NF=";",PF="⤩",OF="∖",UF="∖",VF="✶",$F="𝔖",GF="𝔰",HF="⌢",jF="♯",ZF="Щ",JF="щ",YF="Ш",WF="ш",QF="↓",KF="←",XF="∣",nT="∥",rT="→",tT="↑",oT="­",eT="Σ",sT="σ",cT="ς",iT="ς",aT="∼",lT="⩪",uT="≃",pT="≃",fT="⪞",hT="⪠",dT="⪝",mT="⪟",gT="≆",bT="⨤",_T="⥲",kT="←",xT="∘",vT="∖",yT="⨳",CT="⧤",wT="∣",AT="⌣",qT="⪪",DT="⪬",ET="⪬︀",ST="Ь",FT="ь",TT="⌿",RT="⧄",LT="/",zT="𝕊",IT="𝕤",BT="♠",MT="♠",NT="∥",PT="⊓",OT="⊓︀",UT="⊔",VT="⊔︀",$T="√",GT="⊏",HT="⊑",jT="⊏",ZT="⊑",JT="⊐",YT="⊒",WT="⊐",QT="⊒",KT="□",XT="□",n2="⊓",r2="⊏",t2="⊑",o2="⊐",e2="⊒",s2="⊔",c2="▪",i2="□",a2="▪",l2="→",u2="𝒮",p2="𝓈",f2="∖",h2="⌣",d2="⋆",m2="⋆",g2="☆",b2="★",_2="ϵ",k2="ϕ",x2="¯",v2="⊂",y2="⋐",C2="⪽",w2="⫅",A2="⊆",q2="⫃",D2="⫁",E2="⫋",S2="⊊",F2="⪿",T2="⥹",R2="⊂",L2="⋐",z2="⊆",I2="⫅",B2="⊆",M2="⊊",N2="⫋",P2="⫇",O2="⫕",U2="⫓",V2="⪸",$2="≻",G2="≽",H2="≻",j2="⪰",Z2="≽",J2="≿",Y2="⪰",W2="⪺",Q2="⪶",K2="⋩",X2="≿",nR="∋",rR="∑",tR="∑",oR="♪",eR="¹",sR="²",cR="³",iR="⊃",aR="⋑",lR="⪾",uR="⫘",pR="⫆",fR="⊇",hR="⫄",dR="⊃",mR="⊇",gR="⟉",bR="⫗",_R="⥻",kR="⫂",xR="⫌",vR="⊋",yR="⫀",CR="⊃",wR="⋑",AR="⊇",qR="⫆",DR="⊋",ER="⫌",SR="⫈",FR="⫔",TR="⫖",RR="⤦",LR="↙",zR="⇙",IR="↙",BR="⤪",MR="ß",NR=" ",PR="⌖",OR="Τ",UR="τ",VR="⎴",$R="Ť",GR="ť",HR="Ţ",jR="ţ",ZR="Т",JR="т",YR="⃛",WR="⌕",QR="𝔗",KR="𝔱",XR="∴",nL="∴",rL="∴",tL="Θ",oL="θ",eL="ϑ",sL="ϑ",cL="≈",iL="∼",aL="  ",lL=" ",uL=" ",pL="≈",fL="∼",hL="Þ",dL="þ",mL="˜",gL="∼",bL="≃",_L="≅",kL="≈",xL="⨱",vL="⊠",yL="×",CL="⨰",wL="∭",AL="⤨",qL="⌶",DL="⫱",EL="⊤",SL="𝕋",FL="𝕥",TL="⫚",RL="⤩",LL="‴",zL="™",IL="™",BL="▵",ML="▿",NL="◃",PL="⊴",OL="≜",UL="▹",VL="⊵",$L="◬",GL="≜",HL="⨺",jL="⃛",ZL="⨹",JL="⧍",YL="⨻",WL="⏢",QL="𝒯",KL="𝓉",XL="Ц",nz="ц",rz="Ћ",tz="ћ",oz="Ŧ",ez="ŧ",sz="≬",cz="↞",iz="↠",az="Ú",lz="ú",uz="↑",pz="↟",fz="⇑",hz="⥉",dz="Ў",mz="ў",gz="Ŭ",bz="ŭ",_z="Û",kz="û",xz="У",vz="у",yz="⇅",Cz="Ű",wz="ű",Az="⥮",qz="⥾",Dz="𝔘",Ez="𝔲",Sz="Ù",Fz="ù",Tz="⥣",Rz="↿",Lz="↾",zz="▀",Iz="⌜",Bz="⌜",Mz="⌏",Nz="◸",Pz="Ū",Oz="ū",Uz="¨",Vz="_",$z="⏟",Gz="⎵",Hz="⏝",jz="⋃",Zz="⊎",Jz="Ų",Yz="ų",Wz="𝕌",Qz="𝕦",Kz="⤒",Xz="↑",nI="↑",rI="⇑",tI="⇅",oI="↕",eI="↕",sI="⇕",cI="⥮",iI="↿",aI="↾",lI="⊎",uI="↖",pI="↗",fI="υ",hI="ϒ",dI="ϒ",mI="Υ",gI="υ",bI="↥",_I="⊥",kI="⇈",xI="⌝",vI="⌝",yI="⌎",CI="Ů",wI="ů",AI="◹",qI="𝒰",DI="𝓊",EI="⋰",SI="Ũ",FI="ũ",TI="▵",RI="▴",LI="⇈",zI="Ü",II="ü",BI="⦧",MI="⦜",NI="ϵ",PI="ϰ",OI="∅",UI="ϕ",VI="ϖ",$I="∝",GI="↕",HI="⇕",jI="ϱ",ZI="ς",JI="⊊︀",YI="⫋︀",WI="⊋︀",QI="⫌︀",KI="ϑ",XI="⊲",nB="⊳",rB="⫨",tB="⫫",oB="⫩",eB="В",sB="в",cB="⊢",iB="⊨",aB="⊩",lB="⊫",uB="⫦",pB="⊻",fB="∨",hB="⋁",dB="≚",mB="⋮",gB="|",bB="‖",_B="|",kB="‖",xB="∣",vB="|",yB="❘",CB="≀",wB=" ",AB="𝔙",qB="𝔳",DB="⊲",EB="⊂⃒",SB="⊃⃒",FB="𝕍",TB="𝕧",RB="∝",LB="⊳",zB="𝒱",IB="𝓋",BB="⫋︀",MB="⊊︀",NB="⫌︀",PB="⊋︀",OB="⊪",UB="⦚",VB="Ŵ",$B="ŵ",GB="⩟",HB="∧",jB="⋀",ZB="≙",JB="℘",YB="𝔚",WB="𝔴",QB="𝕎",KB="𝕨",XB="℘",nM="≀",rM="≀",tM="𝒲",oM="𝓌",eM="⋂",sM="◯",cM="⋃",iM="▽",aM="𝔛",lM="𝔵",uM="⟷",pM="⟺",fM="Ξ",hM="ξ",dM="⟵",mM="⟸",gM="⟼",bM="⋻",_M="⨀",kM="𝕏",xM="𝕩",vM="⨁",yM="⨂",CM="⟶",wM="⟹",AM="𝒳",qM="𝓍",DM="⨆",EM="⨄",SM="△",FM="⋁",TM="⋀",RM="Ý",LM="ý",zM="Я",IM="я",BM="Ŷ",MM="ŷ",NM="Ы",PM="ы",OM="¥",UM="𝔜",VM="𝔶",$M="Ї",GM="ї",HM="𝕐",jM="𝕪",ZM="𝒴",JM="𝓎",YM="Ю",WM="ю",QM="ÿ",KM="Ÿ",XM="Ź",n3="ź",r3="Ž",t3="ž",o3="З",e3="з",s3="Ż",c3="ż",i3="ℨ",a3="​",l3="Ζ",u3="ζ",p3="𝔷",f3="ℨ",h3="Ж",d3="ж",m3="⇝",g3="𝕫",b3="ℤ",_3="𝒵",k3="𝓏",x3="‍",v3="‌",y3={Aacute:ot,aacute:et,Abreve:st,abreve:ct,ac:it,acd:at,acE:lt,Acirc:ut,acirc:pt,acute:ft,Acy:ht,acy:dt,AElig:mt,aelig:gt,af:bt,Afr:_t,afr:kt,Agrave:xt,agrave:vt,alefsym:yt,aleph:Ct,Alpha:wt,alpha:At,Amacr:qt,amacr:Dt,amalg:Et,amp:St,AMP:Ft,andand:Tt,And:Rt,and:Lt,andd:zt,andslope:It,andv:Bt,ang:Mt,ange:Nt,angle:Pt,angmsdaa:Ot,angmsdab:Ut,angmsdac:Vt,angmsdad:$t,angmsdae:Gt,angmsdaf:Ht,angmsdag:jt,angmsdah:Zt,angmsd:Jt,angrt:Yt,angrtvb:Wt,angrtvbd:Qt,angsph:Kt,angst:Xt,angzarr:no,Aogon:ro,aogon:to,Aopf:oo,aopf:eo,apacir:so,ap:co,apE:io,ape:ao,apid:lo,apos:uo,ApplyFunction:po,approx:fo,approxeq:ho,Aring:mo,aring:go,Ascr:bo,ascr:_o,Assign:ko,ast:xo,asymp:vo,asympeq:yo,Atilde:Co,atilde:wo,Auml:Ao,auml:qo,awconint:Do,awint:Eo,backcong:So,backepsilon:Fo,backprime:To,backsim:Ro,backsimeq:Lo,Backslash:zo,Barv:Io,barvee:Bo,barwed:Mo,Barwed:No,barwedge:Po,bbrk:Oo,bbrktbrk:Uo,bcong:Vo,Bcy:$o,bcy:Go,bdquo:Ho,becaus:jo,because:Zo,Because:Jo,bemptyv:Yo,bepsi:Wo,bernou:Qo,Bernoullis:Ko,Beta:Xo,beta:ne,beth:re,between:te,Bfr:oe,bfr:ee,bigcap:se,bigcirc:ce,bigcup:ie,bigodot:ae,bigoplus:le,bigotimes:ue,bigsqcup:pe,bigstar:fe,bigtriangledown:he,bigtriangleup:de,biguplus:me,bigvee:ge,bigwedge:be,bkarow:_e,blacklozenge:ke,blacksquare:xe,blacktriangle:ve,blacktriangledown:ye,blacktriangleleft:Ce,blacktriangleright:we,blank:Ae,blk12:qe,blk14:De,blk34:Ee,block:Se,bne:Fe,bnequiv:Te,bNot:Re,bnot:Le,Bopf:ze,bopf:Ie,bot:Be,bottom:Me,bowtie:Ne,boxbox:Pe,boxdl:Oe,boxdL:Ue,boxDl:Ve,boxDL:$e,boxdr:Ge,boxdR:He,boxDr:je,boxDR:Ze,boxh:Je,boxH:Ye,boxhd:We,boxHd:Qe,boxhD:Ke,boxHD:Xe,boxhu:ns,boxHu:rs,boxhU:ts,boxHU:os,boxminus:es,boxplus:ss,boxtimes:cs,boxul:is,boxuL:as,boxUl:ls,boxUL:us,boxur:ps,boxuR:fs,boxUr:hs,boxUR:ds,boxv:ms,boxV:gs,boxvh:bs,boxvH:_s,boxVh:ks,boxVH:xs,boxvl:vs,boxvL:ys,boxVl:Cs,boxVL:ws,boxvr:As,boxvR:qs,boxVr:Ds,boxVR:Es,bprime:Ss,breve:Fs,Breve:Ts,brvbar:Rs,bscr:Ls,Bscr:zs,bsemi:Is,bsim:Bs,bsime:Ms,bsolb:Ns,bsol:Ps,bsolhsub:Os,bull:Us,bullet:Vs,bump:$s,bumpE:Gs,bumpe:Hs,Bumpeq:js,bumpeq:Zs,Cacute:Js,cacute:Ys,capand:Ws,capbrcup:Qs,capcap:Ks,cap:Xs,Cap:nc,capcup:rc,capdot:tc,CapitalDifferentialD:oc,caps:ec,caret:sc,caron:cc,Cayleys:ic,ccaps:ac,Ccaron:lc,ccaron:uc,Ccedil:pc,ccedil:fc,Ccirc:hc,ccirc:dc,Cconint:mc,ccups:gc,ccupssm:bc,Cdot:_c,cdot:kc,cedil:xc,Cedilla:vc,cemptyv:yc,cent:Cc,centerdot:wc,CenterDot:Ac,cfr:qc,Cfr:Dc,CHcy:Ec,chcy:Sc,check:Fc,checkmark:Tc,Chi:Rc,chi:Lc,circ:zc,circeq:Ic,circlearrowleft:Bc,circlearrowright:Mc,circledast:Nc,circledcirc:Pc,circleddash:Oc,CircleDot:Uc,circledR:Vc,circledS:$c,CircleMinus:Gc,CirclePlus:Hc,CircleTimes:jc,cir:Zc,cirE:Jc,cire:Yc,cirfnint:Wc,cirmid:Qc,cirscir:Kc,ClockwiseContourIntegral:Xc,CloseCurlyDoubleQuote:ni,CloseCurlyQuote:ri,clubs:ti,clubsuit:oi,colon:ei,Colon:si,Colone:ci,colone:ii,coloneq:ai,comma:li,commat:ui,comp:pi,compfn:fi,complement:hi,complexes:di,cong:mi,congdot:gi,Congruent:bi,conint:_i,Conint:ki,ContourIntegral:xi,copf:vi,Copf:yi,coprod:Ci,Coproduct:wi,copy:Ai,COPY:qi,copysr:Di,CounterClockwiseContourIntegral:Ei,crarr:Si,cross:Fi,Cross:Ti,Cscr:Ri,cscr:Li,csub:zi,csube:Ii,csup:Bi,csupe:Mi,ctdot:Ni,cudarrl:Pi,cudarrr:Oi,cuepr:Ui,cuesc:Vi,cularr:$i,cularrp:Gi,cupbrcap:Hi,cupcap:ji,CupCap:Zi,cup:Ji,Cup:Yi,cupcup:Wi,cupdot:Qi,cupor:Ki,cups:Xi,curarr:na,curarrm:ra,curlyeqprec:ta,curlyeqsucc:oa,curlyvee:ea,curlywedge:sa,curren:ca,curvearrowleft:ia,curvearrowright:aa,cuvee:la,cuwed:ua,cwconint:pa,cwint:fa,cylcty:ha,dagger:da,Dagger:ma,daleth:ga,darr:ba,Darr:_a,dArr:ka,dash:xa,Dashv:va,dashv:ya,dbkarow:Ca,dblac:wa,Dcaron:Aa,dcaron:qa,Dcy:Da,dcy:Ea,ddagger:Sa,ddarr:Fa,DD:Ta,dd:Ra,DDotrahd:La,ddotseq:za,deg:Ia,Del:Ba,Delta:Ma,delta:Na,demptyv:Pa,dfisht:Oa,Dfr:Ua,dfr:Va,dHar:$a,dharl:Ga,dharr:Ha,DiacriticalAcute:ja,DiacriticalDot:Za,DiacriticalDoubleAcute:Ja,DiacriticalGrave:Ya,DiacriticalTilde:Wa,diam:Qa,diamond:Ka,Diamond:Xa,diamondsuit:nl,diams:rl,die:tl,DifferentialD:ol,digamma:el,disin:sl,div:cl,divide:il,divideontimes:al,divonx:ll,DJcy:ul,djcy:pl,dlcorn:fl,dlcrop:hl,dollar:dl,Dopf:ml,dopf:gl,Dot:bl,dot:_l,DotDot:kl,doteq:xl,doteqdot:vl,DotEqual:yl,dotminus:Cl,dotplus:wl,dotsquare:Al,doublebarwedge:ql,DoubleContourIntegral:Dl,DoubleDot:El,DoubleDownArrow:Sl,DoubleLeftArrow:Fl,DoubleLeftRightArrow:Tl,DoubleLeftTee:Rl,DoubleLongLeftArrow:Ll,DoubleLongLeftRightArrow:zl,DoubleLongRightArrow:Il,DoubleRightArrow:Bl,DoubleRightTee:Ml,DoubleUpArrow:Nl,DoubleUpDownArrow:Pl,DoubleVerticalBar:Ol,DownArrowBar:Ul,downarrow:Vl,DownArrow:$l,Downarrow:Gl,DownArrowUpArrow:Hl,DownBreve:jl,downdownarrows:Zl,downharpoonleft:Jl,downharpoonright:Yl,DownLeftRightVector:Wl,DownLeftTeeVector:Ql,DownLeftVectorBar:Kl,DownLeftVector:Xl,DownRightTeeVector:nu,DownRightVectorBar:ru,DownRightVector:tu,DownTeeArrow:ou,DownTee:eu,drbkarow:su,drcorn:cu,drcrop:iu,Dscr:au,dscr:lu,DScy:uu,dscy:pu,dsol:fu,Dstrok:hu,dstrok:du,dtdot:mu,dtri:gu,dtrif:bu,duarr:_u,duhar:ku,dwangle:xu,DZcy:vu,dzcy:yu,dzigrarr:Cu,Eacute:wu,eacute:Au,easter:qu,Ecaron:Du,ecaron:Eu,Ecirc:Su,ecirc:Fu,ecir:Tu,ecolon:Ru,Ecy:Lu,ecy:zu,eDDot:Iu,Edot:Bu,edot:Mu,eDot:Nu,ee:Pu,efDot:Ou,Efr:Uu,efr:Vu,eg:$u,Egrave:Gu,egrave:Hu,egs:ju,egsdot:Zu,el:Ju,Element:Yu,elinters:Wu,ell:Qu,els:Ku,elsdot:Xu,Emacr:np,emacr:rp,empty:tp,emptyset:op,EmptySmallSquare:ep,emptyv:sp,EmptyVerySmallSquare:cp,emsp13:ip,emsp14:ap,emsp:lp,ENG:up,eng:pp,ensp:fp,Eogon:hp,eogon:dp,Eopf:mp,eopf:gp,epar:bp,eparsl:_p,eplus:kp,epsi:xp,Epsilon:vp,epsilon:yp,epsiv:Cp,eqcirc:wp,eqcolon:Ap,eqsim:qp,eqslantgtr:Dp,eqslantless:Ep,Equal:Sp,equals:Fp,EqualTilde:Tp,equest:Rp,Equilibrium:Lp,equiv:zp,equivDD:Ip,eqvparsl:Bp,erarr:Mp,erDot:Np,escr:Pp,Escr:Op,esdot:Up,Esim:Vp,esim:$p,Eta:Gp,eta:Hp,ETH:jp,eth:Zp,Euml:Jp,euml:Yp,euro:Wp,excl:Qp,exist:Kp,Exists:Xp,expectation:nf,exponentiale:rf,ExponentialE:tf,fallingdotseq:of,Fcy:ef,fcy:sf,female:cf,ffilig:af,fflig:lf,ffllig:uf,Ffr:pf,ffr:ff,filig:hf,FilledSmallSquare:df,FilledVerySmallSquare:mf,fjlig:gf,flat:bf,fllig:_f,fltns:kf,fnof:xf,Fopf:vf,fopf:yf,forall:Cf,ForAll:wf,fork:Af,forkv:qf,Fouriertrf:Df,fpartint:Ef,frac12:Sf,frac13:Ff,frac14:Tf,frac15:Rf,frac16:Lf,frac18:zf,frac23:If,frac25:Bf,frac34:Mf,frac35:Nf,frac38:Pf,frac45:Of,frac56:Uf,frac58:Vf,frac78:$f,frasl:Gf,frown:Hf,fscr:jf,Fscr:Zf,gacute:Jf,Gamma:Yf,gamma:Wf,Gammad:Qf,gammad:Kf,gap:Xf,Gbreve:nh,gbreve:rh,Gcedil:th,Gcirc:oh,gcirc:eh,Gcy:sh,gcy:ch,Gdot:ih,gdot:ah,ge:lh,gE:uh,gEl:ph,gel:fh,geq:hh,geqq:dh,geqslant:mh,gescc:gh,ges:bh,gesdot:_h,gesdoto:kh,gesdotol:xh,gesl:vh,gesles:yh,Gfr:Ch,gfr:wh,gg:Ah,Gg:qh,ggg:Dh,gimel:Eh,GJcy:Sh,gjcy:Fh,gla:Th,gl:Rh,glE:Lh,glj:zh,gnap:Ih,gnapprox:Bh,gne:Mh,gnE:Nh,gneq:Ph,gneqq:Oh,gnsim:Uh,Gopf:Vh,gopf:$h,grave:Gh,GreaterEqual:Hh,GreaterEqualLess:jh,GreaterFullEqual:Zh,GreaterGreater:Jh,GreaterLess:Yh,GreaterSlantEqual:Wh,GreaterTilde:Qh,Gscr:Kh,gscr:Xh,gsim:nd,gsime:rd,gsiml:td,gtcc:od,gtcir:ed,gt:sd,GT:cd,Gt:id,gtdot:ad,gtlPar:ld,gtquest:ud,gtrapprox:pd,gtrarr:fd,gtrdot:hd,gtreqless:dd,gtreqqless:md,gtrless:gd,gtrsim:bd,gvertneqq:_d,gvnE:kd,Hacek:xd,hairsp:vd,half:yd,hamilt:Cd,HARDcy:wd,hardcy:Ad,harrcir:qd,harr:Dd,hArr:Ed,harrw:Sd,Hat:Fd,hbar:Td,Hcirc:Rd,hcirc:Ld,hearts:zd,heartsuit:Id,hellip:Bd,hercon:Md,hfr:Nd,Hfr:Pd,HilbertSpace:Od,hksearow:Ud,hkswarow:Vd,hoarr:$d,homtht:Gd,hookleftarrow:Hd,hookrightarrow:jd,hopf:Zd,Hopf:Jd,horbar:Yd,HorizontalLine:Wd,hscr:Qd,Hscr:Kd,hslash:Xd,Hstrok:nm,hstrok:rm,HumpDownHump:tm,HumpEqual:om,hybull:em,hyphen:sm,Iacute:cm,iacute:im,ic:am,Icirc:lm,icirc:um,Icy:pm,icy:fm,Idot:hm,IEcy:dm,iecy:mm,iexcl:gm,iff:bm,ifr:_m,Ifr:km,Igrave:xm,igrave:vm,ii:ym,iiiint:Cm,iiint:wm,iinfin:Am,iiota:qm,IJlig:Dm,ijlig:Em,Imacr:Sm,imacr:Fm,image:Tm,ImaginaryI:Rm,imagline:Lm,imagpart:zm,imath:Im,Im:Bm,imof:Mm,imped:Nm,Implies:Pm,incare:Om,in:"∈",infin:Um,infintie:Vm,inodot:$m,intcal:Gm,int:Hm,Int:jm,integers:Zm,Integral:Jm,intercal:Ym,Intersection:Wm,intlarhk:Qm,intprod:Km,InvisibleComma:Xm,InvisibleTimes:ng,IOcy:rg,iocy:tg,Iogon:og,iogon:eg,Iopf:sg,iopf:cg,Iota:ig,iota:ag,iprod:lg,iquest:ug,iscr:pg,Iscr:fg,isin:hg,isindot:dg,isinE:mg,isins:gg,isinsv:bg,isinv:_g,it:kg,Itilde:xg,itilde:vg,Iukcy:yg,iukcy:Cg,Iuml:wg,iuml:Ag,Jcirc:qg,jcirc:Dg,Jcy:Eg,jcy:Sg,Jfr:Fg,jfr:Tg,jmath:Rg,Jopf:Lg,jopf:zg,Jscr:Ig,jscr:Bg,Jsercy:Mg,jsercy:Ng,Jukcy:Pg,jukcy:Og,Kappa:Ug,kappa:Vg,kappav:$g,Kcedil:Gg,kcedil:Hg,Kcy:jg,kcy:Zg,Kfr:Jg,kfr:Yg,kgreen:Wg,KHcy:Qg,khcy:Kg,KJcy:Xg,kjcy:n0,Kopf:r0,kopf:t0,Kscr:o0,kscr:e0,lAarr:s0,Lacute:c0,lacute:i0,laemptyv:a0,lagran:l0,Lambda:u0,lambda:p0,lang:f0,Lang:h0,langd:d0,langle:m0,lap:g0,Laplacetrf:b0,laquo:_0,larrb:k0,larrbfs:x0,larr:v0,Larr:y0,lArr:C0,larrfs:w0,larrhk:A0,larrlp:q0,larrpl:D0,larrsim:E0,larrtl:S0,latail:F0,lAtail:T0,lat:R0,late:L0,lates:z0,lbarr:I0,lBarr:B0,lbbrk:M0,lbrace:N0,lbrack:P0,lbrke:O0,lbrksld:U0,lbrkslu:V0,Lcaron:$0,lcaron:G0,Lcedil:H0,lcedil:j0,lceil:Z0,lcub:J0,Lcy:Y0,lcy:W0,ldca:Q0,ldquo:K0,ldquor:X0,ldrdhar:nb,ldrushar:rb,ldsh:tb,le:ob,lE:eb,LeftAngleBracket:sb,LeftArrowBar:cb,leftarrow:ib,LeftArrow:ab,Leftarrow:lb,LeftArrowRightArrow:ub,leftarrowtail:pb,LeftCeiling:fb,LeftDoubleBracket:hb,LeftDownTeeVector:db,LeftDownVectorBar:mb,LeftDownVector:gb,LeftFloor:bb,leftharpoondown:_b,leftharpoonup:kb,leftleftarrows:xb,leftrightarrow:vb,LeftRightArrow:yb,Leftrightarrow:Cb,leftrightarrows:wb,leftrightharpoons:Ab,leftrightsquigarrow:qb,LeftRightVector:Db,LeftTeeArrow:Eb,LeftTee:Sb,LeftTeeVector:Fb,leftthreetimes:Tb,LeftTriangleBar:Rb,LeftTriangle:Lb,LeftTriangleEqual:zb,LeftUpDownVector:Ib,LeftUpTeeVector:Bb,LeftUpVectorBar:Mb,LeftUpVector:Nb,LeftVectorBar:Pb,LeftVector:Ob,lEg:Ub,leg:Vb,leq:$b,leqq:Gb,leqslant:Hb,lescc:jb,les:Zb,lesdot:Jb,lesdoto:Yb,lesdotor:Wb,lesg:Qb,lesges:Kb,lessapprox:Xb,lessdot:n_,lesseqgtr:r_,lesseqqgtr:t_,LessEqualGreater:o_,LessFullEqual:e_,LessGreater:s_,lessgtr:c_,LessLess:i_,lesssim:a_,LessSlantEqual:l_,LessTilde:u_,lfisht:p_,lfloor:f_,Lfr:h_,lfr:d_,lg:m_,lgE:g_,lHar:b_,lhard:__,lharu:k_,lharul:x_,lhblk:v_,LJcy:y_,ljcy:C_,llarr:w_,ll:A_,Ll:q_,llcorner:D_,Lleftarrow:E_,llhard:S_,lltri:F_,Lmidot:T_,lmidot:R_,lmoustache:L_,lmoust:z_,lnap:I_,lnapprox:B_,lne:M_,lnE:N_,lneq:P_,lneqq:O_,lnsim:U_,loang:V_,loarr:$_,lobrk:G_,longleftarrow:H_,LongLeftArrow:j_,Longleftarrow:Z_,longleftrightarrow:J_,LongLeftRightArrow:Y_,Longleftrightarrow:W_,longmapsto:Q_,longrightarrow:K_,LongRightArrow:X_,Longrightarrow:nk,looparrowleft:rk,looparrowright:tk,lopar:ok,Lopf:ek,lopf:sk,loplus:ck,lotimes:ik,lowast:ak,lowbar:lk,LowerLeftArrow:uk,LowerRightArrow:pk,loz:fk,lozenge:hk,lozf:dk,lpar:mk,lparlt:gk,lrarr:bk,lrcorner:_k,lrhar:kk,lrhard:xk,lrm:vk,lrtri:yk,lsaquo:Ck,lscr:wk,Lscr:Ak,lsh:qk,Lsh:Dk,lsim:Ek,lsime:Sk,lsimg:Fk,lsqb:Tk,lsquo:Rk,lsquor:Lk,Lstrok:zk,lstrok:Ik,ltcc:Bk,ltcir:Mk,lt:Nk,LT:Pk,Lt:Ok,ltdot:Uk,lthree:Vk,ltimes:$k,ltlarr:Gk,ltquest:Hk,ltri:jk,ltrie:Zk,ltrif:Jk,ltrPar:Yk,lurdshar:Wk,luruhar:Qk,lvertneqq:Kk,lvnE:Xk,macr:nx,male:rx,malt:tx,maltese:ox,Map:"⤅",map:ex,mapsto:sx,mapstodown:cx,mapstoleft:ix,mapstoup:ax,marker:lx,mcomma:ux,Mcy:px,mcy:fx,mdash:hx,mDDot:dx,measuredangle:mx,MediumSpace:gx,Mellintrf:bx,Mfr:_x,mfr:kx,mho:xx,micro:vx,midast:yx,midcir:Cx,mid:wx,middot:Ax,minusb:qx,minus:Dx,minusd:Ex,minusdu:Sx,MinusPlus:Fx,mlcp:Tx,mldr:Rx,mnplus:Lx,models:zx,Mopf:Ix,mopf:Bx,mp:Mx,mscr:Nx,Mscr:Px,mstpos:Ox,Mu:Ux,mu:Vx,multimap:$x,mumap:Gx,nabla:Hx,Nacute:jx,nacute:Zx,nang:Jx,nap:Yx,napE:Wx,napid:Qx,napos:Kx,napprox:Xx,natural:nv,naturals:rv,natur:tv,nbsp:ov,nbump:ev,nbumpe:sv,ncap:cv,Ncaron:iv,ncaron:av,Ncedil:lv,ncedil:uv,ncong:pv,ncongdot:fv,ncup:hv,Ncy:dv,ncy:mv,ndash:gv,nearhk:bv,nearr:_v,neArr:kv,nearrow:xv,ne:vv,nedot:yv,NegativeMediumSpace:Cv,NegativeThickSpace:wv,NegativeThinSpace:Av,NegativeVeryThinSpace:qv,nequiv:Dv,nesear:Ev,nesim:Sv,NestedGreaterGreater:Fv,NestedLessLess:Tv,NewLine:Rv,nexist:Lv,nexists:zv,Nfr:Iv,nfr:Bv,ngE:Mv,nge:Nv,ngeq:Pv,ngeqq:Ov,ngeqslant:Uv,nges:Vv,nGg:$v,ngsim:Gv,nGt:Hv,ngt:jv,ngtr:Zv,nGtv:Jv,nharr:Yv,nhArr:Wv,nhpar:Qv,ni:Kv,nis:Xv,nisd:ny,niv:ry,NJcy:ty,njcy:oy,nlarr:ey,nlArr:sy,nldr:cy,nlE:iy,nle:ay,nleftarrow:ly,nLeftarrow:uy,nleftrightarrow:py,nLeftrightarrow:fy,nleq:hy,nleqq:dy,nleqslant:my,nles:gy,nless:by,nLl:_y,nlsim:ky,nLt:xy,nlt:vy,nltri:yy,nltrie:Cy,nLtv:wy,nmid:Ay,NoBreak:qy,NonBreakingSpace:Dy,nopf:Ey,Nopf:Sy,Not:Fy,not:Ty,NotCongruent:Ry,NotCupCap:Ly,NotDoubleVerticalBar:zy,NotElement:Iy,NotEqual:By,NotEqualTilde:My,NotExists:Ny,NotGreater:Py,NotGreaterEqual:Oy,NotGreaterFullEqual:Uy,NotGreaterGreater:Vy,NotGreaterLess:$y,NotGreaterSlantEqual:Gy,NotGreaterTilde:Hy,NotHumpDownHump:jy,NotHumpEqual:Zy,notin:Jy,notindot:Yy,notinE:Wy,notinva:Qy,notinvb:Ky,notinvc:Xy,NotLeftTriangleBar:nC,NotLeftTriangle:rC,NotLeftTriangleEqual:tC,NotLess:oC,NotLessEqual:eC,NotLessGreater:sC,NotLessLess:cC,NotLessSlantEqual:iC,NotLessTilde:aC,NotNestedGreaterGreater:lC,NotNestedLessLess:uC,notni:pC,notniva:fC,notnivb:hC,notnivc:dC,NotPrecedes:mC,NotPrecedesEqual:gC,NotPrecedesSlantEqual:bC,NotReverseElement:_C,NotRightTriangleBar:kC,NotRightTriangle:xC,NotRightTriangleEqual:vC,NotSquareSubset:yC,NotSquareSubsetEqual:CC,NotSquareSuperset:wC,NotSquareSupersetEqual:AC,NotSubset:qC,NotSubsetEqual:DC,NotSucceeds:EC,NotSucceedsEqual:SC,NotSucceedsSlantEqual:FC,NotSucceedsTilde:TC,NotSuperset:RC,NotSupersetEqual:LC,NotTilde:zC,NotTildeEqual:IC,NotTildeFullEqual:BC,NotTildeTilde:MC,NotVerticalBar:NC,nparallel:PC,npar:OC,nparsl:UC,npart:VC,npolint:$C,npr:GC,nprcue:HC,nprec:jC,npreceq:ZC,npre:JC,nrarrc:YC,nrarr:WC,nrArr:QC,nrarrw:KC,nrightarrow:XC,nRightarrow:nw,nrtri:rw,nrtrie:tw,nsc:ow,nsccue:ew,nsce:sw,Nscr:cw,nscr:iw,nshortmid:aw,nshortparallel:lw,nsim:uw,nsime:pw,nsimeq:fw,nsmid:hw,nspar:dw,nsqsube:mw,nsqsupe:gw,nsub:bw,nsubE:_w,nsube:kw,nsubset:xw,nsubseteq:vw,nsubseteqq:yw,nsucc:Cw,nsucceq:ww,nsup:Aw,nsupE:qw,nsupe:Dw,nsupset:Ew,nsupseteq:Sw,nsupseteqq:Fw,ntgl:Tw,Ntilde:Rw,ntilde:Lw,ntlg:zw,ntriangleleft:Iw,ntrianglelefteq:Bw,ntriangleright:Mw,ntrianglerighteq:Nw,Nu:Pw,nu:Ow,num:Uw,numero:Vw,numsp:$w,nvap:Gw,nvdash:Hw,nvDash:jw,nVdash:Zw,nVDash:Jw,nvge:Yw,nvgt:Ww,nvHarr:Qw,nvinfin:Kw,nvlArr:Xw,nvle:nA,nvlt:rA,nvltrie:tA,nvrArr:oA,nvrtrie:eA,nvsim:sA,nwarhk:cA,nwarr:iA,nwArr:aA,nwarrow:lA,nwnear:uA,Oacute:pA,oacute:fA,oast:hA,Ocirc:dA,ocirc:mA,ocir:gA,Ocy:bA,ocy:_A,odash:kA,Odblac:xA,odblac:vA,odiv:yA,odot:CA,odsold:wA,OElig:AA,oelig:qA,ofcir:DA,Ofr:EA,ofr:SA,ogon:FA,Ograve:TA,ograve:RA,ogt:LA,ohbar:zA,ohm:IA,oint:BA,olarr:MA,olcir:NA,olcross:PA,oline:OA,olt:UA,Omacr:VA,omacr:$A,Omega:GA,omega:HA,Omicron:jA,omicron:ZA,omid:JA,ominus:YA,Oopf:WA,oopf:QA,opar:KA,OpenCurlyDoubleQuote:XA,OpenCurlyQuote:n1,operp:r1,oplus:t1,orarr:o1,Or:e1,or:s1,ord:c1,order:i1,orderof:a1,ordf:l1,ordm:u1,origof:p1,oror:f1,orslope:h1,orv:d1,oS:m1,Oscr:g1,oscr:b1,Oslash:_1,oslash:k1,osol:x1,Otilde:v1,otilde:y1,otimesas:C1,Otimes:w1,otimes:A1,Ouml:q1,ouml:D1,ovbar:E1,OverBar:S1,OverBrace:F1,OverBracket:T1,OverParenthesis:R1,para:L1,parallel:z1,par:I1,parsim:B1,parsl:M1,part:N1,PartialD:P1,Pcy:O1,pcy:U1,percnt:V1,period:$1,permil:G1,perp:H1,pertenk:j1,Pfr:Z1,pfr:J1,Phi:Y1,phi:W1,phiv:Q1,phmmat:K1,phone:X1,Pi:nq,pi:rq,pitchfork:tq,piv:oq,planck:eq,planckh:sq,plankv:cq,plusacir:iq,plusb:aq,pluscir:lq,plus:uq,plusdo:pq,plusdu:fq,pluse:hq,PlusMinus:dq,plusmn:mq,plussim:gq,plustwo:bq,pm:_q,Poincareplane:kq,pointint:xq,popf:vq,Popf:yq,pound:Cq,prap:wq,Pr:Aq,pr:qq,prcue:Dq,precapprox:Eq,prec:Sq,preccurlyeq:Fq,Precedes:Tq,PrecedesEqual:Rq,PrecedesSlantEqual:Lq,PrecedesTilde:zq,preceq:Iq,precnapprox:Bq,precneqq:Mq,precnsim:Nq,pre:Pq,prE:Oq,precsim:Uq,prime:Vq,Prime:$q,primes:Gq,prnap:Hq,prnE:jq,prnsim:Zq,prod:Jq,Product:Yq,profalar:Wq,profline:Qq,profsurf:Kq,prop:Xq,Proportional:nD,Proportion:rD,propto:tD,prsim:oD,prurel:eD,Pscr:sD,pscr:cD,Psi:iD,psi:aD,puncsp:lD,Qfr:uD,qfr:pD,qint:fD,qopf:hD,Qopf:dD,qprime:mD,Qscr:gD,qscr:bD,quaternions:_D,quatint:kD,quest:xD,questeq:vD,quot:yD,QUOT:CD,rAarr:wD,race:AD,Racute:qD,racute:DD,radic:ED,raemptyv:SD,rang:FD,Rang:TD,rangd:RD,range:LD,rangle:zD,raquo:ID,rarrap:BD,rarrb:MD,rarrbfs:ND,rarrc:PD,rarr:OD,Rarr:UD,rArr:VD,rarrfs:$D,rarrhk:GD,rarrlp:HD,rarrpl:jD,rarrsim:ZD,Rarrtl:JD,rarrtl:YD,rarrw:WD,ratail:QD,rAtail:KD,ratio:XD,rationals:nE,rbarr:rE,rBarr:tE,RBarr:oE,rbbrk:eE,rbrace:sE,rbrack:cE,rbrke:iE,rbrksld:aE,rbrkslu:lE,Rcaron:uE,rcaron:pE,Rcedil:fE,rcedil:hE,rceil:dE,rcub:mE,Rcy:gE,rcy:bE,rdca:_E,rdldhar:kE,rdquo:xE,rdquor:vE,rdsh:yE,real:CE,realine:wE,realpart:AE,reals:qE,Re:DE,rect:EE,reg:SE,REG:FE,ReverseElement:TE,ReverseEquilibrium:RE,ReverseUpEquilibrium:LE,rfisht:zE,rfloor:IE,rfr:BE,Rfr:ME,rHar:NE,rhard:PE,rharu:OE,rharul:UE,Rho:VE,rho:$E,rhov:GE,RightAngleBracket:HE,RightArrowBar:jE,rightarrow:ZE,RightArrow:JE,Rightarrow:YE,RightArrowLeftArrow:WE,rightarrowtail:QE,RightCeiling:KE,RightDoubleBracket:XE,RightDownTeeVector:nS,RightDownVectorBar:rS,RightDownVector:tS,RightFloor:oS,rightharpoondown:eS,rightharpoonup:sS,rightleftarrows:cS,rightleftharpoons:iS,rightrightarrows:aS,rightsquigarrow:lS,RightTeeArrow:uS,RightTee:pS,RightTeeVector:fS,rightthreetimes:hS,RightTriangleBar:dS,RightTriangle:mS,RightTriangleEqual:gS,RightUpDownVector:bS,RightUpTeeVector:_S,RightUpVectorBar:kS,RightUpVector:xS,RightVectorBar:vS,RightVector:yS,ring:CS,risingdotseq:wS,rlarr:AS,rlhar:qS,rlm:DS,rmoustache:ES,rmoust:SS,rnmid:FS,roang:TS,roarr:RS,robrk:LS,ropar:zS,ropf:IS,Ropf:BS,roplus:MS,rotimes:NS,RoundImplies:PS,rpar:OS,rpargt:US,rppolint:VS,rrarr:$S,Rrightarrow:GS,rsaquo:HS,rscr:jS,Rscr:ZS,rsh:JS,Rsh:YS,rsqb:WS,rsquo:QS,rsquor:KS,rthree:XS,rtimes:nF,rtri:rF,rtrie:tF,rtrif:oF,rtriltri:eF,RuleDelayed:sF,ruluhar:cF,rx:iF,Sacute:aF,sacute:lF,sbquo:uF,scap:pF,Scaron:fF,scaron:hF,Sc:dF,sc:mF,sccue:gF,sce:bF,scE:_F,Scedil:kF,scedil:xF,Scirc:vF,scirc:yF,scnap:CF,scnE:wF,scnsim:AF,scpolint:qF,scsim:DF,Scy:EF,scy:SF,sdotb:FF,sdot:TF,sdote:RF,searhk:LF,searr:zF,seArr:IF,searrow:BF,sect:MF,semi:NF,seswar:PF,setminus:OF,setmn:UF,sext:VF,Sfr:$F,sfr:GF,sfrown:HF,sharp:jF,SHCHcy:ZF,shchcy:JF,SHcy:YF,shcy:WF,ShortDownArrow:QF,ShortLeftArrow:KF,shortmid:XF,shortparallel:nT,ShortRightArrow:rT,ShortUpArrow:tT,shy:oT,Sigma:eT,sigma:sT,sigmaf:cT,sigmav:iT,sim:aT,simdot:lT,sime:uT,simeq:pT,simg:fT,simgE:hT,siml:dT,simlE:mT,simne:gT,simplus:bT,simrarr:_T,slarr:kT,SmallCircle:xT,smallsetminus:vT,smashp:yT,smeparsl:CT,smid:wT,smile:AT,smt:qT,smte:DT,smtes:ET,SOFTcy:ST,softcy:FT,solbar:TT,solb:RT,sol:LT,Sopf:zT,sopf:IT,spades:BT,spadesuit:MT,spar:NT,sqcap:PT,sqcaps:OT,sqcup:UT,sqcups:VT,Sqrt:$T,sqsub:GT,sqsube:HT,sqsubset:jT,sqsubseteq:ZT,sqsup:JT,sqsupe:YT,sqsupset:WT,sqsupseteq:QT,square:KT,Square:XT,SquareIntersection:n2,SquareSubset:r2,SquareSubsetEqual:t2,SquareSuperset:o2,SquareSupersetEqual:e2,SquareUnion:s2,squarf:c2,squ:i2,squf:a2,srarr:l2,Sscr:u2,sscr:p2,ssetmn:f2,ssmile:h2,sstarf:d2,Star:m2,star:g2,starf:b2,straightepsilon:_2,straightphi:k2,strns:x2,sub:v2,Sub:y2,subdot:C2,subE:w2,sube:A2,subedot:q2,submult:D2,subnE:E2,subne:S2,subplus:F2,subrarr:T2,subset:R2,Subset:L2,subseteq:z2,subseteqq:I2,SubsetEqual:B2,subsetneq:M2,subsetneqq:N2,subsim:P2,subsub:O2,subsup:U2,succapprox:V2,succ:$2,succcurlyeq:G2,Succeeds:H2,SucceedsEqual:j2,SucceedsSlantEqual:Z2,SucceedsTilde:J2,succeq:Y2,succnapprox:W2,succneqq:Q2,succnsim:K2,succsim:X2,SuchThat:nR,sum:rR,Sum:tR,sung:oR,sup1:eR,sup2:sR,sup3:cR,sup:iR,Sup:aR,supdot:lR,supdsub:uR,supE:pR,supe:fR,supedot:hR,Superset:dR,SupersetEqual:mR,suphsol:gR,suphsub:bR,suplarr:_R,supmult:kR,supnE:xR,supne:vR,supplus:yR,supset:CR,Supset:wR,supseteq:AR,supseteqq:qR,supsetneq:DR,supsetneqq:ER,supsim:SR,supsub:FR,supsup:TR,swarhk:RR,swarr:LR,swArr:zR,swarrow:IR,swnwar:BR,szlig:MR,Tab:NR,target:PR,Tau:OR,tau:UR,tbrk:VR,Tcaron:$R,tcaron:GR,Tcedil:HR,tcedil:jR,Tcy:ZR,tcy:JR,tdot:YR,telrec:WR,Tfr:QR,tfr:KR,there4:XR,therefore:nL,Therefore:rL,Theta:tL,theta:oL,thetasym:eL,thetav:sL,thickapprox:cL,thicksim:iL,ThickSpace:aL,ThinSpace:lL,thinsp:uL,thkap:pL,thksim:fL,THORN:hL,thorn:dL,tilde:mL,Tilde:gL,TildeEqual:bL,TildeFullEqual:_L,TildeTilde:kL,timesbar:xL,timesb:vL,times:yL,timesd:CL,tint:wL,toea:AL,topbot:qL,topcir:DL,top:EL,Topf:SL,topf:FL,topfork:TL,tosa:RL,tprime:LL,trade:zL,TRADE:IL,triangle:BL,triangledown:ML,triangleleft:NL,trianglelefteq:PL,triangleq:OL,triangleright:UL,trianglerighteq:VL,tridot:$L,trie:GL,triminus:HL,TripleDot:jL,triplus:ZL,trisb:JL,tritime:YL,trpezium:WL,Tscr:QL,tscr:KL,TScy:XL,tscy:nz,TSHcy:rz,tshcy:tz,Tstrok:oz,tstrok:ez,twixt:sz,twoheadleftarrow:cz,twoheadrightarrow:iz,Uacute:az,uacute:lz,uarr:uz,Uarr:pz,uArr:fz,Uarrocir:hz,Ubrcy:dz,ubrcy:mz,Ubreve:gz,ubreve:bz,Ucirc:_z,ucirc:kz,Ucy:xz,ucy:vz,udarr:yz,Udblac:Cz,udblac:wz,udhar:Az,ufisht:qz,Ufr:Dz,ufr:Ez,Ugrave:Sz,ugrave:Fz,uHar:Tz,uharl:Rz,uharr:Lz,uhblk:zz,ulcorn:Iz,ulcorner:Bz,ulcrop:Mz,ultri:Nz,Umacr:Pz,umacr:Oz,uml:Uz,UnderBar:Vz,UnderBrace:$z,UnderBracket:Gz,UnderParenthesis:Hz,Union:jz,UnionPlus:Zz,Uogon:Jz,uogon:Yz,Uopf:Wz,uopf:Qz,UpArrowBar:Kz,uparrow:Xz,UpArrow:nI,Uparrow:rI,UpArrowDownArrow:tI,updownarrow:oI,UpDownArrow:eI,Updownarrow:sI,UpEquilibrium:cI,upharpoonleft:iI,upharpoonright:aI,uplus:lI,UpperLeftArrow:uI,UpperRightArrow:pI,upsi:fI,Upsi:hI,upsih:dI,Upsilon:mI,upsilon:gI,UpTeeArrow:bI,UpTee:_I,upuparrows:kI,urcorn:xI,urcorner:vI,urcrop:yI,Uring:CI,uring:wI,urtri:AI,Uscr:qI,uscr:DI,utdot:EI,Utilde:SI,utilde:FI,utri:TI,utrif:RI,uuarr:LI,Uuml:zI,uuml:II,uwangle:BI,vangrt:MI,varepsilon:NI,varkappa:PI,varnothing:OI,varphi:UI,varpi:VI,varpropto:$I,varr:GI,vArr:HI,varrho:jI,varsigma:ZI,varsubsetneq:JI,varsubsetneqq:YI,varsupsetneq:WI,varsupsetneqq:QI,vartheta:KI,vartriangleleft:XI,vartriangleright:nB,vBar:rB,Vbar:tB,vBarv:oB,Vcy:eB,vcy:sB,vdash:cB,vDash:iB,Vdash:aB,VDash:lB,Vdashl:uB,veebar:pB,vee:fB,Vee:hB,veeeq:dB,vellip:mB,verbar:gB,Verbar:bB,vert:_B,Vert:kB,VerticalBar:xB,VerticalLine:vB,VerticalSeparator:yB,VerticalTilde:CB,VeryThinSpace:wB,Vfr:AB,vfr:qB,vltri:DB,vnsub:EB,vnsup:SB,Vopf:FB,vopf:TB,vprop:RB,vrtri:LB,Vscr:zB,vscr:IB,vsubnE:BB,vsubne:MB,vsupnE:NB,vsupne:PB,Vvdash:OB,vzigzag:UB,Wcirc:VB,wcirc:$B,wedbar:GB,wedge:HB,Wedge:jB,wedgeq:ZB,weierp:JB,Wfr:YB,wfr:WB,Wopf:QB,wopf:KB,wp:XB,wr:nM,wreath:rM,Wscr:tM,wscr:oM,xcap:eM,xcirc:sM,xcup:cM,xdtri:iM,Xfr:aM,xfr:lM,xharr:uM,xhArr:pM,Xi:fM,xi:hM,xlarr:dM,xlArr:mM,xmap:gM,xnis:bM,xodot:_M,Xopf:kM,xopf:xM,xoplus:vM,xotime:yM,xrarr:CM,xrArr:wM,Xscr:AM,xscr:qM,xsqcup:DM,xuplus:EM,xutri:SM,xvee:FM,xwedge:TM,Yacute:RM,yacute:LM,YAcy:zM,yacy:IM,Ycirc:BM,ycirc:MM,Ycy:NM,ycy:PM,yen:OM,Yfr:UM,yfr:VM,YIcy:$M,yicy:GM,Yopf:HM,yopf:jM,Yscr:ZM,yscr:JM,YUcy:YM,yucy:WM,yuml:QM,Yuml:KM,Zacute:XM,zacute:n3,Zcaron:r3,zcaron:t3,Zcy:o3,zcy:e3,Zdot:s3,zdot:c3,zeetrf:i3,ZeroWidthSpace:a3,Zeta:l3,zeta:u3,zfr:p3,Zfr:f3,ZHcy:h3,zhcy:d3,zigrarr:m3,zopf:g3,Zopf:b3,Zscr:_3,zscr:k3,zwj:x3,zwnj:v3};var Fr=y3,zn=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,J={},jn={};function C3(t){var n,r,o=jn[t];if(o)return o;for(o=jn[t]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n"u"&&(r=!0),c=C3(n),o=0,e=t.length;o=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&i<=57343)){a+=encodeURIComponent(t[o]+t[o+1]),o++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[o])}return a}ln.defaultChars=";/?:@&=+$,-_.!~*'()#";ln.componentChars="-_.!~*'()";var w3=ln,Zn={};function A3(t){var n,r,o=Zn[t];if(o)return o;for(o=Zn[t]=[],n=0;n<128;n++)r=String.fromCharCode(n),o.push(r);for(n=0;n=55296&&u<=57343?p+="���":p+=String.fromCharCode(u),e+=6;continue}if((i&248)===240&&e+91114111?p+="����":(u-=65536,p+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),e+=9;continue}p+="�"}return p})}un.defaultChars=";/?:@&=+$,#";un.componentChars="";var q3=un,D3=function(n){var r="";return r+=n.protocol||"",r+=n.slashes?"//":"",r+=n.auth?n.auth+"@":"",n.hostname&&n.hostname.indexOf(":")!==-1?r+="["+n.hostname+"]":r+=n.hostname||"",r+=n.port?":"+n.port:"",r+=n.pathname||"",r+=n.search||"",r+=n.hash||"",r};function cn(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var E3=/^([a-z0-9.+-]+:)/i,S3=/:[0-9]*$/,F3=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T3=["<",">",'"',"`"," ","\r",` `," "],R3=["{","}","|","\\","^","`"].concat(T3),L3=["'"].concat(R3),Jn=["%","/","?",";","#"].concat(L3),Yn=["/","?","#"],z3=255,Wn=/^[+a-z0-9A-Z_-]{0,63}$/,I3=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qn={javascript:!0,"javascript:":!0},Kn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function B3(t,n){if(t&&t instanceof cn)return t;var r=new cn;return r.parse(t,n),r}cn.prototype.parse=function(t,n){var r,o,e,s,i,c=t;if(c=c.trim(),!n&&t.split("#").length===1){var a=F3.exec(c);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=E3.exec(c);if(l&&(l=l[0],e=l.toLowerCase(),this.protocol=l,c=c.substr(l.length)),(n||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=c.substr(0,2)==="//",i&&!(l&&Qn[l])&&(c=c.substr(2),this.slashes=!0)),!Qn[l]&&(i||l&&!Kn[l])){var u=-1;for(r=0;r127?k+="x":k+=x[d];if(!k.match(Wn)){var y=m.slice(0,r),C=m.slice(r+1),_=x.match(I3);_&&(y.push(_[1]),C.unshift(_[2])),C.length&&(c=C.join(".")+c),this.hostname=y.join(".");break}}}}this.hostname.length>z3&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=c.indexOf("#");D!==-1&&(this.hash=c.substr(D),c=c.slice(0,D));var F=c.indexOf("?");return F!==-1&&(this.search=c.substr(F),c=c.slice(0,F)),c&&(this.pathname=c),Kn[e]&&this.hostname&&!this.pathname&&(this.pathname=""),this};cn.prototype.parseHost=function(t){var n=S3.exec(t);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(this.hostname=t)};var M3=B3;J.encode=w3;J.decode=q3;J.format=D3;J.parse=M3;var O={},_n,Xn;function Tr(){return Xn||(Xn=1,_n=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),_n}var kn,nr;function Rr(){return nr||(nr=1,kn=/[\0-\x1F\x7F-\x9F]/),kn}var xn,rr;function N3(){return rr||(rr=1,xn=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),xn}var vn,tr;function Lr(){return tr||(tr=1,vn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),vn}var or;function P3(){return or||(or=1,O.Any=Tr(),O.Cc=Rr(),O.Cf=N3(),O.P=zn,O.Z=Lr()),O}(function(t){function n(g){return Object.prototype.toString.call(g)}function r(g){return n(g)==="[object String]"}var o=Object.prototype.hasOwnProperty;function e(g,S){return o.call(g,S)}function s(g){var S=Array.prototype.slice.call(arguments,1);return S.forEach(function(A){if(A){if(typeof A!="object")throw new TypeError(A+"must be object");Object.keys(A).forEach(function(N){g[N]=A[N]})}}),g}function i(g,S,A){return[].concat(g.slice(0,S),A,g.slice(S+1))}function c(g){return!(g>=55296&&g<=57343||g>=64976&&g<=65007||(g&65535)===65535||(g&65535)===65534||g>=0&&g<=8||g===11||g>=14&&g<=31||g>=127&&g<=159||g>1114111)}function a(g){if(g>65535){g-=65536;var S=55296+(g>>10),A=56320+(g&1023);return String.fromCharCode(S,A)}return String.fromCharCode(g)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(l.source+"|"+u.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=Fr;function b(g,S){var A=0;return e(f,S)?f[S]:S.charCodeAt(0)===35&&h.test(S)&&(A=S[1].toLowerCase()==="x"?parseInt(S.slice(2),16):parseInt(S.slice(1),10),c(A))?a(A):g}function m(g){return g.indexOf("\\")<0?g:g.replace(l,"$1")}function x(g){return g.indexOf("\\")<0&&g.indexOf("&")<0?g:g.replace(p,function(S,A,N){return A||b(S,N)})}var k=/[&<>"]/,d=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function y(g){return v[g]}function C(g){return k.test(g)?g.replace(d,y):g}var _=/[.?*+^$[\]\\(){}|-]/g;function D(g){return g.replace(_,"\\$&")}function F(g){switch(g){case 9:case 32:return!0}return!1}function $(g){if(g>=8192&&g<=8202)return!0;switch(g){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var w=zn;function E(g){return w.test(g)}function Q(g){switch(g){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(g){return g=g.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(g=g.replace(/ẞ/g,"ß")),g.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=J,t.lib.ucmicro=P3(),t.assign=s,t.isString=r,t.has=e,t.unescapeMd=m,t.unescapeAll=x,t.isValidEntityCode=c,t.fromCodePoint=a,t.escapeHtml=C,t.arrayReplaceAt=i,t.isSpace=F,t.isWhiteSpace=$,t.isMdAsciiPunct=Q,t.isPunctChar=E,t.escapeRE=D,t.normalizeReference=G})(q);var pn={},O3=function(n,r,o){var e,s,i,c,a=-1,l=n.posMax,u=n.pos;for(n.pos=r+1,e=1;n.pos32))return a;if(e===41){if(s===0)break;s--}r++}return c===r||s!==0||(a.str=er(n.slice(c,r)),a.lines=i,a.pos=r,a.ok=!0),a},V3=q.unescapeAll,$3=function(n,r,o){var e,s,i=0,c=r,a={ok:!1,pos:0,lines:0,str:""};if(r>=o||(s=n.charCodeAt(r),s!==34&&s!==39&&s!==40))return a;for(r++,s===40&&(s=41);r"+V(t[n].content)+""};B.code_block=function(t,n,r,o,e){var s=t[n];return""+V(t[n].content)+` `};B.fence=function(t,n,r,o,e){var s=t[n],i=s.info?H3(s.info).trim():"",c="",a="",l,u,p,h,f;return i&&(p=i.split(/(\s+)/g),c=p[0],a=p.slice(2).join("")),r.highlight?l=r.highlight(s.content,c,a)||V(s.content):l=V(s.content),l.indexOf("t in h?Im(h,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):h[t]=e;var U=(h,t,e)=>(Dm(h,typeof t!="symbol"?t+"":t,e),e),Zd=(h,t,e)=>{if(!t.has(h))throw TypeError("Cannot "+e)};var r=(h,t,e)=>(Zd(h,t,"read from private field"),e?e.call(h):t.get(h)),f=(h,t,e)=>{if(t.has(h))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(h):t.set(h,e)},m=(h,t,e,s)=>(Zd(h,t,"write to private field"),s?s.call(h,e):t.set(h,e),e);var ie=(h,t,e,s)=>({set _(i){m(h,t,i,e)},get _(){return r(h,t,s)}}),b=(h,t,e)=>(Zd(h,t,"access private method"),e);import{n as bh,r as F,j as ft,a2 as Ht,f as Fm,Q as Om,a3 as va,R as rt,a4 as Nm,H as Ah,a5 as Hm}from"./index-CgQH3-O6.js";var Ha={};Ha.d=(h,t)=>{for(var e in t)Ha.o(t,e)&&!Ha.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:t[e]})};Ha.o=(h,t)=>Object.prototype.hasOwnProperty.call(h,t);var B=globalThis.pdfjsLib={};Ha.d(B,{AbortException:()=>Hn,AnnotationEditorLayer:()=>Af,AnnotationEditorParamsType:()=>j,AnnotationEditorType:()=>W,AnnotationEditorUIManager:()=>Dn,AnnotationLayer:()=>OA,AnnotationMode:()=>zs,CMapCompressionType:()=>ou,ColorPicker:()=>tc,DOMSVGFactory:()=>Pf,DrawLayer:()=>Ef,FeatureTest:()=>Zt,GlobalWorkerOptions:()=>Os,ImageKind:()=>Sh,InvalidPDFException:()=>bp,MissingPDFException:()=>Nn,OPS:()=>Ee,Outliner:()=>Ju,PDFDataRangeTransport:()=>hg,PDFDateString:()=>Sp,PDFWorker:()=>Qn,PasswordResponses:()=>$m,PermissionFlag:()=>Um,PixelsPerInch:()=>mi,RenderingCancelledException:()=>Lf,TextLayer:()=>Jh,UnexpectedResponseException:()=>jd,Util:()=>k,VerbosityLevel:()=>Nd,XfaLayer:()=>dg,build:()=>mA,createValidAbsoluteUrl:()=>Wm,fetchData:()=>Wd,getDocument:()=>oA,getFilenameFromUrl:()=>sb,getPdfFilenameFromUrl:()=>ib,getXfaPageViewport:()=>nb,isDataScheme:()=>kf,isPdfFile:()=>Mf,noContextMenu:()=>te,normalizeUnicode:()=>Jm,renderTextLayer:()=>Jb,setLayerDimensions:()=>In,shadow:()=>X,updateTextLayer:()=>Zb,version:()=>gA});const Bt=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),mp=[1,0,0,1,0,0],au=[.001,0,0,.001,0,0],Bm=1e7,tu=1.35,Ae={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},zs={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},jm="pdfjs_internal_editor_",W={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},j={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},Um={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Ft={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Sh={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},mt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},ya={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Nd={ERRORS:0,WARNINGS:1,INFOS:5},ou={NONE:0,BINARY:1},Ee={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},$m={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let Hd=Nd.WARNINGS;function zm(h){Number.isInteger(h)&&(Hd=h)}function Vm(){return Hd}function Bd(h){Hd>=Nd.INFOS&&console.log(`Info: ${h}`)}function V(h){Hd>=Nd.WARNINGS&&console.log(`Warning: ${h}`)}function tt(h){throw new Error(h)}function _t(h,t){h||tt(t)}function Gm(h){switch(h==null?void 0:h.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Wm(h,t=null,e=null){if(!h)return null;try{if(e&&typeof h=="string"){if(e.addDefaultProtocol&&h.startsWith("www.")){const i=h.match(/\./g);(i==null?void 0:i.length)>=2&&(h=`http://${h}`)}if(e.tryConvertEncoding)try{h=Qm(h)}catch{}}const s=t?new URL(h,t):new URL(h);if(Gm(s))return s}catch{}return null}function X(h,t,e,s=!1){return Object.defineProperty(h,t,{value:e,enumerable:!s,configurable:!0,writable:!1}),e}const bi=function(){function t(e,s){this.constructor===t&&tt("Cannot initialize BaseException."),this.message=e,this.name=s}return t.prototype=new Error,t.constructor=t,t}();class lu extends bi{constructor(t,e){super(t,"PasswordException"),this.code=e}}class hu extends bi{constructor(t,e){super(t,"UnknownErrorException"),this.details=e}}class bp extends bi{constructor(t){super(t,"InvalidPDFException")}}class Nn extends bi{constructor(t){super(t,"MissingPDFException")}}class jd extends bi{constructor(t,e){super(t,"UnexpectedResponseException"),this.status=e}}class qm extends bi{constructor(t){super(t,"FormatError")}}class Hn extends bi{constructor(t){super(t,"AbortException")}}function Ap(h){(typeof h!="object"||(h==null?void 0:h.length)===void 0)&&tt("Invalid argument for bytesToString");const t=h.length,e=8192;if(t>24&255,h>>16&255,h>>8&255,h&255)}function Tf(h){const t=Object.create(null);for(const[e,s]of h)t[e]=s;return t}function Ym(){const h=new Uint8Array(4);return h[0]=1,new Uint32Array(h.buffer,0,1)[0]===1}function Km(){try{return new Function(""),!0}catch{return!1}}class Zt{static get isLittleEndian(){return X(this,"isLittleEndian",Ym())}static get isEvalSupported(){return X(this,"isEvalSupported",Km())}static get isOffscreenCanvasSupported(){return X(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?X(this,"platform",{isMac:navigator.platform.includes("Mac")}):X(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){var t,e;return X(this,"isCSSRoundSupported",(e=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:e.call(t,"width: round(1.5px, 1px)"))}}const eu=Array.from(Array(256).keys(),h=>h.toString(16).padStart(2,"0"));var tr,xh,$a,cu;class k{static makeHexColor(t,e,s){return`#${eu[t]}${eu[e]}${eu[s]}`}static scaleMinMax(t,e){let s;t[0]?(t[0]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[3],e[3]*=t[3]):(s=e[0],e[0]=e[1],e[1]=s,s=e[2],e[2]=e[3],e[3]=s,t[1]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){const s=t[0]*e[0]+t[1]*e[2]+e[4],i=t[0]*e[1]+t[1]*e[3]+e[5];return[s,i]}static applyInverseTransform(t,e){const s=e[0]*e[3]-e[1]*e[2],i=(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/s,n=(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/s;return[i,n]}static getAxialAlignedBoundingBox(t,e){const s=this.applyTransform(t,e),i=this.applyTransform(t.slice(2,4),e),n=this.applyTransform([t[0],t[3]],e),a=this.applyTransform([t[2],t[1]],e);return[Math.min(s[0],i[0],n[0],a[0]),Math.min(s[1],i[1],n[1],a[1]),Math.max(s[0],i[0],n[0],a[0]),Math.max(s[1],i[1],n[1],a[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]],s=t[0]*e[0]+t[1]*e[2],i=t[0]*e[1]+t[1]*e[3],n=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],o=(s+a)/2,l=Math.sqrt((s+a)**2-4*(s*a-n*i))/2,c=o+l||1,d=o-l||1;return[Math.sqrt(c),Math.sqrt(d)]}static normalizeRect(t){const e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){const s=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>i)return null;const n=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return n>a?null:[s,n,i,a]}static bezierBoundingBox(t,e,s,i,n,a,o,l,c){return c?(c[0]=Math.min(c[0],t,o),c[1]=Math.min(c[1],e,l),c[2]=Math.max(c[2],t,o),c[3]=Math.max(c[3],e,l)):c=[Math.min(t,o),Math.min(e,l),Math.max(t,o),Math.max(e,l)],b(this,$a,cu).call(this,t,s,n,o,e,i,a,l,3*(-t+3*(s-n)+o),6*(t-2*s+n),3*(s-t),c),b(this,$a,cu).call(this,t,s,n,o,e,i,a,l,3*(-e+3*(i-a)+l),6*(e-2*i+a),3*(i-e),c),c}}tr=new WeakSet,xh=function(t,e,s,i,n,a,o,l,c,d){if(c<=0||c>=1)return;const u=1-c,p=c*c,g=p*c,A=u*(u*(u*t+3*c*e)+3*p*s)+g*i,v=u*(u*(u*n+3*c*a)+3*p*o)+g*l;d[0]=Math.min(d[0],A),d[1]=Math.min(d[1],v),d[2]=Math.max(d[2],A),d[3]=Math.max(d[3],v)},$a=new WeakSet,cu=function(t,e,s,i,n,a,o,l,c,d,u,p){if(Math.abs(c)<1e-12){Math.abs(d)>=1e-12&&b(this,tr,xh).call(this,t,e,s,i,n,a,o,l,-u/d,p);return}const g=d**2-4*u*c;if(g<0)return;const A=Math.sqrt(g),v=2*c;b(this,tr,xh).call(this,t,e,s,i,n,a,o,l,(-d+A)/v,p),b(this,tr,xh).call(this,t,e,s,i,n,a,o,l,(-d-A)/v,p)},f(k,tr),f(k,$a);function Qm(h){return decodeURIComponent(escape(h))}let su=null,Uf=null;function Jm(h){return su||(su=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Uf=new Map([["ſt","ſt"]])),h.replaceAll(su,(t,e,s)=>e?e.normalize("NFKC"):Uf.get(s))}function Zm(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const h=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(h);else for(let t=0;t<32;t++)h[t]=Math.floor(Math.random()*255);return Ap(h)}const vp="pdfjs_internal_id_",ss={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};class $d{constructor(){this.constructor===$d&&tt("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,e,s,i,n){return"none"}destroy(t=!1){}}class zd{constructor(){this.constructor===zd&&tt("Cannot initialize BaseCanvasFactory.")}create(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");const s=this._createCanvas(t,e);return{canvas:s,context:s.getContext("2d")}}reset(t,e,s){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||s<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=s}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){tt("Abstract method `_createCanvas` called.")}}class Vd{constructor({baseUrl:t=null,isCompressed:e=!0}){this.constructor===Vd&&tt("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=e}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const e=this.baseUrl+t+(this.isCompressed?".bcmap":""),s=this.isCompressed?ou.BINARY:ou.NONE;return this._fetchData(e,s).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${e}`)})}_fetchData(t,e){tt("Abstract method `_fetchData` called.")}}class Gd{constructor({baseUrl:t=null}){this.constructor===Gd&&tt("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const e=`${this.baseUrl}${t}`;return this._fetchData(e).catch(s=>{throw new Error(`Unable to load font data at: ${e}`)})}_fetchData(t){tt("Abstract method `_fetchData` called.")}}class Rf{constructor(){this.constructor===Rf&&tt("Cannot initialize BaseSVGFactory.")}create(t,e,s=!1){if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),s||(i.setAttribute("width",`${t}px`),i.setAttribute("height",`${e}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${t} ${e}`),i}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){tt("Abstract method `_createSVG` called.")}}const ns="http://www.w3.org/2000/svg",wi=class wi{};U(wi,"CSS",96),U(wi,"PDF",72),U(wi,"PDF_TO_CSS_UNITS",wi.CSS/wi.PDF);let mi=wi;var xi,Oe,hs,Yt,sc,Ci,wt,Ot,Vs,zn,Gs,Vn,er,Ch,ic,yp,za,du,Ws,Gn,Ti,wa,Ri,Sa,Va,uu,Pi,xa;class tb extends $d{constructor({docId:e,ownerDocument:s=globalThis.document}={}){super();f(this,wt);f(this,Vs);f(this,Gs);f(this,er);f(this,ic);f(this,za);f(this,Ws);f(this,Ti);f(this,Ri);f(this,Va);f(this,Pi);f(this,xi,void 0);f(this,Oe,void 0);f(this,hs,void 0);f(this,Yt,void 0);f(this,sc,void 0);f(this,Ci,0);m(this,hs,e),m(this,Yt,s)}addFilter(e){if(!e)return"none";let s=r(this,wt,Ot).get(e);if(s)return s;const[i,n,a]=b(this,er,Ch).call(this,e),o=e.length===1?i:`${i}${n}${a}`;if(s=r(this,wt,Ot).get(o),s)return r(this,wt,Ot).set(e,s),s;const l=`g_${r(this,hs)}_transfer_map_${ie(this,Ci)._++}`,c=`url(#${l})`;r(this,wt,Ot).set(e,c),r(this,wt,Ot).set(o,c);const d=b(this,Ws,Gn).call(this,l);return b(this,Ri,Sa).call(this,i,n,a,d),c}addHCMFilter(e,s){var A;const i=`${e}-${s}`,n="base";let a=r(this,Vs,zn).get(n);if((a==null?void 0:a.key)===i||(a?((A=a.filter)==null||A.remove(),a.key=i,a.url="none",a.filter=null):(a={key:i,url:"none",filter:null},r(this,Vs,zn).set(n,a)),!e||!s))return a.url;const o=b(this,Pi,xa).call(this,e);e=k.makeHexColor(...o);const l=b(this,Pi,xa).call(this,s);if(s=k.makeHexColor(...l),r(this,Gs,Vn).style.color="",e==="#000000"&&s==="#ffffff"||e===s)return a.url;const c=new Array(256);for(let v=0;v<=255;v++){const _=v/255;c[v]=_<=.03928?_/12.92:((_+.055)/1.055)**2.4}const d=c.join(","),u=`g_${r(this,hs)}_hcm_filter`,p=a.filter=b(this,Ws,Gn).call(this,u);b(this,Ri,Sa).call(this,d,d,d,p),b(this,za,du).call(this,p);const g=(v,_)=>{const y=o[v]/255,E=l[v]/255,w=new Array(_+1);for(let S=0;S<=_;S++)w[S]=y+S/_*(E-y);return w.join(",")};return b(this,Ri,Sa).call(this,g(0,5),g(1,5),g(2,5),p),a.url=`url(#${u})`,a.url}addAlphaFilter(e){let s=r(this,wt,Ot).get(e);if(s)return s;const[i]=b(this,er,Ch).call(this,[e]),n=`alpha_${i}`;if(s=r(this,wt,Ot).get(n),s)return r(this,wt,Ot).set(e,s),s;const a=`g_${r(this,hs)}_alpha_map_${ie(this,Ci)._++}`,o=`url(#${a})`;r(this,wt,Ot).set(e,o),r(this,wt,Ot).set(n,o);const l=b(this,Ws,Gn).call(this,a);return b(this,Va,uu).call(this,i,l),o}addLuminosityFilter(e){let s=r(this,wt,Ot).get(e||"luminosity");if(s)return s;let i,n;if(e?([i]=b(this,er,Ch).call(this,[e]),n=`luminosity_${i}`):n="luminosity",s=r(this,wt,Ot).get(n),s)return r(this,wt,Ot).set(e,s),s;const a=`g_${r(this,hs)}_luminosity_map_${ie(this,Ci)._++}`,o=`url(#${a})`;r(this,wt,Ot).set(e,o),r(this,wt,Ot).set(n,o);const l=b(this,Ws,Gn).call(this,a);return b(this,ic,yp).call(this,l),e&&b(this,Va,uu).call(this,i,l),o}addHighlightHCMFilter(e,s,i,n,a){var E;const o=`${s}-${i}-${n}-${a}`;let l=r(this,Vs,zn).get(e);if((l==null?void 0:l.key)===o||(l?((E=l.filter)==null||E.remove(),l.key=o,l.url="none",l.filter=null):(l={key:o,url:"none",filter:null},r(this,Vs,zn).set(e,l)),!s||!i))return l.url;const[c,d]=[s,i].map(b(this,Pi,xa).bind(this));let u=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),p=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[g,A]=[n,a].map(b(this,Pi,xa).bind(this));p{const C=new Array(256),R=(p-u)/x,P=w/255,M=(S-w)/(255*x);let O=0;for(let T=0;T<=x;T++){const $=Math.round(u+T*R),D=P+T*M;for(let I=O;I<=$;I++)C[I]=D;O=$+1}for(let T=O;T<256;T++)C[T]=C[O-1];return C.join(",")},_=`g_${r(this,hs)}_hcm_${e}_filter`,y=l.filter=b(this,Ws,Gn).call(this,_);return b(this,za,du).call(this,y),b(this,Ri,Sa).call(this,v(g[0],A[0],5),v(g[1],A[1],5),v(g[2],A[2],5),y),l.url=`url(#${_})`,l.url}destroy(e=!1){e&&r(this,Vs,zn).size!==0||(r(this,Oe)&&(r(this,Oe).parentNode.parentNode.remove(),m(this,Oe,null)),r(this,xi)&&(r(this,xi).clear(),m(this,xi,null)),m(this,Ci,0))}}xi=new WeakMap,Oe=new WeakMap,hs=new WeakMap,Yt=new WeakMap,sc=new WeakMap,Ci=new WeakMap,wt=new WeakSet,Ot=function(){return r(this,xi)||m(this,xi,new Map)},Vs=new WeakSet,zn=function(){return r(this,sc)||m(this,sc,new Map)},Gs=new WeakSet,Vn=function(){if(!r(this,Oe)){const e=r(this,Yt).createElement("div"),{style:s}=e;s.visibility="hidden",s.contain="strict",s.width=s.height=0,s.position="absolute",s.top=s.left=0,s.zIndex=-1;const i=r(this,Yt).createElementNS(ns,"svg");i.setAttribute("width",0),i.setAttribute("height",0),m(this,Oe,r(this,Yt).createElementNS(ns,"defs")),e.append(i),i.append(r(this,Oe)),r(this,Yt).body.append(e)}return r(this,Oe)},er=new WeakSet,Ch=function(e){if(e.length===1){const c=e[0],d=new Array(256);for(let p=0;p<256;p++)d[p]=c[p]/255;const u=d.join(",");return[u,u,u]}const[s,i,n]=e,a=new Array(256),o=new Array(256),l=new Array(256);for(let c=0;c<256;c++)a[c]=s[c]/255,o[c]=i[c]/255,l[c]=n[c]/255;return[a.join(","),o.join(","),l.join(",")]},ic=new WeakSet,yp=function(e){const s=r(this,Yt).createElementNS(ns,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(s)},za=new WeakSet,du=function(e){const s=r(this,Yt).createElementNS(ns,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(s)},Ws=new WeakSet,Gn=function(e){const s=r(this,Yt).createElementNS(ns,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",e),r(this,Gs,Vn).append(s),s},Ti=new WeakSet,wa=function(e,s,i){const n=r(this,Yt).createElementNS(ns,s);n.setAttribute("type","discrete"),n.setAttribute("tableValues",i),e.append(n)},Ri=new WeakSet,Sa=function(e,s,i,n){const a=r(this,Yt).createElementNS(ns,"feComponentTransfer");n.append(a),b(this,Ti,wa).call(this,a,"feFuncR",e),b(this,Ti,wa).call(this,a,"feFuncG",s),b(this,Ti,wa).call(this,a,"feFuncB",i)},Va=new WeakSet,uu=function(e,s){const i=r(this,Yt).createElementNS(ns,"feComponentTransfer");s.append(i),b(this,Ti,wa).call(this,i,"feFuncA",e)},Pi=new WeakSet,xa=function(e){return r(this,Gs,Vn).style.color=e,If(getComputedStyle(r(this,Gs,Vn)).getPropertyValue("color"))};class eb extends zd{constructor({ownerDocument:t=globalThis.document}={}){super(),this._document=t}_createCanvas(t,e){const s=this._document.createElement("canvas");return s.width=t,s.height=e,s}}async function Wd(h,t="text"){if(Ca(h,document.baseURI)){const e=await fetch(h);if(!e.ok)throw new Error(e.statusText);switch(t){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"json":return e.json()}return e.text()}return new Promise((e,s)=>{const i=new XMLHttpRequest;i.open("GET",h,!0),i.responseType=t,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(t){case"arraybuffer":case"blob":case"json":e(i.response);return}e(i.responseText);return}s(new Error(i.statusText))}},i.send(null)})}class _p extends Vd{_fetchData(t,e){return Wd(t,this.isCompressed?"arraybuffer":"text").then(s=>({cMapData:s instanceof ArrayBuffer?new Uint8Array(s):Ud(s),compressionType:e}))}}class Ep extends Gd{_fetchData(t){return Wd(t,"arraybuffer").then(e=>new Uint8Array(e))}}class Pf extends Rf{_createSVG(t){return document.createElementNS(ns,t)}}class ch{constructor({viewBox:t,scale:e,rotation:s,offsetX:i=0,offsetY:n=0,dontFlip:a=!1}){this.viewBox=t,this.scale=e,this.rotation=s,this.offsetX=i,this.offsetY=n;const o=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,d,u,p;switch(s%=360,s<0&&(s+=360),s){case 180:c=-1,d=0,u=0,p=1;break;case 90:c=0,d=1,u=1,p=0;break;case 270:c=0,d=-1,u=-1,p=0;break;case 0:c=1,d=0,u=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,p=-p);let g,A,v,_;c===0?(g=Math.abs(l-t[1])*e+i,A=Math.abs(o-t[0])*e+n,v=(t[3]-t[1])*e,_=(t[2]-t[0])*e):(g=Math.abs(o-t[0])*e+i,A=Math.abs(l-t[1])*e+n,v=(t[2]-t[0])*e,_=(t[3]-t[1])*e),this.transform=[c*e,d*e,u*e,p*e,g-c*e*o-u*e*l,A-d*e*o-p*e*l],this.width=v,this.height=_}get rawDims(){const{viewBox:t}=this;return X(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:s=this.offsetX,offsetY:i=this.offsetY,dontFlip:n=!1}={}){return new ch({viewBox:this.viewBox.slice(),scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}convertToViewportPoint(t,e){return k.applyTransform([t,e],this.transform)}convertToViewportRectangle(t){const e=k.applyTransform([t[0],t[1]],this.transform),s=k.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],s[0],s[1]]}convertToPdfPoint(t,e){return k.applyInverseTransform([t,e],this.transform)}}class Lf extends bi{constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e}}function kf(h){const t=h.length;let e=0;for(;et in h?Im(h,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):h[t]=e;var U=(h,t,e)=>(Dm(h,typeof t!="symbol"?t+"":t,e),e),Zd=(h,t,e)=>{if(!t.has(h))throw TypeError("Cannot "+e)};var r=(h,t,e)=>(Zd(h,t,"read from private field"),e?e.call(h):t.get(h)),f=(h,t,e)=>{if(t.has(h))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(h):t.set(h,e)},m=(h,t,e,s)=>(Zd(h,t,"write to private field"),s?s.call(h,e):t.set(h,e),e);var ie=(h,t,e,s)=>({set _(i){m(h,t,i,e)},get _(){return r(h,t,s)}}),b=(h,t,e)=>(Zd(h,t,"access private method"),e);import{n as bh,r as F,j as ft,a2 as Ht,f as Fm,Q as Om,a3 as va,R as rt,a4 as Nm,H as Ah,a5 as Hm}from"./index-Hn-s1JD5.js";var Ha={};Ha.d=(h,t)=>{for(var e in t)Ha.o(t,e)&&!Ha.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:t[e]})};Ha.o=(h,t)=>Object.prototype.hasOwnProperty.call(h,t);var B=globalThis.pdfjsLib={};Ha.d(B,{AbortException:()=>Hn,AnnotationEditorLayer:()=>Af,AnnotationEditorParamsType:()=>j,AnnotationEditorType:()=>W,AnnotationEditorUIManager:()=>Dn,AnnotationLayer:()=>OA,AnnotationMode:()=>zs,CMapCompressionType:()=>ou,ColorPicker:()=>tc,DOMSVGFactory:()=>Pf,DrawLayer:()=>Ef,FeatureTest:()=>Zt,GlobalWorkerOptions:()=>Os,ImageKind:()=>Sh,InvalidPDFException:()=>bp,MissingPDFException:()=>Nn,OPS:()=>Ee,Outliner:()=>Ju,PDFDataRangeTransport:()=>hg,PDFDateString:()=>Sp,PDFWorker:()=>Qn,PasswordResponses:()=>$m,PermissionFlag:()=>Um,PixelsPerInch:()=>mi,RenderingCancelledException:()=>Lf,TextLayer:()=>Jh,UnexpectedResponseException:()=>jd,Util:()=>k,VerbosityLevel:()=>Nd,XfaLayer:()=>dg,build:()=>mA,createValidAbsoluteUrl:()=>Wm,fetchData:()=>Wd,getDocument:()=>oA,getFilenameFromUrl:()=>sb,getPdfFilenameFromUrl:()=>ib,getXfaPageViewport:()=>nb,isDataScheme:()=>kf,isPdfFile:()=>Mf,noContextMenu:()=>te,normalizeUnicode:()=>Jm,renderTextLayer:()=>Jb,setLayerDimensions:()=>In,shadow:()=>X,updateTextLayer:()=>Zb,version:()=>gA});const Bt=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),mp=[1,0,0,1,0,0],au=[.001,0,0,.001,0,0],Bm=1e7,tu=1.35,Ae={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},zs={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},jm="pdfjs_internal_editor_",W={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},j={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},Um={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Ft={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Sh={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},mt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},ya={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Nd={ERRORS:0,WARNINGS:1,INFOS:5},ou={NONE:0,BINARY:1},Ee={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},$m={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let Hd=Nd.WARNINGS;function zm(h){Number.isInteger(h)&&(Hd=h)}function Vm(){return Hd}function Bd(h){Hd>=Nd.INFOS&&console.log(`Info: ${h}`)}function V(h){Hd>=Nd.WARNINGS&&console.log(`Warning: ${h}`)}function tt(h){throw new Error(h)}function _t(h,t){h||tt(t)}function Gm(h){switch(h==null?void 0:h.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Wm(h,t=null,e=null){if(!h)return null;try{if(e&&typeof h=="string"){if(e.addDefaultProtocol&&h.startsWith("www.")){const i=h.match(/\./g);(i==null?void 0:i.length)>=2&&(h=`http://${h}`)}if(e.tryConvertEncoding)try{h=Qm(h)}catch{}}const s=t?new URL(h,t):new URL(h);if(Gm(s))return s}catch{}return null}function X(h,t,e,s=!1){return Object.defineProperty(h,t,{value:e,enumerable:!s,configurable:!0,writable:!1}),e}const bi=function(){function t(e,s){this.constructor===t&&tt("Cannot initialize BaseException."),this.message=e,this.name=s}return t.prototype=new Error,t.constructor=t,t}();class lu extends bi{constructor(t,e){super(t,"PasswordException"),this.code=e}}class hu extends bi{constructor(t,e){super(t,"UnknownErrorException"),this.details=e}}class bp extends bi{constructor(t){super(t,"InvalidPDFException")}}class Nn extends bi{constructor(t){super(t,"MissingPDFException")}}class jd extends bi{constructor(t,e){super(t,"UnexpectedResponseException"),this.status=e}}class qm extends bi{constructor(t){super(t,"FormatError")}}class Hn extends bi{constructor(t){super(t,"AbortException")}}function Ap(h){(typeof h!="object"||(h==null?void 0:h.length)===void 0)&&tt("Invalid argument for bytesToString");const t=h.length,e=8192;if(t>24&255,h>>16&255,h>>8&255,h&255)}function Tf(h){const t=Object.create(null);for(const[e,s]of h)t[e]=s;return t}function Ym(){const h=new Uint8Array(4);return h[0]=1,new Uint32Array(h.buffer,0,1)[0]===1}function Km(){try{return new Function(""),!0}catch{return!1}}class Zt{static get isLittleEndian(){return X(this,"isLittleEndian",Ym())}static get isEvalSupported(){return X(this,"isEvalSupported",Km())}static get isOffscreenCanvasSupported(){return X(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?X(this,"platform",{isMac:navigator.platform.includes("Mac")}):X(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){var t,e;return X(this,"isCSSRoundSupported",(e=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:e.call(t,"width: round(1.5px, 1px)"))}}const eu=Array.from(Array(256).keys(),h=>h.toString(16).padStart(2,"0"));var tr,xh,$a,cu;class k{static makeHexColor(t,e,s){return`#${eu[t]}${eu[e]}${eu[s]}`}static scaleMinMax(t,e){let s;t[0]?(t[0]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[3],e[3]*=t[3]):(s=e[0],e[0]=e[1],e[1]=s,s=e[2],e[2]=e[3],e[3]=s,t[1]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){const s=t[0]*e[0]+t[1]*e[2]+e[4],i=t[0]*e[1]+t[1]*e[3]+e[5];return[s,i]}static applyInverseTransform(t,e){const s=e[0]*e[3]-e[1]*e[2],i=(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/s,n=(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/s;return[i,n]}static getAxialAlignedBoundingBox(t,e){const s=this.applyTransform(t,e),i=this.applyTransform(t.slice(2,4),e),n=this.applyTransform([t[0],t[3]],e),a=this.applyTransform([t[2],t[1]],e);return[Math.min(s[0],i[0],n[0],a[0]),Math.min(s[1],i[1],n[1],a[1]),Math.max(s[0],i[0],n[0],a[0]),Math.max(s[1],i[1],n[1],a[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]],s=t[0]*e[0]+t[1]*e[2],i=t[0]*e[1]+t[1]*e[3],n=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],o=(s+a)/2,l=Math.sqrt((s+a)**2-4*(s*a-n*i))/2,c=o+l||1,d=o-l||1;return[Math.sqrt(c),Math.sqrt(d)]}static normalizeRect(t){const e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){const s=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>i)return null;const n=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return n>a?null:[s,n,i,a]}static bezierBoundingBox(t,e,s,i,n,a,o,l,c){return c?(c[0]=Math.min(c[0],t,o),c[1]=Math.min(c[1],e,l),c[2]=Math.max(c[2],t,o),c[3]=Math.max(c[3],e,l)):c=[Math.min(t,o),Math.min(e,l),Math.max(t,o),Math.max(e,l)],b(this,$a,cu).call(this,t,s,n,o,e,i,a,l,3*(-t+3*(s-n)+o),6*(t-2*s+n),3*(s-t),c),b(this,$a,cu).call(this,t,s,n,o,e,i,a,l,3*(-e+3*(i-a)+l),6*(e-2*i+a),3*(i-e),c),c}}tr=new WeakSet,xh=function(t,e,s,i,n,a,o,l,c,d){if(c<=0||c>=1)return;const u=1-c,p=c*c,g=p*c,A=u*(u*(u*t+3*c*e)+3*p*s)+g*i,v=u*(u*(u*n+3*c*a)+3*p*o)+g*l;d[0]=Math.min(d[0],A),d[1]=Math.min(d[1],v),d[2]=Math.max(d[2],A),d[3]=Math.max(d[3],v)},$a=new WeakSet,cu=function(t,e,s,i,n,a,o,l,c,d,u,p){if(Math.abs(c)<1e-12){Math.abs(d)>=1e-12&&b(this,tr,xh).call(this,t,e,s,i,n,a,o,l,-u/d,p);return}const g=d**2-4*u*c;if(g<0)return;const A=Math.sqrt(g),v=2*c;b(this,tr,xh).call(this,t,e,s,i,n,a,o,l,(-d+A)/v,p),b(this,tr,xh).call(this,t,e,s,i,n,a,o,l,(-d-A)/v,p)},f(k,tr),f(k,$a);function Qm(h){return decodeURIComponent(escape(h))}let su=null,Uf=null;function Jm(h){return su||(su=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Uf=new Map([["ſt","ſt"]])),h.replaceAll(su,(t,e,s)=>e?e.normalize("NFKC"):Uf.get(s))}function Zm(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const h=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(h);else for(let t=0;t<32;t++)h[t]=Math.floor(Math.random()*255);return Ap(h)}const vp="pdfjs_internal_id_",ss={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};class $d{constructor(){this.constructor===$d&&tt("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,e,s,i,n){return"none"}destroy(t=!1){}}class zd{constructor(){this.constructor===zd&&tt("Cannot initialize BaseCanvasFactory.")}create(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");const s=this._createCanvas(t,e);return{canvas:s,context:s.getContext("2d")}}reset(t,e,s){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||s<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=s}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){tt("Abstract method `_createCanvas` called.")}}class Vd{constructor({baseUrl:t=null,isCompressed:e=!0}){this.constructor===Vd&&tt("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=e}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const e=this.baseUrl+t+(this.isCompressed?".bcmap":""),s=this.isCompressed?ou.BINARY:ou.NONE;return this._fetchData(e,s).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${e}`)})}_fetchData(t,e){tt("Abstract method `_fetchData` called.")}}class Gd{constructor({baseUrl:t=null}){this.constructor===Gd&&tt("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const e=`${this.baseUrl}${t}`;return this._fetchData(e).catch(s=>{throw new Error(`Unable to load font data at: ${e}`)})}_fetchData(t){tt("Abstract method `_fetchData` called.")}}class Rf{constructor(){this.constructor===Rf&&tt("Cannot initialize BaseSVGFactory.")}create(t,e,s=!1){if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),s||(i.setAttribute("width",`${t}px`),i.setAttribute("height",`${e}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${t} ${e}`),i}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){tt("Abstract method `_createSVG` called.")}}const ns="http://www.w3.org/2000/svg",wi=class wi{};U(wi,"CSS",96),U(wi,"PDF",72),U(wi,"PDF_TO_CSS_UNITS",wi.CSS/wi.PDF);let mi=wi;var xi,Oe,hs,Yt,sc,Ci,wt,Ot,Vs,zn,Gs,Vn,er,Ch,ic,yp,za,du,Ws,Gn,Ti,wa,Ri,Sa,Va,uu,Pi,xa;class tb extends $d{constructor({docId:e,ownerDocument:s=globalThis.document}={}){super();f(this,wt);f(this,Vs);f(this,Gs);f(this,er);f(this,ic);f(this,za);f(this,Ws);f(this,Ti);f(this,Ri);f(this,Va);f(this,Pi);f(this,xi,void 0);f(this,Oe,void 0);f(this,hs,void 0);f(this,Yt,void 0);f(this,sc,void 0);f(this,Ci,0);m(this,hs,e),m(this,Yt,s)}addFilter(e){if(!e)return"none";let s=r(this,wt,Ot).get(e);if(s)return s;const[i,n,a]=b(this,er,Ch).call(this,e),o=e.length===1?i:`${i}${n}${a}`;if(s=r(this,wt,Ot).get(o),s)return r(this,wt,Ot).set(e,s),s;const l=`g_${r(this,hs)}_transfer_map_${ie(this,Ci)._++}`,c=`url(#${l})`;r(this,wt,Ot).set(e,c),r(this,wt,Ot).set(o,c);const d=b(this,Ws,Gn).call(this,l);return b(this,Ri,Sa).call(this,i,n,a,d),c}addHCMFilter(e,s){var A;const i=`${e}-${s}`,n="base";let a=r(this,Vs,zn).get(n);if((a==null?void 0:a.key)===i||(a?((A=a.filter)==null||A.remove(),a.key=i,a.url="none",a.filter=null):(a={key:i,url:"none",filter:null},r(this,Vs,zn).set(n,a)),!e||!s))return a.url;const o=b(this,Pi,xa).call(this,e);e=k.makeHexColor(...o);const l=b(this,Pi,xa).call(this,s);if(s=k.makeHexColor(...l),r(this,Gs,Vn).style.color="",e==="#000000"&&s==="#ffffff"||e===s)return a.url;const c=new Array(256);for(let v=0;v<=255;v++){const _=v/255;c[v]=_<=.03928?_/12.92:((_+.055)/1.055)**2.4}const d=c.join(","),u=`g_${r(this,hs)}_hcm_filter`,p=a.filter=b(this,Ws,Gn).call(this,u);b(this,Ri,Sa).call(this,d,d,d,p),b(this,za,du).call(this,p);const g=(v,_)=>{const y=o[v]/255,E=l[v]/255,w=new Array(_+1);for(let S=0;S<=_;S++)w[S]=y+S/_*(E-y);return w.join(",")};return b(this,Ri,Sa).call(this,g(0,5),g(1,5),g(2,5),p),a.url=`url(#${u})`,a.url}addAlphaFilter(e){let s=r(this,wt,Ot).get(e);if(s)return s;const[i]=b(this,er,Ch).call(this,[e]),n=`alpha_${i}`;if(s=r(this,wt,Ot).get(n),s)return r(this,wt,Ot).set(e,s),s;const a=`g_${r(this,hs)}_alpha_map_${ie(this,Ci)._++}`,o=`url(#${a})`;r(this,wt,Ot).set(e,o),r(this,wt,Ot).set(n,o);const l=b(this,Ws,Gn).call(this,a);return b(this,Va,uu).call(this,i,l),o}addLuminosityFilter(e){let s=r(this,wt,Ot).get(e||"luminosity");if(s)return s;let i,n;if(e?([i]=b(this,er,Ch).call(this,[e]),n=`luminosity_${i}`):n="luminosity",s=r(this,wt,Ot).get(n),s)return r(this,wt,Ot).set(e,s),s;const a=`g_${r(this,hs)}_luminosity_map_${ie(this,Ci)._++}`,o=`url(#${a})`;r(this,wt,Ot).set(e,o),r(this,wt,Ot).set(n,o);const l=b(this,Ws,Gn).call(this,a);return b(this,ic,yp).call(this,l),e&&b(this,Va,uu).call(this,i,l),o}addHighlightHCMFilter(e,s,i,n,a){var E;const o=`${s}-${i}-${n}-${a}`;let l=r(this,Vs,zn).get(e);if((l==null?void 0:l.key)===o||(l?((E=l.filter)==null||E.remove(),l.key=o,l.url="none",l.filter=null):(l={key:o,url:"none",filter:null},r(this,Vs,zn).set(e,l)),!s||!i))return l.url;const[c,d]=[s,i].map(b(this,Pi,xa).bind(this));let u=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),p=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[g,A]=[n,a].map(b(this,Pi,xa).bind(this));p{const C=new Array(256),R=(p-u)/x,P=w/255,M=(S-w)/(255*x);let O=0;for(let T=0;T<=x;T++){const $=Math.round(u+T*R),D=P+T*M;for(let I=O;I<=$;I++)C[I]=D;O=$+1}for(let T=O;T<256;T++)C[T]=C[O-1];return C.join(",")},_=`g_${r(this,hs)}_hcm_${e}_filter`,y=l.filter=b(this,Ws,Gn).call(this,_);return b(this,za,du).call(this,y),b(this,Ri,Sa).call(this,v(g[0],A[0],5),v(g[1],A[1],5),v(g[2],A[2],5),y),l.url=`url(#${_})`,l.url}destroy(e=!1){e&&r(this,Vs,zn).size!==0||(r(this,Oe)&&(r(this,Oe).parentNode.parentNode.remove(),m(this,Oe,null)),r(this,xi)&&(r(this,xi).clear(),m(this,xi,null)),m(this,Ci,0))}}xi=new WeakMap,Oe=new WeakMap,hs=new WeakMap,Yt=new WeakMap,sc=new WeakMap,Ci=new WeakMap,wt=new WeakSet,Ot=function(){return r(this,xi)||m(this,xi,new Map)},Vs=new WeakSet,zn=function(){return r(this,sc)||m(this,sc,new Map)},Gs=new WeakSet,Vn=function(){if(!r(this,Oe)){const e=r(this,Yt).createElement("div"),{style:s}=e;s.visibility="hidden",s.contain="strict",s.width=s.height=0,s.position="absolute",s.top=s.left=0,s.zIndex=-1;const i=r(this,Yt).createElementNS(ns,"svg");i.setAttribute("width",0),i.setAttribute("height",0),m(this,Oe,r(this,Yt).createElementNS(ns,"defs")),e.append(i),i.append(r(this,Oe)),r(this,Yt).body.append(e)}return r(this,Oe)},er=new WeakSet,Ch=function(e){if(e.length===1){const c=e[0],d=new Array(256);for(let p=0;p<256;p++)d[p]=c[p]/255;const u=d.join(",");return[u,u,u]}const[s,i,n]=e,a=new Array(256),o=new Array(256),l=new Array(256);for(let c=0;c<256;c++)a[c]=s[c]/255,o[c]=i[c]/255,l[c]=n[c]/255;return[a.join(","),o.join(","),l.join(",")]},ic=new WeakSet,yp=function(e){const s=r(this,Yt).createElementNS(ns,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(s)},za=new WeakSet,du=function(e){const s=r(this,Yt).createElementNS(ns,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(s)},Ws=new WeakSet,Gn=function(e){const s=r(this,Yt).createElementNS(ns,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",e),r(this,Gs,Vn).append(s),s},Ti=new WeakSet,wa=function(e,s,i){const n=r(this,Yt).createElementNS(ns,s);n.setAttribute("type","discrete"),n.setAttribute("tableValues",i),e.append(n)},Ri=new WeakSet,Sa=function(e,s,i,n){const a=r(this,Yt).createElementNS(ns,"feComponentTransfer");n.append(a),b(this,Ti,wa).call(this,a,"feFuncR",e),b(this,Ti,wa).call(this,a,"feFuncG",s),b(this,Ti,wa).call(this,a,"feFuncB",i)},Va=new WeakSet,uu=function(e,s){const i=r(this,Yt).createElementNS(ns,"feComponentTransfer");s.append(i),b(this,Ti,wa).call(this,i,"feFuncA",e)},Pi=new WeakSet,xa=function(e){return r(this,Gs,Vn).style.color=e,If(getComputedStyle(r(this,Gs,Vn)).getPropertyValue("color"))};class eb extends zd{constructor({ownerDocument:t=globalThis.document}={}){super(),this._document=t}_createCanvas(t,e){const s=this._document.createElement("canvas");return s.width=t,s.height=e,s}}async function Wd(h,t="text"){if(Ca(h,document.baseURI)){const e=await fetch(h);if(!e.ok)throw new Error(e.statusText);switch(t){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"json":return e.json()}return e.text()}return new Promise((e,s)=>{const i=new XMLHttpRequest;i.open("GET",h,!0),i.responseType=t,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(t){case"arraybuffer":case"blob":case"json":e(i.response);return}e(i.responseText);return}s(new Error(i.statusText))}},i.send(null)})}class _p extends Vd{_fetchData(t,e){return Wd(t,this.isCompressed?"arraybuffer":"text").then(s=>({cMapData:s instanceof ArrayBuffer?new Uint8Array(s):Ud(s),compressionType:e}))}}class Ep extends Gd{_fetchData(t){return Wd(t,"arraybuffer").then(e=>new Uint8Array(e))}}class Pf extends Rf{_createSVG(t){return document.createElementNS(ns,t)}}class ch{constructor({viewBox:t,scale:e,rotation:s,offsetX:i=0,offsetY:n=0,dontFlip:a=!1}){this.viewBox=t,this.scale=e,this.rotation=s,this.offsetX=i,this.offsetY=n;const o=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,d,u,p;switch(s%=360,s<0&&(s+=360),s){case 180:c=-1,d=0,u=0,p=1;break;case 90:c=0,d=1,u=1,p=0;break;case 270:c=0,d=-1,u=-1,p=0;break;case 0:c=1,d=0,u=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,p=-p);let g,A,v,_;c===0?(g=Math.abs(l-t[1])*e+i,A=Math.abs(o-t[0])*e+n,v=(t[3]-t[1])*e,_=(t[2]-t[0])*e):(g=Math.abs(o-t[0])*e+i,A=Math.abs(l-t[1])*e+n,v=(t[2]-t[0])*e,_=(t[3]-t[1])*e),this.transform=[c*e,d*e,u*e,p*e,g-c*e*o-u*e*l,A-d*e*o-p*e*l],this.width=v,this.height=_}get rawDims(){const{viewBox:t}=this;return X(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:s=this.offsetX,offsetY:i=this.offsetY,dontFlip:n=!1}={}){return new ch({viewBox:this.viewBox.slice(),scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}convertToViewportPoint(t,e){return k.applyTransform([t,e],this.transform)}convertToViewportRectangle(t){const e=k.applyTransform([t[0],t[1]],this.transform),s=k.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],s[0],s[1]]}convertToPdfPoint(t,e){return k.applyInverseTransform([t,e],this.transform)}}class Lf extends bi{constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e}}function kf(h){const t=h.length;let e=0;for(;e=1&&i<=12?i-1:0;let n=parseInt(e[3],10);n=n>=1&&n<=31?n:1;let a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(e[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(e[6],10);l=l>=0&&l<=59?l:0;const c=e[7]||"Z";let d=parseInt(e[8],10);d=d>=0&&d<=23?d:0;let u=parseInt(e[9],10)||0;return u=u>=0&&u<=59?u:0,c==="-"?(a+=d,o+=u):c==="+"&&(a-=d,o-=u),new Date(Date.UTC(s,i,n,a,o,l))}}function nb(h,{scale:t=1,rotation:e=0}){const{width:s,height:i}=h.attributes.style,n=[0,0,parseInt(s),parseInt(i)];return new ch({viewBox:n,scale:t,rotation:e})}function If(h){if(h.startsWith("#")){const t=parseInt(h.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return h.startsWith("rgb(")?h.slice(4,-1).split(",").map(t=>parseInt(t)):h.startsWith("rgba(")?h.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(V(`Not a valid color format: "${h}"`),[0,0,0])}function rb(h){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const e of h.keys()){t.style.color=e;const s=window.getComputedStyle(t).color;h.set(e,If(s))}t.remove()}function lt(h){const{a:t,b:e,c:s,d:i,e:n,f:a}=h.getTransform();return[t,e,s,i,n,a]}function is(h){const{a:t,b:e,c:s,d:i,e:n,f:a}=h.getTransform().invertSelf();return[t,e,s,i,n,a]}function In(h,t,e=!1,s=!0){if(t instanceof ch){const{pageWidth:i,pageHeight:n}=t.rawDims,{style:a}=h,o=Zt.isCSSRoundSupported,l=`var(--scale-factor) * ${i}px`,c=`var(--scale-factor) * ${n}px`,d=o?`round(${l}, 1px)`:`calc(${l})`,u=o?`round(${c}, 1px)`:`calc(${c})`;!e||t.rotation%180===0?(a.width=d,a.height=u):(a.width=u,a.height=d)}s&&h.setAttribute("data-main-rotation",t.rotation)}var Li,ki,Ne,Mi,nc,xp,rc,Cp,ac,Tp,sr,Th,oc,Rp,Ga,pu;const lc=class lc{constructor(t){f(this,rc);f(this,ac);f(this,sr);f(this,oc);f(this,Ga);f(this,Li,null);f(this,ki,null);f(this,Ne,void 0);f(this,Mi,null);m(this,Ne,t)}render(){const t=m(this,Li,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",te),t.addEventListener("pointerdown",b(lc,nc,xp));const e=m(this,Mi,document.createElement("div"));e.className="buttons",t.append(e);const s=r(this,Ne).toolbarPosition;if(s){const{style:i}=t,n=r(this,Ne)._uiManager.direction==="ltr"?1-s[0]:s[0];i.insetInlineEnd=`${100*n}%`,i.top=`calc(${100*s[1]}% + var(--editor-toolbar-vert-offset))`}return b(this,oc,Rp).call(this),t}hide(){var t;r(this,Li).classList.add("hidden"),(t=r(this,ki))==null||t.hideDropdown()}show(){r(this,Li).classList.remove("hidden")}addAltTextButton(t){b(this,sr,Th).call(this,t),r(this,Mi).prepend(t,r(this,Ga,pu))}addColorPicker(t){m(this,ki,t);const e=t.renderButton();b(this,sr,Th).call(this,e),r(this,Mi).prepend(e,r(this,Ga,pu))}remove(){var t;r(this,Li).remove(),(t=r(this,ki))==null||t.destroy(),m(this,ki,null)}};Li=new WeakMap,ki=new WeakMap,Ne=new WeakMap,Mi=new WeakMap,nc=new WeakSet,xp=function(t){t.stopPropagation()},rc=new WeakSet,Cp=function(t){r(this,Ne)._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()},ac=new WeakSet,Tp=function(t){r(this,Ne)._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()},sr=new WeakSet,Th=function(t){t.addEventListener("focusin",b(this,rc,Cp).bind(this),{capture:!0}),t.addEventListener("focusout",b(this,ac,Tp).bind(this),{capture:!0}),t.addEventListener("contextmenu",te)},oc=new WeakSet,Rp=function(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${r(this,Ne).editorType}-button`),b(this,sr,Th).call(this,t),t.addEventListener("click",e=>{r(this,Ne)._uiManager.delete()}),r(this,Mi).append(t)},Ga=new WeakSet,pu=function(){const t=document.createElement("div");return t.className="divider",t},f(lc,nc);let fu=lc;var Wa,Ii,qa,hc,Pp,cc,Lp,dc,kp;class ab{constructor(t){f(this,hc);f(this,cc);f(this,dc);f(this,Wa,null);f(this,Ii,null);f(this,qa,void 0);m(this,qa,t)}show(t,e,s){const[i,n]=b(this,cc,Lp).call(this,e,s),{style:a}=r(this,Ii)||m(this,Ii,b(this,hc,Pp).call(this));t.append(r(this,Ii)),a.insetInlineEnd=`${100*i}%`,a.top=`calc(${100*n}% + var(--editor-toolbar-vert-offset))`}hide(){r(this,Ii).remove()}}Wa=new WeakMap,Ii=new WeakMap,qa=new WeakMap,hc=new WeakSet,Pp=function(){const t=m(this,Ii,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",te);const e=m(this,Wa,document.createElement("div"));return e.className="buttons",t.append(e),b(this,dc,kp).call(this),t},cc=new WeakSet,Lp=function(t,e){let s=0,i=0;for(const n of t){const a=n.y+n.height;if(as){i=o,s=a;continue}e?o>i&&(i=o):o{r(this,qa).highlightSelection("floating_button")}),r(this,Wa).append(t)};function Yh(h,t,e){for(const s of e)t.addEventListener(s,h[s].bind(h))}function ob(h){return Math.round(Math.min(255,Math.max(1,255*h))).toString(16).padStart(2,"0")}var uc;class lb{constructor(){f(this,uc,0)}get id(){return`${jm}${ie(this,uc)._++}`}}uc=new WeakMap;var Xa,fc,pe,Ya,mu;const Hf=class Hf{constructor(){f(this,Ya);f(this,Xa,Zm());f(this,fc,0);f(this,pe,null)}static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,',s=new OffscreenCanvas(1,3).getContext("2d"),i=new Image;i.src=t;const n=i.decode().then(()=>(s.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(s.getImageData(0,0,1,1).data.buffer)[0]===0));return X(this,"_isSVGFittingCanvas",n)}async getFromFile(t){const{lastModified:e,name:s,size:i,type:n}=t;return b(this,Ya,mu).call(this,`${e}_${s}_${i}_${n}`,t)}async getFromUrl(t){return b(this,Ya,mu).call(this,t,t)}async getFromId(t){r(this,pe)||m(this,pe,new Map);const e=r(this,pe).get(t);return e?e.bitmap?(e.refCounter+=1,e):e.file?this.getFromFile(e.file):this.getFromUrl(e.url):null}getSvgUrl(t){const e=r(this,pe).get(t);return e!=null&&e.isSvg?e.svgUrl:null}deleteId(t){r(this,pe)||m(this,pe,new Map);const e=r(this,pe).get(t);e&&(e.refCounter-=1,e.refCounter===0&&(e.bitmap=null))}isValidId(t){return t.startsWith(`image_${r(this,Xa)}_`)}};Xa=new WeakMap,fc=new WeakMap,pe=new WeakMap,Ya=new WeakSet,mu=async function(t,e){r(this,pe)||m(this,pe,new Map);let s=r(this,pe).get(t);if(s===null)return null;if(s!=null&&s.bitmap)return s.refCounter+=1,s;try{s||(s={bitmap:null,id:`image_${r(this,Xa)}_${ie(this,fc)._++}`,refCounter:0,isSvg:!1});let i;if(typeof e=="string"?(s.url=e,i=await Wd(e,"blob")):i=s.file=e,i.type==="image/svg+xml"){const n=Hf._isSVGFittingCanvas,a=new FileReader,o=new Image,l=new Promise((c,d)=>{o.onload=()=>{s.bitmap=o,s.isSvg=!0,c()},a.onload=async()=>{const u=s.svgUrl=a.result;o.src=await n?`${u}#svgView(preserveAspectRatio(none))`:u},o.onerror=a.onerror=d});a.readAsDataURL(i),await l}else s.bitmap=await createImageBitmap(i);s.refCounter=1}catch(i){console.error(i),s=null}return r(this,pe).set(t,s),s&&r(this,pe).set(s.id,s),s};let gu=Hf;var St,qs,Ka,xt;class hb{constructor(t=128){f(this,St,[]);f(this,qs,!1);f(this,Ka,void 0);f(this,xt,-1);m(this,Ka,t)}add({cmd:t,undo:e,post:s,mustExec:i,type:n=NaN,overwriteIfSameType:a=!1,keepUndo:o=!1}){if(i&&t(),r(this,qs))return;const l={cmd:t,undo:e,post:s,type:n};if(r(this,xt)===-1){r(this,St).length>0&&(r(this,St).length=0),m(this,xt,0),r(this,St).push(l);return}if(a&&r(this,St)[r(this,xt)].type===n){o&&(l.undo=r(this,St)[r(this,xt)].undo),r(this,St)[r(this,xt)]=l;return}const c=r(this,xt)+1;c===r(this,Ka)?r(this,St).splice(0,1):(m(this,xt,c),cn===e[a]))return gc._colorsMapping.get(s);return e}getHexCode(t){const e=this._colors.get(t);return e?k.makeHexColor(...e):t}};U(gc,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let bu=gc;var ae,bt,Tt,ir,cs,nr,we,rr,Di,He,ds,Fi,Qa,Ja,Be,ar,Xs,je,mc,Ys,Za,Oi,to,or,Rt,Q,us,Ni,eo,so,io,no,ro,ao,oo,lo,ho,co,uo,fo,po,go,Ks,Ue,fs,mo,lr,Rh,bc,Ip,Ac,Dp,hr,Ph,vc,Fp,yc,Op,_c,Np,bo,Au,Ao,vu,vo,yu,yo,_u,_o,Eu,Pt,$t,$e,js,Ec,Hp,wc,Bp,Eo,wu,Sc,jp,Hi,Ta,wo,Su;const Yn=class Yn{constructor(t,e,s,i,n,a,o,l,c){f(this,lr);f(this,bc);f(this,Ac);f(this,hr);f(this,vc);f(this,yc);f(this,_c);f(this,bo);f(this,Ao);f(this,vo);f(this,yo);f(this,_o);f(this,Pt);f(this,$e);f(this,Ec);f(this,wc);f(this,Eo);f(this,Sc);f(this,Hi);f(this,wo);f(this,ae,null);f(this,bt,new Map);f(this,Tt,new Map);f(this,ir,null);f(this,cs,null);f(this,nr,null);f(this,we,new hb);f(this,rr,0);f(this,Di,new Set);f(this,He,null);f(this,ds,null);f(this,Fi,new Set);f(this,Qa,!1);f(this,Ja,null);f(this,Be,null);f(this,ar,null);f(this,Xs,!1);f(this,je,null);f(this,mc,new lb);f(this,Ys,!1);f(this,Za,!1);f(this,Oi,null);f(this,to,null);f(this,or,null);f(this,Rt,W.NONE);f(this,Q,new Set);f(this,us,null);f(this,Ni,null);f(this,eo,null);f(this,so,this.blur.bind(this));f(this,io,this.focus.bind(this));f(this,no,this.copy.bind(this));f(this,ro,this.cut.bind(this));f(this,ao,this.paste.bind(this));f(this,oo,this.keydown.bind(this));f(this,lo,this.keyup.bind(this));f(this,ho,this.onEditingAction.bind(this));f(this,co,this.onPageChanging.bind(this));f(this,uo,this.onScaleChanging.bind(this));f(this,fo,b(this,Ac,Dp).bind(this));f(this,po,this.onRotationChanging.bind(this));f(this,go,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});f(this,Ks,[0,0]);f(this,Ue,null);f(this,fs,null);f(this,mo,null);m(this,fs,t),m(this,mo,e),m(this,ir,s),this._eventBus=i,this._eventBus._on("editingaction",r(this,ho)),this._eventBus._on("pagechanging",r(this,co)),this._eventBus._on("scalechanging",r(this,uo)),this._eventBus._on("rotationchanging",r(this,po)),b(this,vc,Fp).call(this),b(this,Ao,vu).call(this),m(this,cs,n.annotationStorage),m(this,Ja,n.filterFactory),m(this,Ni,a),m(this,ar,o||null),m(this,Qa,l),m(this,or,c||null),this.viewParameters={realScale:mi.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}static get _keyboardManager(){const t=Yn.prototype,e=a=>r(a,fs).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),s=(a,{target:o})=>{if(o instanceof HTMLInputElement){const{type:l}=o;return l!=="text"&&l!=="number"}return!0},i=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return X(this,"_keyboardManager",new dh([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:s}],[["ctrl+z","mac+meta+z"],t.undo,{checker:s}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:s}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:s}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(a,{target:o})=>!(o instanceof HTMLButtonElement)&&r(a,fs).contains(o)&&!a.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(a,{target:o})=>!(o instanceof HTMLButtonElement)&&r(a,fs).contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-n,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[n,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-n],checker:e}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,n],checker:e}]]))}destroy(){var t,e;b(this,vo,yu).call(this),b(this,bo,Au).call(this),this._eventBus._off("editingaction",r(this,ho)),this._eventBus._off("pagechanging",r(this,co)),this._eventBus._off("scalechanging",r(this,uo)),this._eventBus._off("rotationchanging",r(this,po));for(const s of r(this,Tt).values())s.destroy();r(this,Tt).clear(),r(this,bt).clear(),r(this,Fi).clear(),m(this,ae,null),r(this,Q).clear(),r(this,we).destroy(),(t=r(this,ir))==null||t.destroy(),(e=r(this,je))==null||e.hide(),m(this,je,null),r(this,Be)&&(clearTimeout(r(this,Be)),m(this,Be,null)),r(this,Ue)&&(clearTimeout(r(this,Ue)),m(this,Ue,null)),b(this,yc,Op).call(this)}async mlGuess(t){var e;return((e=r(this,or))==null?void 0:e.guess(t))||null}get hasMLManager(){return!!r(this,or)}get hcmFilter(){return X(this,"hcmFilter",r(this,Ni)?r(this,Ja).addHCMFilter(r(this,Ni).foreground,r(this,Ni).background):"none")}get direction(){return X(this,"direction",getComputedStyle(r(this,fs)).direction)}get highlightColors(){return X(this,"highlightColors",r(this,ar)?new Map(r(this,ar).split(",").map(t=>t.split("=").map(e=>e.trim()))):null)}get highlightColorNames(){return X(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){m(this,to,t)}editAltText(t){var e;(e=r(this,ir))==null||e.editAltText(this,t)}onPageChanging({pageNumber:t}){m(this,rr,t-1)}focusMainContainer(){r(this,fs).focus()}findParent(t,e){for(const s of r(this,Tt).values()){const{x:i,y:n,width:a,height:o}=s.div.getBoundingClientRect();if(t>=i&&t<=i+a&&e>=n&&e<=n+o)return s}return null}disableUserSelect(t=!1){r(this,mo).classList.toggle("noUserSelect",t)}addShouldRescale(t){r(this,Fi).add(t)}removeShouldRescale(t){r(this,Fi).delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*mi.PDF_TO_CSS_UNITS;for(const e of r(this,Fi))e.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(t=""){const e=document.getSelection();if(!e||e.isCollapsed)return;const{anchorNode:s,anchorOffset:i,focusNode:n,focusOffset:a}=e,o=e.toString(),c=b(this,lr,Rh).call(this,e).closest(".textLayer"),d=this.getSelectionBoxes(c);if(d){e.empty(),r(this,Rt)===W.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:W.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const u of r(this,Tt).values())if(u.hasTextLayer(c)){u.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:d,anchorNode:s,anchorOffset:i,focusNode:n,focusOffset:a,text:o});break}}}addToAnnotationStorage(t){!t.isEmpty()&&r(this,cs)&&!r(this,cs).has(t.id)&&r(this,cs).setValue(t.id,t)}blur(){if(this.isShiftKeyDown=!1,r(this,Xs)&&(m(this,Xs,!1),b(this,hr,Ph).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const e of r(this,Q))if(e.div.contains(t)){m(this,Oi,[e,t]),e._focusEventsAllowed=!1;break}}focus(){if(!r(this,Oi))return;const[t,e]=r(this,Oi);m(this,Oi,null),e.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0}),e.focus()}addEditListeners(){b(this,Ao,vu).call(this),b(this,yo,_u).call(this)}removeEditListeners(){b(this,vo,yu).call(this),b(this,_o,Eu).call(this)}copy(t){var s;if(t.preventDefault(),(s=r(this,ae))==null||s.commitOrRemove(),!this.hasSelection)return;const e=[];for(const i of r(this,Q)){const n=i.serialize(!0);n&&e.push(n)}e.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(e))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:e}=t;for(const n of e.items)for(const a of r(this,ds))if(a.isHandlingMimeForPasting(n.type)){a.paste(n,this.currentLayer);return}let s=e.getData("application/pdfjs");if(!s)return;try{s=JSON.parse(s)}catch(n){V(`paste: "${n.message}".`);return}if(!Array.isArray(s))return;this.unselectAll();const i=this.currentLayer;try{const n=[];for(const l of s){const c=i.deserialize(l);if(!c)return;n.push(c)}const a=()=>{for(const l of n)b(this,Eo,wu).call(this,l);b(this,wo,Su).call(this,n)},o=()=>{for(const l of n)l.remove()};this.addCommands({cmd:a,undo:o,mustExec:!0})}catch(n){V(`paste: "${n.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),r(this,Rt)!==W.NONE&&!this.isEditorHandlingKeyboard&&Yn._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,r(this,Xs)&&(m(this,Xs,!1),b(this,hr,Ph).call(this,"main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(t){t?(b(this,_c,Np).call(this),b(this,yo,_u).call(this),b(this,Pt,$t).call(this,{isEditing:r(this,Rt)!==W.NONE,isEmpty:b(this,Hi,Ta).call(this),hasSomethingToUndo:r(this,we).hasSomethingToUndo(),hasSomethingToRedo:r(this,we).hasSomethingToRedo(),hasSelectedEditor:!1})):(b(this,bo,Au).call(this),b(this,_o,Eu).call(this),b(this,Pt,$t).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!r(this,ds)){m(this,ds,t);for(const e of r(this,ds))b(this,$e,js).call(this,e.defaultPropertiesToUpdate)}}getId(){return r(this,mc).id}get currentLayer(){return r(this,Tt).get(r(this,rr))}getLayer(t){return r(this,Tt).get(t)}get currentPageIndex(){return r(this,rr)}addLayer(t){r(this,Tt).set(t.pageIndex,t),r(this,Ys)?t.enable():t.disable()}removeLayer(t){r(this,Tt).delete(t.pageIndex)}updateMode(t,e=null,s=!1){if(r(this,Rt)!==t){if(m(this,Rt,t),t===W.NONE){this.setEditingState(!1),b(this,wc,Bp).call(this);return}this.setEditingState(!0),b(this,Ec,Hp).call(this),this.unselectAll();for(const i of r(this,Tt).values())i.updateMode(t);if(!e&&s){this.addNewEditorFromKeyboard();return}if(e){for(const i of r(this,bt).values())if(i.annotationElementId===e){this.setSelected(i),i.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==r(this,Rt)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,e){var s;if(r(this,ds)){switch(t){case j.CREATE:this.currentLayer.addNewEditor();return;case j.HIGHLIGHT_DEFAULT_COLOR:(s=r(this,to))==null||s.updateColor(e);break;case j.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(r(this,eo)||m(this,eo,new Map)).set(t,e),this.showAllEditors("highlight",e);break}for(const i of r(this,Q))i.updateParams(t,e);for(const i of r(this,ds))i.updateDefaultParams(t,e)}}showAllEditors(t,e,s=!1){var n;for(const a of r(this,bt).values())a.editorType===t&&a.show(e);(((n=r(this,eo))==null?void 0:n.get(j.HIGHLIGHT_SHOW_ALL))??!0)!==e&&b(this,$e,js).call(this,[[j.HIGHLIGHT_SHOW_ALL,e]])}enableWaiting(t=!1){if(r(this,Za)!==t){m(this,Za,t);for(const e of r(this,Tt).values())t?e.disableClick():e.enableClick(),e.div.classList.toggle("waiting",t)}}getEditors(t){const e=[];for(const s of r(this,bt).values())s.pageIndex===t&&e.push(s);return e}getEditor(t){return r(this,bt).get(t)}addEditor(t){r(this,bt).set(t.id,t)}removeEditor(t){var e;t.div.contains(document.activeElement)&&(r(this,Be)&&clearTimeout(r(this,Be)),m(this,Be,setTimeout(()=>{this.focusMainContainer(),m(this,Be,null)},0))),r(this,bt).delete(t.id),this.unselect(t),(!t.annotationElementId||!r(this,Di).has(t.annotationElementId))&&((e=r(this,cs))==null||e.remove(t.id))}addDeletedAnnotationElement(t){r(this,Di).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return r(this,Di).has(t)}removeDeletedAnnotationElement(t){r(this,Di).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){r(this,ae)!==t&&(m(this,ae,t),t&&b(this,$e,js).call(this,t.propertiesToUpdate))}updateUI(t){r(this,Sc,jp)===t&&b(this,$e,js).call(this,t.propertiesToUpdate)}toggleSelected(t){if(r(this,Q).has(t)){r(this,Q).delete(t),t.unselect(),b(this,Pt,$t).call(this,{hasSelectedEditor:this.hasSelection});return}r(this,Q).add(t),t.select(),b(this,$e,js).call(this,t.propertiesToUpdate),b(this,Pt,$t).call(this,{hasSelectedEditor:!0})}setSelected(t){for(const e of r(this,Q))e!==t&&e.unselect();r(this,Q).clear(),r(this,Q).add(t),t.select(),b(this,$e,js).call(this,t.propertiesToUpdate),b(this,Pt,$t).call(this,{hasSelectedEditor:!0})}isSelected(t){return r(this,Q).has(t)}get firstSelectedEditor(){return r(this,Q).values().next().value}unselect(t){t.unselect(),r(this,Q).delete(t),b(this,Pt,$t).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return r(this,Q).size!==0}get isEnterHandled(){return r(this,Q).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){r(this,we).undo(),b(this,Pt,$t).call(this,{hasSomethingToUndo:r(this,we).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:b(this,Hi,Ta).call(this)})}redo(){r(this,we).redo(),b(this,Pt,$t).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:r(this,we).hasSomethingToRedo(),isEmpty:b(this,Hi,Ta).call(this)})}addCommands(t){r(this,we).add(t),b(this,Pt,$t).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:b(this,Hi,Ta).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...r(this,Q)],e=()=>{for(const i of t)i.remove()},s=()=>{for(const i of t)b(this,Eo,wu).call(this,i)};this.addCommands({cmd:e,undo:s,mustExec:!0})}commitOrRemove(){var t;(t=r(this,ae))==null||t.commitOrRemove()}hasSomethingToControl(){return r(this,ae)||this.hasSelection}selectAll(){for(const t of r(this,Q))t.commit();b(this,wo,Su).call(this,r(this,bt).values())}unselectAll(){if(!(r(this,ae)&&(r(this,ae).commitOrRemove(),r(this,Rt)!==W.NONE))&&this.hasSelection){for(const t of r(this,Q))t.unselect();r(this,Q).clear(),b(this,Pt,$t).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,e,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;r(this,Ks)[0]+=t,r(this,Ks)[1]+=e;const[i,n]=r(this,Ks),a=[...r(this,Q)],o=1e3;r(this,Ue)&&clearTimeout(r(this,Ue)),m(this,Ue,setTimeout(()=>{m(this,Ue,null),r(this,Ks)[0]=r(this,Ks)[1]=0,this.addCommands({cmd:()=>{for(const l of a)r(this,bt).has(l.id)&&l.translateInPage(i,n)},undo:()=>{for(const l of a)r(this,bt).has(l.id)&&l.translateInPage(-i,-n)},mustExec:!1})},o));for(const l of a)l.translateInPage(t,e)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),m(this,He,new Map);for(const t of r(this,Q))r(this,He).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!r(this,He))return!1;this.disableUserSelect(!1);const t=r(this,He);m(this,He,null);let e=!1;for(const[{x:i,y:n,pageIndex:a},o]of t)o.newX=i,o.newY=n,o.newPageIndex=a,e||(e=i!==o.savedX||n!==o.savedY||a!==o.savedPageIndex);if(!e)return!1;const s=(i,n,a,o)=>{if(r(this,bt).has(i.id)){const l=r(this,Tt).get(o);l?i._setParentAndPosition(l,n,a):(i.pageIndex=o,i.x=n,i.y=a)}};return this.addCommands({cmd:()=>{for(const[i,{newX:n,newY:a,newPageIndex:o}]of t)s(i,n,a,o)},undo:()=>{for(const[i,{savedX:n,savedY:a,savedPageIndex:o}]of t)s(i,n,a,o)},mustExec:!0}),!0}dragSelectedEditors(t,e){if(r(this,He))for(const s of r(this,He).keys())s.drag(t,e)}rebuild(t){if(t.parent===null){const e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){var t;return((t=this.getActive())==null?void 0:t.shouldGetKeyboardEvents())||r(this,Q).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return r(this,ae)===t}getActive(){return r(this,ae)}getMode(){return r(this,Rt)}get imageManager(){return X(this,"imageManager",new gu)}getSelectionBoxes(t){if(!t)return null;const e=document.getSelection();for(let c=0,d=e.rangeCount;c({x:(d-i)/a,y:1-(c+u-s)/n,width:p/a,height:u/n});break;case"180":o=(c,d,u,p)=>({x:1-(c+u-s)/n,y:1-(d+p-i)/a,width:u/n,height:p/a});break;case"270":o=(c,d,u,p)=>({x:1-(d+p-i)/a,y:(c-s)/n,width:p/a,height:u/n});break;default:o=(c,d,u,p)=>({x:(c-s)/n,y:(d-i)/a,width:u/n,height:p/a});break}const l=[];for(let c=0,d=e.rangeCount;c{c.type==="pointerup"&&c.button!==0||(window.removeEventListener("pointerup",l),window.removeEventListener("blur",l),c.type==="pointerup"&&b(this,hr,Ph).call(this,"main_toolbar"))};window.addEventListener("pointerup",l),window.addEventListener("blur",l)}},hr=new WeakSet,Ph=function(t=""){r(this,Rt)===W.HIGHLIGHT?this.highlightSelection(t):r(this,Qa)&&b(this,bc,Ip).call(this)},vc=new WeakSet,Fp=function(){document.addEventListener("selectionchange",r(this,fo))},yc=new WeakSet,Op=function(){document.removeEventListener("selectionchange",r(this,fo))},_c=new WeakSet,Np=function(){window.addEventListener("focus",r(this,io)),window.addEventListener("blur",r(this,so))},bo=new WeakSet,Au=function(){window.removeEventListener("focus",r(this,io)),window.removeEventListener("blur",r(this,so))},Ao=new WeakSet,vu=function(){window.addEventListener("keydown",r(this,oo)),window.addEventListener("keyup",r(this,lo))},vo=new WeakSet,yu=function(){window.removeEventListener("keydown",r(this,oo)),window.removeEventListener("keyup",r(this,lo))},yo=new WeakSet,_u=function(){document.addEventListener("copy",r(this,no)),document.addEventListener("cut",r(this,ro)),document.addEventListener("paste",r(this,ao))},_o=new WeakSet,Eu=function(){document.removeEventListener("copy",r(this,no)),document.removeEventListener("cut",r(this,ro)),document.removeEventListener("paste",r(this,ao))},Pt=new WeakSet,$t=function(t){Object.entries(t).some(([s,i])=>r(this,go)[s]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(r(this,go),t)}),r(this,Rt)===W.HIGHLIGHT&&t.hasSelectedEditor===!1&&b(this,$e,js).call(this,[[j.HIGHLIGHT_FREE,!0]]))},$e=new WeakSet,js=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},Ec=new WeakSet,Hp=function(){if(!r(this,Ys)){m(this,Ys,!0);for(const t of r(this,Tt).values())t.enable();for(const t of r(this,bt).values())t.enable()}},wc=new WeakSet,Bp=function(){if(this.unselectAll(),r(this,Ys)){m(this,Ys,!1);for(const t of r(this,Tt).values())t.disable();for(const t of r(this,bt).values())t.disable()}},Eo=new WeakSet,wu=function(t){const e=r(this,Tt).get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},Sc=new WeakSet,jp=function(){let t=null;for(t of r(this,Q));return t},Hi=new WeakSet,Ta=function(){if(r(this,bt).size===0)return!0;if(r(this,bt).size===1)for(const t of r(this,bt).values())return t.isEmpty();return!1},wo=new WeakSet,Su=function(t){for(const e of r(this,Q))e.unselect();r(this,Q).clear();for(const e of t)e.isEmpty()||(r(this,Q).add(e),e.select());b(this,Pt,$t).call(this,{hasSelectedEditor:this.hasSelection})},U(Yn,"TRANSLATE_SMALL",1),U(Yn,"TRANSLATE_BIG",10);let Dn=Yn;var ps,gs,Se,ms,xe,cr,bs,So,xu;const rs=class rs{constructor(t){f(this,So);f(this,ps,"");f(this,gs,!1);f(this,Se,null);f(this,ms,null);f(this,xe,null);f(this,cr,!1);f(this,bs,null);m(this,bs,t)}static initialize(t){rs._l10nPromise||(rs._l10nPromise=t)}async render(){const t=m(this,Se,document.createElement("button"));t.className="altText";const e=await rs._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=e,t.setAttribute("aria-label",e),t.tabIndex="0",t.addEventListener("contextmenu",te),t.addEventListener("pointerdown",i=>i.stopPropagation());const s=i=>{i.preventDefault(),r(this,bs)._uiManager.editAltText(r(this,bs))};return t.addEventListener("click",s,{capture:!0}),t.addEventListener("keydown",i=>{i.target===t&&i.key==="Enter"&&(m(this,cr,!0),s(i))}),await b(this,So,xu).call(this),t}finish(){r(this,Se)&&(r(this,Se).focus({focusVisible:r(this,cr)}),m(this,cr,!1))}isEmpty(){return!r(this,ps)&&!r(this,gs)}get data(){return{altText:r(this,ps),decorative:r(this,gs)}}set data({altText:t,decorative:e}){r(this,ps)===t&&r(this,gs)===e||(m(this,ps,t),m(this,gs,e),b(this,So,xu).call(this))}toggle(t=!1){r(this,Se)&&(!t&&r(this,xe)&&(clearTimeout(r(this,xe)),m(this,xe,null)),r(this,Se).disabled=!t)}destroy(){var t;(t=r(this,Se))==null||t.remove(),m(this,Se,null),m(this,ms,null)}};ps=new WeakMap,gs=new WeakMap,Se=new WeakMap,ms=new WeakMap,xe=new WeakMap,cr=new WeakMap,bs=new WeakMap,So=new WeakSet,xu=async function(){var i;const t=r(this,Se);if(!t)return;if(!r(this,ps)&&!r(this,gs)){t.classList.remove("done"),(i=r(this,ms))==null||i.remove();return}t.classList.add("done"),rs._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(n=>{t.setAttribute("aria-label",n)});let e=r(this,ms);if(!e){m(this,ms,e=document.createElement("span")),e.className="tooltip",e.setAttribute("role","tooltip");const n=e.id=`alt-text-tooltip-${r(this,bs).id}`;t.setAttribute("aria-describedby",n);const a=100;t.addEventListener("mouseenter",()=>{m(this,xe,setTimeout(()=>{m(this,xe,null),r(this,ms).classList.add("show"),r(this,bs)._reportTelemetry({action:"alt_text_tooltip"})},a))}),t.addEventListener("mouseleave",()=>{var o;r(this,xe)&&(clearTimeout(r(this,xe)),m(this,xe,null)),(o=r(this,ms))==null||o.classList.remove("show")})}e.innerText=r(this,gs)?await rs._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):r(this,ps),e.parentNode||t.append(e);const s=r(this,bs).getImageForAltText();s==null||s.setAttribute("aria-describedby",e.id)},U(rs,"_l10nPromise",null);let Kh=rs;var Ce,zt,dr,Bi,Lt,ji,ur,fr,Nt,xo,Ui,Qs,Co,$i,As,ze,pr,gr,ge,To,xc,Ro,Cu,Po,Tu,Lo,Ru,Cc,Up,Tc,$p,ko,Pu,Mo,Lu,Io,ku,Rc,zp,Pc,Vp,Lc,Gp,kc,Wp,Do,Mu,zi,Ra;const et=class et{constructor(t){f(this,Ro);f(this,Lo);f(this,Cc);f(this,Tc);f(this,ko);f(this,Mo);f(this,Io);f(this,Rc);f(this,Pc);f(this,Lc);f(this,kc);f(this,Do);f(this,zi);f(this,Ce,null);f(this,zt,null);f(this,dr,!1);f(this,Bi,!1);f(this,Lt,null);f(this,ji,null);f(this,ur,this.focusin.bind(this));f(this,fr,this.focusout.bind(this));f(this,Nt,null);f(this,xo,"");f(this,Ui,!1);f(this,Qs,null);f(this,Co,!1);f(this,$i,!1);f(this,As,!1);f(this,ze,null);f(this,pr,0);f(this,gr,0);f(this,ge,null);U(this,"_initialOptions",Object.create(null));U(this,"_isVisible",!0);U(this,"_uiManager",null);U(this,"_focusEventsAllowed",!0);U(this,"_l10nPromise",null);f(this,To,!1);f(this,xc,et._zIndex++);this.constructor===et&&tt("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:e,rawDims:{pageWidth:s,pageHeight:i,pageX:n,pageY:a}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,i],this.pageTranslation=[n,a];const[o,l]=this.parentDimensions;this.x=t.x/o,this.y=t.y/l,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const t=et.prototype._resizeWithKeyboard,e=Dn.TRANSLATE_SMALL,s=Dn.TRANSLATE_BIG;return X(this,"_resizerKeyboardManager",new dh([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-s,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[s,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-s]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,s]}],[["Escape","mac+Escape"],et.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return X(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const e=new cb({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(t,e,s){if(et._l10nPromise||(et._l10nPromise=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(n=>[n,t.get(n.replaceAll(/([A-Z])/g,a=>`-${a.toLowerCase()}`))]))),s!=null&&s.strings)for(const n of s.strings)et._l10nPromise.set(n,t.get(n));if(et._borderLineWidth!==-1)return;const i=getComputedStyle(document.documentElement);et._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,e){tt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return r(this,To)}set _isDraggable(t){var e;m(this,To,t),(e=this.div)==null||e.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(t*2),this.y+=this.width*t/(e*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(t*2),this.y-=this.width*t/(e*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=r(this,xc)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):b(this,zi,Ra).call(this),this.parent=t}focusin(t){this._focusEventsAllowed&&(r(this,Ui)?m(this,Ui,!1):this.parent.setSelected(this))}focusout(t){var s;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const e=t.relatedTarget;e!=null&&e.closest(`#${this.id}`)||(t.preventDefault(),(s=this.parent)!=null&&s.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,e,s,i){const[n,a]=this.parentDimensions;[s,i]=this.screenToPageTranslation(s,i),this.x=(t+s)/n,this.y=(e+i)/a,this.fixAndSetPosition()}translate(t,e){b(this,Ro,Cu).call(this,this.parentDimensions,t,e)}translateInPage(t,e){r(this,Qs)||m(this,Qs,[this.x,this.y]),b(this,Ro,Cu).call(this,this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"})}drag(t,e){r(this,Qs)||m(this,Qs,[this.x,this.y]);const[s,i]=this.parentDimensions;if(this.x+=t/s,this.y+=e/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:c,y:d}=this.div.getBoundingClientRect();this.parent.findNewParent(this,c,d)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:n,y:a}=this;const[o,l]=this.getBaseTranslation();n+=o,a+=l,this.div.style.left=`${(100*n).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!r(this,Qs)&&(r(this,Qs)[0]!==this.x||r(this,Qs)[1]!==this.y)}getBaseTranslation(){const[t,e]=this.parentDimensions,{_borderLineWidth:s}=et,i=s/t,n=s/e;switch(this.rotation){case 90:return[-i,n];case 180:return[i,n];case 270:return[i,-n];default:return[-i,-n]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[e,s]=this.pageDimensions;let{x:i,y:n,width:a,height:o}=this;if(a*=e,o*=s,i*=e,n*=s,this._mustFixPosition)switch(t){case 0:i=Math.max(0,Math.min(e-a,i)),n=Math.max(0,Math.min(s-o,n));break;case 90:i=Math.max(0,Math.min(e-o,i)),n=Math.min(s,Math.max(a,n));break;case 180:i=Math.min(e,Math.max(a,i)),n=Math.min(s,Math.max(o,n));break;case 270:i=Math.min(e,Math.max(o,i)),n=Math.max(0,Math.min(s-a,n));break}this.x=i/=e,this.y=n/=s;const[l,c]=this.getBaseTranslation();i+=l,n+=c;const{style:d}=this.div;d.left=`${(100*i).toFixed(2)}%`,d.top=`${(100*n).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(t,e){var s;return b(s=et,Po,Tu).call(s,t,e,this.parentRotation)}pageTranslationToScreen(t,e){var s;return b(s=et,Po,Tu).call(s,t,e,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[e,s]}=this,i=e*t,n=s*t;return Zt.isCSSRoundSupported?[Math.round(i),Math.round(n)]:[i,n]}setDims(t,e){const[s,i]=this.parentDimensions;this.div.style.width=`${(100*t/s).toFixed(2)}%`,r(this,Bi)||(this.div.style.height=`${(100*e/i).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:e,width:s}=t,i=s.endsWith("%"),n=!r(this,Bi)&&e.endsWith("%");if(i&&n)return;const[a,o]=this.parentDimensions;i||(t.width=`${(100*parseFloat(s)/a).toFixed(2)}%`),!r(this,Bi)&&!n&&(t.height=`${(100*parseFloat(e)/o).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}altTextFinish(){var t;(t=r(this,zt))==null||t.finish()}async addEditToolbar(){return r(this,Nt)||r(this,$i)?r(this,Nt):(m(this,Nt,new fu(this)),this.div.append(r(this,Nt).render()),r(this,zt)&&r(this,Nt).addAltTextButton(await r(this,zt).render()),r(this,Nt))}removeEditToolbar(){var t;r(this,Nt)&&(r(this,Nt).remove(),m(this,Nt,null),(t=r(this,zt))==null||t.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){r(this,zt)||(Kh.initialize(et._l10nPromise),m(this,zt,new Kh(this)),await this.addEditToolbar())}get altTextData(){var t;return(t=r(this,zt))==null?void 0:t.data}set altTextData(t){r(this,zt)&&(r(this,zt).data=t)}hasAltText(){var t;return!((t=r(this,zt))!=null&&t.isEmpty())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=r(this,dr)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),this.div.addEventListener("focusin",r(this,ur)),this.div.addEventListener("focusout",r(this,fr));const[t,e]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*e/t).toFixed(2)}%`,this.div.style.maxHeight=`${(100*t/e).toFixed(2)}%`);const[s,i]=this.getInitialTranslation();return this.translate(s,i),Yh(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:e}=Zt.platform;if(t.button!==0||t.ctrlKey&&e){t.preventDefault();return}if(m(this,Ui,!0),this._isDraggable){b(this,Rc,zp).call(this,t);return}b(this,Io,ku).call(this,t)}moveInDOM(){r(this,ze)&&clearTimeout(r(this,ze)),m(this,ze,setTimeout(()=>{var t;m(this,ze,null),(t=this.parent)==null||t.moveEditorInDOM(this)},0))}_setParentAndPosition(t,e,s){t.changeParent(this),this.x=e,this.y=s,this.fixAndSetPosition()}getRect(t,e,s=this.rotation){const i=this.parentScale,[n,a]=this.pageDimensions,[o,l]=this.pageTranslation,c=t/i,d=e/i,u=this.x*n,p=this.y*a,g=this.width*n,A=this.height*a;switch(s){case 0:return[u+c+o,a-p-d-A+l,u+c+g+o,a-p-d+l];case 90:return[u+d+o,a-p+c+l,u+d+A+o,a-p+c+g+l];case 180:return[u-c-g+o,a-p+d+l,u-c+o,a-p+d+A+l];case 270:return[u-d-A+o,a-p-c-g+l,u-d+o,a-p-c+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,e){const[s,i,n,a]=t,o=n-s,l=a-i;switch(this.rotation){case 0:return[s,e-a,o,l];case 90:return[s,e-i,l,o];case 180:return[n,e-i,o,l];case 270:return[n,e-a,l,o];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){m(this,$i,!0)}disableEditMode(){m(this,$i,!1)}isInEditMode(){return r(this,$i)}shouldGetKeyboardEvents(){return r(this,As)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var t,e;(t=this.div)==null||t.addEventListener("focusin",r(this,ur)),(e=this.div)==null||e.addEventListener("focusout",r(this,fr))}rotate(t){}serialize(t=!1,e=null){tt("An editor must be serializable")}static deserialize(t,e,s){const i=new this.prototype.constructor({parent:e,id:e.getNextId(),uiManager:s});i.rotation=t.rotation;const[n,a]=i.pageDimensions,[o,l,c,d]=i.getRectInCurrentCoords(t.rect,a);return i.x=o/n,i.y=l/a,i.width=c/n,i.height=d/a,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",r(this,ur)),this.div.removeEventListener("focusout",r(this,fr)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),r(this,ze)&&(clearTimeout(r(this,ze)),m(this,ze,null)),b(this,zi,Ra).call(this),this.removeEditToolbar(),r(this,ge)){for(const t of r(this,ge).values())clearTimeout(t);m(this,ge,null)}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(b(this,Cc,Up).call(this),r(this,Lt).classList.remove("hidden"),Yh(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),m(this,ji,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const e=r(this,Lt).children;if(!r(this,Ce)){m(this,Ce,Array.from(e));const a=b(this,Pc,Vp).bind(this),o=b(this,Lc,Gp).bind(this);for(const l of r(this,Ce)){const c=l.getAttribute("data-resizer-name");l.setAttribute("role","spinbutton"),l.addEventListener("keydown",a),l.addEventListener("blur",o),l.addEventListener("focus",b(this,kc,Wp).bind(this,c)),et._l10nPromise.get(`pdfjs-editor-resizer-label-${c}`).then(d=>l.setAttribute("aria-label",d))}}const s=r(this,Ce)[0];let i=0;for(const a of e){if(a===s)break;i++}const n=(360-this.rotation+this.parentRotation)%360/90*(r(this,Ce).length/4);if(n!==i){if(ni)for(let o=0;oo.setAttribute("aria-label",d))}}b(this,Do,Mu).call(this,0),m(this,As,!0),r(this,Lt).firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,e){r(this,As)&&b(this,Mo,Lu).call(this,r(this,xo),{movementX:t,movementY:e})}_stopResizingWithKeyboard(){b(this,zi,Ra).call(this),this.div.focus()}select(){var t,e;if(this.makeResizable(),(t=this.div)==null||t.classList.add("selectedEditor"),!r(this,Nt)){this.addEditToolbar().then(()=>{var s,i;(s=this.div)!=null&&s.classList.contains("selectedEditor")&&((i=r(this,Nt))==null||i.show())});return}(e=r(this,Nt))==null||e.show()}unselect(){var t,e,s,i;(t=r(this,Lt))==null||t.classList.add("hidden"),(e=this.div)==null||e.classList.remove("selectedEditor"),(s=this.div)!=null&&s.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(i=r(this,Nt))==null||i.hide()}updateParams(t,e){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return r(this,Co)}set isEditing(t){m(this,Co,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,e){m(this,Bi,!0);const s=t/e,{style:i}=this.div;i.aspectRatio=s,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,e=!1){if(e){r(this,ge)||m(this,ge,new Map);const{action:s}=t;let i=r(this,ge).get(s);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(t),r(this,ge).delete(s),r(this,ge).size===0&&m(this,ge,null)},et._telemetryTimeout),r(this,ge).set(s,i);return}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),m(this,dr,!1)}disable(){this.div&&(this.div.tabIndex=-1),m(this,dr,!0)}renderAnnotationElement(t){let e=t.container.querySelector(".annotationContent");if(!e)e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),t.container.prepend(e);else if(e.nodeName==="CANVAS"){const s=e;e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),s.before(e)}return e}resetAnnotationElement(t){const{firstChild:e}=t.container;e.nodeName==="DIV"&&e.classList.contains("annotationContent")&&e.remove()}};Ce=new WeakMap,zt=new WeakMap,dr=new WeakMap,Bi=new WeakMap,Lt=new WeakMap,ji=new WeakMap,ur=new WeakMap,fr=new WeakMap,Nt=new WeakMap,xo=new WeakMap,Ui=new WeakMap,Qs=new WeakMap,Co=new WeakMap,$i=new WeakMap,As=new WeakMap,ze=new WeakMap,pr=new WeakMap,gr=new WeakMap,ge=new WeakMap,To=new WeakMap,xc=new WeakMap,Ro=new WeakSet,Cu=function([t,e],s,i){[s,i]=this.screenToPageTranslation(s,i),this.x+=s/t,this.y+=i/e,this.fixAndSetPosition()},Po=new WeakSet,Tu=function(t,e,s){switch(s){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}},Lo=new WeakSet,Ru=function(t){switch(t){case 90:{const[e,s]=this.pageDimensions;return[0,-e/s,s/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,s]=this.pageDimensions;return[0,e/s,-s/e,0]}default:return[1,0,0,1]}},Cc=new WeakSet,Up=function(){if(r(this,Lt))return;m(this,Lt,document.createElement("div")),r(this,Lt).classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"];for(const e of t){const s=document.createElement("div");r(this,Lt).append(s),s.classList.add("resizer",e),s.setAttribute("data-resizer-name",e),s.addEventListener("pointerdown",b(this,Tc,$p).bind(this,e)),s.addEventListener("contextmenu",te),s.tabIndex=-1}this.div.prepend(r(this,Lt))},Tc=new WeakSet,$p=function(t,e){var A;e.preventDefault();const{isMac:s}=Zt.platform;if(e.button!==0||e.ctrlKey&&s)return;(A=r(this,zt))==null||A.toggle(!1);const i=b(this,Mo,Lu).bind(this,t),n=this._isDraggable;this._isDraggable=!1;const a={passive:!0,capture:!0};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",i,a),window.addEventListener("contextmenu",te);const o=this.x,l=this.y,c=this.width,d=this.height,u=this.parent.div.style.cursor,p=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;const g=()=>{var v;this.parent.togglePointerEvents(!0),(v=r(this,zt))==null||v.toggle(!0),this._isDraggable=n,window.removeEventListener("pointerup",g),window.removeEventListener("blur",g),window.removeEventListener("pointermove",i,a),window.removeEventListener("contextmenu",te),this.parent.div.style.cursor=u,this.div.style.cursor=p,b(this,ko,Pu).call(this,o,l,c,d)};window.addEventListener("pointerup",g),window.addEventListener("blur",g)},ko=new WeakSet,Pu=function(t,e,s,i){const n=this.x,a=this.y,o=this.width,l=this.height;n===t&&a===e&&o===s&&l===i||this.addCommands({cmd:()=>{this.width=o,this.height=l,this.x=n,this.y=a;const[c,d]=this.parentDimensions;this.setDims(c*o,d*l),this.fixAndSetPosition()},undo:()=>{this.width=s,this.height=i,this.x=t,this.y=e;const[c,d]=this.parentDimensions;this.setDims(c*s,d*i),this.fixAndSetPosition()},mustExec:!0})},Mo=new WeakSet,Lu=function(t,e){const[s,i]=this.parentDimensions,n=this.x,a=this.y,o=this.width,l=this.height,c=et.MIN_SIZE/s,d=et.MIN_SIZE/i,u=L=>Math.round(L*1e4)/1e4,p=b(this,Lo,Ru).call(this,this.rotation),g=(L,H)=>[p[0]*L+p[2]*H,p[1]*L+p[3]*H],A=b(this,Lo,Ru).call(this,360-this.rotation),v=(L,H)=>[A[0]*L+A[2]*H,A[1]*L+A[3]*H];let _,y,E=!1,w=!1;switch(t){case"topLeft":E=!0,_=(L,H)=>[0,0],y=(L,H)=>[L,H];break;case"topMiddle":_=(L,H)=>[L/2,0],y=(L,H)=>[L/2,H];break;case"topRight":E=!0,_=(L,H)=>[L,0],y=(L,H)=>[0,H];break;case"middleRight":w=!0,_=(L,H)=>[L,H/2],y=(L,H)=>[0,H/2];break;case"bottomRight":E=!0,_=(L,H)=>[L,H],y=(L,H)=>[0,0];break;case"bottomMiddle":_=(L,H)=>[L/2,H],y=(L,H)=>[L/2,0];break;case"bottomLeft":E=!0,_=(L,H)=>[0,H],y=(L,H)=>[L,0];break;case"middleLeft":w=!0,_=(L,H)=>[0,H/2],y=(L,H)=>[L,H/2];break}const S=_(o,l),x=y(o,l);let C=g(...x);const R=u(n+C[0]),P=u(a+C[1]);let M=1,O=1,[T,$]=this.screenToPageTranslation(e.movementX,e.movementY);if([T,$]=v(T/s,$/i),E){const L=Math.hypot(o,l);M=O=Math.max(Math.min(Math.hypot(x[0]-S[0]-T,x[1]-S[1]-$)/L,1/o,1/l),c/o,d/l)}else w?M=Math.max(c,Math.min(1,Math.abs(x[0]-S[0]-T)))/o:O=Math.max(d,Math.min(1,Math.abs(x[1]-S[1]-$)))/l;const D=u(o*M),I=u(l*O);C=g(...y(D,I));const z=R-C[0],Y=P-C[1];this.width=D,this.height=I,this.x=z,this.y=Y,this.setDims(s*D,i*I),this.fixAndSetPosition()},Io=new WeakSet,ku=function(t){const{isMac:e}=Zt.platform;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)},Rc=new WeakSet,zp=function(t){const e=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let s,i;e&&(this.div.classList.add("moving"),s={passive:!0,capture:!0},m(this,pr,t.clientX),m(this,gr,t.clientY),i=a=>{const{clientX:o,clientY:l}=a,[c,d]=this.screenToPageTranslation(o-r(this,pr),l-r(this,gr));m(this,pr,o),m(this,gr,l),this._uiManager.dragSelectedEditors(c,d)},window.addEventListener("pointermove",i,s));const n=()=>{window.removeEventListener("pointerup",n),window.removeEventListener("blur",n),e&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",i,s)),m(this,Ui,!1),this._uiManager.endDragSession()||b(this,Io,ku).call(this,t)};window.addEventListener("pointerup",n),window.addEventListener("blur",n)},Pc=new WeakSet,Vp=function(t){et._resizerKeyboardManager.exec(this,t)},Lc=new WeakSet,Gp=function(t){var e;r(this,As)&&((e=t.relatedTarget)==null?void 0:e.parentNode)!==r(this,Lt)&&b(this,zi,Ra).call(this)},kc=new WeakSet,Wp=function(t){m(this,xo,r(this,As)?t:"")},Do=new WeakSet,Mu=function(t){if(r(this,Ce))for(const e of r(this,Ce))e.tabIndex=t},zi=new WeakSet,Ra=function(){if(m(this,As,!1),b(this,Do,Mu).call(this,-1),r(this,ji)){const{savedX:t,savedY:e,savedWidth:s,savedHeight:i}=r(this,ji);b(this,ko,Pu).call(this,t,e,s,i),m(this,ji,null)}},f(et,Po),U(et,"_borderLineWidth",-1),U(et,"_colorManager",new bu),U(et,"_zIndex",1),U(et,"_telemetryTimeout",1e3);let J=et;class cb extends J{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const Vf=3285377520,fe=4294901760,Fe=65535;class qp{constructor(t){this.h1=t?t&4294967295:Vf,this.h2=t?t&4294967295:Vf}update(t){let e,s;if(typeof t=="string"){e=new Uint8Array(t.length*2),s=0;for(let v=0,_=t.length;v<_;v++){const y=t.charCodeAt(v);y<=255?e[s++]=y:(e[s++]=y>>>8,e[s++]=y&255)}}else if(ArrayBuffer.isView(t))e=t.slice(),s=e.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const i=s>>2,n=s-i*4,a=new Uint32Array(e.buffer,0,i);let o=0,l=0,c=this.h1,d=this.h2;const u=3432918353,p=461845907,g=u&Fe,A=p&Fe;for(let v=0;v>>17,o=o*p&fe|o*A&Fe,c^=o,c=c<<13|c>>>19,c=c*5+3864292196):(l=a[v],l=l*u&fe|l*g&Fe,l=l<<15|l>>>17,l=l*p&fe|l*A&Fe,d^=l,d=d<<13|d>>>19,d=d*5+3864292196);switch(o=0,n){case 3:o^=e[i*4+2]<<16;case 2:o^=e[i*4+1]<<8;case 1:o^=e[i*4],o=o*u&fe|o*g&Fe,o=o<<15|o>>>17,o=o*p&fe|o*A&Fe,i&1?c^=o:d^=o}this.h1=c,this.h2=d}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=t*3981806797&fe|t*36045&Fe,e=e*4283543511&fe|((e<<16|t>>>16)*2950163797&fe)>>>16,t^=e>>>1,t=t*444984403&fe|t*60499&Fe,e=e*3301882366&fe|((e<<16|t>>>16)*3120437893&fe)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}const Iu=Object.freeze({map:null,hash:"",transfer:void 0});var Vi,kt,Mc,Xp;class Df{constructor(){f(this,Mc);f(this,Vi,!1);f(this,kt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,e){const s=r(this,kt).get(t);return s===void 0?e:Object.assign(e,s)}getRawValue(t){return r(this,kt).get(t)}remove(t){if(r(this,kt).delete(t),r(this,kt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const e of r(this,kt).values())if(e instanceof J)return;this.onAnnotationEditor(null)}}setValue(t,e){const s=r(this,kt).get(t);let i=!1;if(s!==void 0)for(const[n,a]of Object.entries(e))s[n]!==a&&(i=!0,s[n]=a);else i=!0,r(this,kt).set(t,e);i&&b(this,Mc,Xp).call(this),e instanceof J&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(e.constructor._type)}has(t){return r(this,kt).has(t)}getAll(){return r(this,kt).size>0?Tf(r(this,kt)):null}setAll(t){for(const[e,s]of Object.entries(t))this.setValue(e,s)}get size(){return r(this,kt).size}resetModified(){r(this,Vi)&&(m(this,Vi,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Yp(this)}get serializable(){if(r(this,kt).size===0)return Iu;const t=new Map,e=new qp,s=[],i=Object.create(null);let n=!1;for(const[a,o]of r(this,kt)){const l=o instanceof J?o.serialize(!1,i):o;l&&(t.set(a,l),e.update(`${a}:${JSON.stringify(l)}`),n||(n=!!l.bitmap))}if(n)for(const a of t.values())a.bitmap&&s.push(a.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:s}:Iu}get editorStats(){let t=null;const e=new Map;for(const s of r(this,kt).values()){if(!(s instanceof J))continue;const i=s.telemetryFinalData;if(!i)continue;const{type:n}=i;e.has(n)||e.set(n,Object.getPrototypeOf(s).constructor),t||(t=Object.create(null));const a=t[n]||(t[n]=new Map);for(const[o,l]of Object.entries(i)){if(o==="type")continue;let c=a.get(o);c||(c=new Map,a.set(o,c));const d=c.get(l)??0;c.set(l,d+1)}}for(const[s,i]of e)t[s]=i.computeTelemetryFinalData(t[s]);return t}}Vi=new WeakMap,kt=new WeakMap,Mc=new WeakSet,Xp=function(){r(this,Vi)||(m(this,Vi,!0),typeof this.onSetModified=="function"&&this.onSetModified())};var Fo;class Yp extends Df{constructor(e){super();f(this,Fo,void 0);const{map:s,hash:i,transfer:n}=e.serializable,a=structuredClone(s,n?{transfer:n}:null);m(this,Fo,{map:a,hash:i,transfer:n})}get print(){tt("Should not call PrintAnnotationStorage.print")}get serializable(){return r(this,Fo)}}Fo=new WeakMap;var mr;class db{constructor({ownerDocument:t=globalThis.document,styleElement:e=null}){f(this,mr,new Set);this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),r(this,mr).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:e}){if(!(!t||r(this,mr).has(t.loadedName))){if(_t(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:s,src:i,style:n}=t,a=new FontFace(s,i,n);this.addNativeFontFace(a);try{await a.load(),r(this,mr).add(s),e==null||e(t)}catch{V(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}tt("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const s=t.createNativeFontFace();if(s){this.addNativeFontFace(s);try{await s.loaded}catch(i){throw V(`Failed to load font '${s.family}': '${i}'.`),t.disableFontFace=!0,i}}return}const e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await new Promise(s=>{const i=this._queueLoadingCallback(s);this._prepareFontLoadEvent(t,i)})}}get isFontLoadingAPISupported(){var e;const t=!!((e=this._document)!=null&&e.fonts);return X(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(Bt||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),X(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function e(){for(_t(!i.done,"completeRequest() cannot be called twice."),i.done=!0;s.length>0&&s[0].done;){const n=s.shift();setTimeout(n.callback,0)}}const{loadingRequests:s}=this,i={done:!1,complete:e,callback:t};return s.push(i),i}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return X(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,e){function s(S,x){return S.charCodeAt(x)<<24|S.charCodeAt(x+1)<<16|S.charCodeAt(x+2)<<8|S.charCodeAt(x+3)&255}function i(S,x,C,R){const P=S.substring(0,x),M=S.substring(x+C);return P+R+M}let n,a;const o=this._document.createElement("canvas");o.width=1,o.height=1;const l=o.getContext("2d");let c=0;function d(S,x){if(++c>30){V("Load test font never loaded."),x();return}if(l.font="30px "+S,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){x();return}setTimeout(d.bind(null,S,x))}const u=`lt${Date.now()}${this.loadTestFontId++}`;let p=this._loadTestFont;p=i(p,976,u.length,u);const A=16,v=1482184792;let _=s(p,A);for(n=0,a=u.length-3;n{w.remove(),e.complete()})}}mr=new WeakMap;class ub{constructor(t,{disableFontFace:e=!1,inspectFont:s=null}){this.compiledGlyphs=Object.create(null);for(const i in t)this[i]=t[i];this.disableFontFace=e===!0,this._inspectFont=s}createNativeFontFace(){var e;if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const s={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(s.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,s)}return(e=this._inspectFont)==null||e.call(this,this),t}createFontFaceRule(){var i;if(!this.data||this.disableFontFace)return null;const t=Ap(this.data),e=`url(data:${this.mimetype};base64,${btoa(t)});`;let s;if(!this.cssFontInfo)s=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let n=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(n+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),s=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${n}src:${e}}`}return(i=this._inspectFont)==null||i.call(this,this,e),s}getPathGenerator(t,e){if(this.compiledGlyphs[e]!==void 0)return this.compiledGlyphs[e];let s;try{s=t.get(this.loadedName+"_path_"+e)}catch(n){V(`getPathGenerator - ignoring character: "${n}".`)}if(!Array.isArray(s)||s.length===0)return this.compiledGlyphs[e]=function(n,a){};const i=[];for(let n=0,a=s.length;ng.bezierCurveTo(o,l,c,d,u,p)),n+=6}break;case ss.MOVE_TO:{const[o,l]=s.slice(n,n+2);i.push(c=>c.moveTo(o,l)),n+=2}break;case ss.LINE_TO:{const[o,l]=s.slice(n,n+2);i.push(c=>c.lineTo(o,l)),n+=2}break;case ss.QUADRATIC_CURVE_TO:{const[o,l,c,d]=s.slice(n,n+4);i.push(u=>u.quadraticCurveTo(o,l,c,d)),n+=4}break;case ss.RESTORE:i.push(o=>o.restore());break;case ss.SAVE:i.push(o=>o.save());break;case ss.SCALE:_t(i.length===2,"Scale command is only valid at the third position.");break;case ss.TRANSFORM:{const[o,l,c,d,u,p]=s.slice(n,n+6);i.push(g=>g.transform(o,l,c,d,u,p)),n+=6}break;case ss.TRANSLATE:{const[o,l]=s.slice(n,n+2);i.push(c=>c.translate(o,l)),n+=2}break}return this.compiledGlyphs[e]=function(a,o){i[0](a),i[1](a),a.scale(o,-o);for(let l=2,c=i.length;l{const t=await bh(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),e=await bh(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),s=await bh(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),i=await bh(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]);let n,a;return new Map(Object.entries({fs:t,http:e,https:s,url:i,canvas:n,path2d:a}))})().then(t=>{Ba=t,Du.resolve()},t=>{V(`loadPackages: ${t}`),Ba=new Map,Du.resolve()})}class es{static get promise(){return Du.promise}static get(t){return Ba==null?void 0:Ba.get(t)}}const Kp=function(h){return es.get("fs").promises.readFile(h).then(e=>new Uint8Array(e))};class fb extends $d{}class pb extends zd{_createCanvas(t,e){return es.get("canvas").createCanvas(t,e)}}class gb extends Vd{_fetchData(t,e){return Kp(t).then(s=>({cMapData:s,compressionType:e}))}}class mb extends Gd{_fetchData(t){return Kp(t)}}const Wt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function Fu(h,t){if(!t)return;const e=t[2]-t[0],s=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],e,s),h.clip(i)}class uh{constructor(){this.constructor===uh&&tt("Cannot initialize BaseShadingPattern.")}getPattern(){tt("Abstract method `getPattern` called.")}}class bb extends uh{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let e;this._type==="axial"?e=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(e=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const s of this._colorStops)e.addColorStop(s[0],s[1]);return e}getPattern(t,e,s,i){let n;if(i===Wt.STROKE||i===Wt.FILL){const a=e.current.getClippedPathBoundingBox(i,lt(t))||[0,0,0,0],o=Math.ceil(a[2]-a[0])||1,l=Math.ceil(a[3]-a[1])||1,c=e.cachedCanvases.getCanvas("pattern",o,l,!0),d=c.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-a[0],-a[1]),s=k.transform(s,[1,0,0,1,a[0],a[1]]),d.transform(...e.baseTransform),this.matrix&&d.transform(...this.matrix),Fu(d,this._bbox),d.fillStyle=this._createGradient(d),d.fill(),n=t.createPattern(c.canvas,"no-repeat");const u=new DOMMatrix(s);n.setTransform(u)}else Fu(t,this._bbox),n=this._createGradient(t);return n}}function iu(h,t,e,s,i,n,a,o){const l=t.coords,c=t.colors,d=h.data,u=h.width*4;let p;l[e+1]>l[s+1]&&(p=e,e=s,s=p,p=n,n=a,a=p),l[s+1]>l[i+1]&&(p=s,s=i,i=p,p=a,a=o,o=p),l[e+1]>l[s+1]&&(p=e,e=s,s=p,p=n,n=a,a=p);const g=(l[e]+t.offsetX)*t.scaleX,A=(l[e+1]+t.offsetY)*t.scaleY,v=(l[s]+t.offsetX)*t.scaleX,_=(l[s+1]+t.offsetY)*t.scaleY,y=(l[i]+t.offsetX)*t.scaleX,E=(l[i+1]+t.offsetY)*t.scaleY;if(A>=E)return;const w=c[n],S=c[n+1],x=c[n+2],C=c[a],R=c[a+1],P=c[a+2],M=c[o],O=c[o+1],T=c[o+2],$=Math.round(A),D=Math.round(E);let I,z,Y,L,H,jt,ue,ee;for(let dt=$;dt<=D;dt++){if(dt<_){const K=dtE?K=1:_===E?K=0:K=(_-dt)/(_-E),I=v-(v-y)*K,z=C-(C-M)*K,Y=R-(R-O)*K,L=P-(P-T)*K}let ot;dtE?ot=1:ot=(A-dt)/(A-E),H=g-(g-y)*ot,jt=w-(w-M)*ot,ue=S-(S-O)*ot,ee=x-(x-T)*ot;const Dt=Math.round(Math.min(I,H)),ve=Math.round(Math.max(I,H));let qt=u*dt+Dt*4;for(let K=Dt;K<=ve;K++)ot=(I-K)/(I-H),ot<0?ot=0:ot>1&&(ot=1),d[qt++]=z-(z-jt)*ot|0,d[qt++]=Y-(Y-ue)*ot|0,d[qt++]=L-(L-ee)*ot|0,d[qt++]=255}}function Ab(h,t,e){const s=t.coords,i=t.colors;let n,a;switch(t.type){case"lattice":const o=t.verticesPerRow,l=Math.floor(s.length/o)-1,c=o-1;for(n=0;n=i?n=i:s=n/t,{scale:s,size:n}}clipBbox(t,e,s,i,n){const a=i-e,o=n-s;t.ctx.rect(e,s,a,o),t.current.updateRectMinMax(lt(t.ctx),[e,s,i,n]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,e,s){const i=t.ctx,n=t.current;switch(e){case Gf.COLORED:const a=this.ctx;i.fillStyle=a.fillStyle,i.strokeStyle=a.strokeStyle,n.fillColor=a.fillStyle,n.strokeColor=a.strokeStyle;break;case Gf.UNCOLORED:const o=k.makeHexColor(s[0],s[1],s[2]);i.fillStyle=o,i.strokeStyle=o,n.fillColor=o,n.strokeColor=o;break;default:throw new qm(`Unsupported paint type: ${e}`)}}getPattern(t,e,s,i){let n=s;i!==Wt.SHADING&&(n=k.transform(n,e.baseTransform),this.matrix&&(n=k.transform(n,this.matrix)));const a=this.createPatternCanvas(e);let o=new DOMMatrix(n);o=o.translate(a.offsetX,a.offsetY),o=o.scale(1/a.scaleX,1/a.scaleY);const l=t.createPattern(a.canvas,"repeat");return l.setTransform(o),l}};U(Ic,"MAX_PATTERN_SIZE",3e3);let Ou=Ic;function Eb({src:h,srcPos:t=0,dest:e,width:s,height:i,nonBlackColor:n=4294967295,inverseDecode:a=!1}){const o=Zt.isLittleEndian?4278190080:255,[l,c]=a?[n,o]:[o,n],d=s>>3,u=s&7,p=h.length;e=new Uint32Array(e.buffer);let g=0;for(let A=0;A{h.save=h.__originalSave,h.restore=h.__originalRestore,h.rotate=h.__originalRotate,h.scale=h.__originalScale,h.translate=h.__originalTranslate,h.transform=h.__originalTransform,h.setTransform=h.__originalSetTransform,h.resetTransform=h.__originalResetTransform,h.clip=h.__originalClip,h.moveTo=h.__originalMoveTo,h.lineTo=h.__originalLineTo,h.bezierCurveTo=h.__originalBezierCurveTo,h.rect=h.__originalRect,h.closePath=h.__originalClosePath,h.beginPath=h.__originalBeginPath,delete h._removeMirroring},h.save=function(){t.save(),this.__originalSave()},h.restore=function(){t.restore(),this.__originalRestore()},h.translate=function(s,i){t.translate(s,i),this.__originalTranslate(s,i)},h.scale=function(s,i){t.scale(s,i),this.__originalScale(s,i)},h.transform=function(s,i,n,a,o,l){t.transform(s,i,n,a,o,l),this.__originalTransform(s,i,n,a,o,l)},h.setTransform=function(s,i,n,a,o,l){t.setTransform(s,i,n,a,o,l),this.__originalSetTransform(s,i,n,a,o,l)},h.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},h.rotate=function(s){t.rotate(s),this.__originalRotate(s)},h.clip=function(s){t.clip(s),this.__originalClip(s)},h.moveTo=function(e,s){t.moveTo(e,s),this.__originalMoveTo(e,s)},h.lineTo=function(e,s){t.lineTo(e,s),this.__originalLineTo(e,s)},h.bezierCurveTo=function(e,s,i,n,a,o){t.bezierCurveTo(e,s,i,n,a,o),this.__originalBezierCurveTo(e,s,i,n,a,o)},h.rect=function(e,s,i,n){t.rect(e,s,i,n),this.__originalRect(e,s,i,n)},h.closePath=function(){t.closePath(),this.__originalClosePath()},h.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class xb{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,e,s){let i;return this.cache[t]!==void 0?(i=this.cache[t],this.canvasFactory.reset(i,e,s)):(i=this.canvasFactory.create(e,s),this.cache[t]=i),i}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}}function vh(h,t,e,s,i,n,a,o,l,c){const[d,u,p,g,A,v]=lt(h);if(u===0&&p===0){const E=a*d+A,w=Math.round(E),S=o*g+v,x=Math.round(S),C=(a+l)*d+A,R=Math.abs(Math.round(C)-w)||1,P=(o+c)*g+v,M=Math.abs(Math.round(P)-x)||1;return h.setTransform(Math.sign(d),0,0,Math.sign(g),w,x),h.drawImage(t,e,s,i,n,0,0,R,M),h.setTransform(d,u,p,g,A,v),[R,M]}if(d===0&&g===0){const E=o*p+A,w=Math.round(E),S=a*u+v,x=Math.round(S),C=(o+c)*p+A,R=Math.abs(Math.round(C)-w)||1,P=(a+l)*u+v,M=Math.abs(Math.round(P)-x)||1;return h.setTransform(0,Math.sign(u),Math.sign(p),0,w,x),h.drawImage(t,e,s,i,n,0,0,M,R),h.setTransform(d,u,p,g,A,v),[M,R]}h.drawImage(t,e,s,i,n,a,o,l,c);const _=Math.hypot(d,u),y=Math.hypot(p,g);return[_*l,y*c]}function Cb(h){const{width:t,height:e}=h;if(t>Yf||e>Yf)return null;const s=1e3,i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),n=t+1;let a=new Uint8Array(n*(e+1)),o,l,c;const d=t+7&-8;let u=new Uint8Array(d*e),p=0;for(const y of h.data){let E=128;for(;E>0;)u[p++]=y&E?0:255,E>>=1}let g=0;for(p=0,u[p]!==0&&(a[0]=1,++g),l=1;l>2)+(u[p+1]?4:0)+(u[p-d+1]?8:0),i[y]&&(a[c+l]=i[y],++g),p++;if(u[p-d]!==u[p]&&(a[c+l]=u[p]?2:4,++g),g>s)return null}for(p=d*(e-1),c=o*n,u[p]!==0&&(a[c]=8,++g),l=1;ls)return null;const A=new Int32Array([0,n,-1,0,-n,0,0,0,1]),v=new Path2D;for(o=0;g&&o<=e;o++){let y=o*n;const E=y+t;for(;y>4,a[y]&=S>>2|S<<2),v.lineTo(y%n,y/n|0),a[y]||--g}while(w!==y);--o}return u=null,a=null,function(y){y.save(),y.scale(1/t,-1/e),y.translate(0,-e),y.fill(v),y.beginPath(),y.restore()}}class Kf{constructor(t,e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=mp,this.textMatrixScale=1,this.fontMatrix=au,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=Ft.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,e])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,e){this.x=t,this.y=e}updatePathMinMax(t,e,s){[e,s]=k.applyTransform([e,s],t),this.minX=Math.min(this.minX,e),this.minY=Math.min(this.minY,s),this.maxX=Math.max(this.maxX,e),this.maxY=Math.max(this.maxY,s)}updateRectMinMax(t,e){const s=k.applyTransform(e,t),i=k.applyTransform(e.slice(2),t),n=k.applyTransform([e[0],e[3]],t),a=k.applyTransform([e[2],e[1]],t);this.minX=Math.min(this.minX,s[0],i[0],n[0],a[0]),this.minY=Math.min(this.minY,s[1],i[1],n[1],a[1]),this.maxX=Math.max(this.maxX,s[0],i[0],n[0],a[0]),this.maxY=Math.max(this.maxY,s[1],i[1],n[1],a[1])}updateScalingPathMinMax(t,e){k.scaleMinMax(t,e),this.minX=Math.min(this.minX,e[0]),this.minY=Math.min(this.minY,e[1]),this.maxX=Math.max(this.maxX,e[2]),this.maxY=Math.max(this.maxY,e[3])}updateCurvePathMinMax(t,e,s,i,n,a,o,l,c,d){const u=k.bezierBoundingBox(e,s,i,n,a,o,l,c,d);d||this.updateRectMinMax(t,u)}getPathBoundingBox(t=Wt.FILL,e=null){const s=[this.minX,this.minY,this.maxX,this.maxY];if(t===Wt.STROKE){e||tt("Stroke bounding box must include transform.");const i=k.singularValueDecompose2dScale(e),n=i[0]*this.lineWidth/2,a=i[1]*this.lineWidth/2;s[0]-=n,s[1]-=a,s[2]+=n,s[3]+=a}return s}updateClipFromPath(){const t=k.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=Wt.FILL,e=null){return k.intersect(this.clipBox,this.getPathBoundingBox(t,e))}}function Qf(h,t){if(typeof ImageData<"u"&&t instanceof ImageData){h.putImageData(t,0,0);return}const e=t.height,s=t.width,i=e%Qt,n=(e-i)/Qt,a=i===0?n:n+1,o=h.createImageData(s,Qt);let l=0,c;const d=t.data,u=o.data;let p,g,A,v;if(t.kind===Sh.GRAYSCALE_1BPP){const _=d.byteLength,y=new Uint32Array(u.buffer,0,u.byteLength>>2),E=y.length,w=s+7>>3,S=4294967295,x=Zt.isLittleEndian?4278190080:255;for(p=0;pw?s:C*8-7,M=P&-8;let O=0,T=0;for(;R>=1}for(;c=n&&(A=i,v=s*A),c=0,g=v;g--;)u[c++]=d[l++],u[c++]=d[l++],u[c++]=d[l++],u[c++]=255;h.putImageData(o,0,p*Qt)}else throw new Error(`bad image kind: ${t.kind}`)}function Jf(h,t){if(t.bitmap){h.drawImage(t.bitmap,0,0);return}const e=t.height,s=t.width,i=e%Qt,n=(e-i)/Qt,a=i===0?n:n+1,o=h.createImageData(s,Qt);let l=0;const c=t.data,d=o.data;for(let u=0;uXf&&typeof s=="function",d=c?Date.now()+wb:0;let u=0;const p=this.commonObjs,g=this.objs;let A;for(;;){if(i!==void 0&&o===i.nextBreakPoint)return i.breakIt(o,s),o;if(A=a[o],A!==Ee.dependency)this[A].apply(this,n[o]);else for(const v of n[o]){const _=v.startsWith("g_")?p:g;if(!_.has(v))return _.get(v,s),o}if(o++,o===l)return o;if(c&&++u>Xf){if(Date.now()>d)return s(),o;u=0}}}endDrawing(){b(this,Oo,Nu).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const e of t.values())typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);t.clear()}this._cachedBitmapsMap.clear(),b(this,No,Hu).call(this)}_scaleImage(t,e){const s=t.width,i=t.height;let n=Math.max(Math.hypot(e[0],e[1]),1),a=Math.max(Math.hypot(e[2],e[3]),1),o=s,l=i,c="prescale1",d,u;for(;n>2&&o>1||a>2&&l>1;){let p=o,g=l;n>2&&o>1&&(p=o>=16384?Math.floor(o/2)-1||1:Math.ceil(o/2),n/=o/p),a>2&&l>1&&(g=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,a/=l/g),d=this.cachedCanvases.getCanvas(c,p,g),u=d.context,u.clearRect(0,0,p,g),u.drawImage(t,0,0,o,l,0,0,p,g),t=d.canvas,o=p,l=g,c=c==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:o,paintHeight:l}}_createMaskCanvas(t){const e=this.ctx,{width:s,height:i}=t,n=this.current.fillColor,a=this.current.patternFill,o=lt(e);let l,c,d,u;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;c=JSON.stringify(a?o:[o.slice(0,4),n]),l=this._cachedBitmapsMap.get(P),l||(l=new Map,this._cachedBitmapsMap.set(P,l));const M=l.get(c);if(M&&!a){const O=Math.round(Math.min(o[0],o[2])+o[4]),T=Math.round(Math.min(o[1],o[3])+o[5]);return{canvas:M,offsetX:O,offsetY:T}}d=M}d||(u=this.cachedCanvases.getCanvas("maskCanvas",s,i),Jf(u.context,t));let p=k.transform(o,[1/s,0,0,-1/i,0,0]);p=k.transform(p,[1,0,0,1,0,-i]);const[g,A,v,_]=k.getAxialAlignedBoundingBox([0,0,s,i],p),y=Math.round(v-g)||1,E=Math.round(_-A)||1,w=this.cachedCanvases.getCanvas("fillCanvas",y,E),S=w.context,x=g,C=A;S.translate(-x,-C),S.transform(...p),d||(d=this._scaleImage(u.canvas,is(S)),d=d.img,l&&a&&l.set(c,d)),S.imageSmoothingEnabled=Zf(lt(S),t.interpolate),vh(S,d,0,0,d.width,d.height,0,0,s,i),S.globalCompositeOperation="source-in";const R=k.transform(is(S),[1,0,0,1,-x,-C]);return S.fillStyle=a?n.getPattern(e,this,R,Wt.FILL):n,S.fillRect(0,0,s,i),l&&!a&&(this.cachedCanvases.delete("fillCanvas"),l.set(c,w.canvas)),{canvas:w.canvas,offsetX:Math.round(x),offsetY:Math.round(C)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=Tb[t]}setLineJoin(t){this.ctx.lineJoin=Rb[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,e){const s=this.ctx;s.setLineDash!==void 0&&(s.setLineDash(t),s.lineDashOffset=e)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[e,s]of t)switch(e){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s[0],s[1]);break;case"CA":this.current.strokeAlpha=s;break;case"ca":this.current.fillAlpha=s,this.ctx.globalAlpha=s;break;case"BM":this.ctx.globalCompositeOperation=s;break;case"SMask":this.current.activeSMask=s?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(s);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,e=this.ctx.canvas.height,s="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(s,t,e);this.suspendedCtx=this.ctx,this.ctx=i.context;const n=this.ctx;n.setTransform(...lt(this.suspendedCtx)),_a(this.suspendedCtx,n),Sb(n,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),_a(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const e=this.current.activeSMask,s=this.suspendedCtx;this.composeSMask(s,e,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,e,s,i){const n=i[0],a=i[1],o=i[2]-n,l=i[3]-a;o===0||l===0||(this.genericComposeSMask(e.context,s,o,l,e.subtype,e.backdrop,e.transferMap,n,a,e.offsetX,e.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(s.canvas,0,0),t.restore())}genericComposeSMask(t,e,s,i,n,a,o,l,c,d,u){let p=t.canvas,g=l-d,A=c-u;if(a){if(g<0||A<0||g+s>p.width||A+i>p.height){const _=this.cachedCanvases.getCanvas("maskExtension",s,i),y=_.context;y.drawImage(p,-g,-A),a.some(E=>E!==0)&&(y.globalCompositeOperation="destination-atop",y.fillStyle=k.makeHexColor(...a),y.fillRect(0,0,s,i),y.globalCompositeOperation="source-over"),p=_.canvas,g=A=0}else if(a.some(_=>_!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const _=new Path2D;_.rect(g,A,s,i),t.clip(_),t.globalCompositeOperation="destination-atop",t.fillStyle=k.makeHexColor(...a),t.fillRect(g,A,s,i),t.restore()}}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),n==="Alpha"&&o?e.filter=this.filterFactory.addAlphaFilter(o):n==="Luminosity"&&(e.filter=this.filterFactory.addLuminosityFilter(o));const v=new Path2D;v.rect(l,c,s,i),e.clip(v),e.globalCompositeOperation="destination-in",e.drawImage(p,g,A,s,i,l,c,s,i),e.restore()}save(){this.inSMaskMode?(_a(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),_a(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,e,s,i,n,a){this.ctx.transform(t,e,s,i,n,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,e,s){const i=this.ctx,n=this.current;let a=n.x,o=n.y,l,c;const d=lt(i),u=d[0]===0&&d[3]===0||d[1]===0&&d[2]===0,p=u?s.slice(0):null;for(let g=0,A=0,v=t.length;gqf&&(c=qf),this.current.fontSizeScale=e/c,this.ctx.font=`${l} ${o} ${c}px ${a}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e}setLeadingMoveText(t,e){this.setLeading(-e),this.moveText(t,e)}setTextMatrix(t,e,s,i,n,a){this.current.textMatrix=[t,e,s,i,n,a],this.current.textMatrixScale=Math.hypot(t,e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,e,s,i){const n=this.ctx,a=this.current,o=a.font,l=a.textRenderingMode,c=a.fontSize/a.fontSizeScale,d=l&Ft.FILL_STROKE_MASK,u=!!(l&Ft.ADD_TO_PATH_FLAG),p=a.patternFill&&!o.missingFile;let g;(o.disableFontFace||u||p)&&(g=o.getPathGenerator(this.commonObjs,t)),o.disableFontFace||p?(n.save(),n.translate(e,s),n.beginPath(),g(n,c),i&&n.setTransform(...i),(d===Ft.FILL||d===Ft.FILL_STROKE)&&n.fill(),(d===Ft.STROKE||d===Ft.FILL_STROKE)&&n.stroke(),n.restore()):((d===Ft.FILL||d===Ft.FILL_STROKE)&&n.fillText(t,e,s),(d===Ft.STROKE||d===Ft.FILL_STROKE)&&n.strokeText(t,e,s)),u&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:lt(n),x:e,y:s,fontSize:c,addToPath:g})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const e=t.getImageData(0,0,10,10).data;let s=!1;for(let i=3;i0&&e[i]<255){s=!0;break}return X(this,"isFontSubpixelAAEnabled",s)}showText(t){const e=this.current,s=e.font;if(s.isType3Font)return this.showType3Text(t);const i=e.fontSize;if(i===0)return;const n=this.ctx,a=e.fontSizeScale,o=e.charSpacing,l=e.wordSpacing,c=e.fontDirection,d=e.textHScale*c,u=t.length,p=s.vertical,g=p?1:-1,A=s.defaultVMetrics,v=i*e.fontMatrix[0],_=e.textRenderingMode===Ft.FILL&&!s.disableFontFace&&!e.patternFill;n.save(),n.transform(...e.textMatrix),n.translate(e.x,e.y+e.textRise),c>0?n.scale(d,-1):n.scale(d,1);let y;if(e.patternFill){n.save();const C=e.fillColor.getPattern(n,this,is(n),Wt.FILL);y=lt(n),n.restore(),n.fillStyle=C}let E=e.lineWidth;const w=e.textMatrixScale;if(w===0||E===0){const C=e.textRenderingMode&Ft.FILL_STROKE_MASK;(C===Ft.STROKE||C===Ft.FILL_STROKE)&&(E=this.getSinglePixelWidth())}else E/=w;if(a!==1&&(n.scale(a,a),E/=a),n.lineWidth=E,s.isInvalidPDFjsFont){const C=[];let R=0;for(const P of t)C.push(P.unicode),R+=P.width;n.fillText(C.join(""),0,0),e.x+=R*v*d,n.restore(),this.compose();return}let S=0,x;for(x=0;x0){const z=n.measureText(M).width*1e3/i*a;if(Dnew Bf(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};e=new Ou(t,s,this.ctx,n,i)}else e=this._getPattern(t[1],t[2]);return e}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,e,s){const i=k.makeHexColor(t,e,s);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(t,e,s){const i=k.makeHexColor(t,e,s);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(t,e=null){let s;return this.cachedPatterns.has(t)?s=this.cachedPatterns.get(t):(s=_b(this.getObject(t)),this.cachedPatterns.set(t,s)),e&&(s.matrix=e),s}shadingFill(t){if(!this.contentVisible)return;const e=this.ctx;this.save();const s=this._getPattern(t);e.fillStyle=s.getPattern(e,this,is(e),Wt.SHADING);const i=is(e);if(i){const{width:n,height:a}=e.canvas,[o,l,c,d]=k.getAxialAlignedBoundingBox([0,0,n,a],i);this.ctx.fillRect(o,l,c-o,d-l)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){tt("Should not call beginInlineImage")}beginImageData(){tt("Should not call beginImageData")}paintFormXObjectBegin(t,e){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=lt(this.ctx),e)){const s=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],s,i),this.current.updateRectMinMax(lt(this.ctx),e),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const e=this.ctx;t.isolated||Bd("TODO: Support non-isolated groups."),t.knockout&&V("Knockout groups not supported.");const s=lt(e);if(t.matrix&&e.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let i=k.getAxialAlignedBoundingBox(t.bbox,lt(e));const n=[0,0,e.canvas.width,e.canvas.height];i=k.intersect(i,n)||[0,0,0,0];const a=Math.floor(i[0]),o=Math.floor(i[1]),l=Math.max(Math.ceil(i[2])-a,1),c=Math.max(Math.ceil(i[3])-o,1);this.current.startNewPathAndClipBox([0,0,l,c]);let d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);const u=this.cachedCanvases.getCanvas(d,l,c),p=u.context;p.translate(-a,-o),p.transform(...s),t.smask?this.smaskStack.push({canvas:u.canvas,context:p,offsetX:a,offsetY:o,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,o),e.save()),_a(e,p),this.ctx=p,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const e=this.ctx,s=this.groupStack.pop();if(this.ctx=s,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=lt(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const n=k.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],i);this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(t,e,s,i,n){if(b(this,Oo,Nu).call(this),yh(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),e){const a=e[2]-e[0],o=e[3]-e[1];if(n&&this.annotationCanvasMap){s=s.slice(),s[4]-=e[0],s[5]-=e[1],e=e.slice(),e[0]=e[1]=0,e[2]=a,e[3]=o;const[l,c]=k.singularValueDecompose2dScale(lt(this.ctx)),{viewportScale:d}=this,u=Math.ceil(a*this.outputScaleX*d),p=Math.ceil(o*this.outputScaleY*d);this.annotationCanvas=this.canvasFactory.create(u,p);const{canvas:g,context:A}=this.annotationCanvas;this.annotationCanvasMap.set(t,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=A,this.ctx.save(),this.ctx.setTransform(l,0,0,-c,0,o*c),yh(this.ctx)}else yh(this.ctx),this.ctx.rect(e[0],e[1],a,o),this.ctx.clip(),this.endPath()}this.current=new Kf(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...s),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),b(this,No,Hu).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const e=t.count;t=this.getObject(t.data,t),t.count=e;const s=this.ctx,i=this.processingType3;if(i&&(i.compiled===void 0&&(i.compiled=Cb(t)),i.compiled)){i.compiled(s);return}const n=this._createMaskCanvas(t),a=n.canvas;s.save(),s.setTransform(1,0,0,1,0,0),s.drawImage(a,n.offsetX,n.offsetY),s.restore(),this.compose()}paintImageMaskXObjectRepeat(t,e,s=0,i=0,n,a){if(!this.contentVisible)return;t=this.getObject(t.data,t);const o=this.ctx;o.save();const l=lt(o);o.transform(e,s,i,n,0,0);const c=this._createMaskCanvas(t);o.setTransform(1,0,0,1,c.offsetX-l[4],c.offsetY-l[5]);for(let d=0,u=a.length;du?d/u:1,o=c>u?c/u:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:e}=this,{lineWidth:s}=this.current,[i,n]=this.getScaleForStroking();if(e.lineWidth=s||1,i===1&&n===1){e.stroke();return}const a=e.getLineDash();if(t&&e.save(),e.scale(i,n),a.length>0){const o=Math.max(i,n);e.setLineDash(a.map(l=>l/o)),e.lineDashOffset/=o}e.stroke(),t&&e.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};Oo=new WeakSet,Nu=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},No=new WeakSet,Hu=function(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const e=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}};let Kn=Bf;for(const h in Ee)Kn.prototype[h]!==void 0&&(Kn.prototype[Ee[h]]=Kn.prototype[h]);var Ho,Bo;class Os{static get workerPort(){return r(this,Ho)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");m(this,Ho,t)}static get workerSrc(){return r(this,Bo)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");m(this,Bo,t)}}Ho=new WeakMap,Bo=new WeakMap,f(Os,Ho,null),f(Os,Bo,"");const _h={UNKNOWN:0,DATA:1,ERROR:2},gt={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function ne(h){switch(h instanceof Error||typeof h=="object"&&h!==null||tt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),h.name){case"AbortException":return new Hn(h.message);case"MissingPDFException":return new Nn(h.message);case"PasswordException":return new lu(h.message,h.code);case"UnexpectedResponseException":return new jd(h.message,h.status);case"UnknownErrorException":return new hu(h.message,h.details);default:return new hu(h.message,h.toString())}}var Dc,Qp,Fc,Jp,br,Lh;class Pa{constructor(t,e,s){f(this,Dc);f(this,Fc);f(this,br);this.sourceName=t,this.targetName=e,this.comObj=s,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=i=>{const n=i.data;if(n.targetName!==this.sourceName)return;if(n.stream){b(this,Fc,Jp).call(this,n);return}if(n.callback){const o=n.callbackId,l=this.callbackCapabilities[o];if(!l)throw new Error(`Cannot resolve callback ${o}`);if(delete this.callbackCapabilities[o],n.callback===_h.DATA)l.resolve(n.data);else if(n.callback===_h.ERROR)l.reject(ne(n.reason));else throw new Error("Unexpected callback case");return}const a=this.actionHandler[n.action];if(!a)throw new Error(`Unknown action from worker: ${n.action}`);if(n.callbackId){const o=this.sourceName,l=n.sourceName;new Promise(function(c){c(a(n.data))}).then(function(c){s.postMessage({sourceName:o,targetName:l,callback:_h.DATA,callbackId:n.callbackId,data:c})},function(c){s.postMessage({sourceName:o,targetName:l,callback:_h.ERROR,callbackId:n.callbackId,reason:ne(c)})});return}if(n.streamId){b(this,Dc,Qp).call(this,n);return}a(n.data)},s.addEventListener("message",this._onComObjOnMessage)}on(t,e){const s=this.actionHandler;if(s[t])throw new Error(`There is already an actionName called "${t}"`);s[t]=e}send(t,e,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},s)}sendWithPromise(t,e,s){const i=this.callbackId++,n=Promise.withResolvers();this.callbackCapabilities[i]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:e},s)}catch(a){n.reject(a)}return n.promise}sendWithStream(t,e,s,i){const n=this.streamId++,a=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:c=>{const d=Promise.withResolvers();return this.streamControllers[n]={controller:c,startCall:d,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:a,targetName:o,action:t,streamId:n,data:e,desiredSize:c.desiredSize},i),d.promise},pull:c=>{const d=Promise.withResolvers();return this.streamControllers[n].pullCall=d,l.postMessage({sourceName:a,targetName:o,stream:gt.PULL,streamId:n,desiredSize:c.desiredSize}),d.promise},cancel:c=>{_t(c instanceof Error,"cancel must have a valid reason");const d=Promise.withResolvers();return this.streamControllers[n].cancelCall=d,this.streamControllers[n].isClosed=!0,l.postMessage({sourceName:a,targetName:o,stream:gt.CANCEL,streamId:n,reason:ne(c)}),d.promise}},s)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}Dc=new WeakSet,Qp=function(t){const e=t.streamId,s=this.sourceName,i=t.sourceName,n=this.comObj,a=this,o=this.actionHandler[t.action],l={enqueue(c,d=1,u){if(this.isCancelled)return;const p=this.desiredSize;this.desiredSize-=d,p>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:s,targetName:i,stream:gt.ENQUEUE,streamId:e,chunk:c},u)},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:s,targetName:i,stream:gt.CLOSE,streamId:e}),delete a.streamSinks[e])},error(c){_t(c instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,n.postMessage({sourceName:s,targetName:i,stream:gt.ERROR,streamId:e,reason:ne(c)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[e]=l,new Promise(function(c){c(o(t.data,l))}).then(function(){n.postMessage({sourceName:s,targetName:i,stream:gt.START_COMPLETE,streamId:e,success:!0})},function(c){n.postMessage({sourceName:s,targetName:i,stream:gt.START_COMPLETE,streamId:e,reason:ne(c)})})},Fc=new WeakSet,Jp=function(t){const e=t.streamId,s=this.sourceName,i=t.sourceName,n=this.comObj,a=this.streamControllers[e],o=this.streamSinks[e];switch(t.stream){case gt.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(ne(t.reason));break;case gt.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(ne(t.reason));break;case gt.PULL:if(!o){n.postMessage({sourceName:s,targetName:i,stream:gt.PULL_COMPLETE,streamId:e,success:!0});break}o.desiredSize<=0&&t.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=t.desiredSize,new Promise(function(l){var c;l((c=o.onPull)==null?void 0:c.call(o))}).then(function(){n.postMessage({sourceName:s,targetName:i,stream:gt.PULL_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:gt.PULL_COMPLETE,streamId:e,reason:ne(l)})});break;case gt.ENQUEUE:if(_t(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case gt.CLOSE:if(_t(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),b(this,br,Lh).call(this,a,e);break;case gt.ERROR:_t(a,"error should have stream controller"),a.controller.error(ne(t.reason)),b(this,br,Lh).call(this,a,e);break;case gt.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(ne(t.reason)),b(this,br,Lh).call(this,a,e);break;case gt.CANCEL:if(!o)break;new Promise(function(l){var c;l((c=o.onCancel)==null?void 0:c.call(o,ne(t.reason)))}).then(function(){n.postMessage({sourceName:s,targetName:i,stream:gt.CANCEL_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:gt.CANCEL_COMPLETE,streamId:e,reason:ne(l)})}),o.sinkCapability.reject(ne(t.reason)),o.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}},br=new WeakSet,Lh=async function(t,e){var s,i,n;await Promise.allSettled([(s=t.startCall)==null?void 0:s.promise,(i=t.pullCall)==null?void 0:i.promise,(n=t.cancelCall)==null?void 0:n.promise]),delete this.streamControllers[e]};var Gi,jo;class Lb{constructor({parsedData:t,rawData:e}){f(this,Gi,void 0);f(this,jo,void 0);m(this,Gi,t),m(this,jo,e)}getRaw(){return r(this,jo)}get(t){return r(this,Gi).get(t)??null}getAll(){return Tf(r(this,Gi))}has(t){return r(this,Gi).has(t)}}Gi=new WeakMap,jo=new WeakMap;const Us=Symbol("INTERNAL");var Uo,$o,zo,Ar;class kb{constructor(t,{name:e,intent:s,usage:i}){f(this,Uo,!1);f(this,$o,!1);f(this,zo,!1);f(this,Ar,!0);m(this,Uo,!!(t&Ae.DISPLAY)),m(this,$o,!!(t&Ae.PRINT)),this.name=e,this.intent=s,this.usage=i}get visible(){if(r(this,zo))return r(this,Ar);if(!r(this,Ar))return!1;const{print:t,view:e}=this.usage;return r(this,Uo)?(e==null?void 0:e.viewState)!=="OFF":r(this,$o)?(t==null?void 0:t.printState)!=="OFF":!0}_setVisible(t,e,s=!1){t!==Us&&tt("Internal method `_setVisible` called."),m(this,zo,s),m(this,Ar,e)}}Uo=new WeakMap,$o=new WeakMap,zo=new WeakMap,Ar=new WeakMap;var Js,Z,vr,yr,Vo,Bu;class Mb{constructor(t,e=Ae.DISPLAY){f(this,Vo);f(this,Js,null);f(this,Z,new Map);f(this,vr,null);f(this,yr,null);if(this.renderingIntent=e,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,m(this,yr,t.order);for(const s of t.groups)r(this,Z).set(s.id,new kb(e,s));if(t.baseState==="OFF")for(const s of r(this,Z).values())s._setVisible(Us,!1);for(const s of t.on)r(this,Z).get(s)._setVisible(Us,!0);for(const s of t.off)r(this,Z).get(s)._setVisible(Us,!1);m(this,vr,this.getHash())}}isVisible(t){if(r(this,Z).size===0)return!0;if(!t)return Bd("Optional content group not defined."),!0;if(t.type==="OCG")return r(this,Z).has(t.id)?r(this,Z).get(t.id).visible:(V(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return b(this,Vo,Bu).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(const e of t.ids){if(!r(this,Z).has(e))return V(`Optional content group not found: ${e}`),!0;if(r(this,Z).get(e).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const e of t.ids){if(!r(this,Z).has(e))return V(`Optional content group not found: ${e}`),!0;if(!r(this,Z).get(e).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const e of t.ids){if(!r(this,Z).has(e))return V(`Optional content group not found: ${e}`),!0;if(!r(this,Z).get(e).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const e of t.ids){if(!r(this,Z).has(e))return V(`Optional content group not found: ${e}`),!0;if(r(this,Z).get(e).visible)return!1}return!0}return V(`Unknown optional content policy ${t.policy}.`),!0}return V(`Unknown group type ${t.type}.`),!0}setVisibility(t,e=!0){const s=r(this,Z).get(t);if(!s){V(`Optional content group not found: ${t}`);return}s._setVisible(Us,!!e,!0),m(this,Js,null)}setOCGState({state:t,preserveRB:e}){let s;for(const i of t){switch(i){case"ON":case"OFF":case"Toggle":s=i;continue}const n=r(this,Z).get(i);if(n)switch(s){case"ON":n._setVisible(Us,!0);break;case"OFF":n._setVisible(Us,!1);break;case"Toggle":n._setVisible(Us,!n.visible);break}}m(this,Js,null)}get hasInitialVisibility(){return r(this,vr)===null||this.getHash()===r(this,vr)}getOrder(){return r(this,Z).size?r(this,yr)?r(this,yr).slice():[...r(this,Z).keys()]:null}getGroups(){return r(this,Z).size>0?Tf(r(this,Z)):null}getGroup(t){return r(this,Z).get(t)||null}getHash(){if(r(this,Js)!==null)return r(this,Js);const t=new qp;for(const[e,s]of r(this,Z))t.update(`${e}:${s.visible}`);return m(this,Js,t.hexdigest())}}Js=new WeakMap,Z=new WeakMap,vr=new WeakMap,yr=new WeakMap,Vo=new WeakSet,Bu=function(t){const e=t.length;if(e<2)return!0;const s=t[0];for(let i=1;i0){const l=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!s,this._isRangeSupported=!e,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((l,c)=>{this._onReceiveData({begin:l,chunk:c})}),t.addProgressListener((l,c)=>{this._onProgress({loaded:l,total:c})}),t.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:e}){const s=e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(s):this._queuedChunks.push(s);else{const i=this._rangeReaders.some(function(n){return n._begin!==t?!1:(n._enqueue(s),!0)});_t(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}_onProgress(t){var e,s,i,n;t.total===void 0?(s=(e=this._rangeReaders[0])==null?void 0:e.onProgress)==null||s.call(e,{loaded:t.loaded}):(n=(i=this._fullRequestReader)==null?void 0:i.onProgress)==null||n.call(i,{loaded:t.loaded,total:t.total})}_onProgressiveDone(){var t;(t=this._fullRequestReader)==null||t.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}getFullReader(){_t(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new Db(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const s=new Fb(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(s),s}cancelAllRequests(t){var e;(e=this._fullRequestReader)==null||e.cancel(t);for(const s of this._rangeReaders.slice(0))s.cancel(t);this._pdfDataRangeTransport.abort()}}class Db{constructor(t,e,s=!1,i=null){this._stream=t,this._done=s||!1,this._filename=Mf(i)?i:null,this._queuedChunks=e||[],this._loaded=0;for(const n of this._queuedChunks)this._loaded+=n.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Fb{constructor(t,e,s){this._stream=t,this._begin=e,this._end=s,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function Ob(h){let t=!0,e=s("filename\\*","i").exec(h);if(e){e=e[1];let d=o(e);return d=unescape(d),d=l(d),d=c(d),n(d)}if(e=a(h),e){const d=c(e);return n(d)}if(e=s("filename","i").exec(h),e){e=e[1];let d=o(e);return d=c(d),n(d)}function s(d,u){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',u)}function i(d,u){if(d){if(!/^[\x00-\xFF]+$/.test(u))return u;try{const p=new TextDecoder(d,{fatal:!0}),g=Ud(u);u=p.decode(g),t=!1}catch{}}return u}function n(d){return t&&/[\x80-\xff]/.test(d)&&(d=i("utf-8",d),t&&(d=i("iso-8859-1",d))),d}function a(d){const u=[];let p;const g=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(p=g.exec(d))!==null;){let[,v,_,y]=p;if(v=parseInt(v,10),v in u){if(v===0)break;continue}u[v]=[_,y]}const A=[];for(let v=0;v{if(!Zp(i.status))throw qd(i.status,s);this._reader=i.body.getReader(),this._headersCapability.resolve();const n=l=>i.headers.get(l),{allowRangeRequests:a,suggestedLength:o}=Ff({getResponseHeader:n,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=o||this._contentLength,this._filename=Of(n),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Hn("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._headersCapability.promise;const{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:sg(t),done:!1})}cancel(t){var e;(e=this._reader)==null||e.cancel(t),this._abortController.abort()}}class Hb{constructor(t,e,s){this._stream=t,this._reader=null,this._loaded=0;const i=t.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController,this._headers=eg(this._stream.httpHeaders),this._headers.append("Range",`bytes=${e}-${s-1}`);const n=i.url;fetch(n,tg(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!Zp(a.status))throw qd(a.status,n);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._readCapability.promise;const{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:sg(t),done:!1})}cancel(t){var e;(e=this._reader)==null||e.cancel(t),this._abortController.abort()}}const nu=200,ru=206;function Bb(h){const t=h.response;return typeof t!="string"?t:Ud(t).buffer}class jb{constructor(t,e={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&e.httpHeaders||Object.create(null),this.withCredentials=e.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,e,s){const i={begin:t,end:e};for(const n in s)i[n]=s[n];return this.request(i)}requestFull(t){return this.request(t)}request(t){const e=new XMLHttpRequest,s=this.currXhrId++,i=this.pendingRequests[s]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(const n in this.httpHeaders){const a=this.httpHeaders[n];a!==void 0&&e.setRequestHeader(n,a)}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),i.expectedStatus=ru):i.expectedStatus=nu,e.responseType="arraybuffer",t.onError&&(e.onerror=function(n){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,s),e.onprogress=this.onProgress.bind(this,s),i.onHeadersReceived=t.onHeadersReceived,i.onDone=t.onDone,i.onError=t.onError,i.onProgress=t.onProgress,e.send(null),s}onProgress(t,e){var i;const s=this.pendingRequests[t];s&&((i=s.onProgress)==null||i.call(s,e))}onStateChange(t,e){var l,c,d;const s=this.pendingRequests[t];if(!s)return;const i=s.xhr;if(i.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),i.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],i.status===0&&this.isHttp){(l=s.onError)==null||l.call(s,i.status);return}const n=i.status||nu;if(!(n===nu&&s.expectedStatus===ru)&&n!==s.expectedStatus){(c=s.onError)==null||c.call(s,i.status);return}const o=Bb(i);if(n===ru){const u=i.getResponseHeader("Content-Range"),p=/bytes (\d+)-(\d+)\/(\d+)/.exec(u);s.onDone({begin:parseInt(p[1],10),chunk:o})}else o?s.onDone({begin:0,chunk:o}):(d=s.onError)==null||d.call(s,i.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}class Ub{constructor(t){this._source=t,this._manager=new jb(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}getFullReader(){return _t(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new $b(this._manager,this._source),this._fullRequestReader}getRangeReader(t,e){const s=new zb(this._manager,t,e);return s.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var e;(e=this._fullRequestReader)==null||e.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class $b{constructor(t,e){this._manager=t;const s={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._fullRequestId=t.requestFull(s),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._contentLength=e.length,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,e=this._manager.getRequestXhr(t),s=a=>e.getResponseHeader(a),{allowRangeRequests:i,suggestedLength:n}=Ff({getResponseHeader:s,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=n||this._contentLength,this._filename=Of(s),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=qd(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){var e;(e=this.onProgress)==null||e.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class zb{constructor(t,e,s){this._manager=t;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(e,s,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var t;(t=this.onClosed)==null||t.call(this,this)}_onDone(t){const e=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0;for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=qd(t,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){var e;this.isStreamingSupported||(e=this.onProgress)==null||e.call(this,{loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const ig=/^file:\/\/\/[a-zA-Z]:\//;function Vb(h){const t=es.get("url"),e=t.parse(h);return e.protocol==="file:"||e.host?e:/^[a-z]:[/\\]/i.test(h)?t.parse(`file:///${h}`):(e.host||(e.protocol="file:"),e)}class Gb{constructor(t){this.source=t,this.url=Vb(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return _t(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new Xb(this):new Wb(this),this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const s=this.isFsUrl?new Yb(this,t,e):new qb(this,t,e);return this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var e;(e=this._fullRequestReader)==null||e.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class ng{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const e=t.source;this._contentLength=e.length,this._loaded=0,this._filename=null,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Hn("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class rg{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const e=t.source;this._isStreamingSupported=!e.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function Qh(h,t){return{protocol:h.protocol,auth:h.auth,host:h.hostname,port:h.port,path:h.path,method:"GET",headers:t}}class Wb extends ng{constructor(t){super(t);const e=s=>{if(s.statusCode===404){const o=new Nn(`Missing PDF "${this._url}".`);this._storedError=o,this._headersCapability.reject(o);return}this._headersCapability.resolve(),this._setReadableStream(s);const i=o=>this._readableStream.headers[o.toLowerCase()],{allowRangeRequests:n,suggestedLength:a}=Ff({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=n,this._contentLength=a||this._contentLength,this._filename=Of(i)};if(this._request=null,this._url.protocol==="http:"){const s=es.get("http");this._request=s.request(Qh(this._url,t.httpHeaders),e)}else{const s=es.get("https");this._request=s.request(Qh(this._url,t.httpHeaders),e)}this._request.on("error",s=>{this._storedError=s,this._headersCapability.reject(s)}),this._request.end()}}class qb extends rg{constructor(t,e,s){super(t),this._httpHeaders={};for(const n in t.httpHeaders){const a=t.httpHeaders[n];a!==void 0&&(this._httpHeaders[n]=a)}this._httpHeaders.Range=`bytes=${e}-${s-1}`;const i=n=>{if(n.statusCode===404){const a=new Nn(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(n)};if(this._request=null,this._url.protocol==="http:"){const n=es.get("http");this._request=n.request(Qh(this._url,this._httpHeaders),i)}else{const n=es.get("https");this._request=n.request(Qh(this._url,this._httpHeaders),i)}this._request.on("error",n=>{this._storedError=n}),this._request.end()}}class Xb extends ng{constructor(t){super(t);let e=decodeURIComponent(this._url.path);ig.test(this._url.href)&&(e=e.replace(/^\//,""));const s=es.get("fs");s.promises.lstat(e).then(i=>{this._contentLength=i.size,this._setReadableStream(s.createReadStream(e)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=new Nn(`Missing PDF "${e}".`)),this._storedError=i,this._headersCapability.reject(i)})}}class Yb extends rg{constructor(t,e,s){super(t);let i=decodeURIComponent(this._url.path);ig.test(this._url.href)&&(i=i.replace(/^\//,""));const n=es.get("fs");this._setReadableStream(n.createReadStream(i,{start:e,end:s-1}))}}const Kb=1e5,Xt=30,Qb=.8;var pp,Zs,Kt,Go,Wo,Wi,vs,qo,Xo,qi,_r,Er,ti,wr,Yo,Sr,Xi,Ko,Qo,Jt,Yi,Ki,xr,Oc,ag,Nc,og,Jo,ju,Cr,kh,Hc,lg;let Jh=(Jt=class{constructor({textContentSource:t,container:e,viewport:s}){f(this,Oc);f(this,Nc);f(this,Jo);f(this,Zs,Promise.withResolvers());f(this,Kt,null);f(this,Go,!1);f(this,Wo,!!((pp=globalThis.FontInspector)!=null&&pp.enabled));f(this,Wi,null);f(this,vs,null);f(this,qo,0);f(this,Xo,0);f(this,qi,null);f(this,_r,null);f(this,Er,0);f(this,ti,0);f(this,wr,Object.create(null));f(this,Yo,[]);f(this,Sr,null);f(this,Xi,[]);f(this,Ko,new WeakMap);f(this,Qo,null);if(t instanceof ReadableStream)m(this,Sr,t);else if(typeof t=="object")m(this,Sr,new ReadableStream({start(l){l.enqueue(t),l.close()}}));else throw new Error('No "textContentSource" parameter specified.');m(this,Kt,m(this,_r,e)),m(this,ti,s.scale*(globalThis.devicePixelRatio||1)),m(this,Er,s.rotation),m(this,vs,{prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null});const{pageWidth:i,pageHeight:n,pageX:a,pageY:o}=s.rawDims;m(this,Qo,[1,0,0,-1,-a,o+n]),m(this,Xo,i),m(this,qo,n),In(e,s),r(this,Zs).promise.catch(()=>{}).then(()=>{r(Jt,xr).delete(this),m(this,vs,null),m(this,wr,null)})}render(){const t=()=>{r(this,qi).read().then(({value:e,done:s})=>{if(s){r(this,Zs).resolve();return}r(this,Wi)??m(this,Wi,e.lang),Object.assign(r(this,wr),e.styles),b(this,Oc,ag).call(this,e.items),t()},r(this,Zs).reject)};return m(this,qi,r(this,Sr).getReader()),r(Jt,xr).add(this),t(),r(this,Zs).promise}update({viewport:t,onBefore:e=null}){var n;const s=t.scale*(globalThis.devicePixelRatio||1),i=t.rotation;if(i!==r(this,Er)&&(e==null||e(),m(this,Er,i),In(r(this,_r),{rotation:i})),s!==r(this,ti)){e==null||e(),m(this,ti,s);const a={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:b(n=Jt,Cr,kh).call(n,r(this,Wi))};for(const o of r(this,Xi))a.properties=r(this,Ko).get(o),a.div=o,b(this,Jo,ju).call(this,a)}}cancel(){var e;const t=new Hn("TextLayer task cancelled.");(e=r(this,qi))==null||e.cancel(t).catch(()=>{}),m(this,qi,null),r(this,Zs).reject(t)}get textDivs(){return r(this,Xi)}get textContentItemsStr(){return r(this,Yo)}static cleanup(){if(!(r(this,xr).size>0)){r(this,Yi).clear();for(const{canvas:t}of r(this,Ki).values())t.remove();r(this,Ki).clear()}}},Zs=new WeakMap,Kt=new WeakMap,Go=new WeakMap,Wo=new WeakMap,Wi=new WeakMap,vs=new WeakMap,qo=new WeakMap,Xo=new WeakMap,qi=new WeakMap,_r=new WeakMap,Er=new WeakMap,ti=new WeakMap,wr=new WeakMap,Yo=new WeakMap,Sr=new WeakMap,Xi=new WeakMap,Ko=new WeakMap,Qo=new WeakMap,Yi=new WeakMap,Ki=new WeakMap,xr=new WeakMap,Oc=new WeakSet,ag=function(t){var i,n;if(r(this,Go))return;(n=r(this,vs)).ctx||(n.ctx=b(i=Jt,Cr,kh).call(i,r(this,Wi)));const e=r(this,Xi),s=r(this,Yo);for(const a of t){if(e.length>Kb){V("Ignoring additional textDivs for performance reasons."),m(this,Go,!0);return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){const o=r(this,Kt);m(this,Kt,document.createElement("span")),r(this,Kt).classList.add("markedContent"),a.id!==null&&r(this,Kt).setAttribute("id",`${a.id}`),o.append(r(this,Kt))}else a.type==="endMarkedContent"&&m(this,Kt,r(this,Kt).parentNode);continue}s.push(a.str),b(this,Nc,og).call(this,a)}},Nc=new WeakSet,og=function(t){var v;const e=document.createElement("span"),s={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};r(this,Xi).push(e);const i=k.transform(r(this,Qo),t.transform);let n=Math.atan2(i[1],i[0]);const a=r(this,wr)[t.fontName];a.vertical&&(n+=Math.PI/2);const o=r(this,Wo)&&a.fontSubstitution||a.fontFamily,l=Math.hypot(i[2],i[3]),c=l*b(v=Jt,Hc,lg).call(v,o,r(this,Wi));let d,u;n===0?(d=i[4],u=i[5]-c):(d=i[4]+c*Math.sin(n),u=i[5]-c*Math.cos(n));const p="calc(var(--scale-factor)*",g=e.style;r(this,Kt)===r(this,_r)?(g.left=`${(100*d/r(this,Xo)).toFixed(2)}%`,g.top=`${(100*u/r(this,qo)).toFixed(2)}%`):(g.left=`${p}${d.toFixed(2)}px)`,g.top=`${p}${u.toFixed(2)}px)`),g.fontSize=`${p}${l.toFixed(2)}px)`,g.fontFamily=o,s.fontSize=l,e.setAttribute("role","presentation"),e.textContent=t.str,e.dir=t.dir,r(this,Wo)&&(e.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),n!==0&&(s.angle=n*(180/Math.PI));let A=!1;if(t.str.length>1)A=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const _=Math.abs(t.transform[0]),y=Math.abs(t.transform[3]);_!==y&&Math.max(_,y)/Math.min(_,y)>1.5&&(A=!0)}if(A&&(s.canvasWidth=a.vertical?t.height:t.width),r(this,Ko).set(e,s),r(this,vs).div=e,r(this,vs).properties=s,b(this,Jo,ju).call(this,r(this,vs)),s.hasText&&r(this,Kt).append(e),s.hasEOL){const _=document.createElement("br");_.setAttribute("role","presentation"),r(this,Kt).append(_)}},Jo=new WeakSet,ju=function(t){const{div:e,properties:s,ctx:i,prevFontSize:n,prevFontFamily:a}=t,{style:o}=e;let l="";if(s.canvasWidth!==0&&s.hasText){const{fontFamily:c}=o,{canvasWidth:d,fontSize:u}=s;(n!==u||a!==c)&&(i.font=`${u*r(this,ti)}px ${c}`,t.prevFontSize=u,t.prevFontFamily=c);const{width:p}=i.measureText(e.textContent);p>0&&(l=`scaleX(${d*r(this,ti)/p})`)}s.angle!==0&&(l=`rotate(${s.angle}deg) ${l}`),l.length>0&&(o.transform=l)},Cr=new WeakSet,kh=function(t=null){let e=r(this,Ki).get(t||(t=""));if(!e){const s=document.createElement("canvas");s.className="hiddenCanvasElement",s.lang=t,document.body.append(s),e=s.getContext("2d",{alpha:!1}),r(this,Ki).set(t,e)}return e},Hc=new WeakSet,lg=function(t,e){const s=r(this,Yi).get(t);if(s)return s;const i=b(this,Cr,kh).call(this,e),n=i.font;i.canvas.width=i.canvas.height=Xt,i.font=`${Xt}px ${t}`;const a=i.measureText("");let o=a.fontBoundingBoxAscent,l=Math.abs(a.fontBoundingBoxDescent);if(o){const u=o/(o+l);return r(this,Yi).set(t,u),i.canvas.width=i.canvas.height=0,i.font=n,u}i.strokeStyle="red",i.clearRect(0,0,Xt,Xt),i.strokeText("g",0,0);let c=i.getImageData(0,0,Xt,Xt).data;l=0;for(let u=c.length-1-3;u>=0;u-=4)if(c[u]>0){l=Math.ceil(u/4/Xt);break}i.clearRect(0,0,Xt,Xt),i.strokeText("A",0,Xt),c=i.getImageData(0,0,Xt,Xt).data,o=0;for(let u=0,p=c.length;u0){o=Xt-Math.floor(u/4/Xt);break}i.canvas.width=i.canvas.height=0,i.font=n;const d=o?o/(o+l):Qb;return r(this,Yi).set(t,d),d},f(Jt,Cr),f(Jt,Hc),f(Jt,Yi,new Map),f(Jt,Ki,new Map),f(Jt,xr,new Set),Jt);function Jb(){wp("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:h,container:t,viewport:e,...s}=arguments[0],i=Object.keys(s);i.length>0&&V("Ignoring `renderTextLayer` parameters: "+i.join(", "));const n=new Jh({textContentSource:h,container:t,viewport:e}),{textDivs:a,textContentItemsStr:o}=n;return{promise:n.render(),textDivs:a,textContentItemsStr:o}}function Zb(){wp("`updateTextLayer`, please use `TextLayer` instead.")}class Ua{static textContent(t){const e=[],s={items:e,styles:Object.create(null)};function i(n){var l;if(!n)return;let a=null;const o=n.name;if(o==="#text")a=n.value;else if(Ua.shouldBuildText(o))(l=n==null?void 0:n.attributes)!=null&&l.textContent?a=n.attributes.textContent:n.value&&(a=n.value);else return;if(a!==null&&e.push({str:a}),!!n.children)for(const c of n.children)i(c)}return i(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const tA=65536,eA=100,sA=5e3,iA=Bt?pb:eb,nA=Bt?gb:_p,rA=Bt?fb:tb,aA=Bt?mb:Ep;function oA(h){if(typeof h=="string"||h instanceof URL?h={url:h}:(h instanceof ArrayBuffer||ArrayBuffer.isView(h))&&(h={data:h}),typeof h!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!h.url&&!h.data&&!h.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const t=new Uu,{docId:e}=t,s=h.url?lA(h.url):null,i=h.data?hA(h.data):null,n=h.httpHeaders||null,a=h.withCredentials===!0,o=h.password??null,l=h.range instanceof hg?h.range:null,c=Number.isInteger(h.rangeChunkSize)&&h.rangeChunkSize>0?h.rangeChunkSize:tA;let d=h.worker instanceof Qn?h.worker:null;const u=h.verbosity,p=typeof h.docBaseUrl=="string"&&!kf(h.docBaseUrl)?h.docBaseUrl:null,g=typeof h.cMapUrl=="string"?h.cMapUrl:null,A=h.cMapPacked!==!1,v=h.CMapReaderFactory||nA,_=typeof h.standardFontDataUrl=="string"?h.standardFontDataUrl:null,y=h.StandardFontDataFactory||aA,E=h.stopAtErrors!==!0,w=Number.isInteger(h.maxImageSize)&&h.maxImageSize>-1?h.maxImageSize:-1,S=h.isEvalSupported!==!1,x=typeof h.isOffscreenCanvasSupported=="boolean"?h.isOffscreenCanvasSupported:!Bt,C=Number.isInteger(h.canvasMaxAreaInBytes)?h.canvasMaxAreaInBytes:-1,R=typeof h.disableFontFace=="boolean"?h.disableFontFace:Bt,P=h.fontExtraProperties===!0,M=h.enableXfa===!0,O=h.ownerDocument||globalThis.document,T=h.disableRange===!0,$=h.disableStream===!0,D=h.disableAutoFetch===!0,I=h.pdfBug===!0,z=l?l.length:h.length??NaN,Y=typeof h.useSystemFonts=="boolean"?h.useSystemFonts:!Bt&&!R,L=typeof h.useWorkerFetch=="boolean"?h.useWorkerFetch:v===_p&&y===Ep&&g&&_&&Ca(g,document.baseURI)&&Ca(_,document.baseURI),H=h.canvasFactory||new iA({ownerDocument:O}),jt=h.filterFactory||new rA({docId:e,ownerDocument:O}),ue=null;zm(u);const ee={canvasFactory:H,filterFactory:jt};if(L||(ee.cMapReaderFactory=new v({baseUrl:g,isCompressed:A}),ee.standardFontDataFactory=new y({baseUrl:_})),!d){const Dt={verbosity:u,port:Os.workerPort};d=Dt.port?Qn.fromPort(Dt):new Qn(Dt),t._worker=d}const dt={docId:e,apiVersion:"4.3.136",data:i,password:o,disableAutoFetch:D,rangeChunkSize:c,length:z,docBaseUrl:p,enableXfa:M,evaluatorOptions:{maxImageSize:w,disableFontFace:R,ignoreErrors:E,isEvalSupported:S,isOffscreenCanvasSupported:x,canvasMaxAreaInBytes:C,fontExtraProperties:P,useSystemFonts:Y,cMapUrl:L?g:null,standardFontDataUrl:L?_:null}},ot={disableFontFace:R,fontExtraProperties:P,ownerDocument:O,pdfBug:I,styleElement:ue,loadingParams:{disableAutoFetch:D,enableXfa:M}};return d.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const Dt=d.messageHandler.sendWithPromise("GetDocRequest",dt,i?[i.buffer]:null);let ve;return l?ve=new Ib(l,{disableRange:T,disableStream:$}):i||(ve=(K=>Bt?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&Ca(K.url)?new ep(K):new Gb(K):Ca(K.url)?new ep(K):new Ub(K))({url:s,length:z,httpHeaders:n,withCredentials:a,rangeChunkSize:c,disableRange:T,disableStream:$})),Dt.then(qt=>{if(t.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const K=new Pa(e,qt,d.port),jn=new fA(K,t,ve,ot,ee);t._transport=jn,K.send("Ready",null)})}).catch(t._capability.reject),t}function lA(h){if(h instanceof URL)return h.href;try{return new URL(h,window.location).href}catch{if(Bt&&typeof h=="string")return h}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function hA(h){if(Bt&&typeof Buffer<"u"&&h instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(h instanceof Uint8Array&&h.byteLength===h.buffer.byteLength)return h;if(typeof h=="string")return Ud(h);if(h instanceof ArrayBuffer||ArrayBuffer.isView(h)||typeof h=="object"&&!isNaN(h==null?void 0:h.length))return new Uint8Array(h);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function sp(h){return typeof h=="object"&&Number.isInteger(h==null?void 0:h.num)&&h.num>=0&&Number.isInteger(h==null?void 0:h.gen)&&h.gen>=0}var Bc;const jc=class jc{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${ie(jc,Bc)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var t,e,s;this.destroyed=!0;try{(t=this._worker)!=null&&t.port&&(this._worker._pendingDestroy=!0),await((e=this._transport)==null?void 0:e.destroy())}catch(i){throw(s=this._worker)!=null&&s.port&&delete this._worker._pendingDestroy,i}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};Bc=new WeakMap,f(jc,Bc,0);let Uu=jc,hg=class{constructor(t,e,s=!1,i=null){this.length=t,this.initialData=e,this.progressiveDone=s,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,e){for(const s of this._rangeListeners)s(t,e)}onDataProgress(t,e){this._readyCapability.promise.then(()=>{for(const s of this._progressListeners)s(t,e)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const e of this._progressiveReadListeners)e(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,e){tt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class cA{constructor(t,e){this._pdfInfo=t,this._transport=e}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return X(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(e)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}var ei,ys,si,Wn,Tr,Mh;class dA{constructor(t,e,s,i=!1){f(this,si);f(this,Tr);f(this,ei,null);f(this,ys,!1);this._pageIndex=t,this._pageInfo=e,this._transport=s,this._stats=i?new $f:null,this._pdfBug=i,this.commonObjs=s.commonObjs,this.objs=new cg,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:e=this.rotate,offsetX:s=0,offsetY:i=0,dontFlip:n=!1}={}){return new ch({viewBox:this.view,scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}getAnnotations({intent:t="display"}={}){const{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,e)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return X(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var t;return((t=this._transport._htmlForXfa)==null?void 0:t.children[this._pageIndex])||null}render({canvasContext:t,viewport:e,intent:s="display",annotationMode:i=zs.ENABLE,transform:n=null,background:a=null,optionalContentConfigPromise:o=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:d=null}){var w,S;(w=this._stats)==null||w.time("Overall");const u=this._transport.getRenderingIntent(s,i,d),{renderingIntent:p,cacheKey:g}=u;m(this,ys,!1),b(this,Tr,Mh).call(this),o||(o=this._transport.getOptionalContentConfig(p));let A=this._intentStates.get(g);A||(A=Object.create(null),this._intentStates.set(g,A)),A.streamReaderCancelTimeout&&(clearTimeout(A.streamReaderCancelTimeout),A.streamReaderCancelTimeout=null);const v=!!(p&Ae.PRINT);A.displayReadyCapability||(A.displayReadyCapability=Promise.withResolvers(),A.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(S=this._stats)==null||S.time("Page Request"),this._pumpOperatorList(u));const _=x=>{var C;A.renderTasks.delete(y),(this._maybeCleanupAfterRender||v)&&m(this,ys,!0),b(this,si,Wn).call(this,!v),x?(y.capability.reject(x),this._abortOperatorList({intentState:A,reason:x instanceof Error?x:new Error(x)})):y.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(C=globalThis.Stats)!=null&&C.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},y=new zu({callback:_,params:{canvasContext:t,viewport:e,transform:n,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:A.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:c});(A.renderTasks||(A.renderTasks=new Set)).add(y);const E=y.task;return Promise.all([A.displayReadyCapability.promise,o]).then(([x,C])=>{var R;if(this.destroyed){_();return}if((R=this._stats)==null||R.time("Rendering"),!(C.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");y.initializeGraphics({transparency:x,optionalContentConfig:C}),y.operatorListChanged()}).catch(_),E}getOperatorList({intent:t="display",annotationMode:e=zs.ENABLE,printAnnotationStorage:s=null}={}){var l;function i(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(o))}const n=this._transport.getRenderingIntent(t,e,s,!0);let a=this._intentStates.get(n.cacheKey);a||(a=Object.create(null),this._intentStates.set(n.cacheKey,a));let o;return a.opListReadCapability||(o=Object.create(null),o.operatorListChanged=i,a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||(a.renderTasks=new Set)).add(o),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(l=this._stats)==null||l.time("Page Request"),this._pumpOperatorList(n)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:e=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:e===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(s=>Ua.textContent(s));const e=this.streamTextContent(t);return new Promise(function(s,i){function n(){a.read().then(function({value:l,done:c}){if(c){s(o);return}o.lang??(o.lang=l.lang),Object.assign(o.styles,l.styles),o.items.push(...l.items),n()},i)}const a=e.getReader(),o={items:[],styles:Object.create(null),lang:null};n()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(const s of e.renderTasks)t.push(s.completed),s.cancel();return this.objs.clear(),m(this,ys,!1),b(this,Tr,Mh).call(this),Promise.all(t)}cleanup(t=!1){m(this,ys,!0);const e=b(this,si,Wn).call(this,!1);return t&&e&&this._stats&&(this._stats=new $f),e}_startRenderPage(t,e){var i,n;const s=this._intentStates.get(e);s&&((i=this._stats)==null||i.timeEnd("Page Request"),(n=s.displayReadyCapability)==null||n.resolve(t))}_renderPageChunk(t,e){for(let s=0,i=t.length;s{o.read().then(({value:d,done:u})=>{if(u){l.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(d,l),c())},d=>{if(l.streamReader=null,!this._transport.destroyed){if(l.operatorList){l.operatorList.lastChunk=!0;for(const u of l.renderTasks)u.operatorListChanged();b(this,si,Wn).call(this,!0)}if(l.displayReadyCapability)l.displayReadyCapability.reject(d);else if(l.opListReadCapability)l.opListReadCapability.reject(d);else throw d}})};c()}_abortOperatorList({intentState:t,reason:e,force:s=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!s){if(t.renderTasks.size>0)return;if(e instanceof Lf){let i=eA;e.extraDelay>0&&e.extraDelay<1e3&&(i+=e.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:e,force:!0})},i);return}}if(t.streamReader.cancel(new Hn(e.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[i,n]of this._intentStates)if(n===t){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}ei=new WeakMap,ys=new WeakMap,si=new WeakSet,Wn=function(t=!1){if(b(this,Tr,Mh).call(this),!r(this,ys)||this.destroyed)return!1;if(t)return m(this,ei,setTimeout(()=>{m(this,ei,null),b(this,si,Wn).call(this,!1)},sA)),!1;for(const{renderTasks:e,operatorList:s}of this._intentStates.values())if(e.size>0||!s.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),m(this,ys,!1),!0},Tr=new WeakSet,Mh=function(){r(this,ei)&&(clearTimeout(r(this,ei)),m(this,ei,null))};var Qi,Uc;class uA{constructor(){f(this,Qi,new Set);f(this,Uc,Promise.resolve())}postMessage(t,e){const s={data:structuredClone(t,e?{transfer:e}:null)};r(this,Uc).then(()=>{for(const i of r(this,Qi))i.call(this,s)})}addEventListener(t,e){r(this,Qi).add(e)}removeEventListener(t,e){r(this,Qi).delete(e)}terminate(){r(this,Qi).clear()}}Qi=new WeakMap,Uc=new WeakMap;const ls={isWorkerDisabled:!1,fakeWorkerId:0};Bt&&(ls.isWorkerDisabled=!0,Os.workerSrc||(Os.workerSrc="./pdf.worker.mjs")),ls.isSameOrigin=function(h,t){let e;try{if(e=new URL(h),!e.origin||e.origin==="null")return!1}catch{return!1}const s=new URL(t,e);return e.origin===s.origin},ls.createCDNWrapper=function(h){const t=`await import("${h}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};var Ji,Rr,Ih;const re=class re{constructor({name:t=null,port:e=null,verbosity:s=Vm()}={}){var i;if(this.name=t,this.destroyed=!1,this.verbosity=s,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,e){if((i=r(re,Ji))!=null&&i.has(e))throw new Error("Cannot use more than one PDFWorker per port.");(r(re,Ji)||m(re,Ji,new WeakMap)).set(e,this),this._initializeFromPort(e);return}this._initialize()}get promise(){return Bt?Promise.all([es.promise,this._readyCapability.promise]):this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Pa("main","worker",t),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!ls.isWorkerDisabled&&!r(re,Rr,Ih)){let{workerSrc:t}=re;try{ls.isSameOrigin(window.location.href,t)||(t=ls.createCDNWrapper(new URL(t,window.location).href));const e=new Worker(t,{type:"module"}),s=new Pa("main","worker",e),i=()=>{e.removeEventListener("error",n),s.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},n=()=>{this._webWorker||i()};e.addEventListener("error",n),s.on("test",o=>{if(e.removeEventListener("error",n),this.destroyed){i();return}o?(this._messageHandler=s,this._port=e,this._webWorker=e,this._readyCapability.resolve(),s.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),s.destroy(),e.terminate())}),s.on("ready",o=>{if(e.removeEventListener("error",n),this.destroyed){i();return}try{a()}catch{this._setupFakeWorker()}});const a=()=>{const o=new Uint8Array;s.send("test",o,[o.buffer])};a();return}catch{Bd("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){ls.isWorkerDisabled||(V("Setting up fake worker."),ls.isWorkerDisabled=!0),re._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const e=new uA;this._port=e;const s=`fake${ls.fakeWorkerId++}`,i=new Pa(s+"_worker",s,e);t.setup(i,e);const n=new Pa(s,s+"_worker",e);this._messageHandler=n,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){var t;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(t=r(re,Ji))==null||t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){var s;if(!(t!=null&&t.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const e=(s=r(this,Ji))==null?void 0:s.get(t.port);if(e){if(e._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new re(t)}static get workerSrc(){if(Os.workerSrc)return Os.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return X(this,"_setupFakeWorkerGlobal",(async()=>r(this,Rr,Ih)?r(this,Rr,Ih):(await import(this.workerSrc)).WorkerMessageHandler)())}};Ji=new WeakMap,Rr=new WeakSet,Ih=function(){var t;try{return((t=globalThis.pdfjsWorker)==null?void 0:t.WorkerMessageHandler)||null}catch{return null}},f(re,Rr),f(re,Ji,void 0);let Qn=re;var _s,Ve,Pr,Lr,Ge,Zi,La;class fA{constructor(t,e,s,i,n){f(this,Zi);f(this,_s,new Map);f(this,Ve,new Map);f(this,Pr,new Map);f(this,Lr,new Map);f(this,Ge,null);this.messageHandler=t,this.loadingTask=e,this.commonObjs=new cg,this.fontLoader=new db({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=n.canvasFactory,this.filterFactory=n.filterFactory,this.cMapReaderFactory=n.cMapReaderFactory,this.standardFontDataFactory=n.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=s,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return X(this,"annotationStorage",new Df)}getRenderingIntent(t,e=zs.ENABLE,s=null,i=!1){let n=Ae.DISPLAY,a=Iu;switch(t){case"any":n=Ae.ANY;break;case"display":break;case"print":n=Ae.PRINT;break;default:V(`getRenderingIntent - invalid intent: ${t}`)}switch(e){case zs.DISABLE:n+=Ae.ANNOTATIONS_DISABLE;break;case zs.ENABLE:break;case zs.ENABLE_FORMS:n+=Ae.ANNOTATIONS_FORMS;break;case zs.ENABLE_STORAGE:n+=Ae.ANNOTATIONS_STORAGE,a=(n&Ae.PRINT&&s instanceof Yp?s:this.annotationStorage).serializable;break;default:V(`getRenderingIntent - invalid annotationMode: ${e}`)}return i&&(n+=Ae.OPLIST),{renderingIntent:n,cacheKey:`${n}_${a.hash}`,annotationStorageSerializable:a}}destroy(){var s;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(s=r(this,Ge))==null||s.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const i of r(this,Ve).values())t.push(i._destroy());r(this,Ve).clear(),r(this,Pr).clear(),r(this,Lr).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const e=this.messageHandler.sendWithPromise("Terminate",null);return t.push(e),Promise.all(t).then(()=>{var i;this.commonObjs.clear(),this.fontLoader.clear(),r(this,_s).clear(),this.filterFactory.destroy(),Jh.cleanup(),(i=this._networkStream)==null||i.cancelAllRequests(new Hn("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:e}=this;t.on("GetReader",(s,i)=>{_t(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=n=>{this._lastProgress={loaded:n.loaded,total:n.total}},i.onPull=()=>{this._fullReader.read().then(function({value:n,done:a}){if(a){i.close();return}_t(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(n),1,[n])}).catch(n=>{i.error(n)})},i.onCancel=n=>{this._fullReader.cancel(n),i.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",s=>{const i=Promise.withResolvers(),n=this._fullReader;return n.headersReady.then(()=>{var a;(!n.isStreamingSupported||!n.isRangeSupported)&&(this._lastProgress&&((a=e.onProgress)==null||a.call(e,this._lastProgress)),n.onProgress=o=>{var l;(l=e.onProgress)==null||l.call(e,{loaded:o.loaded,total:o.total})}),i.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})},i.reject),i.promise}),t.on("GetRangeReader",(s,i)=>{_t(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(s.begin,s.end);if(!n){i.close();return}i.onPull=()=>{n.read().then(function({value:a,done:o}){if(o){i.close();return}_t(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{n.cancel(a),i.ready.catch(o=>{if(!this.destroyed)throw o})}}),t.on("GetDoc",({pdfInfo:s})=>{this._numPages=s.numPages,this._htmlForXfa=s.htmlForXfa,delete s.htmlForXfa,e._capability.resolve(new cA(s,this))}),t.on("DocException",function(s){let i;switch(s.name){case"PasswordException":i=new lu(s.message,s.code);break;case"InvalidPDFException":i=new bp(s.message);break;case"MissingPDFException":i=new Nn(s.message);break;case"UnexpectedResponseException":i=new jd(s.message,s.status);break;case"UnknownErrorException":i=new hu(s.message,s.details);break;default:tt("DocException - expected a valid Error.")}e._capability.reject(i)}),t.on("PasswordRequest",s=>{if(m(this,Ge,Promise.withResolvers()),e.onPassword){const i=n=>{n instanceof Error?r(this,Ge).reject(n):r(this,Ge).resolve({password:n})};try{e.onPassword(i,s.code)}catch(n){r(this,Ge).reject(n)}}else r(this,Ge).reject(new lu(s.message,s.code));return r(this,Ge).promise}),t.on("DataLoaded",s=>{var i;(i=e.onProgress)==null||i.call(e,{loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),t.on("StartRenderPage",s=>{if(this.destroyed)return;r(this,Ve).get(s.pageIndex)._startRenderPage(s.transparency,s.cacheKey)}),t.on("commonobj",([s,i,n])=>{var a;if(this.destroyed||this.commonObjs.has(s))return null;switch(i){case"Font":const{disableFontFace:o,fontExtraProperties:l,pdfBug:c}=this._params;if("error"in n){const g=n.error;V(`Error during font loading: ${g}`),this.commonObjs.resolve(s,g);break}const d=c&&((a=globalThis.FontInspector)!=null&&a.enabled)?(g,A)=>globalThis.FontInspector.fontAdded(g,A):null,u=new ub(n,{disableFontFace:o,inspectFont:d});this.fontLoader.bind(u).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{!l&&u.data&&(u.data=null),this.commonObjs.resolve(s,u)});break;case"CopyLocalImage":const{imageRef:p}=n;_t(p,"The imageRef must be defined.");for(const g of r(this,Ve).values())for(const[,A]of g.objs)if((A==null?void 0:A.ref)===p)return A.dataLen?(this.commonObjs.resolve(s,structuredClone(A)),A.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(s,n);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),t.on("obj",([s,i,n,a])=>{var l;if(this.destroyed)return;const o=r(this,Ve).get(i);if(!o.objs.has(s)){if(o._intentStates.size===0){(l=a==null?void 0:a.bitmap)==null||l.close();return}switch(n){case"Image":o.objs.resolve(s,a),(a==null?void 0:a.dataLen)>Bm&&(o._maybeCleanupAfterRender=!0);break;case"Pattern":o.objs.resolve(s,a);break;default:throw new Error(`Got unknown object type ${n}`)}}}),t.on("DocProgress",s=>{var i;this.destroyed||(i=e.onProgress)==null||i.call(e,{loaded:s.loaded,total:s.total})}),t.on("FetchBuiltInCMap",s=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(s):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",s=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(s):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var s;this.annotationStorage.size<=0&&V("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:e}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:((s=this._fullReader)==null?void 0:s.filename)??null},e).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const e=t-1,s=r(this,Pr).get(e);if(s)return s;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:e}).then(n=>{if(this.destroyed)throw new Error("Transport destroyed");n.refStr&&r(this,Lr).set(n.refStr,t);const a=new dA(e,n,this,this._params.pdfBug);return r(this,Ve).set(e,a),a});return r(this,Pr).set(e,i),i}getPageIndex(t){return sp(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}getFieldObjects(){return b(this,Zi,La).call(this,"GetFieldObjects")}hasJSActions(){return b(this,Zi,La).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return b(this,Zi,La).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return b(this,Zi,La).call(this,"GetOptionalContentConfig").then(e=>new Mb(e,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",e=r(this,_s).get(t);if(e)return e;const s=this.messageHandler.sendWithPromise(t,null).then(i=>{var n,a;return{info:i[0],metadata:i[1]?new Lb(i[1]):null,contentDispositionFilename:((n=this._fullReader)==null?void 0:n.filename)??null,contentLength:((a=this._fullReader)==null?void 0:a.contentLength)??null}});return r(this,_s).set(t,s),s}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of r(this,Ve).values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),r(this,_s).clear(),this.filterFactory.destroy(!0),Jh.cleanup()}}cachedPageNumber(t){if(!sp(t))return null;const e=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return r(this,Lr).get(e)??null}}_s=new WeakMap,Ve=new WeakMap,Pr=new WeakMap,Lr=new WeakMap,Ge=new WeakMap,Zi=new WeakSet,La=function(t,e=null){const s=r(this,_s).get(t);if(s)return s;const i=this.messageHandler.sendWithPromise(t,e);return r(this,_s).set(t,i),i};const Eh=Symbol("INITIAL_DATA");var Te,Zo,$u;class cg{constructor(){f(this,Zo);f(this,Te,Object.create(null))}get(t,e=null){if(e){const i=b(this,Zo,$u).call(this,t);return i.promise.then(()=>e(i.data)),null}const s=r(this,Te)[t];if(!s||s.data===Eh)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){const e=r(this,Te)[t];return!!e&&e.data!==Eh}resolve(t,e=null){const s=b(this,Zo,$u).call(this,t);s.data=e,s.resolve()}clear(){var t;for(const e in r(this,Te)){const{data:s}=r(this,Te)[e];(t=s==null?void 0:s.bitmap)==null||t.close()}m(this,Te,Object.create(null))}*[Symbol.iterator](){for(const t in r(this,Te)){const{data:e}=r(this,Te)[t];e!==Eh&&(yield[t,e])}}}Te=new WeakMap,Zo=new WeakSet,$u=function(t){var e;return(e=r(this,Te))[t]||(e[t]={...Promise.withResolvers(),data:Eh})};var ii;class pA{constructor(t){f(this,ii,null);m(this,ii,t),this.onContinue=null}get promise(){return r(this,ii).capability.promise}cancel(t=0){r(this,ii).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=r(this,ii).operatorList;if(!t)return!1;const{annotationCanvasMap:e}=r(this,ii);return t.form||t.canvas&&(e==null?void 0:e.size)>0}}ii=new WeakMap;var tn;const Si=class Si{constructor({callback:t,params:e,objs:s,commonObjs:i,annotationCanvasMap:n,operatorList:a,pageIndex:o,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:d=!1,pdfBug:u=!1,pageColors:p=null}){this.callback=t,this.params=e,this.objs=s,this.commonObjs=i,this.annotationCanvasMap=n,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=o,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=u,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=d===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new pA(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=e.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:e}){var o,l;if(this.cancelled)return;if(this._canvas){if(r(Si,tn).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");r(Si,tn).add(this._canvas)}this._pdfBug&&((o=globalThis.StepperManager)!=null&&o.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:s,viewport:i,transform:n,background:a}=this.params;this.gfx=new Kn(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:n,viewport:i,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,(l=this.graphicsReadyCallback)==null||l.call(this)}cancel(t=null,e=0){var s;this.running=!1,this.cancelled=!0,(s=this.gfx)==null||s.endDrawing(),r(Si,tn).delete(this._canvas),this.callback(t||new Lf(`Rendering cancelled, page ${this._pageIndex+1}`,e))}operatorListChanged(){var t;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(t=this.stepper)==null||t.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),r(Si,tn).delete(this._canvas),this.callback())))}};tn=new WeakMap,f(Si,tn,new WeakSet);let zu=Si;const gA="4.3.136",mA="0cec64437";function ip(h){return Math.floor(Math.max(0,Math.min(1,h))*255).toString(16).padStart(2,"0")}function Ea(h){return Math.max(0,Math.min(255,255*h))}class np{static CMYK_G([t,e,s,i]){return["G",1-Math.min(1,.3*t+.59*s+.11*e+i)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Ea(t),[t,t,t]}static G_HTML([t]){const e=ip(t);return`#${e}${e}${e}`}static RGB_G([t,e,s]){return["G",.3*t+.59*e+.11*s]}static RGB_rgb(t){return t.map(Ea)}static RGB_HTML(t){return`#${t.map(ip).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,e,s,i]){return["RGB",1-Math.min(1,t+i),1-Math.min(1,s+i),1-Math.min(1,e+i)]}static CMYK_rgb([t,e,s,i]){return[Ea(1-Math.min(1,t+i)),Ea(1-Math.min(1,s+i)),Ea(1-Math.min(1,e+i))]}static CMYK_HTML(t){const e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,s]){const i=1-t,n=1-e,a=1-s,o=Math.min(i,n,a);return["CMYK",i,n,a,o]}}class dg{static setupStorage(t,e,s,i,n){const a=i.getValue(e,{value:null});switch(s.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),n==="print")break;t.addEventListener("input",o=>{i.setValue(e,{value:o.target.value})});break;case"input":if(s.attributes.type==="radio"||s.attributes.type==="checkbox"){if(a.value===s.attributes.xfaOn?t.setAttribute("checked",!0):a.value===s.attributes.xfaOff&&t.removeAttribute("checked"),n==="print")break;t.addEventListener("change",o=>{i.setValue(e,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),n==="print")break;t.addEventListener("input",o=>{i.setValue(e,{value:o.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(const o of s.children)o.attributes.value===a.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected}t.addEventListener("input",o=>{const l=o.target.options,c=l.selectedIndex===-1?"":l[l.selectedIndex].value;i.setValue(e,{value:c})});break}}static setAttributes({html:t,element:e,storage:s=null,intent:i,linkService:n}){const{attributes:a}=e,o=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${i}`);for(const[l,c]of Object.entries(a))if(c!=null)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!o||l!=="href"&&l!=="newWindow")&&t.setAttribute(l,c)}o&&n.addLinkAttributes(t,a.href,a.newWindow),s&&a.dataId&&this.setupStorage(t,a.dataId,e,s)}static render(t){var u,p;const e=t.annotationStorage,s=t.linkService,i=t.xfaHtml,n=t.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:n,linkService:s});const o=n!=="richText",l=t.div;if(l.append(a),t.viewport){const g=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=g}o&&l.setAttribute("class","xfaLayer xfaFont");const c=[];if(i.children.length===0){if(i.value){const g=document.createTextNode(i.value);a.append(g),o&&Ua.shouldBuildText(i.name)&&c.push(g)}return{textDivs:c}}const d=[[i,-1,a]];for(;d.length>0;){const[g,A,v]=d.at(-1);if(A+1===g.children.length){d.pop();continue}const _=g.children[++d.at(-1)[1]];if(_===null)continue;const{name:y}=_;if(y==="#text"){const w=document.createTextNode(_.value);c.push(w),v.append(w);continue}const E=(u=_==null?void 0:_.attributes)!=null&&u.xmlns?document.createElementNS(_.attributes.xmlns,y):document.createElement(y);if(v.append(E),_.attributes&&this.setAttributes({html:E,element:_,storage:e,intent:n,linkService:s}),((p=_.children)==null?void 0:p.length)>0)d.push([_,-1,E]);else if(_.value){const w=document.createTextNode(_.value);o&&Ua.shouldBuildText(y)&&c.push(w),E.append(w)}}for(const g of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))g.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){const e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e,t.div.hidden=!1}}const fh=1e3,bA=9,Fn=new WeakSet;function Ns(h){return{width:h[2]-h[0],height:h[3]-h[1]}}class AA{static create(t){switch(t.data.annotationType){case mt.LINK:return new ug(t);case mt.TEXT:return new vA(t);case mt.WIDGET:switch(t.data.fieldType){case"Tx":return new yA(t);case"Btn":return t.data.radioButton?new gg(t):t.data.checkBox?new EA(t):new wA(t);case"Ch":return new SA(t);case"Sig":return new _A(t)}return new Bn(t);case mt.POPUP:return new Gu(t);case mt.FREETEXT:return new yg(t);case mt.LINE:return new CA(t);case mt.SQUARE:return new TA(t);case mt.CIRCLE:return new RA(t);case mt.POLYLINE:return new _g(t);case mt.CARET:return new LA(t);case mt.INK:return new Eg(t);case mt.POLYGON:return new PA(t);case mt.HIGHLIGHT:return new kA(t);case mt.UNDERLINE:return new MA(t);case mt.SQUIGGLY:return new IA(t);case mt.STRIKEOUT:return new DA(t);case mt.STAMP:return new wg(t);case mt.FILEATTACHMENT:return new FA(t);default:return new pt(t)}}}var en,kr,Mr,tl,Vu;const jf=class jf{constructor(t,{isRenderable:e=!1,ignoreBorder:s=!1,createQuadrilaterals:i=!1}={}){f(this,tl);f(this,en,null);f(this,kr,!1);f(this,Mr,null);this.isRenderable=e,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,e&&(this.container=this._createContainer(s)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:e,richText:s}){return!!(t!=null&&t.str||e!=null&&e.str||s!=null&&s.str)}get hasPopupData(){return jf._hasPopupData(this.data)}updateEdited(t){var s;if(!this.container)return;r(this,en)||m(this,en,{rect:this.data.rect.slice(0)});const{rect:e}=t;e&&b(this,tl,Vu).call(this,e),(s=r(this,Mr))==null||s.popup.updateEdited(t)}resetEdited(){var t;r(this,en)&&(b(this,tl,Vu).call(this,r(this,en).rect),(t=r(this,Mr))==null||t.popup.resetEdited(),m(this,en,null))}_createContainer(t){const{data:e,parent:{page:s,viewport:i}}=this,n=document.createElement("section");n.setAttribute("data-annotation-id",e.id),this instanceof Bn||(n.tabIndex=fh);const{style:a}=n;if(a.zIndex=this.parent.zIndex++,e.popupRef&&n.setAttribute("aria-haspopup","dialog"),e.alternativeText&&(n.title=e.alternativeText),e.noRotate&&n.classList.add("norotate"),!e.rect||this instanceof Gu){const{rotation:v}=e;return!e.hasOwnCanvas&&v!==0&&this.setRotation(v,n),n}const{width:o,height:l}=Ns(e.rect);if(!t&&e.borderStyle.width>0){a.borderWidth=`${e.borderStyle.width}px`;const v=e.borderStyle.horizontalCornerRadius,_=e.borderStyle.verticalCornerRadius;if(v>0||_>0){const E=`calc(${v}px * var(--scale-factor)) / calc(${_}px * var(--scale-factor))`;a.borderRadius=E}else if(this instanceof gg){const E=`calc(${o}px * var(--scale-factor)) / calc(${l}px * var(--scale-factor))`;a.borderRadius=E}switch(e.borderStyle.style){case ya.SOLID:a.borderStyle="solid";break;case ya.DASHED:a.borderStyle="dashed";break;case ya.BEVELED:V("Unimplemented border style: beveled");break;case ya.INSET:V("Unimplemented border style: inset");break;case ya.UNDERLINE:a.borderBottomStyle="solid";break}const y=e.borderColor||null;y?(m(this,kr,!0),a.borderColor=k.makeHexColor(y[0]|0,y[1]|0,y[2]|0)):a.borderWidth=0}const c=k.normalizeRect([e.rect[0],s.view[3]-e.rect[1]+s.view[1],e.rect[2],s.view[3]-e.rect[3]+s.view[1]]),{pageWidth:d,pageHeight:u,pageX:p,pageY:g}=i.rawDims;a.left=`${100*(c[0]-p)/d}%`,a.top=`${100*(c[1]-g)/u}%`;const{rotation:A}=e;return e.hasOwnCanvas||A===0?(a.width=`${100*o/d}%`,a.height=`${100*l/u}%`):this.setRotation(A,n),n}setRotation(t,e=this.container){if(!this.data.rect)return;const{pageWidth:s,pageHeight:i}=this.parent.viewport.rawDims,{width:n,height:a}=Ns(this.data.rect);let o,l;t%180===0?(o=100*n/s,l=100*a/i):(o=100*a/s,l=100*n/i),e.style.width=`${o}%`,e.style.height=`${l}%`,e.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(e,s,i)=>{const n=i.detail[e],a=n[0],o=n.slice(1);i.target.style[s]=np[`${a}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[s]:np[`${a}_rgb`](o)})};return X(this,"_commonActions",{display:e=>{const{display:s}=e.detail,i=s%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:s===1||s===2})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:s}=e.detail;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:s,noView:s})},focus:e=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:e=>{t("bgColor","backgroundColor",e)},fillColor:e=>{t("fillColor","backgroundColor",e)},fgColor:e=>{t("fgColor","color",e)},textColor:e=>{t("textColor","color",e)},borderColor:e=>{t("borderColor","borderColor",e)},strokeColor:e=>{t("strokeColor","borderColor",e)},rotation:e=>{const s=e.detail.rotation;this.setRotation(s),this.annotationStorage.setValue(this.data.id,{rotation:s})}})}_dispatchEventFromSandbox(t,e){const s=this._commonActions;for(const i of Object.keys(e.detail)){const n=t[i]||s[i];n==null||n(e)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;const s=this._commonActions;for(const[i,n]of Object.entries(e)){const a=s[i];if(a){const o={detail:{[i]:n},target:t};a(o),delete e[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[e,s,i,n]=this.data.rect;if(t.length===1){const[,{x:v,y:_},{x:y,y:E}]=t[0];if(i===v&&n===_&&e===y&&s===E)return}const{style:a}=this.container;let o;if(r(this,kr)){const{borderColor:v,borderWidth:_}=a;a.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const l=i-e,c=n-s,{svgFactory:d}=this,u=d.createElement("svg");u.classList.add("quadrilateralsContainer"),u.setAttribute("width",0),u.setAttribute("height",0);const p=d.createElement("defs");u.append(p);const g=d.createElement("clipPath"),A=`clippath_${this.data.id}`;g.setAttribute("id",A),g.setAttribute("clipPathUnits","objectBoundingBox"),p.append(g);for(const[,{x:v,y:_},{x:y,y:E}]of t){const w=d.createElement("rect"),S=(y-e)/l,x=(n-_)/c,C=(v-y)/l,R=(_-E)/c;w.setAttribute("x",S),w.setAttribute("y",x),w.setAttribute("width",C),w.setAttribute("height",R),g.append(w),o==null||o.push(``)}r(this,kr)&&(o.push("')"),a.backgroundImage=o.join("")),this.container.append(u),this.container.style.clipPath=`url(#${A})`}_createPopup(){const{container:t,data:e}=this;t.setAttribute("aria-haspopup","dialog");const s=m(this,Mr,new Gu({data:{color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,parentRect:e.rect,borderStyle:0,id:`popup_${e.id}`,rotation:e.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(s.render())}render(){tt("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,e=null){const s=[];if(this._fieldObjects){const i=this._fieldObjects[t];if(i)for(const{page:n,id:a,exportValues:o}of i){if(n===-1||a===e)continue;const l=typeof o=="string"?o:null,c=document.querySelector(`[data-element-id="${a}"]`);if(c&&!Fn.has(c)){V(`_getElementsByName - element not allowed: ${a}`);continue}s.push({id:a,exportValue:l,domElement:c})}return s}for(const i of document.getElementsByName(t)){const{exportValue:n}=i,a=i.getAttribute("data-element-id");a!==e&&Fn.has(i)&&s.push({id:a,exportValue:n,domElement:i})}return s}show(){var t;this.container&&(this.container.hidden=!1),(t=this.popup)==null||t.maybeShow()}hide(){var t;this.container&&(this.container.hidden=!0),(t=this.popup)==null||t.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const e of t)e.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:e}}=this;this.container.addEventListener("dblclick",()=>{var s;(s=this.linkService.eventBus)==null||s.dispatch("switchannotationeditormode",{source:this,mode:t,editId:e})})}};en=new WeakMap,kr=new WeakMap,Mr=new WeakMap,tl=new WeakSet,Vu=function(t){const{container:{style:e},data:{rect:s,rotation:i},parent:{viewport:{rawDims:{pageWidth:n,pageHeight:a,pageX:o,pageY:l}}}}=this;s==null||s.splice(0,4,...t);const{width:c,height:d}=Ns(t);e.left=`${100*(t[0]-o)/n}%`,e.top=`${100*(a-t[3]+l)/a}%`,i===0?(e.width=`${100*c/n}%`,e.height=`${100*d/a}%`):this.setRotation(i)};let pt=jf;var Es,yi,$c,fg,zc,pg;class ug extends pt{constructor(e,s=null){super(e,{isRenderable:!0,ignoreBorder:!!(s!=null&&s.ignoreBorder),createQuadrilaterals:!0});f(this,Es);f(this,$c);f(this,zc);this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:s}=this,i=document.createElement("a");i.setAttribute("data-element-id",e.id);let n=!1;return e.url?(s.addLinkAttributes(i,e.url,e.newWindow),n=!0):e.action?(this._bindNamedAction(i,e.action),n=!0):e.attachment?(b(this,$c,fg).call(this,i,e.attachment,e.attachmentDest),n=!0):e.setOCGState?(b(this,zc,pg).call(this,i,e.setOCGState),n=!0):e.dest?(this._bindLink(i,e.dest),n=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(i,e),n=!0),e.resetForm?(this._bindResetFormAction(i,e.resetForm),n=!0):this.isTooltipOnly&&!n&&(this._bindLink(i,""),n=!0)),this.container.classList.add("linkAnnotation"),n&&this.container.append(i),this.container}_bindLink(e,s){e.href=this.linkService.getDestinationHash(s),e.onclick=()=>(s&&this.linkService.goToDestination(s),!1),(s||s==="")&&b(this,Es,yi).call(this)}_bindNamedAction(e,s){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(s),!1),b(this,Es,yi).call(this)}_bindJSAction(e,s){e.href=this.linkService.getAnchorUrl("");const i=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const n of Object.keys(s.actions)){const a=i.get(n);a&&(e[a]=()=>{var o;return(o=this.linkService.eventBus)==null||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s.id,name:n}}),!1})}e.onclick||(e.onclick=()=>!1),b(this,Es,yi).call(this)}_bindResetFormAction(e,s){const i=e.onclick;if(i||(e.href=this.linkService.getAnchorUrl("")),b(this,Es,yi).call(this),!this._fieldObjects){V('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),i||(e.onclick=()=>!1);return}e.onclick=()=>{var u;i==null||i();const{fields:n,refs:a,include:o}=s,l=[];if(n.length!==0||a.length!==0){const p=new Set(a);for(const g of n){const A=this._fieldObjects[g]||[];for(const{id:v}of A)p.add(v)}for(const g of Object.values(this._fieldObjects))for(const A of g)p.has(A.id)===o&&l.push(A)}else for(const p of Object.values(this._fieldObjects))l.push(...p);const c=this.annotationStorage,d=[];for(const p of l){const{id:g}=p;switch(d.push(g),p.type){case"text":{const v=p.defaultValue||"";c.setValue(g,{value:v});break}case"checkbox":case"radiobutton":{const v=p.defaultValue===p.exportValues;c.setValue(g,{value:v});break}case"combobox":case"listbox":{const v=p.defaultValue||"";c.setValue(g,{value:v});break}default:continue}const A=document.querySelector(`[data-element-id="${g}"]`);if(A){if(!Fn.has(A)){V(`_bindResetFormAction - element not allowed: ${g}`);continue}}else continue;A.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((u=this.linkService.eventBus)==null||u.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:d,name:"ResetForm"}})),!1}}}Es=new WeakSet,yi=function(){this.container.setAttribute("data-internal-link","")},$c=new WeakSet,fg=function(e,s,i=null){e.href=this.linkService.getAnchorUrl(""),s.description&&(e.title=s.description),e.onclick=()=>{var n;return(n=this.downloadManager)==null||n.openOrDownloadData(s.content,s.filename,i),!1},b(this,Es,yi).call(this)},zc=new WeakSet,pg=function(e,s){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(s),!1),b(this,Es,yi).call(this)};class vA extends pt{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Bn extends pt{render(){return this.container}showElementAndHideCanvas(t){var e;this.data.hasOwnCanvas&&(((e=t.previousSibling)==null?void 0:e.nodeName)==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return Zt.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,e,s,i,n){s.includes("mouse")?t.addEventListener(s,a=>{var o;(o=this.linkService.eventBus)==null||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:n(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):t.addEventListener(s,a=>{var o;if(s==="blur"){if(!e.focused||!a.relatedTarget)return;e.focused=!1}else if(s==="focus"){if(e.focused)return;e.focused=!0}n&&((o=this.linkService.eventBus)==null||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:n(a)}}))})}_setEventListeners(t,e,s,i){var n,a,o;for(const[l,c]of s)(c==="Action"||(n=this.data.actions)!=null&&n[c])&&((c==="Focus"||c==="Blur")&&(e||(e={focused:!1})),this._setEventListener(t,e,l,c,i),c==="Focus"&&!((a=this.data.actions)!=null&&a.Blur)?this._setEventListener(t,e,"blur","Blur",null):c==="Blur"&&!((o=this.data.actions)!=null&&o.Focus)&&this._setEventListener(t,e,"focus","Focus",null))}_setBackgroundColor(t){const e=this.data.backgroundColor||null;t.style.backgroundColor=e===null?"transparent":k.makeHexColor(e[0],e[1],e[2])}_setTextStyle(t){const e=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||bA,n=t.style;let a;const o=2,l=c=>Math.round(10*c)/10;if(this.data.multiLine){const c=Math.abs(this.data.rect[3]-this.data.rect[1]-o),d=Math.round(c/(tu*i))||1,u=c/d;a=Math.min(i,l(u/tu))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-o);a=Math.min(i,l(c/tu))}n.fontSize=`calc(${a}px * var(--scale-factor))`,n.color=k.makeHexColor(s[0],s[1],s[2]),this.data.textAlignment!==null&&(n.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}}class yA extends Bn{constructor(t){const e=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:e})}setPropertyOnSiblings(t,e,s,i){const n=this.annotationStorage;for(const a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[e]=s),n.setValue(a.id,{[i]:s})}render(){var i,n;const t=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){const a=t.getValue(e,{value:this.data.fieldValue});let o=a.value||"";const l=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;l&&o.length>l&&(o=o.slice(0,l));let c=a.formattedValue||((i=this.data.textContent)==null?void 0:i.join(` `))||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const d={userValue:o,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=c??o,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type="text",s.setAttribute("value",c??o),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),Fn.add(s),s.setAttribute("data-element-id",e),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=fh,this._setRequired(s,this.data.required),l&&(s.maxLength=l),s.addEventListener("input",p=>{t.setValue(e,{value:p.target.value}),this.setPropertyOnSiblings(s,"value",p.target.value,"value"),d.formattedValue=null}),s.addEventListener("resetform",p=>{const g=this.data.defaultFieldValue??"";s.value=d.userValue=g,d.formattedValue=null});let u=p=>{const{formattedValue:g}=d;g!=null&&(p.target.value=g),p.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",g=>{var v;if(d.focused)return;const{target:A}=g;d.userValue&&(A.value=d.userValue),d.lastCommittedValue=A.value,d.commitKey=1,(v=this.data.actions)!=null&&v.Focus||(d.focused=!0)}),s.addEventListener("updatefromsandbox",g=>{this.showElementAndHideCanvas(g.target);const A={value(v){d.userValue=v.detail.value??"",t.setValue(e,{value:d.userValue.toString()}),v.target.value=d.userValue},formattedValue(v){const{formattedValue:_}=v.detail;d.formattedValue=_,_!=null&&v.target!==document.activeElement&&(v.target.value=_),t.setValue(e,{formattedValue:_})},selRange(v){v.target.setSelectionRange(...v.detail.selRange)},charLimit:v=>{var w;const{charLimit:_}=v.detail,{target:y}=v;if(_===0){y.removeAttribute("maxLength");return}y.setAttribute("maxLength",_);let E=d.userValue;!E||E.length<=_||(E=E.slice(0,_),y.value=d.userValue=E,t.setValue(e,{value:E}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:E,willCommit:!0,commitKey:1,selStart:y.selectionStart,selEnd:y.selectionEnd}}))}};this._dispatchEventFromSandbox(A,g)}),s.addEventListener("keydown",g=>{var _;d.commitKey=1;let A=-1;if(g.key==="Escape"?A=0:g.key==="Enter"&&!this.data.multiLine?A=2:g.key==="Tab"&&(d.commitKey=3),A===-1)return;const{value:v}=g.target;d.lastCommittedValue!==v&&(d.lastCommittedValue=v,d.userValue=v,(_=this.linkService.eventBus)==null||_.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:v,willCommit:!0,commitKey:A,selStart:g.target.selectionStart,selEnd:g.target.selectionEnd}}))});const p=u;u=null,s.addEventListener("blur",g=>{var v,_;if(!d.focused||!g.relatedTarget)return;(v=this.data.actions)!=null&&v.Blur||(d.focused=!1);const{value:A}=g.target;d.userValue=A,d.lastCommittedValue!==A&&((_=this.linkService.eventBus)==null||_.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:A,willCommit:!0,commitKey:d.commitKey,selStart:g.target.selectionStart,selEnd:g.target.selectionEnd}})),p(g)}),(n=this.data.actions)!=null&&n.Keystroke&&s.addEventListener("beforeinput",g=>{var x;d.lastCommittedValue=null;const{data:A,target:v}=g,{value:_,selectionStart:y,selectionEnd:E}=v;let w=y,S=E;switch(g.inputType){case"deleteWordBackward":{const C=_.substring(0,y).match(/\w*[^\w]*$/);C&&(w-=C[0].length);break}case"deleteWordForward":{const C=_.substring(y).match(/^[^\w]*\w*/);C&&(S+=C[0].length);break}case"deleteContentBackward":y===E&&(w-=1);break;case"deleteContentForward":y===E&&(S+=1);break}g.preventDefault(),(x=this.linkService.eventBus)==null||x.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:_,change:A||"",willCommit:!1,selStart:w,selEnd:S}})}),this._setEventListeners(s,d,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],g=>g.target.value)}if(u&&s.addEventListener("blur",u),this.data.comb){const g=(this.data.rect[2]-this.data.rect[0])/l;s.classList.add("comb"),s.style.letterSpacing=`calc(${g}px * var(--scale-factor) - 1ch)`}}else s=document.createElement("div"),s.textContent=this.data.fieldValue,s.style.verticalAlign="middle",s.style.display="table-cell",this.data.hasOwnCanvas&&(s.hidden=!0);return this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class _A extends Bn{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class EA extends Bn{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,e=this.data,s=e.id;let i=t.getValue(s,{value:e.exportValue===e.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",t.setValue(s,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const n=document.createElement("input");return Fn.add(n),n.setAttribute("data-element-id",s),n.disabled=e.readOnly,this._setRequired(n,this.data.required),n.type="checkbox",n.name=e.fieldName,i&&n.setAttribute("checked",!0),n.setAttribute("exportValue",e.exportValue),n.tabIndex=fh,n.addEventListener("change",a=>{const{name:o,checked:l}=a.target;for(const c of this._getElementsByName(o,s)){const d=l&&c.exportValue===e.exportValue;c.domElement&&(c.domElement.checked=d),t.setValue(c.id,{value:d})}t.setValue(s,{value:l})}),n.addEventListener("resetform",a=>{const o=e.defaultFieldValue||"Off";a.target.checked=o===e.exportValue}),this.enableScripting&&this.hasJSActions&&(n.addEventListener("updatefromsandbox",a=>{const o={value(l){l.target.checked=l.detail.value!=="Off",t.setValue(s,{value:l.target.checked})}};this._dispatchEventFromSandbox(o,a)}),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class gg extends Bn{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,e=this.data,s=e.id;let i=t.getValue(s,{value:e.fieldValue===e.buttonValue}).value;if(typeof i=="string"&&(i=i!==e.buttonValue,t.setValue(s,{value:i})),i)for(const a of this._getElementsByName(e.fieldName,s))t.setValue(a.id,{value:!1});const n=document.createElement("input");if(Fn.add(n),n.setAttribute("data-element-id",s),n.disabled=e.readOnly,this._setRequired(n,this.data.required),n.type="radio",n.name=e.fieldName,i&&n.setAttribute("checked",!0),n.tabIndex=fh,n.addEventListener("change",a=>{const{name:o,checked:l}=a.target;for(const c of this._getElementsByName(o,s))t.setValue(c.id,{value:!1});t.setValue(s,{value:l})}),n.addEventListener("resetform",a=>{const o=e.defaultFieldValue;a.target.checked=o!=null&&o===e.buttonValue}),this.enableScripting&&this.hasJSActions){const a=e.buttonValue;n.addEventListener("updatefromsandbox",o=>{const l={value:c=>{const d=a===c.detail.value;for(const u of this._getElementsByName(c.target.name)){const p=d&&u.id===s;u.domElement&&(u.domElement.checked=p),t.setValue(u.id,{value:p})}}};this._dispatchEventFromSandbox(l,o)}),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],o=>o.target.checked)}return this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class wA extends ug{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const e=t.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",s=>{this._dispatchEventFromSandbox({},s)})),t}}class SA extends Bn{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,e=this.data.id,s=t.getValue(e,{value:this.data.fieldValue}),i=document.createElement("select");Fn.add(i),i.setAttribute("data-element-id",e),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=fh;let n=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",d=>{const u=this.data.defaultFieldValue;for(const p of i.options)p.selected=p.value===u});for(const d of this.data.options){const u=document.createElement("option");u.textContent=d.displayValue,u.value=d.exportValue,s.value.includes(d.exportValue)&&(u.setAttribute("selected",!0),n=!1),i.append(u)}let a=null;if(n){const d=document.createElement("option");d.value=" ",d.setAttribute("hidden",!0),d.setAttribute("selected",!0),i.prepend(d),a=()=>{d.remove(),i.removeEventListener("input",a),a=null},i.addEventListener("input",a)}const o=d=>{const u=d?"value":"textContent",{options:p,multiple:g}=i;return g?Array.prototype.filter.call(p,A=>A.selected).map(A=>A[u]):p.selectedIndex===-1?null:p[p.selectedIndex][u]};let l=o(!1);const c=d=>{const u=d.target.options;return Array.prototype.map.call(u,p=>({displayValue:p.textContent,exportValue:p.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",d=>{const u={value(p){a==null||a();const g=p.detail.value,A=new Set(Array.isArray(g)?g:[g]);for(const v of i.options)v.selected=A.has(v.value);t.setValue(e,{value:o(!0)}),l=o(!1)},multipleSelection(p){i.multiple=!0},remove(p){const g=i.options,A=p.detail.remove;g[A].selected=!1,i.remove(A),g.length>0&&Array.prototype.findIndex.call(g,_=>_.selected)===-1&&(g[0].selected=!0),t.setValue(e,{value:o(!0),items:c(p)}),l=o(!1)},clear(p){for(;i.length!==0;)i.remove(0);t.setValue(e,{value:null,items:[]}),l=o(!1)},insert(p){const{index:g,displayValue:A,exportValue:v}=p.detail.insert,_=i.children[g],y=document.createElement("option");y.textContent=A,y.value=v,_?_.before(y):i.append(y),t.setValue(e,{value:o(!0),items:c(p)}),l=o(!1)},items(p){const{items:g}=p.detail;for(;i.length!==0;)i.remove(0);for(const A of g){const{displayValue:v,exportValue:_}=A,y=document.createElement("option");y.textContent=v,y.value=_,i.append(y)}i.options.length>0&&(i.options[0].selected=!0),t.setValue(e,{value:o(!0),items:c(p)}),l=o(!1)},indices(p){const g=new Set(p.detail.indices);for(const A of p.target.options)A.selected=g.has(A.index);t.setValue(e,{value:o(!0)}),l=o(!1)},editable(p){p.target.disabled=!p.detail.editable}};this._dispatchEventFromSandbox(u,d)}),i.addEventListener("input",d=>{var g;const u=o(!0),p=o(!1);t.setValue(e,{value:u}),d.preventDefault(),(g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:l,change:p,changeEx:u,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],d=>d.target.value)):i.addEventListener("input",function(d){t.setValue(e,{value:o(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class Gu extends pt{constructor(t){const{data:e,elements:s}=t;super(t,{isRenderable:pt._hasPopupData(e)}),this.elements=s,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new xA({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),e=[];for(const s of this.elements)s.popup=t,e.push(s.data.id),s.addHighlightArea();return this.container.setAttribute("aria-controls",e.map(s=>`${vp}${s}`).join(",")),this.container}}var Ir,Vc,Gc,Dr,sn,ct,ws,nn,el,sl,Fr,Ss,Re,xs,il,Cs,nl,rn,an,Or,Dh,rl,Wu,Wc,mg,qc,bg,Xc,Ag,Yc,vg,Nr,Fh,Hr,Oh,al,qu;class xA{constructor({container:t,color:e,elements:s,titleObj:i,modificationDate:n,contentsObj:a,richText:o,parent:l,rect:c,parentRect:d,open:u}){f(this,Or);f(this,rl);f(this,Wc);f(this,qc);f(this,Xc);f(this,Yc);f(this,Nr);f(this,Hr);f(this,al);f(this,Ir,b(this,Xc,Ag).bind(this));f(this,Vc,b(this,al,qu).bind(this));f(this,Gc,b(this,Hr,Oh).bind(this));f(this,Dr,b(this,Nr,Fh).bind(this));f(this,sn,null);f(this,ct,null);f(this,ws,null);f(this,nn,null);f(this,el,null);f(this,sl,null);f(this,Fr,null);f(this,Ss,!1);f(this,Re,null);f(this,xs,null);f(this,il,null);f(this,Cs,null);f(this,nl,null);f(this,rn,null);f(this,an,!1);var p;m(this,ct,t),m(this,nl,i),m(this,ws,a),m(this,Cs,o),m(this,sl,l),m(this,sn,e),m(this,il,c),m(this,Fr,d),m(this,el,s),m(this,nn,Sp.toDateObject(n)),this.trigger=s.flatMap(g=>g.getElementsToTriggerPopup());for(const g of this.trigger)g.addEventListener("click",r(this,Dr)),g.addEventListener("mouseenter",r(this,Gc)),g.addEventListener("mouseleave",r(this,Vc)),g.classList.add("popupTriggerArea");for(const g of s)(p=g.container)==null||p.addEventListener("keydown",r(this,Ir));r(this,ct).hidden=!0,u&&b(this,Nr,Fh).call(this)}render(){if(r(this,Re))return;const t=m(this,Re,document.createElement("div"));if(t.className="popup",r(this,sn)){const n=t.style.outlineColor=k.makeHexColor(...r(this,sn));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${n} 30%, white)`:t.style.backgroundColor=k.makeHexColor(...r(this,sn).map(o=>Math.floor(.7*(255-o)+o)))}const e=document.createElement("span");e.className="header";const s=document.createElement("h1");if(e.append(s),{dir:s.dir,str:s.textContent}=r(this,nl),t.append(e),r(this,nn)){const n=document.createElement("span");n.classList.add("popupDate"),n.setAttribute("data-l10n-id","pdfjs-annotation-date-string"),n.setAttribute("data-l10n-args",JSON.stringify({date:r(this,nn).toLocaleDateString(),time:r(this,nn).toLocaleTimeString()})),e.append(n)}const i=r(this,Or,Dh);if(i)dg.render({xfaHtml:i,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const n=this._formatContents(r(this,ws));t.append(n)}r(this,ct).append(t)}_formatContents({str:t,dir:e}){const s=document.createElement("p");s.classList.add("popupContent"),s.dir=e;const i=t.split(/(?:\r\n?|\n)/);for(let n=0,a=i.length;n{a.key==="Enter"&&(n?a.metaKey:a.ctrlKey)&&b(this,fl,Xu).call(this)}),!s.popupRef&&this.hasPopupData?this._createPopup():i.classList.add("popupTriggerArea"),e.append(i),e}getElementsToTriggerPopup(){return r(this,ul)}addHighlightArea(){this.container.classList.add("highlightArea")}}ul=new WeakMap,fl=new WeakSet,Xu=function(){var e;(e=this.downloadManager)==null||e.openOrDownloadData(this.content,this.filename)};var pl,on,Br,Kc,Sg,gl,Yu,gp;let OA=(gp=class{constructor({div:t,accessibilityManager:e,annotationCanvasMap:s,annotationEditorUIManager:i,page:n,viewport:a}){f(this,Kc);f(this,gl);f(this,pl,null);f(this,on,null);f(this,Br,new Map);this.div=t,m(this,pl,e),m(this,on,s),this.page=n,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=i}async render(t){var a;const{annotations:e}=t,s=this.div;In(s,this.viewport);const i=new Map,n={data:null,layer:s,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new Pf,annotationStorage:t.annotationStorage||new Df,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const o of e){if(o.noHTML)continue;const l=o.annotationType===mt.POPUP;if(l){const u=i.get(o.id);if(!u)continue;n.elements=u}else{const{width:u,height:p}=Ns(o.rect);if(u<=0||p<=0)continue}n.data=o;const c=AA.create(n);if(!c.isRenderable)continue;if(!l&&o.popupRef){const u=i.get(o.popupRef);u?u.push(c):i.set(o.popupRef,[c])}const d=c.render();o.hidden&&(d.style.visibility="hidden"),b(this,Kc,Sg).call(this,d,o.id),c.annotationEditorType>0&&(r(this,Br).set(c.data.id,c),(a=this._annotationEditorUIManager)==null||a.renderAnnotationElement(c))}b(this,gl,Yu).call(this)}update({viewport:t}){const e=this.div;this.viewport=t,In(e,{rotation:t.rotation}),b(this,gl,Yu).call(this),e.hidden=!1}getEditableAnnotations(){return Array.from(r(this,Br).values())}getEditableAnnotation(t){return r(this,Br).get(t)}},pl=new WeakMap,on=new WeakMap,Br=new WeakMap,Kc=new WeakSet,Sg=function(t,e){var i;const s=t.firstChild||t;s.id=`${vp}${e}`,this.div.append(t),(i=r(this,pl))==null||i.moveElementInDOM(this.div,t,s,!1)},gl=new WeakSet,Yu=function(){if(!r(this,on))return;const t=this.div;for(const[e,s]of r(this,on)){const i=t.querySelector(`[data-annotation-id="${e}"]`);if(!i)continue;s.className="annotationContent";const{firstChild:n}=i;n?n.nodeName==="CANVAS"?n.replaceWith(s):n.classList.contains("annotationContent")?n.after(s):n.before(s):i.append(s)}r(this,on).clear()},gp);const wh=/\r\n?|\n/g;var ml,bl,Al,vl,yl,Pe,oe,_l,le,jr,Qc,xg,Jc,Cg,Zc,Tg,Ur,Nh,$r,Hh,zr,Bh,td,Rg,El,Qu,ed,Pg;const st=class st extends J{constructor(e){super({...e,name:"freeTextEditor"});f(this,Qc);f(this,Jc);f(this,Zc);f(this,Ur);f(this,zr);f(this,td);f(this,ed);f(this,ml,this.editorDivBlur.bind(this));f(this,bl,this.editorDivFocus.bind(this));f(this,Al,this.editorDivInput.bind(this));f(this,vl,this.editorDivKeydown.bind(this));f(this,yl,this.editorDivPaste.bind(this));f(this,Pe,void 0);f(this,oe,"");f(this,_l,`${this.id}-editor`);f(this,le,void 0);f(this,jr,null);m(this,Pe,e.color||st._defaultColor||J._defaultLineColor),m(this,le,e.fontSize||st._defaultFontSize)}static get _keyboardManager(){const e=st.prototype,s=a=>a.isEmpty(),i=Dn.TRANSLATE_SMALL,n=Dn.TRANSLATE_BIG;return X(this,"_keyboardManager",new dh([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:s}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:s}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[i,0],checker:s}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[n,0],checker:s}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:s}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:s}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,i],checker:s}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,n],checker:s}]]))}static initialize(e,s){J.initialize(e,s,{strings:["pdfjs-free-text-default-content"]});const i=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(i.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,s){switch(e){case j.FREETEXT_SIZE:st._defaultFontSize=s;break;case j.FREETEXT_COLOR:st._defaultColor=s;break}}updateParams(e,s){switch(e){case j.FREETEXT_SIZE:b(this,Qc,xg).call(this,s);break;case j.FREETEXT_COLOR:b(this,Jc,Cg).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[j.FREETEXT_SIZE,st._defaultFontSize],[j.FREETEXT_COLOR,st._defaultColor||J._defaultLineColor]]}get propertiesToUpdate(){return[[j.FREETEXT_SIZE,r(this,le)],[j.FREETEXT_COLOR,r(this,Pe)]]}_translateEmpty(e,s){this._uiManager.translateSelectedEditors(e,s,!0)}getInitialTranslation(){const e=this.parentScale;return[-st._internalPadding*e,-(st._internalPadding+r(this,le))*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(W.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",r(this,vl)),this.editorDiv.addEventListener("focus",r(this,bl)),this.editorDiv.addEventListener("blur",r(this,ml)),this.editorDiv.addEventListener("input",r(this,Al)),this.editorDiv.addEventListener("paste",r(this,yl)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",r(this,_l)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",r(this,vl)),this.editorDiv.removeEventListener("focus",r(this,bl)),this.editorDiv.removeEventListener("blur",r(this,ml)),this.editorDiv.removeEventListener("input",r(this,Al)),this.editorDiv.removeEventListener("paste",r(this,yl)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var e;this.width||(this.enableEditMode(),this.editorDiv.focus(),(e=this._initialOptions)!=null&&e.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=r(this,oe),s=m(this,oe,b(this,Zc,Tg).call(this).trimEnd());if(e===s)return;const i=n=>{if(m(this,oe,n),!n){this.remove();return}b(this,zr,Bh).call(this),this._uiManager.rebuild(this),b(this,Ur,Nh).call(this)};this.addCommands({cmd:()=>{i(s)},undo:()=>{i(e)},mustExec:!1}),b(this,Ur,Nh).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){st._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,s;this.width&&(e=this.x,s=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",r(this,_l)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),J._l10nPromise.get("pdfjs-free-text-default-content").then(n=>{var a;return(a=this.editorDiv)==null?void 0:a.setAttribute("default-content",n)}),this.editorDiv.contentEditable=!0;const{style:i}=this.editorDiv;if(i.fontSize=`calc(${r(this,le)}px * var(--scale-factor))`,i.color=r(this,Pe),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),Yh(this,this.div,["dblclick","keydown"]),this.width){const[n,a]=this.parentDimensions;if(this.annotationElementId){const{position:o}=r(this,jr);let[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);const[d,u]=this.pageDimensions,[p,g]=this.pageTranslation;let A,v;switch(this.rotation){case 0:A=e+(o[0]-p)/d,v=s+this.height-(o[1]-g)/u;break;case 90:A=e+(o[0]-p)/d,v=s-(o[1]-g)/u,[l,c]=[c,-l];break;case 180:A=e-this.width+(o[0]-p)/d,v=s-(o[1]-g)/u,[l,c]=[-l,-c];break;case 270:A=e+(o[0]-p-this.height*u)/d,v=s+(o[1]-g-this.width*d)/u,[l,c]=[-c,l];break}this.setAt(A*n,v*a,l,c)}else this.setAt(e*n,s*a,this.width*n,this.height*a);b(this,zr,Bh).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(e){var A,v,_;const s=e.clipboardData||window.clipboardData,{types:i}=s;if(i.length===1&&i[0]==="text/plain")return;e.preventDefault();const n=b(A=st,El,Qu).call(A,s.getData("text")||"").replaceAll(wh,` diff --git a/public/admin-assets/assets/PdfViewer-DnMR6oPk.js.gz b/public/admin-assets/assets/PdfViewer-DnMR6oPk.js.gz new file mode 100644 index 0000000..faeff6b Binary files /dev/null and b/public/admin-assets/assets/PdfViewer-DnMR6oPk.js.gz differ diff --git a/public/admin-assets/assets/PdfViewer-DpKU4vvs.js.gz b/public/admin-assets/assets/PdfViewer-DpKU4vvs.js.gz deleted file mode 100644 index 5c6dce5..0000000 Binary files a/public/admin-assets/assets/PdfViewer-DpKU4vvs.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/RichText-BBz1q-uF.js.gz b/public/admin-assets/assets/RichText-BBz1q-uF.js.gz deleted file mode 100644 index 1da585d..0000000 Binary files a/public/admin-assets/assets/RichText-BBz1q-uF.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/RichText-BBz1q-uF.js b/public/admin-assets/assets/RichText-BD-pI9LS.js similarity index 65% rename from public/admin-assets/assets/RichText-BBz1q-uF.js rename to public/admin-assets/assets/RichText-BD-pI9LS.js index eea8fa9..2b8508a 100644 --- a/public/admin-assets/assets/RichText-BBz1q-uF.js +++ b/public/admin-assets/assets/RichText-BD-pI9LS.js @@ -1,23 +1,23 @@ -import{p as ke,o as Xe,s as ze,t as qe,G as je,R as We}from"./index-CgQH3-O6.js";var Ge={exports:{}};/*! +import{p as ke,o as qe,s as Ye,t as je,G as Ze,R as We}from"./index-Hn-s1JD5.js";var Fe={exports:{}};/*! * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2020 Froala Labs - */(function(Ie,Le){(function(o,t){Ie.exports=t()})(ke,function(){function o(e){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var r=this;if(!document.documentElement.contains(r))return null;do{if(r.matches(e))return r;r=r.parentElement||r.parentNode}while(r!==null&&r.nodeType===1);return null}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var r=(this.document||this.ownerDocument).querySelectorAll(e),s=r.length;0<=--s&&r.item(s)!==this;);return-1")},closeTagString:function(m){return"")},isFirstSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.previousSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.previousSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isLastSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.nextSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.nextSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isList:function(m){return!!m&&0<=["UL","OL"].indexOf(m.tagName)},isLink:function(m){return!!m&&m.nodeType===Node.ELEMENT_NODE&&m.tagName.toLowerCase()==="a"},isElement:E,contents:s,isVoid:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&0<=t.VOID_ELEMENTS.indexOf((m.tagName||"").toLowerCase())},hasFocus:function(m){return m===e.doc.activeElement&&(!e.doc.hasFocus||e.doc.hasFocus())&&!!(E(m)||m.type||m.href||~m.tabIndex)},isEditable:function(m){return(!m.getAttribute||m.getAttribute("contenteditable")!=="false")&&["STYLE","SCRIPT"].indexOf(m.tagName)<0},isDeletable:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&m.getAttribute("class")&&0<=(m.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(m,C){return m instanceof r&&(m=m.get(0)),m&&m.classList&&m.classList.contains(C)},filter:function(m){return e.browser.msie?m:{acceptNode:m}}}},Object.assign(t.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),t.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},t.MODULES.clean=function(e){var r,s,f,u,b=e.$;function E(x){if(x.nodeType===Node.ELEMENT_NODE&&x.getAttribute("class")&&0<=x.getAttribute("class").indexOf("fr-marker"))return!1;var v,A=e.node.contents(x),l=[];for(v=0;v");if(x.nodeType===Node.TEXT_NODE)return v?x.textContent.replace(/&/g,"&").replace(//g,">"):x.textContent.replace(/&/g,"&").replace(//g,">").replace(/\u00A0/g," ").replace(/\u0009/g,"");if(x.nodeType!==Node.ELEMENT_NODE||x.nodeType===Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(x.tagName))return x.outerHTML;if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="svg"){var A=document.createElement("div"),l=x.cloneNode(!0);return A.appendChild(l),A.innerHTML}if(x.tagName==="IFRAME")return x.outerHTML.replace(/</g,"<").replace(/>/g,">");var i=x.childNodes;if(i.length===0)return x.outerHTML;for(var a="",p=0;p)<[^<]*)*<\/script>/gi,function(c){return m.push(c),"[FROALA.EDITOR.SCRIPT ".concat(m.length-1,"]")})).replace(/)<[^<]*)*<\/noscript>/gi,function(c){return m.push(c),"[FROALA.EDITOR.NOSCRIPT ".concat(m.length-1,"]")})).replace(/")})).replace(/":c;var ie=O(e.html.extractNodeAttrs(h,"head")),D=O(e.html.extractNodeAttrs(h,"body"));return"".concat(M,"").concat(c,"").concat(p,"")}return p}(l,i,x))}function B(x){var v=e.doc.createElement("DIV");return v.innerText=x,v.textContent}function I(x){for(var v=e.node.contents(x),A=0;A")},closeTagString:function(m){return"")},isFirstSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.previousSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.previousSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isLastSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.nextSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.nextSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isList:function(m){return!!m&&0<=["UL","OL"].indexOf(m.tagName)},isLink:function(m){return!!m&&m.nodeType===Node.ELEMENT_NODE&&m.tagName.toLowerCase()==="a"},isElement:E,contents:s,isVoid:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&0<=t.VOID_ELEMENTS.indexOf((m.tagName||"").toLowerCase())},hasFocus:function(m){return m===e.doc.activeElement&&(!e.doc.hasFocus||e.doc.hasFocus())&&!!(E(m)||m.type||m.href||~m.tabIndex)},isEditable:function(m){return(!m.getAttribute||m.getAttribute("contenteditable")!=="false")&&["STYLE","SCRIPT"].indexOf(m.tagName)<0},isDeletable:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&m.getAttribute("class")&&0<=(m.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(m,C){return m instanceof r&&(m=m.get(0)),m&&m.classList&&m.classList.contains(C)},filter:function(m){return e.browser.msie?m:{acceptNode:m}}}},Object.assign(t.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),t.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},t.MODULES.clean=function(e){var r,s,f,u,b=e.$;function E(x){if(x.nodeType===Node.ELEMENT_NODE&&x.getAttribute("class")&&0<=x.getAttribute("class").indexOf("fr-marker"))return!1;var v,A=e.node.contents(x),l=[];for(v=0;v");if(x.nodeType===Node.TEXT_NODE)return v?x.textContent.replace(/&/g,"&").replace(//g,">"):x.textContent.replace(/&/g,"&").replace(//g,">").replace(/\u00A0/g," ").replace(/\u0009/g,"");if(x.nodeType!==Node.ELEMENT_NODE||x.nodeType===Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(x.tagName))return x.outerHTML;if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="svg"){var A=document.createElement("div"),l=x.cloneNode(!0);return A.appendChild(l),A.innerHTML}if(x.tagName==="IFRAME")return x.outerHTML.replace(/</g,"<").replace(/>/g,">");var i=x.childNodes;if(i.length===0)return x.outerHTML;for(var a="",p=0;p)<[^<]*)*<\/script>/gi,function(c){return m.push(c),"[FROALA.EDITOR.SCRIPT ".concat(m.length-1,"]")})).replace(/)<[^<]*)*<\/noscript>/gi,function(c){return m.push(c),"[FROALA.EDITOR.NOSCRIPT ".concat(m.length-1,"]")})).replace(/")})).replace(/":c;var ie=O(e.html.extractNodeAttrs(h,"head")),D=O(e.html.extractNodeAttrs(h,"body"));return"".concat(M,"").concat(c,"").concat(p,"")}return p}(l,i,x))}function B(x){var v=e.doc.createElement("DIV");return v.innerText=x,v.textContent}function I(x){for(var v=e.node.contents(x),A=0;A"))}(i),i.nodeType===Node.ELEMENT_NODE&&(i.getAttribute("data-fr-src")&&i.getAttribute("data-fr-src").indexOf("blob:")!==0&&i.setAttribute("data-fr-src",e.helpers.sanitizeURL(B(i.getAttribute("data-fr-src")))),i.getAttribute("href")&&i.setAttribute("href",e.helpers.sanitizeURL(B(i.getAttribute("href")))),i.getAttribute("src")&&i.setAttribute("src",e.helpers.sanitizeURL(B(i.getAttribute("src")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(i.tagName)&&(i.innerHTML=i.innerHTML.trim())),!e.opts.pasteAllowLocalImages&&i.nodeType===Node.ELEMENT_NODE&&i.tagName==="IMG"&&i.getAttribute("data-fr-src")&&i.getAttribute("data-fr-src").indexOf("file://")===0)return i.parentNode.removeChild(i),!1;if(i.nodeType===Node.ELEMENT_NODE&&t.HTML5Map[i.tagName]&&e.node.attributes(i)===""){var a=t.HTML5Map[i.tagName],p="<".concat(a,">").concat(i.innerHTML,"");i.insertAdjacentHTML("beforebegin",p),(i=i.previousSibling).parentNode.removeChild(i.nextSibling)}if(e.opts.htmlAllowComments||i.nodeType!==Node.COMMENT_NODE)if(i.tagName&&i.tagName.match(s))i.tagName=="STYLE"&&e.helpers.isMac()&&function(){for(var D,_=i.innerHTML.trim(),Q=[],re=/{([^}]+)}/g;D=re.exec(_);)Q.push(D[1]);for(var q=function(P){var K=_.substring(0,_.indexOf("{")).trim();i.parentNode.querySelectorAll(K).forEach(function(T){T.removeAttribute("class"),T.setAttribute("style",Q[P])}),_=_.substring(_.indexOf("}")+1)},ae=0;_.indexOf("{")!=-1;ae++)q(ae)}(),i.parentNode.removeChild(i);else if(i.tagName&&!i.tagName.match(r))i.tagName==="svg"?i.parentNode.removeChild(i):e.browser.safari&&i.tagName==="path"&&i.parentNode&&i.parentNode.tagName==="svg"||(i.outerHTML=i.innerHTML);else{var c=i.attributes;if(c)for(var h=c.length-1;0<=h;h--){var M=c[h],N=M.nodeName.match(f),ie=null;M.nodeName==="style"&&e.opts.htmlAllowedStyleProps.length&&(ie=M.value.match(u)),N&&ie?M.value=C(ie.join(";")):N&&(M.nodeName!=="style"||ie)||i.removeAttribute(M.nodeName)}}else i.data.indexOf("[FROALA.EDITOR")!==0&&i.parentNode.removeChild(i)})(x)}return{_init:function(){e.opts.fullPage&&b.merge(e.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(v,A,l,i){A===void 0&&(A=[]),l===void 0&&(l=[]);var a,p=b.merge([],e.opts.htmlAllowedTags);for(a=0;a").concat(v[l].innerHTML,""));A&&e.selection.restore()}},tables:function(){(function(){for(var A=e.el.querySelectorAll("tr"),l=0;l ul, ol > ol, ul > ol, ol > ul"),l=0;l"))}}(),function(){for(var A=e.el.querySelectorAll("li > ul, li > ol"),l=0;l ul, li > ol"),l=0;l");else if(i.previousSibling&&i.previousSibling.tagName==="BR"){for(var a=i.previousSibling.previousSibling;a&&e.node.hasClass(a,"fr-marker");)a=a.previousSibling;a&&a.tagName!=="BR"&&b(i.previousSibling).remove()}}}(),function(){for(var A=e.el.querySelectorAll("li:empty"),l=0;l/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^".concat(t.LinkRegExHTTP).concat(t.LinkRegExEnd,"$"),"gi").test(O))},getAlignment:function(O){O.css||(O=s(O));var U=(O.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(U)<0){if(!r){var y=s('
..
'));s("body").first().append(y);var B=y.find("#s1").get(0).getBoundingClientRect().left,I=y.find("#s2").get(0).getBoundingClientRect().left;y.remove(),r=B=(window.innerHeight||document.documentElement.clientHeight)}}},t.MODULES.events=function(e){var r,s=e.$,f={};function u(A,l,i){y(A,l,i)}function b(A){if(A===void 0&&(A=!0),!e.$wp||(e.helpers.isIOS()&&e.$win.get(0).focus(),e.core.hasFocus()))return!1;if(!e.core.hasFocus()&&A){var l=e.$win.scrollTop();if(e.browser.msie&&e.$box&&e.$box.css("position","fixed"),e.browser.msie&&e.$wp&&e.$wp.css("overflow","visible"),e.browser.msie&&e.$sc&&e.$sc.css("position","fixed"),m(),e.el.focus(),e.events.trigger("focus"),g(),e.browser.msie&&e.$sc&&e.$sc.css("position",""),e.browser.msie&&e.$box&&e.$box.css("position",""),e.browser.msie&&e.$wp&&e.$wp.css("overflow","auto"),l!==e.$win.scrollTop()&&e.$win.scrollTop(l),!e.selection.info(e.el).atStart)return!1}if(!e.core.hasFocus()||0").concat(U,"")),U}var f={bold:function(){E("bold","strong")},subscript:function(){e.format.is("sup")&&e.format.remove("sup"),E("subscript","sub")},superscript:function(){e.format.is("sub")&&e.format.remove("sub"),E("superscript","sup")},italic:function(){E("italic","em")},strikeThrough:function(){E("strikeThrough","s")},underline:function(){E("underline","u")},undo:function(){e.undo.run()},redo:function(){e.undo.redo()},indent:function(){g(1)},outdent:function(){g(-1)},show:function(){e.opts.toolbarInline&&e.toolbar.showInline(null,!0)},insertHR:function(){e.selection.remove();var U="";e.core.isEmpty()&&(U=s(U="
")),e.html.insert('
'.concat(U));var y,B=e.$el.find("hr#fr-just").length?e.$el.find("hr#fr-just"):e.$el.find(".fr-just");if(B.removeAttr("id"),B.removeAttr("class"),B.next().length===0){var I=e.html.defaultTag();I?B.after(r(e.doc.createElement(I)).append("
").get(0)):B.after("
")}B.prev().is("hr")?y=e.selection.setAfter(B.get(0),!1):B.next().is("hr")?y=e.selection.setBefore(B.get(0),!1):e.selection.setAfter(B.get(0),!1)||e.selection.setBefore(B.get(0),!1),y||y===void 0||(U=s(U="".concat(t.MARKERS,"
")),B.after(U)),e.selection.restore()},clearFormatting:function(){e.format.remove()},selectAll:function(){e.doc.execCommand("selectAll",!1,!1)},moreText:function(U){u(U)},moreParagraph:function(U){u(U)},moreRich:function(U){u(U)},moreMisc:function(U){u(U)}};function u(U){(function(B){var I=e.$tb.find('.fr-more-toolbar[data-name="'.concat(B.attr("data-group-name"),'"]'));e.$tb.find(".fr-open").not(B).removeClass("fr-open"),B.toggleClass("fr-open"),e.$tb.find(".fr-more-toolbar").removeClass("fr-overflow-visible"),e.$tb.find(".fr-expanded").not(I).length?(e.$tb.find(".fr-expanded").toggleClass("fr-expanded"),I.toggleClass("fr-expanded")):(I.toggleClass("fr-expanded"),e.$box.toggleClass("fr-toolbar-open"),e.$tb.toggleClass("fr-toolbar-open"))})(e.$tb.find("[data-cmd=".concat(U,"]"))),e.toolbar.setMoreToolbarsHeight()}function b(U,y){if(e.events.trigger("commands.before",r.merge([U],y||[]))!==!1){var B=t.COMMANDS[U]&&t.COMMANDS[U].callback||f[U],I=!0,x=!1;t.COMMANDS[U]&&(typeof t.COMMANDS[U].focus<"u"&&(I=t.COMMANDS[U].focus),typeof t.COMMANDS[U].accessibilityFocus<"u"&&(x=t.COMMANDS[U].accessibilityFocus)),(!e.core.hasFocus()&&I&&!e.popups.areVisible()||!e.core.hasFocus()&&x&&e.accessibility.hasFocus())&&e.events.focus(!0),t.COMMANDS[U]&&t.COMMANDS[U].undo!==!1&&(e.$el.find(".fr-marker").length&&(e.events.disableBlur(),e.selection.restore()),e.undo.saveStep()),B&&B.apply(e,r.merge([U],y||[])),e.events.trigger("commands.after",r.merge([U],y||[])),t.COMMANDS[U]&&t.COMMANDS[U].undo!==!1&&e.undo.saveStep()}}function E(U,y){e.format.toggle(y)}function g(U){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();for(var y=e.selection.blocks(),B=0;B").concat(t.MARKERS,"
").concat(U):O?"".concat(y,"<").concat(O,">").concat(t.MARKERS,"
").concat(U):"".concat(y+t.MARKERS,"
").concat(U);["UL","OL"].indexOf(B.tagName)<0||B.parentNode&&B.parentNode.tagName==="LI";)B=B.parentNode;r(g).replaceWith('');var x=e.node.openTagString(B)+r(B).html()+e.node.closeTagString(B);x=x.replace(/<\/span>/g,I),r(B).replaceWith(x),e.$el.find("li:empty").remove()}else if(C&&m||!e.node.isEmpty(g,!0)){for(var v="
",A=b.parentNode;A&&A.tagName!=="LI";)v=e.node.openTagString(A)+v+e.node.closeTagString(A),A=A.parentNode;r(g).before("
  • ".concat(v,"
  • ")),r(b).remove()}else if(C){E=f(g);for(var l="".concat(t.MARKERS,"
    "),i=b.parentNode;i&&i.tagName!=="LI";)l=e.node.openTagString(i)+l+e.node.closeTagString(i),i=i.parentNode;E.parentNode&&E.parentNode.tagName==="LI"?r(E.parentNode).after("
  • ".concat(l,"
  • ")):O?r(E).after("<".concat(O,">").concat(l,"")):r(E).after(l),r(g).remove()}else(E=f(g)).parentNode&&E.parentNode.tagName==="LI"?m?r(E.parentNode).before("".concat(e.node.openTagString(g)+t.MARKERS,"
    ")):r(E.parentNode).after("".concat(e.node.openTagString(g)+t.MARKERS,"
    ")):O?r(E).before("<".concat(O,">").concat(t.MARKERS,"
    ")):r(E).before("".concat(t.MARKERS,"
    ")),r(g).remove()},_middleEnter:function(b){for(var E=s(b),g="",m=b,C="",O="",U=!1;m!==E;){var y=(m=m.parentNode).tagName==="A"&&e.cursor.isAtEnd(b,m)?"fr-to-remove":"";U||m==E||e.node.isBlock(m)||(U=!0,C+=t.INVISIBLE_SPACE),C=e.node.openTagString(r(m).clone().addClass(y).get(0))+C,O=e.node.closeTagString(m)+O}g=O+g+C+t.MARKERS+(e.opts.keepFormatOnDelete?t.INVISIBLE_SPACE:""),r(b).replaceWith('');var B=e.node.openTagString(E)+r(E).html()+e.node.closeTagString(E);B=B.replace(/<\/span>/g,g),r(E).replaceWith(B)},_endEnter:function(b){for(var E=s(b),g=t.MARKERS,m="",C=b,O=!1;C!==E;)if(!(C=C.parentNode).classList.contains("fr-img-space-wrap")&&!C.classList.contains("fr-img-space-wrap2")){var U=C.tagName==="A"&&e.cursor.isAtEnd(b,C)?"fr-to-remove":"";O||C===E||e.node.isBlock(C)||(O=!0,m+=t.INVISIBLE_SPACE),m=e.node.openTagString(r(C).clone().addClass(U).get(0))+m,g+=e.node.closeTagString(C)}var y=m+g;r(b).remove(),r(E).after(y)},_backspace:function(b){var E=s(b),g=E.previousSibling;if(g){g=r(g).find(e.html.blockTagsQuery()).get(-1)||g,r(b).replaceWith(t.MARKERS);var m=e.node.contents(g);m.length&&m[m.length-1].tagName==="BR"&&r(m[m.length-1]).remove(),r(E).find(e.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===E&&r(this).replaceWith(r(this).html()+(e.node.isEmpty(this)?"":"
    "))});for(var C,O=e.node.contents(E)[0];O&&!e.node.isList(O);)C=O.nextSibling,r(g).append(O),O=C;for(g=E.previousSibling;O;)C=O.nextSibling,r(g).append(O),O=C;1<(m=e.node.contents(g)).length&&m[m.length-1].tagName==="BR"&&r(m[m.length-1]).remove(),r(E).remove()}else{var U=f(E);if(r(b).replaceWith(t.MARKERS),U.parentNode&&U.parentNode.tagName==="LI"){var y=U.previousSibling;e.node.isBlock(y)?(r(E).find(e.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===E&&r(this).replaceWith(r(this).html()+(e.node.isEmpty(this)?"":"
    "))}),r(y).append(r(E).html())):r(U).before(r(E).html())}else{var B=e.html.defaultTag();B&&r(E).find(e.html.blockTagsQuery()).length===0?r(U).before("<".concat(B,">").concat(r(E).html(),"")):r(U).before(r(E).html())}r(E).remove(),e.html.wrap(),r(U).find("li").length===0&&r(U).remove()}},_del:function(b){var E,g=s(b),m=g.nextSibling;if(m){(E=e.node.contents(m)).length&&E[0].tagName==="BR"&&r(E[0]).remove(),r(m).find(e.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===m&&r(this).replaceWith(r(this).html()+(e.node.isEmpty(this)?"":"
    "))});for(var C,O=b,U=e.node.contents(m)[0];U&&!e.node.isList(U);)C=U.nextSibling,r(O).after(U),O=U,U=C;for(;U;)C=U.nextSibling,r(g).append(U),U=C;r(b).replaceWith(t.MARKERS),r(m).remove()}else{for(var y=g;!y.nextSibling&&y!==e.el;)y=y.parentNode;if(y===e.el)return!1;if(y=y.nextSibling,e.node.isBlock(y))t.NO_DELETE_TAGS.indexOf(y.tagName)<0&&(r(b).replaceWith(t.MARKERS),(E=e.node.contents(g)).length&&E[E.length-1].tagName==="BR"&&r(E[E.length-1]).remove(),r(g).append(r(y).html()),r(y).remove());else for((E=e.node.contents(g)).length&&E[E.length-1].tagName==="BR"&&r(E[E.length-1]).remove(),r(b).replaceWith(t.MARKERS);y&&!e.node.isBlock(y)&&y.tagName!=="BR";)r(g).append(r(y)),y=y.nextSibling}}}},t.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],t.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],t.MODULES.cursor=function(e){var r=e.$;function s(I){return!!I&&(!!e.node.isBlock(I)||(I.nextSibling&&I.nextSibling.nodeType===Node.TEXT_NODE&&I.nextSibling.textContent.replace(/\u200b/g,"").length===0?s(I.nextSibling):!(I.nextSibling&&(!I.previousSibling||I.nextSibling.tagName!=="BR"||I.nextSibling.nextSibling))&&s(I.parentNode)))}function f(I){return!!I&&(!!e.node.isBlock(I)||(I.previousSibling&&I.previousSibling.nodeType===Node.TEXT_NODE&&I.previousSibling.textContent.replace(/\u200b/g,"").length===0?f(I.previousSibling):!I.previousSibling&&(!(I.previousSibling||!e.node.hasClass(I.parentNode,"fr-inner"))||f(I.parentNode))))}function u(I,x){return!!I&&I!==e.$wp.get(0)&&(I.previousSibling&&I.previousSibling.nodeType===Node.TEXT_NODE&&I.previousSibling.textContent.replace(/\u200b/g,"").length===0?u(I.previousSibling,x):!I.previousSibling&&(I.parentNode===x||u(I.parentNode,x)))}function b(I,x){return!!I&&I!==e.$wp.get(0)&&(I.nextSibling&&I.nextSibling.nodeType===Node.TEXT_NODE&&I.nextSibling.textContent.replace(/\u200b/g,"").length===0?b(I.nextSibling,x):!(I.nextSibling&&(!I.previousSibling||I.nextSibling.tagName!=="BR"||I.nextSibling.nextSibling))&&(I.parentNode===x||b(I.parentNode,x)))}function E(I){return 0=e.opts.tabSpaces&&A.substr(A.length-e.opts.tabSpaces,A.length-1).replace(/ /g,"").replace(new RegExp(t.UNICODE_NBSP,"g"),"").length===0&&(l=A.length-e.opts.tabSpaces+1),v.textContent=A.substring(0,l-g(A)),e.opts.htmlUntouched&&!I.nextSibling&&v.textContent.length&&v.textContent[v.textContent.length-1]===" "&&(v.textContent=v.textContent.substring(0,v.textContent.length-1)+t.UNICODE_NBSP);var i=A.length!==v.textContent.length;if(v.textContent.length===0)if(i&&e.opts.keepFormatOnDelete)r(v).after(t.INVISIBLE_SPACE+t.MARKERS);else if(A.length!==0&&e.node.isBlock(v.parentNode))r(v).after(t.MARKERS);else if((v.parentNode.childNodes.length!=2||v.parentNode!=I.parentNode)&&v.parentNode.childNodes.length!=1||e.node.isBlock(v.parentNode)||e.node.isElement(v.parentNode)||!e.node.isDeletable(v.parentNode)){for(;!e.node.isElement(v.parentNode)&&e.node.isEmpty(v.parentNode)&&t.NO_DELETE_TAGS.indexOf(v.parentNode.tagName)<0;){var a=v;v=v.parentNode,a.parentNode.removeChild(a)}r(v).after(t.MARKERS),e.node.isElement(v.parentNode)&&!I.nextSibling&&v.previousSibling&&v.previousSibling.tagName==="BR"&&r(I).after("
    "),v.parentNode.removeChild(v)}else r(v.parentNode).after(t.MARKERS),r(v.parentNode).remove();else r(v).after(t.MARKERS)}else e.node.isDeletable(v)?(r(v).after(t.MARKERS),r(v).remove()):I.nextSibling&&I.nextSibling.tagName==="BR"&&e.node.isVoid(v)&&v.tagName!=="BR"?(r(I.nextSibling).remove(),r(I).replaceWith(t.MARKERS)):e.events.trigger("node.remove",[r(v)])!==!1&&(r(v).after(t.MARKERS),r(v).remove())}else if(t.NO_DELETE_TAGS.indexOf(v.tagName)<0&&(e.node.isEditable(v)||e.node.isDeletable(v)))if(e.node.isDeletable(v))r(I).replaceWith(t.MARKERS),r(v).remove();else if(e.node.isEmpty(v)&&!e.node.isList(v))r(v).remove(),r(I).replaceWith(t.MARKERS);else{for(e.node.isList(v)&&(v=r(v).find("li").last().get(0)),(x=e.node.contents(v))&&x[x.length-1].tagName==="BR"&&r(x[x.length-1]).remove(),x=e.node.contents(v);x&&e.node.isBlock(x[x.length-1]);)v=x[x.length-1],x=e.node.contents(v);r(v).append(t.MARKERS);for(var p=I;!p.previousSibling;)p=p.parentNode;for(;p&&p.tagName!=="BR"&&!e.node.isBlock(p);){var c=p;p=p.nextSibling,r(v).append(c)}p&&p.tagName==="BR"&&r(p).remove(),r(I).remove()}else I.nextSibling&&I.nextSibling.tagName==="BR"&&r(I.nextSibling).remove();return!0}function C(I){var x=0"))}),r(v).append(e.node.contents(a.get(0))),a.remove(),r(i).find("li").length===0&&r(i).remove())}else{if((l=e.node.contents(i)).length&&l[0].tagName==="BR"&&r(l[0]).remove(),i.tagName!=="BLOCKQUOTE"&&v.tagName==="BLOCKQUOTE")for(l=e.node.contents(v);l.length&&e.node.isBlock(l[l.length-1]);)v=l[l.length-1],l=e.node.contents(v);else if(i.tagName==="BLOCKQUOTE"&&v.tagName!=="BLOCKQUOTE")for(l=e.node.contents(i);l.length&&e.node.isBlock(l[0]);)i=l[0],l=e.node.contents(i);r(I).replaceWith(t.MARKERS),r(v).append(i.innerHTML),r(i).remove()}else{for(r(I).replaceWith(t.MARKERS);i&&i.tagName!=="BR"&&!e.node.isBlock(i)&&e.node.isEditable(i);){var p=i;i=i.nextSibling,r(v).append(p)}i&&i.tagName==="BR"&&e.node.isEditable(i)&&r(i).remove()}}}function O(I){for(var x,v=I;!v.nextSibling;)if(v=v.parentNode,e.node.isElement(v))return!1;if((v=v.nextSibling).tagName==="BR"&&e.node.isEditable(v)){if(v.nextSibling){if(e.node.isBlock(v.nextSibling)&&e.node.isEditable(v.nextSibling)){if(!(t.NO_DELETE_TAGS.indexOf(v.nextSibling.tagName)<0))return void r(v).remove();v=v.nextSibling,r(v.previousSibling).remove()}}else if(s(v)){E(I)?e.cursorLists._del(I):e.node.deepestParent(v)&&((!e.node.isEmpty(e.node.blockParent(v))||(e.node.blockParent(v).nextSibling&&t.NO_DELETE_TAGS.indexOf(e.node.blockParent(v).nextSibling.tagName))<0)&&r(v).remove(),C(I));return}}if(!e.node.isBlock(v)&&e.node.isEditable(v)){for(x=e.node.contents(v);v.nodeType!==Node.TEXT_NODE&&x.length&&!e.node.isDeletable(v)&&e.node.isEditable(v);)v=x[0],x=e.node.contents(v);v.nodeType===Node.TEXT_NODE?(r(v).before(t.MARKERS),v.textContent.length&&(v.textContent=v.textContent.substring(g(v.textContent,!0),v.textContent.length))):(e.node.isDeletable(v)||e.events.trigger("node.remove",[r(v)])!==!1)&&(r(v).before(t.MARKERS),r(v).remove()),r(I).remove()}else if(t.NO_DELETE_TAGS.indexOf(v.tagName)<0&&(e.node.isEditable(v)||e.node.isDeletable(v)))if(e.node.isDeletable(v))r(I).replaceWith(t.MARKERS),r(v).remove();else if(e.node.isList(v))I.previousSibling?(r(v).find("li").first().prepend(I),e.cursorLists._backspace(I)):(r(v).find("li").first().prepend(t.MARKERS),r(I).remove());else if((x=e.node.contents(v))&&x[0].tagName==="BR"&&r(x[0]).remove(),x&&v.tagName==="BLOCKQUOTE"){var A=x[0];for(r(I).before(t.MARKERS);A&&A.tagName!=="BR";){var l=A;A=A.nextSibling,r(I).before(l)}A&&A.tagName==="BR"&&r(A).remove()}else r(I).after(r(v).html()).after(t.MARKERS),r(v).remove()}function U(){for(var I=e.el.querySelectorAll("blockquote:empty"),x=0;x"+t.MARKERS):A?r(l).after("<".concat(A,">").concat(t.MARKERS,"
    ")):r(l).after("".concat(t.MARKERS,"
    ")),r(I).remove()):B(I,x,v),!1;if(l===null)(A=e.html.defaultTag())&&e.node.isElement(I.parentNode)?r(I).replaceWith("<".concat(A,">").concat(t.MARKERS,"
    ")):!I.previousSibling||r(I.previousSibling).is("br")||I.nextSibling?r(I).replaceWith("
    ".concat(t.MARKERS)):r(I).replaceWith("
    ".concat(t.MARKERS,"
    "));else{var i=I,a="";l.tagName!="PRE"||I.nextSibling||(x=!0),e.node.isBlock(l)&&!x||(a="
    ");var p,c="",h="",M="",N="";(A=e.html.defaultTag())&&e.node.isBlock(l)&&(M="<".concat(A,">"),N=""),l.tagName===A.toUpperCase()&&(M=e.node.openTagString(r(l).clone().removeAttr("id").get(0))));do if(i=i.parentNode,!x||i!==l||x&&!e.node.isBlock(l))if(c+=e.node.closeTagString(i),i===l&&e.node.isBlock(l))h=M+h;else{var ie=(i.tagName==="A"||e.node.hasClass(i,"fa"))&&b(I,i)?"fr-to-remove":"";h=e.node.openTagString(r(i).clone().addClass(ie).get(0))+h}while(i!==l);a=c+a+h+(I.parentNode===l&&e.node.isBlock(l)?"":t.INVISIBLE_SPACE)+t.MARKERS,e.node.isBlock(l)&&!r(l).find("*").last().is("br")&&r(l).append("
    "),r(I).after(''),r(I).remove(),l.nextSibling&&!e.node.isBlock(l.nextSibling)||e.node.isBlock(l)||r(l).after("
    "),p=(p=!x&&e.node.isBlock(l)?e.node.openTagString(l)+r(l).html()+N:e.node.openTagString(l)+r(l).html()+e.node.closeTagString(l)).replace(/<\/span>/g,a),r(l).replaceWith(p)}}function B(I,x,v){var A=e.node.deepestParent(I,[],!v);if(A===null)e.html.defaultTag()&&I.parentNode===e.el?r(I).replaceWith("<".concat(e.html.defaultTag(),">").concat(t.MARKERS,"
    ")):(I.nextSibling&&!e.node.isBlock(I.nextSibling)||r(I).after("
    "),r(I).replaceWith("
    ".concat(t.MARKERS)));else if(I.previousSibling&&I.previousSibling.tagName=="IMG"||I.nextSibling&&I.nextSibling.tagName=="IMG")r(I).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"
    ");else{var l=I,i="";A.tagName==="PRE"&&(x=!0),e.node.isBlock(A)&&!x||(i="
    ");var a="",p="";do{var c=l;if(l=l.parentNode,A.tagName==="BLOCKQUOTE"&&e.node.isEmpty(c)&&!e.node.hasClass(c,"fr-marker")&&r(c).contains(I)&&r(c).after(I),A.tagName!=="BLOCKQUOTE"||!b(I,l)&&!u(I,l))if(!x||l!==A||x&&!e.node.isBlock(A)){a+=e.node.closeTagString(l);var h=l.tagName=="A"&&b(I,l)||e.node.hasClass(l,"fa")?"fr-to-remove":"";p=e.node.openTagString(r(l).clone().addClass(h).removeAttr("id").get(0))+p}else A.tagName=="BLOCKQUOTE"&&x&&(p=a="")}while(l!==A);var M=A===I.parentNode&&e.node.isBlock(A)||I.nextSibling;if(A.tagName==="BLOCKQUOTE")if(I.previousSibling&&e.node.isBlock(I.previousSibling)&&I.nextSibling&&I.nextSibling.tagName==="BR"&&(r(I.nextSibling).after(I),I.nextSibling&&I.nextSibling.tagName==="BR"&&r(I.nextSibling).remove()),x)i=a+i+t.MARKERS+p;else{var N=e.html.defaultTag();i="".concat(a+i+(N?"<".concat(N,">"):"")+t.MARKERS,"
    ").concat(N?""):"").concat(p)}else i=a+i+p+(M?"":t.INVISIBLE_SPACE)+t.MARKERS;r(I).replaceWith('');var ie=e.node.openTagString(A)+r(A).html()+e.node.closeTagString(A);ie=ie.replace(/<\/span>/g,i),r(A).replaceWith(ie)}}return{enter:function(x){var v=e.markers.insert();if(!v)return!0;for(var A=v.parentNode;A&&!e.node.isElement(A);){if(A.getAttribute("contenteditable")==="false")return r(v).replaceWith(t.MARKERS),e.selection.restore(),!1;if(A.getAttribute("contenteditable")==="true")break;A=A.parentNode}e.el.normalize();var l=!1;0").concat(t.MARKERS,"
    ")):r(M).before("".concat(t.MARKERS,"
    ")),r(a).remove(),!1}else b(a,M)?y(a,p,!0):B(a,p,!0);if(M===null)(h=e.html.defaultTag())&&e.node.isElement(a.parentNode)?r(a).replaceWith("<".concat(h,">").concat(t.MARKERS,"
    ")):r(a).replaceWith("
    ".concat(t.MARKERS));else{if(e.node.isBlock(M))if(M.tagName==="PRE"&&(p=!0),p)r(a).remove(),r(M).prepend("
    ".concat(t.MARKERS));else if(a.nextSibling&&a.nextSibling.tagName=="IMG"||a.nextSibling&&a.nextSibling.nextElementSibling&&a.nextSibling.nextElementSibling=="IMG")r(a).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"
    ");else{if(e.node.isEmpty(M,!0))return y(a,p,c);if(e.opts.keepFormatOnDelete){for(var N=a,ie=t.INVISIBLE_SPACE;N!==M&&!e.node.isElement(N);)N=N.parentNode,ie=e.node.openTagString(N)+ie+e.node.closeTagString(N);r(M).before(ie)}else r(M).before("".concat(e.node.openTagString(r(M).clone().removeAttr("id").get(0)),"
    ").concat(e.node.closeTagString(M)))}else r(M).before("
    ");r(a).remove()}}(v,x,l):e.cursorLists._startEnter(v):!E(v)||x||l?B(v,x,l):e.cursorLists._middleEnter(v),function(){e.$el.find(".fr-to-remove").each(function(){for(var a=e.node.contents(this),p=0;p div").first(),O=C.find("> a"),e.opts.direction==="rtl"&&C.css("left","auto").css("right",0).attr("direction","rtl"),i++}function g(a){for(var p=[l("9qqG-7amjlwq=="),l("KA3B3C2A6D1D5H5H1A3=="),l("3B9B3B5F3C4G3E3=="),l("QzbzvxyB2yA-9m=="),l("ji1kacwmgG5bc=="),l("nmA-13aogi1A3c1jd=="),l("BA9ggq=="),l("emznbjbH3fij=="),l("tkC-22d1qC-13sD1wzF-7=="),l("tA3jjf=="),l("1D1brkm==")],c=0;cthis.length)&&(M=this.length),this.substring(M-h.length,M)===h}),a.endsWith(p[c]))return!0;return!1}function m(){var a=l(I),p=l("tzgatD-13eD1dtdrvmF3c1nrC-7saQcdav==").split(".");return window.parent.document.querySelector(a)&&window[p[1]][p[2]]}var C,O,U=e.$,y="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2FC1A3NB2IF1HE1TH4WB8eB-11zVG2F3I3yYB5ZG4CB2DA15CC5AD3F1A1KG1oLA10B1A6wQF1H3vgale2C4F4XA2qc2A5D5B3pepmriKB3OE1HD1fUC10pjD-11E-11TB4YJ3bC-16zE-11yc1B2CE2BC3jhjKC1pdA-21OA6C1D5B-8vF4QA11pD6sqf1C3lldA-16BD4A2H3qoEA7bB-16rmNH5H1F1vSB7RE2A3TH4YC5A5b1A4d1B3whepyAC3AA2zknC3mbgf1SC4WH4PD8TC5ZB2C3H3jb2A5ZA2EF2aoFC5qqHC4B1H1zeGA7UA5RF4TA29TA6ZC4d1C3hyWA10A3rBB2E3decorationRD3QC10UD3E6E6ZD2F3F3fme2E5uxxrEC9C3E4fB-11azhHB1LD7D6VF4VVTPC6b1C4TYG3qzDD6B3B3AH4I2H2kxbHE1JD1yihfd1QD6WB1D4mhrc1B5rvFG3A14A7cDA2OC1AA1JB5zC-16KA6WB4C-8wvlTB5A5lkZB2C2C7zynBD2D2bI-7C-21d1HE2cubyvPC8A6VB3aroxxZE4C4F4e1I2BE1WjdifH1H4A14NA1GB1YG-10tWA3A14A9sVA2C5XH2A29b2A6gsleGG2jaED2D-13fhE1OA8NjwytyTD4e1sc1D-16ZC3B5C-9e1C2FB6EFF5B2C2JH4E1C2tdLE5A3UG4G-7b2D3B4fA-9oh1G3kqvB4AG3ibnjcAC6D2B1cDA9KC2QA6bRC4VA30RB8hYB2A4A-8h1A21A2B2==",B="7D4YH4fkhHB3pqDC3H2E1fkMD1IB1NF1D3QD9wB5rxqlh1A8c2B4ZA3FD2AA6FB5EB3jJG4D2J-7aC-21GB6PC5RE4TC11QD6XC4XE3XH3mlvnqjbaOA2OC2BE6A1fmI-7ujwbc1G5f1F3e1C11mXF4owBG3E1yD1E4F1D2D-8B-8C-7yC-22HD1MF5UE4cWA3D8D6a1B2C3H3a3I3sZA4B3A2akfwEB3xHD5D1F1wIC11pA-16xdxtVI2C9A6YC4a1A2F3B2GA6B4C3lsjyJB1eMA1D-11MF5PE4ja1D3D7byrf1C3e1C7D-16lwqAF3H2A1B-21wNE1MA1OG1HB2A-16tSE5UD4RB3icRA4F-10wtwzBB3E1C3CC2DA8LA2LA1EB1kdH-8uVB7decorg1J2B7B6qjrqGI2J1C6ijehIB1hkemC-13hqkrH4H-7QD6XF5XF3HLNAC3CB2aD2CD2KB10B4ycg1A-8KA4H4B11jVB5TC4yqpB-21pd1E4pedzGB6MD5B3ncB-7MA4LD2JB6PD5uH-8TB9C7YD5XD2E3I3jmiDB3zeimhLD8E2F2JC1H-9ivkPC5lG-10SB1D3H3A-21rc1A3d1E3fsdqwfGA2KA1OrC-22LA6D1B4afUB16SC7AitC-8qYA11fsxcajGA15avjNE2A-9h1hDB16B9tPC1C5F5UC1G3B8d2A5d1D4RnHJ3C3JB5D3ucMG1yzD-17hafjC-8VD3yWC6e1YD2H3ZE2C8C5oBA3H3D2vFA4WzJC4C2i1A-65fNB8afWA1H4A26mvkC-13ZB3E3h1A21BC4eFB2GD2AA5ghqND2A2B2==",I="MekC-11nB-8tIzpD7pewxvzC6mD-16xerg1==",x="AA15A8B6C4B5A2E2B3B1A7==",v="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2EE1MA2ND1KD1IE4cA-21pSD2D5ve1G3h1A8b1E5ZC3CD2FA16mC5OC5E1hpnG1NA10B1D7hkUD4I-7b2C3C5nXD2E3F3whidEC2EH3GI2mJE2E2bxci1WA10VC7pllSG2F3A7xd1A4ZC3DB2aaeGA2DE4H2E1j1ywD-13FD1A3VE4WA3D8C6wuc1A2hf1B5B7vnrrjA1B9ic1mpbD1oMB1iSB7rWC4RI4G-7upB6jd1A2F3H2EA4FD3kDF4A2moc1anJD1TD4VI4b2C7oeQF4c1E3XC7ZA3C3G3uDB2wGB6D1JC4D1JD4C1hTE6QC5pH4pD3C-22D7c1A3textAA4gdlB2mpozkmhNC1mrxA3yWA5edhg1I2H3B7ozgmvAI3I2B5GD1LD2RSNH1KA1XA5SB4PA3sA9tlmC-9tnf1G3nd1coBH4I2I2JC3C-16LE6A1tnUA3vbwQB1G3f1A20a3A8a1C6pxAB2eniuE1F3kH2lnjB2hB-16XA5PF1G4zwtYA5B-11mzTG2B9pHB3BE2hGH3B3B2cMD5C1F1wzPA8E7VG5H5vD3H-7C8tyvsVF2I1G2A5fE3bg1mgajoyxMA4fhuzSD8aQB2B4g1A20ukb1A4B3F3GG2CujjanIC1ObiB11SD1C5pWC1D4YB8YE5FE-11jXE2F-7jB4CC2G-10uLH4E1C2tA-13yjUH5d1H1A7sWD5E4hmjF-7pykafoGA16hDD4joyD-8OA33B3C2tC7cRE4SA31a1B8d1e2A4F4g1A2A22CC5zwlAC2C1A12==",A=function(){for(var a=0,p=document.domain,c=p.split("."),h="_gd".concat(new Date().getTime());a")}(y)),e.selection.restore();else{var x;e.selection.save(),b(e.$el.find('.fr-marker[data-type="true"]').length&&e.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,y,B);do for(x=e.$el.find("".concat(f(y,B)," > ").concat(f(y,B))),I=0;I
    '),A=a.html().replace(/<\/span>/,l+e.node.closeTagString(a.get(0))+i+p+l+e.node.openTagString(a.get(0))+i),a.replaceWith(e.node.openTagString(a.get(0))+A+e.node.closeTagString(a.get(0))),!0}return!1}function m(y,B){B===void 0&&(B={}),B.style&&delete B.style;var I=e.selection.isCollapsed();e.selection.save();for(var x=!0;x;){x=!1;for(var v=e.$el.find(".fr-marker"),A=0;A')){if(e.node.isEmpty(a.get(0)))i=r(e.doc.createElement("span")).attr("style","".concat(y,": ").concat(B,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),a.replaceWith(i);else{var p={};p["style*"]="".concat(y,":"),g(x,"span",p,!0),x=e.$el.find(".fr-marker"),B?(i=r(e.doc.createElement("span")).attr("style","".concat(y,": ").concat(B,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),x.replaceWith(i)):x.replaceWith(t.INVISIBLE_SPACE+t.MARKERS)}e.html.cleanEmptyTags()}else e.node.isEmpty(a.get(0))&&a.is("span")?(x.replaceWith(t.MARKERS),a.css(y,B)):(i=r('').concat(t.INVISIBLE_SPACE).concat(t.MARKERS,"")),x.replaceWith(i));i&&O(i,y,B)}else{if(e.selection.save(),B===null||y==="color"&&0").concat(p);y.replaceWith('');var ie=l.get(0).outerHTML;r(l.get(0)).replaceWith(ie.replace(/<\/span>/g,function(){return N}))}}function U(y,B){B===void 0&&(B={}),B.style&&delete B.style;var I=e.selection.ranges(0),x=I.startContainer;if(x.nodeType===Node.ELEMENT_NODE&&0"),t.END_MARKER='"),t.MARKERS=t.START_MARKER+t.END_MARKER,t.MODULES.markers=function(e){var r=e.$;function s(){if(!e.$wp)return null;try{var u=e.selection.ranges(0),b=u.commonAncestorContainer;if(b!==e.el&&!e.$el.contains(b))return null;var E=u.cloneRange(),g=u.cloneRange();E.collapse(!0);var m=r(e.doc.createElement("SPAN")).addClass("fr-marker").attr("style","display: none; line-height: 0;").html(t.INVISIBLE_SPACE).get(0);if(E.insertNode(m),m=e.$el.find("span.fr-marker").get(0)){for(var C=m.nextSibling;C&&C.nodeType===Node.TEXT_NODE&&C.textContent.length===0;)r(C).remove(),C=e.$el.find("span.fr-marker").get(0).nextSibling;return e.selection.clear(),e.selection.get().addRange(g),m}return null}catch{}}function f(){e.$el.find(".fr-marker").remove()}return{place:function(b,E,g){var m,C,O;try{var U=b.cloneRange();if(U.collapse(E),U.insertNode(function(I,x){var v=r(e.doc.createElement("SPAN"));return v.addClass("fr-marker").attr("data-id",x).attr("data-type",I).attr("style","display: ".concat(e.browser.safari?"none":"inline-block","; line-height: 0;")).html(t.INVISIBLE_SPACE),v.get(0)}(E,g)),E===!0)for(O=(m=e.$el.find('span.fr-marker[data-type="true"][data-id="'.concat(g,'"]')).get(0)).nextSibling;O&&O.nodeType===Node.TEXT_NODE&&O.textContent.length===0;)r(O).remove(),O=m.nextSibling;if(E===!0&&!b.collapsed){for(;!e.node.isElement(m.parentNode)&&!O;)r(m.parentNode).after(m),O=m.nextSibling;if(O&&O.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(O)&&O.tagName!=="HR"){for(C=[O];O=C[0],(C=e.node.contents(O))[0]&&e.node.isBlock(C[0]););r(O).prepend(r(m))}}if(E===!1&&!b.collapsed){if((O=(m=e.$el.find('span.fr-marker[data-type="false"][data-id="'.concat(g,'"]')).get(0)).previousSibling)&&O.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(O)&&O.tagName!=="HR"){for(C=[O];O=C[C.length-1],(C=e.node.contents(O))[C.length-1]&&e.node.isBlock(C[C.length-1]););r(O).append(r(m))}(m.parentNode&&0<=["TD","TH"].indexOf(m.parentNode.tagName)||!m.previousSibling&&e.node.isBlock(m.parentElement))&&m.parentNode.previousSibling&&!m.previousSibling&&r(m.parentNode.previousSibling).append(m)}var y=e.$el.find('span.fr-marker[data-type="'.concat(E,'"][data-id="').concat(g,'"]')).get(0);return y&&(y.style.display="none"),y}catch{return null}},insert:s,split:function(){e.selection.isCollapsed()||e.selection.remove();var b=e.$el.find(".fr-marker").get(0);if(b||(b=s()),!b)return null;var E=e.node.deepestParent(b);if(E||(E=e.node.blockParent(b))&&E.tagName!=="LI"&&(E=null),E)if(e.node.isBlock(E)&&e.node.isEmpty(E))E.tagName!=="LI"||E.parentNode.firstElementChild!==E||e.node.isEmpty(E.parentNode)?r(E).replaceWith(''):r(E).append('');else if(e.cursor.isAtStart(b,E))r(E).before(''),r(b).remove();else if(e.cursor.isAtEnd(b,E))r(E).after(''),r(b).remove();else{for(var g=b,m="",C="";g=g.parentNode,m+=e.node.closeTagString(g),C=e.node.openTagString(g)+C,g!==E;);r(b).replaceWith('');var O=e.node.openTagString(E)+r(E).html()+e.node.closeTagString(E);O=O.replace(/<\/span>/g,"".concat(m,'').concat(C)),r(E).replaceWith(O)}return e.$el.find(".fr-marker").get(0)},insertAtPoint:function(b){var E,g=b.clientX,m=b.clientY;f();var C=null;if(typeof e.doc.caretPositionFromPoint<"u"?(E=e.doc.caretPositionFromPoint(g,m),(C=e.doc.createRange()).setStart(E.offsetNode,E.offset),C.setEnd(E.offsetNode,E.offset)):typeof e.doc.caretRangeFromPoint<"u"&&(E=e.doc.caretRangeFromPoint(g,m),(C=e.doc.createRange()).setStart(E.startContainer,E.startOffset),C.setEnd(E.startContainer,E.startOffset)),C!==null&&typeof e.win.getSelection<"u"){var O=e.win.getSelection();O.removeAllRanges(),O.addRange(C)}else if(typeof e.doc.body.createTextRange<"u")try{(C=e.doc.body.createTextRange()).moveToPoint(g,m);var U=C.duplicate();U.moveToPoint(g,m),C.setEndPoint("EndToEnd",U),C.select()}catch{return!1}s()},remove:f}},t.MODULES.selection=function(e){var r=e.$;function s(){var l="";return e.win.getSelection?l=e.win.getSelection():e.doc.getSelection?l=e.doc.getSelection():e.doc.selection&&(l=e.doc.selection.createRange().text),l.toString()}function f(){return e.win.getSelection?e.win.getSelection():e.doc.getSelection?e.doc.getSelection():e.doc.selection.createRange()}function u(l){var i=f(),a=[];if(i&&i.getRangeAt&&i.rangeCount){a=[];for(var p=0;p'.concat(t.INVISIBLE_SPACE,"").concat(a[i].innerHTML));var p=!1,c=U(e.el);for(c.atStart&&c.atEnd&&(p=!0),a=e.el.querySelectorAll(".fr-mk"),i=0;i"):r(X).find(".fr-inner").filter(I).html("
    "):(r(X).empty(),r(X).attr("data-del-cell",!0)):0"),e.spaces.normalize());var T=e.$el.find(".fr-marker").last().get(0),S=e.$el.find(".fr-marker").first().get(0);T!==void 0&&S!==void 0&&!T.nextSibling&&S.previousSibling&&S.previousSibling.tagName==="BR"&&e.node.isElement(T.parentNode)&&e.node.isElement(S.parentNode)&&e.$el.append("
    "),m()},blocks:function(){var i,a,p=[],c=f();if(x()&&c.rangeCount){var h=u();for(i=0;i"))}function f(){e.$wp.removeClass("show-placeholder")}function u(){if(!e.$wp)return!1;e.core.isEmpty()?s():f()}return{_init:function(){if(!e.$wp)return!1;e.events.on("init input keydown keyup contentChanged initialized",u)},show:s,hide:f,refresh:u,isVisible:function(){return!e.$wp||e.node.hasClass(e.$wp.get(0),"show-placeholder")}}},t.UNICODE_NBSP=" ",t.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],t.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],Object.assign(t.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line","hr"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),t.MODULES.html=function(e){var r=e.$;function s(){return e.opts.enter===t.ENTER_P?"p":e.opts.enter===t.ENTER_DIV?"div":e.opts.enter===t.ENTER_BR?null:void 0}function f(D,_){return!(!D||D===e.el)&&(_?["PRE","SCRIPT","STYLE"].indexOf(D.tagName)!=-1||f(D.parentNode,_):["PRE","SCRIPT","STYLE"].indexOf(D.tagName)!==-1)}function u(D){var _,Q=[],re=[];if(D){var q=e.el.querySelectorAll(".fr-marker");for(_=0;_";return _&&(Q="")),Q}function B(D){var _=D.parentNode;if(_&&(e.node.isBlock(_)||e.node.isElement(_))&&["TD","TH"].indexOf(_.tagName)<0){for(var Q=D.previousSibling,re=D.nextSibling;Q&&(Q.nodeType===Node.TEXT_NODE&&Q.textContent.replace(/\n|\r/g,"").length===0||e.node.hasClass(Q,"fr-tmp"));)Q=Q.previousSibling;if(re)return!1;Q&&_&&Q.tagName!=="BR"&&!e.node.isBlock(Q)&&!re&&0<_.textContent.replace(/\u200B/g,"").length&&0").concat(t.MARKERS,"
    ")),e.selection.restore()):e.$el.html("<".concat(s(),">
    "))):e.el.querySelector("*:not(.fr-marker):not(br)")||(e.core.hasFocus()?(e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore()):e.$el.html("
    ")))}function v(D,_){return U(D,"<".concat(_,"[^>]*?>([\\w\\W]*)"),1)}function A(D,_){var Q=r("
    ]*?)>"),1)||"",">"));return e.node.rawAttributes(Q.get(0))}function l(D){return(U(D,"]*?)>",0)||"").replace(/\n/g," ").replace(/ {2,}/g," ")}function i(D,_){e.opts.htmlExecuteScripts?D.html(_):D.get(0).innerHTML=_}function a(D){var _;(_=/:not\(([^)]*)\)/g).test(D)&&(D=D.replace(_," $1 "));var Q=100*(D.match(/(#[^\s+>~.[:]+)/g)||[]).length+10*(D.match(/(\[[^]]+\])/g)||[]).length+10*(D.match(/(\.[^\s+>~.[:]+)/g)||[]).length+10*(D.match(/(:[\w-]+\([^)]*\))/gi)||[]).length+10*(D.match(/(:[^\s+>~.[:]+)/g)||[]).length+(D.match(/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;return Q+=((D=(D=D.replace(/[*\s+>~]/g," ")).replace(/[#.]/g," ")).match(/([^\s+>~.[:]+)/g)||[]).length}function p(D){if(e.events.trigger("html.processGet",[D]),D&&D.getAttribute&&D.getAttribute("class")===""&&D.removeAttribute("class"),D&&D.getAttribute&&D.getAttribute("style")===""&&D.removeAttribute("style"),D&&D.nodeType===Node.ELEMENT_NODE){var _,Q=D.querySelectorAll('[class=""],[style=""]');for(_=0;_")}},cleanEmptyTags:E,cleanWhiteTags:N,cleanBlankSpaces:O,blocks:function(){return e.$el.get(0).querySelectorAll(b())},getDoctype:y,set:function(_){var Q=e.clean.html((_||"").trim(),[],[],e.opts.fullPage);if(e.opts.fullPage){var re=v(Q,"body")||(0<=Q.indexOf("",se=A(Q,"head"),P=r("
    ");P.append(ae).contents().each(function(){(this.nodeType===Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)});var K=P.html().trim();ae=r("
    ").append(ae).contents().map(function(){return this.nodeType===Node.COMMENT_NODE?""):0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var T=l(Q),S=A(Q,"html");i(e.$el,"".concat(K,` `).concat(re)),e.node.clearAttributes(e.el),e.$el.attr(q),e.$el.addClass("fr-view"),e.$el.attr("spellcheck",e.opts.spellcheck),e.$el.attr("dir",e.opts.direction),i(e.$head,ae),e.node.clearAttributes(e.$head.get(0)),e.$head.attr(se),e.node.clearAttributes(e.$html.get(0)),e.$html.attr(S),e.iframe_document.doctype.parentNode.replaceChild(function(W,V){var j=W.match(//i);return j?V.implementation.createDocumentType(j[1],j[3],j[4]):V.implementation.createDocumentType("html")}(T,e.iframe_document),e.iframe_document.doctype)}else i(e.$el,Q);var L=e.edit.isDisabled();e.edit.on(),e.core.injectStyle(e.opts.iframeDefaultStyle+e.opts.iframeStyle),I(),e.opts.useClasses||(e.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),e.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),L&&e.edit.off(),e.events.trigger("html.set"),e.events.trigger("charCounter.update")},syncInputs:h,get:function(_,Q){if(!e.$wp)return e.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var re="";e.events.trigger("html.beforeGet");var q,ae,se=[],P={},K=[];if(h(),!e.opts.useClasses&&!Q){var T=new RegExp("^".concat(e.opts.htmlIgnoreCSSProperties.join("$|^"),"$"),"gi");for(q=0;q=P[j[ae]][ve]&&(P[j[ae]][ve]=X,fe[ne].trim().length))){var Ee=fe[ne].trim().split(":");Ee.splice(0,1),K.push([j[ae],ve.trim(),Ee.join(":").trim(),X])}}}}}}for(K.sort(c),q=0;q").concat(e.$html.find("head").get(0).outerHTML,""));else if(_===void 0&&(_=!1),e.opts.fullPage){re=y(e.iframe_document),e.$el.removeClass("fr-view");var Oe=e.opts.heightMin,De=e.opts.height,Re=e.opts.heightMax;e.opts.heightMin=null,e.opts.height=null,e.opts.heightMax=null,e.size.refresh(),re+="").concat(e.$html.html(),""),e.opts.heightMin=Oe,e.opts.height=De,e.opts.heightMax=Re,e.size.refresh(),e.$el.addClass("fr-view")}else re=e.$el.html();if(!e.opts.useClasses&&!Q)for(q=0;q(?:[\w\W]*?)<\/style>/g,"")).replace(/]*)data-fr-style="true"([^>]*)>/g,"")).replace(/(?:[\w\W]*?)<\/style>/g,"")).replace(/((?:[\w\W]*?))<\/body>/g,"$3")).replace(/((?:[\w\W]*?))<\/body>/g,"$4")).replace(/((?:[\w\W]*?))<\/body>/g,"$4")).replace(/((?:[\w\W]*?))<\/body>/g,'$6')).replace(/((?:[\w\W]*?))<\/body>/g,"$3")),e.opts.htmlSimpleAmpersand&&(re=re.replace(/&/gi,"&")),e.events.trigger("html.afterGet"),_||(re=re.replace(/]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),re=e.clean.invisibleSpaces(re),re=e.clean.exec(re,p);var Se=e.events.chainTrigger("html.get",re);return typeof Se=="string"&&(re=Se),re=(re=re.replace(/(?:[\w\W]*?)<\/pre>/g,function(Ne){return Ne.replace(/
    /g,` -`)})).replace(/ ".concat(e.html.defaultTag())),L=S.length-1;0<=L;L--){var R=S[L];e.node.isBlock(R.previousSibling)||(R.previousSibling&&!e.node.isEmpty(R)&&r("
    ").insertAfter(R.previousSibling),R.outerHTML=R.innerHTML)}return T.innerHTML}(q)),!(ae=e.markers.split()))return!1;ae.outerHTML=q}else ae.outerHTML=q}else e.el.innerHTML+=q}I(),e.keys.positionCaret(),e.events.trigger("html.inserted")},wrap:C,unwrap:function(){e.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&r(this).before("
    "),r(this).attr("data-empty")||!this.nextSibling||e.node.isBlock(this.nextSibling)&&!r(this.nextSibling).hasClass("fr-temp-div")?r(this).replaceWith(r(this).html()):r(this).replaceWith("".concat(r(this).html(),"
    "))}),e.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return r(this).attr("class")===""}).removeAttr("class")},escapeEntities:function(_){return _.replace(//gi,">").replace(/"/gi,""").replace(/'/gi,"'")},checkIfEmpty:x,extractNode:v,extractNodeAttrs:A,extractDoctype:l,cleanBRs:function(){for(var _=e.el.getElementsByTagName("br"),Q=0;Q<_.length;Q++)B(_[Q])},_init:function(){e.$wp&&(e.events.on("mouseup",ie),e.events.on("keydown",ie),e.events.on("contentChanged",x))},_setHtml:i}},t.ENTER_P=0,t.ENTER_DIV=1,t.ENTER_BR=2,t.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},Object.assign(t.DEFAULTS,{enter:t.ENTER_P,multiLine:!0,tabSpaces:0}),t.MODULES.keys=function(e){var r,s,f,u=e.$,b=!1;function E(N){if(e.selection.isCollapsed())if(["INPUT","BUTTON","TEXTAREA"].indexOf(N.target&&N.target.tagName)<0&&e.cursor.backspace(),e.helpers.isIOS()){var ie=e.selection.ranges(0);ie.deleteContents(),ie.insertNode(document.createTextNode("​")),e.selection.get().modify("move","forward","character")}else["INPUT","BUTTON","TEXTAREA"].indexOf(N.target&&N.target.tagName)<0&&N.preventDefault(),N.stopPropagation();else N.preventDefault(),N.stopPropagation(),e.selection.remove();e.placeholder.refresh()}function g(N){["INPUT","BUTTON","TEXTAREA"].indexOf(N.target&&N.target.tagName)<0&&N.preventDefault(),N.stopPropagation(),e.selection.text()===""&&e.selection.element().tagName!="IMG"?e.cursor.del():e.selection.remove(),e.placeholder.refresh()}function m(){if(e.browser.mozilla&&e.selection.isCollapsed()&&!b){var N=e.selection.ranges(0),ie=N.startContainer,D=N.startOffset;ie&&ie.nodeType===Node.TEXT_NODE&&D<=ie.textContent.length&&0").concat(t.MARKERS,"
    ")):e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore(),e.placeholder.refresh(),e.button.bulkRefresh(),e.undo.saveStep()},0)}function O(){b=!1}function U(){b=!1}function y(){var N=e.html.defaultTag();N?e.$el.html("<".concat(N,">").concat(t.MARKERS,"
    ")):e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore()}function B(N,ie){if((-1/g,"")).length<1?N.parentElement.insertAdjacentHTML("afterbegin"," "):D!=" "&&D!=" "&&ie.key=="Backspace"?E(ie):D!=" "&&D!=" "&&ie.key=="Delete"&&g(ie),!0}if(u(N).is("p")){var _=N.innerHTML.replace(/
    /g,"");return _.length<1?N.insertAdjacentHTML("afterbegin"," "):_!=" "&&_!=" "&&ie.key=="Backspace"?E(ie):_!=" "&&_!=" "&&ie.key=="Delete"&&g(ie),!0}}return!1}function I(N){var ie=e.selection.element();if(ie&&0<=["INPUT","TEXTAREA"].indexOf(ie.tagName)||N&&l(N.which))return!0;e.events.disableBlur();var D=N.which;if(D===16)return!0;if((r=D)===t.KEYCODE.IME)return b=!0;b=!1;var _=i(D)&&!A(N)&&!N.altKey,Q=D===t.KEYCODE.BACKSPACE||D===t.KEYCODE.DELETE;if((e.selection.isFull()&&!e.opts.keepFormatOnDelete&&!e.placeholder.isVisible()||Q&&e.placeholder.isVisible()&&e.opts.keepFormatOnDelete)&&(_||Q)&&(y(),!i(D)))return N.preventDefault(),!0;if(D===t.KEYCODE.ENTER)N.shiftKey||ie.classList.contains("fr-inner")||ie.parentElement.classList.contains("fr-inner")?function(q){q.preventDefault(),q.stopPropagation(),e.opts.multiLine&&(e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter(!0))}(N):function(q){e.opts.multiLine?(e.helpers.isIOS()||(q.preventDefault(),q.stopPropagation()),e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter()):(q.preventDefault(),q.stopPropagation())}(N);else if(D===t.KEYCODE.BACKSPACE&&(N.metaKey||N.ctrlKey))(function(){setTimeout(function(){e.events.disableBlur(),e.events.focus()},0)})();else if(D!==t.KEYCODE.BACKSPACE||A(N)||N.altKey)if(D!==t.KEYCODE.DELETE||A(N)||N.altKey||N.shiftKey)D===t.KEYCODE.SPACE?function(q){var ae=e.selection.element();if(!e.helpers.isMobile()&&ae&&ae.tagName==="A"){q.preventDefault(),q.stopPropagation(),e.selection.isCollapsed()||e.selection.remove();var se=e.markers.insert();if(se){var P=se.previousSibling;!se.nextSibling&&se.parentNode&&se.parentNode.tagName==="A"?(se.parentNode.insertAdjacentHTML("afterend"," ".concat(t.MARKERS)),se.parentNode.removeChild(se)):(P&&P.nodeType===Node.TEXT_NODE&&P.textContent.length===1&&P.textContent.charCodeAt(0)===160?P.textContent+=" ":se.insertAdjacentHTML("beforebegin"," "),se.outerHTML=t.MARKERS),e.selection.restore()}}}(N):D===t.KEYCODE.TAB?function(q){if(0e.$wp.offset().top-e.helpers.scrollTop()+e.$wp.height()-20&&e.$wp.scrollTop(N+e.$wp.scrollTop()-(e.$wp.height()+e.$wp.offset().top)+e.helpers.scrollTop()+20)):(N=e.position.getBoundingRect().top,e.opts.toolbarBottom&&(N+=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(N-=e.helpers.scrollTop()),e.opts.iframe&&(N+=e.$iframe.offset().top,N-=e.helpers.scrollTop()),(N+=e.opts.toolbarStickyOffset)>e.o_win.innerHeight-20&&u(e.o_win).scrollTop(N+e.helpers.scrollTop()-e.o_win.innerHeight+20),N=e.position.getBoundingRect().top,e.opts.toolbarBottom||(N-=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(N-=e.helpers.scrollTop()),e.opts.iframe&&(N+=e.$iframe.offset().top,N-=e.helpers.scrollTop()),N<100&&u(e.o_win).scrollTop(N+e.helpers.scrollTop()-100))}function v(N){var ie=e.selection.element();if(ie&&0<=["INPUT","TEXTAREA"].indexOf(ie.tagName)||(N&&N.which===0&&r&&(N.which=r),e.helpers.isAndroid()&&e.browser.mozilla))return!0;if(b)return!1;if(N&&e.helpers.isIOS()&&N.which===t.KEYCODE.ENTER&&e.doc.execCommand("undo"),!e.selection.isCollapsed()||N&&(N.which===t.KEYCODE.META||N.which===t.KEYCODE.CTRL)||N&&l(N.which))return!0;if(N&&!e.helpers.isIOS()&&(N.which===t.KEYCODE.ENTER||N.which===t.KEYCODE.BACKSPACE||37<=N.which&&N.which<=40&&!e.browser.msie))try{x()}catch{}var D=e.selection.element();(function(Q){if(!Q)return!1;var re=Q.innerHTML;return!!((re=re.replace(/]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(re)&&0=t.KEYCODE.ARROW_LEFT&&N<=t.KEYCODE.ARROW_DOWN)return!0}function i(N){if(N>=t.KEYCODE.ZERO&&N<=t.KEYCODE.NINE||N>=t.KEYCODE.NUM_ZERO&&N<=t.KEYCODE.NUM_MULTIPLY||N>=t.KEYCODE.A&&N<=t.KEYCODE.Z||e.browser.webkit&&N===0)return!0;switch(N){case t.KEYCODE.SPACE:case t.KEYCODE.QUESTION_MARK:case t.KEYCODE.NUM_PLUS:case t.KEYCODE.NUM_MINUS:case t.KEYCODE.NUM_PERIOD:case t.KEYCODE.NUM_DIVISION:case t.KEYCODE.SEMICOLON:case t.KEYCODE.FF_SEMICOLON:case t.KEYCODE.DASH:case t.KEYCODE.EQUALS:case t.KEYCODE.FF_EQUALS:case t.KEYCODE.COMMA:case t.KEYCODE.PERIOD:case t.KEYCODE.SLASH:case t.KEYCODE.APOSTROPHE:case t.KEYCODE.SINGLE_QUOTE:case t.KEYCODE.OPEN_SQUARE_BRACKET:case t.KEYCODE.BACKSLASH:case t.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function a(N){var ie=N.which;if(A(N)||37<=ie&&ie<=40||!i(ie)&&ie!==t.KEYCODE.DELETE&&ie!==t.KEYCODE.BACKSPACE&&ie!==t.KEYCODE.ENTER&&ie!==t.KEYCODE.IME)return!0;s||(f=e.snapshot.get(),e.undo.canDo()||e.undo.saveStep()),clearTimeout(s),s=setTimeout(function(){s=null,e.undo.saveStep()},Math.max(250,e.opts.typingTimer))}function p(N){var ie=N.which;if(A(N)||37<=ie&&ie<=40)return!0;f&&s?(e.undo.saveStep(f),f=null):ie!==void 0&&ie!==0||f||s||e.undo.saveStep()}function c(N){if(N&&N.tagName==="BR")return!1;try{return(N.textContent||"").length===0&&N.querySelector&&!N.querySelector(":scope > br")||N.childNodes&&N.childNodes.length===1&&N.childNodes[0].getAttribute&&(N.childNodes[0].getAttribute("contenteditable")==="false"||e.node.hasClass(N.childNodes[0],"fr-img-caption"))}catch{return!1}}function h(N){var ie=e.el.childNodes,D=e.html.defaultTag(),_=e.node.blockParent(e.selection.blocks()[0]);return _&&_.tagName=="TR"&&_.getAttribute("contenteditable")==null&&(_=_.closest("table")),!e.node.isEditable(N.target)||_&&_.getAttribute("contenteditable")==="false"?e.toolbar.disable():e.toolbar.enable(),!(!N.target||N.target===e.el)||ie.length===0||void(ie[0].offsetHeight+ie[0].offsetTop<=N.offsetY?c(ie[ie.length-1])&&(D?e.$el.append("<".concat(D,">").concat(t.MARKERS,"
    ")):e.$el.append("".concat(t.MARKERS,"
    ")),e.selection.restore(),x()):N.offsetY<=10&&c(ie[0])&&(D?e.$el.prepend("<".concat(D,">").concat(t.MARKERS,"
    ")):e.$el.prepend("".concat(t.MARKERS,"
    ")),e.selection.restore(),x()))}function M(){s&&clearTimeout(s)}return{_init:function(){e.events.on("keydown",a),e.events.on("input",m),e.events.on("mousedown",U),e.events.on("keyup input",p),e.events.on("keypress",O),e.events.on("keydown",I),e.events.on("keyup",v),e.events.on("destroy",M),e.events.on("html.inserted",v),e.events.on("cut",C),e.opts.multiLine&&e.events.on("click",h)},ctrlKey:A,isCharacter:i,isArrow:l,forceUndo:function(){s&&(clearTimeout(s),e.undo.saveStep(),f=null)},isIME:function(){return b},isBrowserAction:function(ie){var D=ie.which;return A(ie)||D===t.KEYCODE.F5},positionCaret:x}},Object.assign(t.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),t.MODULES.paste=function(e){var r,s,f,u,b=e.$;function E(l,i){try{e.win.localStorage.setItem("fr-copied-html",l),e.win.localStorage.setItem("fr-copied-text",i)}catch{}}function g(l){var i=e.html.getSelected();E(i,b(e.doc.createElement("div")).html(i).text()),l.type==="cut"&&(e.undo.saveStep(),setTimeout(function(){e.selection.save(),e.html.wrap(),e.selection.restore(),e.events.focus(),e.undo.saveStep()},0))}var m=!1;function C(l){if(l.target.nodeName==="INPUT"&&l.target.type==="text")return!0;if(e.edit.isDisabled()||O(l.target)||m)return!1;if(l.originalEvent&&(l=l.originalEvent),e.events.trigger("paste.before",[l])===!1)return l.preventDefault(),!1;if(l&&l.clipboardData&&l.clipboardData.getData){var i="",a=l.clipboardData.types;if(e.helpers.isArray(a))for(var p=0;p
    '),e.browser.webkit||e.browser.mozilla?(f.css("top",e.$sc.scrollTop()),e.$el.after(f)):e.browser.edge&&e.opts.iframe?e.$el.append(f):e.$box.after(f),e.events.on("destroy",function(){f.remove()}));var h;e.helpers.isIOS()&&e.$sc&&(h=e.$sc.scrollTop()),e.opts.iframe&&e.$el.attr("contenteditable","false"),f.focus(),e.helpers.isIOS()&&e.$sc&&e.$sc.scrollTop(h),e.win.setTimeout(y,1)}(),!1}function O(l){return l&&l.contentEditable==="false"}function U(l){if(l.originalEvent&&(l=l.originalEvent),O(l.target))return!1;if(l&&l.dataTransfer&&l.dataTransfer.getData){var i="",a=l.dataTransfer.types;if(e.helpers.isArray(a))for(var p=0;p")),r!==""){e.keys.forceUndo(),u=e.snapshot.get(),e.selection.save(),e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var c=e.markers.insertAtPoint(l);if(e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),e.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),e.selection.restore(),e.selection.remove(),e.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),c!==!1){var h=e.el.querySelector(".fr-marker");return b(h).replaceWith(t.MARKERS),e.selection.restore(),y(),l.preventDefault&&(l.stopPropagation(),l.preventDefault()),!1}}else r=null}}function y(){e.opts.iframe&&e.$el.attr("contenteditable","true"),e.browser.edge&&e.opts.iframe&&e.$box.after(f),u||(e.keys.forceUndo(),u=e.snapshot.get()),r||(r=f.get(0).innerHTML,e.selection.restore(),e.events.enableBlur());var l=r.match(/(class="?Mso|class='?Mso|class="?Xl|class='?Xl|class=Xl|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument|LibreOffice)/gi),i=e.events.chainTrigger("paste.beforeCleanup",r);i&&typeof i=="string"&&(r=i),(!l||l&&e.events.trigger("paste.wordPaste",[r])!==!1)&&I(r,l)}function B(l){for(var i="",a=0;a++]*(]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),l=(l=M+l.replace(/[.\s\S\w\W<>]*]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1")).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")}var N=!1;0<=l.indexOf('id="docs-internal-guid')&&(l=l.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),N=!0),0<=l.indexOf('content="Sheets"')&&(l=l.replace(/width:0px;/g,""));var ie=!1;if(!i)if((ie=function(W){var V=null;try{V=e.win.localStorage.getItem("fr-copied-text")}catch{}return!(!V||b("
    ").html(W).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!==V.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(l))&&(l=e.win.localStorage.getItem("fr-copied-html")),ie)l=e.clean.html(l,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs);else{var D=e.opts.htmlAllowedStyleProps;e.opts.htmlAllowedStyleProps=e.opts.pasteAllowedStyleProps,e.opts.htmlAllowComments=!1,l=(l=(l=l.replace(/\s*<\/span>/g,B(e.opts.tabSpaces||4))).replace(/(\t*)<\/span>/g,function(R,W){return B(W.length*(e.opts.tabSpaces||4))})).replace(/\t/g,B(e.opts.tabSpaces||4)),l=e.clean.html(l,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs),e.opts.htmlAllowedStyleProps=D,e.opts.htmlAllowComments=!0,l=(l=(l=v(l)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!i||e.wordPaste&&a||((l=l.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("")===0&&(l="".concat(l,"
    ")),l=v(l=function(W){var V;W=(W=(W=(W=(W=(W=(W=(W=(W=(W=(W=(W=(W=(W=(W=W.replace(/([\s\S]*?)<\/p>/gi,"
    • $3
    ")).replace(/([\s\S]*?)<\/p>/gi,"
    1. $3
    ")).replace(/([\s\S]*?)<\/p>/gi,"
      $5")).replace(/([\s\S]*?)<\/p>/gi,"
        $5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5
    ")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)([\s\S]*?)/gi,"")).replace(/([\s\S]*?)/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(//gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var j,X=["style","script","applet","embed","noframes","noscript"];for(V=0;V"),"gi");W=W.replace(fe,"")}for(W=(W=(W=W.replace(/ /gi," ")).replace(/]*)><\/td>/g,"
    ")).replace(/]*)><\/th>/g,"
    ");(W=(j=W).replace(/<[^/>][^>]*><\/[^>]+>/gi,""))!==j;);W=(W=W.replace(/]*)>/gi,'
  • ')).replace(/]*)>/gi,""),W=(W=(W=e.clean.html(W,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs)).replace(/(.[^<]+)<\/a>/gi,"$1")).replace(/
    */g,"
    ");var ne=e.o_doc.createElement("div");ne.innerHTML=W;var ve=ne.querySelectorAll("li[data-indent]");for(V=0;V ul, :scope > ol");Ae||(Ae=document.createElement("ul"),be.appendChild(Ae)),Ae.appendChild(Ee)}else Ee.removeAttribute("data-indent")}return e.html.cleanBlankSpaces(ne),W=ne.innerHTML}(l))),e.opts.pastePlain&&!ie&&(l=function(W){var V,j=null,X=e.doc.createElement("div");X.innerHTML=W;var fe=X.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(V=0;V").concat(j.innerHTML,"");for(V=(fe=X.querySelectorAll("*:not(".concat("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not("),")"))).length-1;0<=V;V--)(j=fe[V]).outerHTML=j.innerHTML;return function ne(ve){for(var Ee=e.node.contents(ve),be=0;be")?(e.html.cleanBlankSpaces(Q),e.spaces.normalize(Q,!0)):e.spaces.normalize(Q);var re=Q.getElementsByTagName("span");for(p=re.length-1;0<=p;p--){var q=re[p];q.attributes.length===0&&(q.outerHTML=q.innerHTML)}if(e.opts.linkAlwaysBlank===!0){var ae=Q.getElementsByTagName("a");for(p=ae.length-1;0<=p;p--){var se=ae[p];se.getAttribute("target")||se.setAttribute("target","_blank")}}var P=e.selection.element(),K=!1;if(P&&b(P).parentsUntil(e.el,"ul, ol").length&&(K=!0),K){var T=Q.children;T.length===1&&0<=["OL","UL"].indexOf(T[0].tagName)&&(T[0].outerHTML=T[0].innerHTML)}if(!N){var S=Q.getElementsByTagName("br");for(p=S.length-1;0<=p;p--){var L=S[p];e.node.isBlock(L.previousSibling)&&L.parentNode.removeChild(L)}}if(e.opts.enter===t.ENTER_BR)for(p=(c=Q.querySelectorAll("p, div")).length-1;0<=p;p--)(h=c[p]).attributes.length===0&&(h.outerHTML=h.innerHTML+(h.nextSibling&&!e.node.isEmpty(h)?"
    ":""));else if(e.opts.enter===t.ENTER_DIV)for(p=(c=Q.getElementsByTagName("p")).length-1;0<=p;p--)(h=c[p]).attributes.length===0&&(h.outerHTML="
    ".concat(h.innerHTML,"
    "));else e.opts.enter===t.ENTER_P&&Q.childNodes.length===1&&Q.childNodes[0].tagName==="P"&&Q.childNodes[0].attributes.length===0&&(Q.childNodes[0].outerHTML=Q.childNodes[0].innerHTML);l=Q.innerHTML,ie&&(l=function(W){var V,j=e.o_doc.createElement("div");j.innerHTML=W;for(var X=j.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(t.VOID_ELEMENTS.join("):not("),"):not(").concat(e.opts.htmlAllowedEmptyTags.join("):not("),")"));X.length;){for(V=0;V div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));p.length;){var c=p[p.length-1];if(e.html.defaultTag()&&e.html.defaultTag()!=="div")c.querySelector(e.html.blockTagsQuery())?c.outerHTML=c.innerHTML:c.outerHTML="<".concat(e.html.defaultTag(),">").concat(c.innerHTML,"");else{var h=c.querySelectorAll("*");!h.length||h[h.length-1].tagName!=="BR"&&c.innerText.length===0||!h.length||h[h.length-1].tagName!=="BR"||h[h.length-1].nextSibling?c.outerHTML=c.innerHTML+(c.nextSibling?"
    ":""):c.outerHTML=c.innerHTML}p=x(Array.prototype.slice.call(a.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(p=x(Array.prototype.slice.call(a.querySelectorAll("div:not([style])")));p.length;){for(i=0;ie.undo_index;)e.undo_stack.pop()}function u(){e.undo_index=0,e.undo_stack=[]}function b(){e.undo_stack=[]}return{_init:function(){u(),e.events.on("initialized",function(){s=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),e.events.on("blur",function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()}),e.events.on("keydown",r),e.events.on("destroy",b)},run:function(){if(1'.concat(u,""));for(var b=0;b'));E.get(0).addEventListener("load",e.size.syncIframe),e.$head.append(E)}}},hasFocus:function(){return e.browser.mozilla&&e.helpers.isMobile()?e.selection.inEditor():e.node.hasFocus(e.el)||0 span").css("width")),ie=e.helpers.getPX(M.css("paddingLeft")),D=e.helpers.getPX(M.css("paddingRight"));M.css("width",N*e.opts.colorsStep+ie+D)}return e.button.bindCommands(h,!1),h}function x(i){var a=f[i];return{_windowResize:function(){var p=a.data("instance")||e;!p.helpers.isMobile()&&a.isVisible()&&(p.events.disableBlur(),p.popups.hide(i),p.events.enableBlur())},_inputFocus:function(p){var c=a.data("instance")||e,h=r(p.currentTarget);if(h.is("input:file")&&h.closest(".fr-layer").addClass("fr-input-focus"),p.preventDefault(),p.stopPropagation(),setTimeout(function(){c.events.enableBlur()},100),c.helpers.isMobile()){var M=r(c.o_win).scrollTop();setTimeout(function(){r(c.o_win).scrollTop(M)},0)}},_inputBlur:function(p){var c=a.data("instance")||e,h=r(p.currentTarget);h.is("input:file")&&h.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!==this&&r(this).isVisible()&&(c.events.blurActive()&&c.events.trigger("blur"),c.events.enableBlur())},_editorKeydown:function(p){var c=a.data("instance")||e;c.keys.ctrlKey(p)||p.which===t.KEYCODE.ALT||p.which===t.KEYCODE.ESC||(g(i)&&a.findVisible(".fr-back").length?c.button.exec(a.findVisible(".fr-back").first()):p.which!==t.KEYCODE.ALT&&c.popups.hide(i))},_preventFocus:function(p){var c=a.data("instance")||e,h=p.originalEvent?p.originalEvent.target||p.originalEvent.originalTarget:null;p.type==="mouseup"||r(h).is(":focus")||c.events.disableBlur(),p.type!=="mouseup"||r(h).hasClass("fr-command")||0').concat(Q.attr("placeholder"),"")),Q.attr("placeholder",""))}}(M),e.events.$on(M,"focus",b),e.events.$on(M,"blur change",E),e.events.$on(c,"click",".fr-checkbox + label",A),e.accessibility.registerPopup(a),e.helpers.isIOS()&&e.events.$on(c,"touchend","label",function(){r("#".concat(r(this).attr("for"))).prop("checked",function(N,ie){return!ie})},!0),e.events.$on(r(e.o_win),"resize",h._windowResize,!0),c},get:function(a){var p=f[a];return p&&!p.data("inst".concat(e.id))&&v(x(a),a),p},show:function(a,p,c,h,M){if(g(a)||(m()&&0 .fr-dropdown-wrapper").css("height",""),N.next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),f[a].data("instance",e),e.$tb&&e.$tb.data("instance",e);var ie=g(a);f[a].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var D=f[a].data("container");if(function(q,ae){ae.isVisible()||(ae=e.$sc),ae.contains([f[q].get(0)])||ae.append(f[q])}(a,D),e.opts.toolbarInline&&D&&e.$tb&&D.get(0)===e.$tb.get(0)&&(u(a,e.$sc),c=e.$tb.offset().top-e.helpers.getPX(e.$tb.css("margin-top")),p=e.$tb.offset().left+e.$tb.outerWidth()/2,e.node.hasClass(e.$tb.get(0),"fr-above")&&c&&(c+=e.$tb.outerHeight()),h=0),D=f[a].data("container"),e.opts.iframe&&!h&&!ie){var _=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),Q=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left"));p&&(p-=e.$iframe.offset().left+Q),c&&(c-=e.$iframe.offset().top+_)}D.is(e.$tb)?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):f[a].css("zIndex",(e.opts.zIndex||1)+4),e.opts.toolbarBottom&&D&&e.$tb&&D.get(0)===e.$tb.get(0)&&(f[a].addClass("fr-above"),c&&(c-=f[a].outerHeight())),M&&(p-=f[a].width()/2),p+f[a].outerWidth()>e.$sc.offset().left+e.$sc.width()&&(p-=p+f[a].outerWidth()-e.$sc.offset().left-e.$sc.width()),p button.fr-command").first());if(0r(e.o_win).width()&&(E=r(e.o_win).width()-e.$tooltip.outerWidth()),b===void 0&&(b=e.opts.toolbarBottom),u.offset().top-r(window).scrollTop()+u.outerHeight()+10>=r(window).height()&&(b=!0);var g=b?u.offset().top-e.$tooltip.height():u.offset().top+u.outerHeight();e.$tooltip.css("position",""),e.$tooltip.css("left",E),e.$tooltip.css("top",Math.ceil(g)),r(e.o_doc).find("body").first().css("position")!=="static"?(e.$tooltip.css("margin-left",-r(e.o_doc).find("body").first().offset().left),e.$tooltip.css("margin-top",-r(e.o_doc).find("body").first().offset().top)):(e.$tooltip.css("margin-left",""),e.$tooltip.css("margin-top",""))}}return{hide:s,to:f,bind:function(b,E,g){e.opts.tooltips&&!e.helpers.isMobile()&&(e.events.$on(b,"mouseover",E,function(m){e.node.hasClass(m.currentTarget,"fr-disabled")||e.edit.isDisabled()||f(r(m.currentTarget),g)},!0),e.events.$on(b,"mouseout ".concat(e._mousedown," ").concat(e._mouseup),E,function(){s()},!0))}}},t.TOOLBAR_VISIBLE_BUTTONS=3,t.MODULES.button=function(e){var r=e.$,s=[];(e.opts.toolbarInline||e.opts.toolbarContainer)&&(e.shared.buttons||(e.shared.buttons=[]),s=e.shared.buttons);var f=[];function u(i,a,p){for(var c=r(),h=0;h .fr-dropdown-wrapper");if(!p){var D=i.data("cmd");a.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),t.COMMANDS[D]&&t.COMMANDS[D].refreshOnShow&&t.COMMANDS[D].refreshOnShow.apply(h,[i,a]),a.css("left",i.offset().left-i.parents(".fr-btn-wrap, .fr-toolbar, .fr-buttons").offset().left-(e.opts.direction==="rtl"?a.width()-i.outerWidth():0)),a.addClass("test-height"),M=a.outerHeight(),N=e.helpers.getPX(ie.css("max-height")),a.removeClass("test-height"),a.css("top","").css("bottom","");var _=i.outerHeight()/10;if(!e.opts.toolbarBottom&&a.offset().top+i.outerHeight()+Me.$sc.offset().left+e.$sc.width()&&a.css("margin-left",-(a.offset().left+a.outerWidth()-e.$sc.offset().left-e.$sc.width())),a.offset().left .fr-dropdown-wrapper").css("height",""),c.prev(".fr-expanded").removeClass("fr-expanded"),c.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),i.parents(".fr-popup").length!==0||e.opts.toolbarInline||(e.node.hasClass(i.get(0),"fr-active")?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):e.$tb.css("zIndex",""));var q=a.find("a.fr-command.fr-active").first();e.helpers.isMobile()||(q.length?(e.accessibility.focusToolbarElement(q),ie.scrollTop(Math.abs(q.parents(".fr-dropdown-content").offset().top-q.offset().top)-q.offset().top)):(e.accessibility.focusToolbarElement(i),ie.scrollTop(0)))}function g(i){i.addClass("fr-blink"),setTimeout(function(){i.removeClass("fr-blink")},500);for(var a=i.data("cmd"),p=[];i.data("param".concat(p.length+1))!==void 0;)p.push(i.data("param".concat(p.length+1)));var c=b(".fr-dropdown.fr-active");c.length&&(c.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),c.prev(".fr-expanded").removeClass("fr-expanded"),c.parents(".fr-toolbar:not(.fr-inline)").css("zIndex","")),i.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(a,p)}function m(i){var a=i.parents(".fr-popup, .fr-toolbar").data("instance");if(i.parents(".fr-popup").length===0&&i.data("popup")&&!i.hasClass("fr-btn-active-popup")&&i.addClass("fr-btn-active-popup"),i.parents(".fr-popup").length!==0||i.data("popup")||a.popups.hideAll(),a.popups.areVisible()&&!a.popups.areVisible(a)){for(var p=0;p .fr-dropdown-wrapper").css("height",""),a.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),a.prev().removeClass("fr-expanded"))}function U(i){i.preventDefault(),i.stopPropagation()}function y(i){if(i.stopPropagation(),!e.helpers.isMobile())return!1}function B(i){var a=1').concat(e.language.translate(M||a.title),"")}else h=e.icon.create(a.icon||i),h+=''.concat(e.language.translate(a.title)||"","");var N=a.popup?' data-popup="true"':"",ie=a.modal?' data-modal="true"':"",D=e.shortcuts.get("".concat(i,"."));D=D?" (".concat(D,")"):"";var _="".concat(i,"-").concat(e.id),Q="dropdown-menu-".concat(_),re='");if(a.type==="dropdown"||a.type==="options"){var q='
    "}return a.hasOptions&&a.hasOptions.apply(e)&&(re='
    '.concat(re," ").concat(B(i+"Options",Object.assign({},a,{type:"options",hasOptions:!1}),p),"
    ")),re}function I(i){var a=e.$tb&&e.$tb.data("instance")||e;if(e.events.trigger("buttons.refresh")===!1)return!0;setTimeout(function(){for(var p=a.selection.inEditor()&&a.core.hasFocus(),c=0;c
  • ':M==="-"&&(c+=''))}return c},buildGroup:function(a){var p="",c="";for(var h in a){var M=a[h];if(M.buttons){for(var N="",ie="",D=0,_="left",Q=t.TOOLBAR_VISIBLE_BUTTONS,re=0;re
    ':q=="-"&&(N+='')),!ae||ae&&typeof ae.plugin<"u"&&e.opts.pluginsEnabled.indexOf(ae.plugin)<0||(a[h].align!==void 0&&(_=a[h].align),a[h].buttonsVisible!==void 0&&(Q=a[h].buttonsVisible),a.showMoreButtons&&Q<=D?ie+=B(q,ae,!0):N+=B(q,ae,!0),D++)}if(a.showMoreButtons&&Q').concat(N,"
    "),a.showMoreButtons&&0').concat(ie,""))}}return e.opts.toolbarBottom?"".concat(c,'
    ').concat(p):"".concat(p,'
    ').concat(c)},bindCommands:function(a,p){e.events.bindClick(a,".fr-command:not(.fr-disabled)",C),e.events.$on(a,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu",U,!0),e.events.$on(a,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu .fr-dropdown-wrapper",y,!0);var c=a.get(0).ownerDocument,h="defaultView"in c?c.defaultView:c.parentWindow;function M(N){(!N||N.type===e._mouseup&&N.target!==r("html").get(0)||N.type==="keydown"&&(e.keys.isCharacter(N.which)&&!e.keys.ctrlKey(N)||N.which===t.KEYCODE.ESC))&&O(a)}e.events.$on(r(h),"".concat(e._mouseup," resize keydown"),M,!0),e.opts.iframe&&e.events.$on(e.$win,e._mouseup,M,!0),e.node.hasClass(a.get(0),"fr-popup")?r.merge(f,a.find(".fr-btn").toArray()):r.merge(s,a.find(".fr-btn").toArray()),e.tooltip.bind(a,".fr-btn, .fr-title",p)},refresh:function(a){var p,c=a.parents(".fr-popup, .fr-toolbar").data("instance")||e,h=a.data("cmd");e.node.hasClass(a.get(0),"fr-dropdown")?p=a.next():(a.removeClass("fr-active"),a.attr("aria-pressed")&&a.attr("aria-pressed",!1)),t.COMMANDS[h]&&t.COMMANDS[h].refresh?t.COMMANDS[h].refresh.apply(c,[a,p]):e.refresh[h]&&c.refresh[h](a,p)},bulkRefresh:x,exec:g,click:m,hideActiveDropdowns:O,addButtons:function(a){for(var p=0;p
    '}],t}return Le.prototype.render=function(){return We.createElement(Ze,{config:this.props.config,model:this.props.model,onModelChange:this.props.onModelChange})},Le}(We.Component);export{Je as default}; + */(function(Ie,Le){(function(o,t){t($e())})(ke,function(o){o=o&&o.hasOwnProperty("default")?o.default:o,o.LANGUAGE.zh_cn={translation:{"Type something":"输入内容",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Insert:"插入",Delete:"删除",Cancel:"取消",OK:"确定",Back:"后退",Remove:"删除",More:"更多",Update:"更新",Style:"样式","Font Family":"字体","Font Size":"字号",Colors:"颜色",Background:"背景",Text:"字体","HEX Color":"十六进制颜色","Paragraph Format":"段落格式",Normal:"正文",Code:"代码","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Paragraph Style":"段落样式","Inline Style":"内联样式",Align:"对齐方式","Align Left":"左对齐","Align Center":"居中","Align Right":"右对齐","Align Justify":"两端对齐",None:"无","Ordered List":"编号","Unordered List":"项目符号","Decrease Indent":"减少缩进量","Increase Indent":"增加缩进量","Insert Link":"插入超链接","Open in new tab":"在新标签页中打开","Open Link":"打开超链接","Edit Link":"编辑超链接",Unlink:"删除超链接","Choose Link":"选择超链接","Insert Image":"插入图片","Upload Image":"上传图片","By URL":"通过 URL",Browse:"浏览","Drop image":"拖入图片","or click":"或点击","Manage Images":"管理图片",Loading:"加载中",Deleting:"删除中",Tags:"标签","Are you sure? Image will be deleted.":"图片将会被删除,是否确认?",Replace:"替换",Uploading:"上传中","Loading image":"图片加载中",Display:"显示",Inline:"嵌入型","Break Text":"上下型环绕","Alternative Text":"替换文字","Change Size":"改变大小",Width:"宽度",Height:"高度","Something went wrong. Please try again.":"发生错误,请重试。","Image Caption":"图片标题","Advanced Edit":"高级编辑","Insert Video":"插入视频","Embedded Code":"嵌入代码","Paste in a video URL":"粘贴视频网址","Drop video":"拖入视频","Your browser does not support HTML5 video.":"您的浏览器不支持 HTML5 视频。","Upload Video":"上传视频","Insert Table":"插入表格","Table Header":"表头","Remove Table":"删除表格","Table Style":"表格样式","Horizontal Align":"水平对齐方式",Row:"行","Insert row above":"在上方插入","Insert row below":"在下方插入","Delete row":"删除行",Column:"列","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cell:"单元格","Merge cells":"合并单元格","Horizontal split":"水平分割","Vertical split":"垂直分割","Cell Background":"单元格背景","Vertical Align":"垂直对齐方式",Top:"靠上",Middle:"居中",Bottom:"靠下","Align Top":"靠上对齐","Align Middle":"居中对齐","Align Bottom":"靠下对齐","Cell Style":"单元格样式","Upload File":"上传文件","Drop file":"拖入文件",Emoticons:"表情符号","Grinning face":"露齿笑脸","Grinning face with smiling eyes":"露齿笑到眯起眼","Face with tears of joy":"笑哭","Smiling face with open mouth":"张嘴微笑","Smiling face with open mouth and smiling eyes":"眯眼张嘴微笑","Smiling face with open mouth and cold sweat":"带冷汗的张嘴微笑","Smiling face with open mouth and tightly-closed eyes":"紧闭双眼张嘴微笑","Smiling face with halo":"带光环微笑","Smiling face with horns":"带牛角的微笑","Winking face":"眨眼","Smiling face with smiling eyes":"眯眼微笑","Face savoring delicious food":"馋","Relieved face":"如释重负","Smiling face with heart-shaped eyes":"桃心眼微笑","Smiling face with sunglasses":"戴太阳镜微笑","Smirking face":"得意地笑","Neutral face":"中性脸","Expressionless face":"面无表情","Unamused face":"不高兴","Face with cold sweat":"冷汗","Pensive face":"沉思","Confused face":"迷惑","Confounded face":"困惑","Kissing face":"嘴巴嘟嘟","Face throwing a kiss":"飞吻","Kissing face with smiling eyes":"眯眼接吻","Kissing face with closed eyes":"闭眼接吻","Face with stuck out tongue":"吐舌","Face with stuck out tongue and winking eye":"眨眼吐舌","Face with stuck out tongue and tightly-closed eyes":"眯眼吐舌","Disappointed face":"失望","Worried face":"担心","Angry face":"生气","Pouting face":"撅嘴","Crying face":"大哭","Persevering face":"坚强","Face with look of triumph":"扬眉吐气","Disappointed but relieved face":"失望","Frowning face with open mouth":"皱眉","Anguished face":"痛苦","Fearful face":"害怕","Weary face":"疲惫","Sleepy face":"困了","Tired face":"累了","Grimacing face":"扭曲脸","Loudly crying face":"大哭","Face with open mouth":"张开嘴","Hushed face":"安静","Face with open mouth and cold sweat":"冷汗","Face screaming in fear":"害怕尖叫","Astonished face":"惊讶","Flushed face":"脸红","Sleeping face":"熟睡","Dizzy face":"眩晕","Face without mouth":"没有嘴的脸","Face with medical mask":"口罩脸",Break:"换行",Subscript:"下标",Superscript:"上标",Fullscreen:"全屏","Insert Horizontal Line":"插入水平线","Clear Formatting":"清除格式",Save:"保存",Undo:"撤消",Redo:"恢复","Select All":"全选","Code View":"代码视图",Quote:"引用",Increase:"增加引用级别",Decrease:"减少引用级别","Quick Insert":"快速插入","Special Characters":"特殊字符",Latin:"拉丁字母",Greek:"希腊字母",Cyrillic:"西里尔字母",Punctuation:"标点",Currency:"货币",Arrows:"箭头",Math:"数学",Misc:"杂项",Print:"打印","Spell Checker":"拼写检查器",Help:"帮助",Shortcuts:"快捷键","Inline Editor":"内联编辑器","Show the editor":"显示编辑器","Common actions":"常用操作",Copy:"复制",Cut:"剪切",Paste:"粘贴","Basic Formatting":"基本格式","Increase quote level":"增加引用级别","Decrease quote level":"减少引用级别","Image / Video":"图像/视频","Resize larger":"放大","Resize smaller":"缩小",Table:"表格","Select table cell":"选择单元格","Extend selection one cell":"增加选中的单元格","Extend selection one row":"增加选中的行",Navigation:"导航","Focus popup / toolbar":"焦点弹出/工具栏","Return focus to previous position":"将焦点返回到上一个位置","Embed URL":"嵌入网址","Paste in a URL to embed":"粘贴要嵌入的网址","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"粘贴的内容来自微软 Word 文档。你想保留还是清除格式?",Keep:"保留",Clean:"清除","Word Paste Detected":"检测到粘贴自 Word 的内容",Characters:"字数统计","More Text":" 更多文字","More Paragraph":"更多段落","More Rich":"更多丰富","More Misc":"更多杂项"},direction:"ltr"}})})();var Je=function(Ie){Ye(Le,Ie);function Le(o){var t=Ie.call(this,o)||this;return t.listeningEvents=[],t.element=null,t.editor=null,t.config={immediateReactModelUpdate:!1,reactIgnoreAttrs:null},t.editorInitialized=!1,t.INNER_HTML_ATTR="innerHTML",t.oldModel=null,t}return Le.prototype.componentDidMount=function(){this.createEditor()},Le.prototype.componentWillUnmount=function(){this.destroyEditor()},Le.prototype.componentDidUpdate=function(o){if(!je(this.props.config,o.config)){this.destroyEditor(),this.createEditor();return}JSON.stringify(this.oldModel)!=JSON.stringify(this.props.model)&&this.setContent()},Le.prototype.clone=function(o){var t=this;if(!o)return o;var n=[Number,String,Boolean],d;if(n.forEach(function(G){o instanceof G&&(d=G(o))}),typeof d>"u")if(Object.prototype.toString.call(o)==="[object Array]")d=[],o.forEach(function(G,ce,ue){d[ce]=t.clone(G)});else if(typeof o=="object")if(o.nodeType&&typeof o.cloneNode=="function")d=o.cloneNode(!0);else if(o.prototype)d=o;else if(o instanceof Date)d=new Date(o);else{d={};for(var Y in o)d[Y]=t.clone(o[Y])}else d=o;return d},Le.prototype.createEditor=function(){var o=this;this.editorInitialized||(this.config=this.clone(this.props.config||this.config),this.config=Ze({},this.config),this.element=this.el,this.props.model&&(this.element.innerHTML=this.props.model),this.setContent(),this.registerEvent("initialized",this.config.events&&this.config.events.initialized),this.config.events||(this.config.events={}),this.config.events.initialized=function(){o.editorInitialized=!0,o.initListeners()},this.editor=new Xe(this.element,this.config))},Le.prototype.setContent=function(){var o=this;(this.props.model||this.props.model=="")&&(this.oldModel=this.props.model,this.editorInitialized?this.setNormalTagContent():(this._initEvents||(this._initEvents=[]),this._initEvents.push(function(){return o.setNormalTagContent()})))},Le.prototype.setNormalTagContent=function(){var o=this;o.editor.html&&o.editor.html.set(o.props.model||""),o.editorInitialized&&o.editor.undo&&(o.editor.undo.reset(),o.editor.undo.saveStep())},Le.prototype.destroyEditor=function(){this.element&&(this.editor.destroy&&this.editor.destroy(),this.listeningEvents.length=0,this.element=null,this.editorInitialized=!1,this._initEvents=[])},Le.prototype.getEditor=function(){return this.element?this.editor:null},Le.prototype.updateModel=function(){if(this.props.onModelChange){var o="",t=this.editor.html.get();typeof t=="string"&&(o=t),this.oldModel!==o&&(this.oldModel=o,this.props.onModelChange(o))}},Le.prototype.initListeners=function(){var o=this;if(this.editor.events.on("contentChanged",function(){o.updateModel()}),this.config.immediateReactModelUpdate&&this.editor.events.on("keyup",function(){o.updateModel()}),this._initEvents)for(var t=0;t
    '}],t}return Le.prototype.render=function(){return We.createElement(Je,{config:this.props.config,model:this.props.model,onModelChange:this.props.onModelChange})},Le}(We.Component);export{tt as default}; diff --git a/public/admin-assets/assets/RichText-BD-pI9LS.js.gz b/public/admin-assets/assets/RichText-BD-pI9LS.js.gz new file mode 100644 index 0000000..baf8f62 Binary files /dev/null and b/public/admin-assets/assets/RichText-BD-pI9LS.js.gz differ diff --git a/public/admin-assets/assets/Tinymce-B742wgy7.js.gz b/public/admin-assets/assets/Tinymce-B742wgy7.js.gz deleted file mode 100644 index 74d5a9c..0000000 Binary files a/public/admin-assets/assets/Tinymce-B742wgy7.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/Tinymce-B742wgy7.js b/public/admin-assets/assets/Tinymce-DeODYiJH.js similarity index 99% rename from public/admin-assets/assets/Tinymce-B742wgy7.js rename to public/admin-assets/assets/Tinymce-DeODYiJH.js index e9a1efa..033c286 100644 --- a/public/admin-assets/assets/Tinymce-B742wgy7.js +++ b/public/admin-assets/assets/Tinymce-DeODYiJH.js @@ -1,4 +1,4 @@ -import{o as Gq,s as Kq,R as tZ,t as Yq,v as Xq,w as Jq,x as Qq,y as eG,z as nZ,D as tG,G as _q}from"./index-CgQH3-O6.js";var Cq={exports:{}};(function(as){(function(){var So=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},wo=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},Vn=function(e,n){var o=Array.prototype.slice.call(e);return o.sort(n)},co=function(e,n){return fo(function(o,r){return e.eq(n(o),n(r))})},fo=function(e){return{eq:e}},Bn=fo(function(e,n){return e===n}),Qe=Bn,mn=function(e){return fo(function(n,o){if(n.length!==o.length)return!1;for(var r=n.length,c=0;c{var r;return o(e,n.prototype)?!0:((r=e.constructor)===null||r===void 0?void 0:r.name)===n.name},Ht=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&Wt(e,String,(o,r)=>r.isPrototypeOf(o))?"string":n},nn=e=>n=>Ht(n)===e,nt=e=>n=>typeof n===e,Dt=e=>n=>e===n,At=(e,n)=>Be(e)&&Wt(e,n,(o,r)=>un(o)===r),W=nn("string"),Be=nn("object"),Bo=e=>At(e,Object),mt=nn("array"),U=Dt(null),it=nt("boolean"),pn=Dt(void 0),on=e=>e==null,Ie=e=>!on(e),ae=nt("function"),po=nt("number"),Se=(e,n)=>{if(mt(e)){for(let o=0,r=e.length;o{},E=(e,n)=>(...o)=>e(n.apply(null,o)),rn=(e,n)=>o=>e(n(o)),st=e=>()=>e,In=e=>e,Yt=(e,n)=>e===n;function et(e,...n){return(...o)=>{const r=n.concat(o);return e.apply(null,r)}}const ro=e=>n=>!e(n),Wo=e=>()=>{throw new Error(e)},wt=e=>e(),fn=e=>{e()},Ne=st(!1),at=st(!0);class F{constructor(n,o){this.tag=n,this.value=o}static some(n){return new F(!0,n)}static none(){return F.singletonNone}fold(n,o){return this.tag?o(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?F.some(n(this.value)):F.none()}bind(n){return this.tag?n(this.value):F.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:F.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return Ie(n)?F.some(n):F.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}F.singletonNone=new F(!1);const Go=Array.prototype.slice,to=Array.prototype.indexOf,lt=Array.prototype.push,gt=(e,n)=>to.call(e,n),an=(e,n)=>{const o=gt(e,n);return o===-1?F.none():F.some(o)},ee=(e,n)=>gt(e,n)>-1,be=(e,n)=>{for(let o=0,r=e.length;o{const o=e.length,r=new Array(o);for(let c=0;c{for(let o=0,r=e.length;o{for(let o=e.length-1;o>=0;o--){const r=e[o];n(r,o)}},Fe=(e,n)=>{const o=[],r=[];for(let c=0,u=e.length;c{const o=[];for(let r=0,c=e.length;r(Ee(e,(r,c)=>{o=n(o,r,c)}),o),Q=(e,n,o)=>(re(e,(r,c)=>{o=n(o,r,c)}),o),Ce=(e,n,o)=>{for(let r=0,c=e.length;rCe(e,n,Ne),zt=(e,n)=>{for(let o=0,r=e.length;o{const n=[];for(let o=0,r=e.length;oqn(ve(e,n)),zn=(e,n)=>{for(let o=0,r=e.length;o{const n=Go.call(e,0);return n.reverse(),n},Lo=(e,n)=>Ze(e,o=>!ee(n,o)),Ln=(e,n)=>{const o={};for(let r=0,c=e.length;r{const o=Go.call(e,0);return o.sort(n),o},Jn=(e,n)=>n>=0&&nJn(e,0),ho=e=>Jn(e,e.length-1),cs=ae(Array.from)?Array.from:e=>Go.call(e),Bs=(e,n)=>{for(let o=0;o{const o=[],r=ae(n)?c=>be(o,u=>n(u,c)):c=>ee(o,c);for(let c=0,u=e.length;c{const o=ts(e);for(let r=0,c=o.length;rir(e,(o,r)=>({k:r,v:n(o,r)})),ir=(e,n)=>{const o={};return Ot(e,(r,c)=>{const u=n(r,c);o[u.k]=u.v}),o},Kr=e=>(n,o)=>{e[o]=n},ga=(e,n,o,r)=>{Ot(e,(c,u)=>{(n(c,u)?o:r)(c,u)})},Pr=(e,n)=>{const o={},r={};return ga(e,n,Kr(o),Kr(r)),{t:o,f:r}},Cs=(e,n)=>{const o={};return ga(e,n,Kr(o),Re),o},ra=(e,n)=>{const o=[];return Ot(e,(r,c)=>{o.push(n(r,c))}),o},Rr=e=>ra(e,In),Ss=(e,n)=>Wn(e,n)?F.from(e[n]):F.none(),Wn=(e,n)=>Aa.call(e,n),or=(e,n)=>Wn(e,n)&&e[n]!==void 0&&e[n]!==null,ze=(e,n,o=bo)=>An(o).eq(e,n),Ye=e=>{const n={};return re(e,o=>{n[o]={}}),ts(n)},jt=e=>e.length!==void 0,yn=Array.isArray,_o=e=>{if(yn(e))return e;{const n=[];for(let o=0,r=e.length;o{if(!e)return!1;if(o=o||e,jt(e)){for(let r=0,c=e.length;r{const o=[];return ns(e,(r,c)=>{o.push(n(r,c,e))}),o},Fr=(e,n)=>{const o=[];return ns(e,(r,c)=>{(!n||n(r,c,e))&&o.push(r)}),o},lr=(e,n)=>{if(e){for(let o=0,r=e.length;o{let c=pn(o)?e[0]:o;for(let u=0;u{for(let r=0,c=e.length;re[e.length-1],ct=e=>{let n=!1,o;return(...r)=>(n||(n=!0,o=e.apply(null,r)),o)},En=(e,n,o,r)=>{const c=e.isiOS()&&/ipad/i.test(o)===!0,u=e.isiOS()&&!c,m=e.isiOS()||e.isAndroid(),b=m||r("(pointer:coarse)"),v=c||!u&&m&&r("(min-device-width:768px)"),x=u||m&&!v,R=n.isSafari()&&e.isiOS()&&/safari/i.test(o)===!1,N=!x&&!v&&!R;return{isiPad:st(c),isiPhone:st(u),isTablet:st(v),isPhone:st(x),isTouch:st(b),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:st(R),isDesktop:st(N)}},Pn=(e,n)=>{for(let o=0;o{const o=Pn(e,n);if(!o)return{major:0,minor:0};const r=c=>Number(n.replace(o,"$"+c));return yo(r(1),r(2))},Us=(e,n)=>{const o=String(n).toLowerCase();return e.length===0?ke():Po(e,o)},ke=()=>yo(0,0),yo=(e,n)=>({major:e,minor:n}),de={nu:yo,detect:Us,unknown:ke},me=(e,n)=>Bs(n.brands,o=>{const r=o.brand.toLowerCase();return Ve(e,c=>{var u;return r===((u=c.brand)===null||u===void 0?void 0:u.toLowerCase())}).map(c=>({current:c.name,version:de.nu(parseInt(o.version,10),0)}))}),ht=(e,n)=>{const o=String(n).toLowerCase();return Ve(e,r=>r.search(o))},xt=(e,n)=>ht(e,n).map(o=>{const r=de.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Xt=(e,n)=>ht(e,n).map(o=>{const r=de.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Fn=(e,n)=>e.substring(n),xn=(e,n,o)=>n===""||e.length>=n.length&&e.substr(o,o+n.length)===n,Tn=(e,n)=>Qn(e,n)?Fn(e,n.length):e,On=(e,n,o=0,r)=>{const c=e.indexOf(n,o);return c!==-1?pn(r)?!0:c+n.length<=r:!1},Qn=(e,n)=>xn(e,n,0),ss=(e,n)=>xn(e,n,e.length-n.length),$s=e=>n=>n.replace(e,""),Ba=$s(/^\s+|\s+$/g),Ya=$s(/^\s+/g),fc=$s(/\s+$/g),mo=e=>e.length>0,is=e=>!mo(e),vs=(e,n)=>n<=0?"":new Array(n+1).join(e),pa=(e,n=10)=>{const o=parseInt(e,n);return isNaN(o)?F.none():F.some(o)},jr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ur=e=>n=>On(n,e),Ws=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>On(e,"edge/")&&On(e,"chrome")&&On(e,"safari")&&On(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,jr],search:e=>On(e,"chrome")&&!On(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>On(e,"msie")||On(e,"trident")},{name:"Opera",versionRegexes:[jr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ur("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ur("firefox")},{name:"Safari",versionRegexes:[jr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(On(e,"safari")||On(e,"mobile/"))&&On(e,"applewebkit")}],Ha=[{name:"Windows",search:ur("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>On(e,"iphone")||On(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ur("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:ur("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ur("linux"),versionRegexes:[]},{name:"Solaris",search:ur("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ur("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ur("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Bi={browsers:st(Ws),oses:st(Ha)},Ns="Edge",la="Chromium",Pa="IE",$r="Opera",wc="Firefox",Dc="Safari",ha=()=>zc({current:void 0,version:de.unknown()}),zc=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isEdge:r(Ns),isChromium:r(la),isIE:r(Pa),isOpera:r($r),isFirefox:r(wc),isSafari:r(Dc)}},Rc={unknown:ha,nu:zc,edge:st(Ns),chromium:st(la),ie:st(Pa),opera:st($r),firefox:st(wc),safari:st(Dc)},Ji="Windows",mc="iOS",Qi="Android",Fa="Linux",ri="macOS",wi="Solaris",el="FreeBSD",Yl="ChromeOS",Z=()=>ge({current:void 0,version:de.unknown()}),ge=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isWindows:r(Ji),isiOS:r(mc),isAndroid:r(Qi),isMacOS:r(ri),isLinux:r(Fa),isSolaris:r(wi),isFreeBSD:r(el),isChromeOS:r(Yl)}},De={unknown:Z,nu:ge,windows:st(Ji),ios:st(mc),android:st(Qi),linux:st(Fa),macos:st(ri),solaris:st(wi),freebsd:st(el),chromeos:st(Yl)},Nt={detect:(e,n,o)=>{const r=Bi.browsers(),c=Bi.oses(),u=n.bind(v=>me(r,v)).orThunk(()=>xt(r,e)).fold(Rc.unknown,Rc.nu),m=Xt(c,e).fold(De.unknown,De.nu),b=En(m,u,e,o);return{browser:u,os:m,deviceType:b}}},no=e=>window.matchMedia(e).matches;let Is=ct(()=>Nt.detect(navigator.userAgent,F.from(navigator.userAgentData),no));const qs=()=>Is(),Ls=navigator.userAgent,Qs=qs(),fs=Qs.browser,yr=Qs.os,Va=Qs.deviceType,_i=Ls.indexOf("Windows Phone")!==-1,tn={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:fs.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!fs.isIE(),windowsPhone:_i,browser:{current:fs.current,version:fs.version,isChromium:fs.isChromium,isEdge:fs.isEdge,isFirefox:fs.isFirefox,isIE:fs.isIE,isOpera:fs.isOpera,isSafari:fs.isSafari},os:{current:yr.current,version:yr.version,isAndroid:yr.isAndroid,isChromeOS:yr.isChromeOS,isFreeBSD:yr.isFreeBSD,isiOS:yr.isiOS,isLinux:yr.isLinux,isMacOS:yr.isMacOS,isSolaris:yr.isSolaris,isWindows:yr.isWindows},deviceType:{isDesktop:Va.isDesktop,isiPad:Va.isiPad,isiPhone:Va.isiPhone,isPhone:Va.isPhone,isTablet:Va.isTablet,isTouch:Va.isTouch,isWebView:Va.isWebView}},wl=/^\s*|\s*$/g,vr=e=>on(e)?"":(""+e).replace(wl,""),B=(e,n)=>n?n==="array"&&yn(e)?!0:typeof e===n:e!==void 0,Y=(e,n,o={})=>{const r=W(e)?e.split(n||","):e||[];let c=r.length;for(;c--;)o[r[c]]={};return o},se=Wn,Ke=(e,...n)=>{for(let o=0;on.call(r,c,u,o)===!1?!1:(Kt(c,n,o,r),!0)))},Et={trim:vr,isArray:yn,is:B,toArray:_o,makeMap:Y,each:ns,map:Nr,grep:Fr,inArray:lr,hasOwn:se,extend:Ke,walk:Kt,resolve:(e,n=window)=>{const o=e.split(".");for(let r=0,c=o.length;rmt(e)?e:e===""?[]:Nr(e.split(n||","),vr),_addCacheSuffix:e=>{const n=tn.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},Gs=(e,n,o=Yt)=>e.exists(r=>o(r,n)),Xa=(e,n,o=Yt)=>Yr(e,n,o).getOr(e.isNone()&&n.isNone()),fr=e=>{const n=[],o=r=>{n.push(r)};for(let r=0;re.isSome()&&n.isSome()?F.some(o(e.getOrDie(),n.getOrDie())):F.none(),Ci=(e,n,o,r)=>e.isSome()&&n.isSome()&&o.isSome()?F.some(r(e.getOrDie(),n.getOrDie(),o.getOrDie())):F.none(),q=(e,n)=>e?F.some(n):F.none(),ue=typeof window<"u"?window:Function("return this;")(),Pe=(e,n)=>{let o=n??ue;for(let r=0;r{const o=e.split(".");return Pe(o,n)},Jt=(e,n)=>pt(e,n),os=(e,n)=>{const o=Jt(e,n);if(o==null)throw new Error(e+" not available on this browser");return o},Er=Object.getPrototypeOf,Oa=e=>os("HTMLElement",e),ls=e=>{const n=pt("ownerDocument.defaultView",e);return Be(e)&&(Oa(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(Er(e).constructor.name))},Xr=8,Wr=9,ua=11,ba=1,mu=3,rs=e=>e.dom.nodeName.toLowerCase(),kr=e=>e.dom.nodeType,Jr=e=>n=>kr(n)===e,ig=e=>kr(e)===Xr||rs(e)==="#comment",Mr=e=>gc(e)&&ls(e.dom),gc=Jr(ba),Ja=Jr(mu),hp=Jr(Wr),lg=Jr(ua),Si=e=>n=>gc(n)&&rs(n)===e,sm=(e,n,o)=>{if(W(o)||it(o)||po(o))e.setAttribute(n,o+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple")},mr=(e,n,o)=>{sm(e.dom,n,o)},Pi=(e,n)=>{const o=e.dom;Ot(n,(r,c)=>{sm(o,c,r)})},_c=(e,n)=>{const o=e.dom.getAttribute(n);return o===null?void 0:o},_l=(e,n)=>F.from(_c(e,n)),Da=(e,n)=>{const o=e.dom;return o&&o.hasAttribute?o.hasAttribute(n):!1},Qr=(e,n)=>{e.dom.removeAttribute(n)},Fi=e=>{const n=e.dom.attributes;return n==null||n.length===0},Lu=e=>Q(e.dom.attributes,(n,o)=>(n[o.name]=o.value,n),{}),Hu=(e,n)=>{const o=_c(e,n);return o===void 0||o===""?[]:o.split(" ")},rm=(e,n,o)=>{const c=Hu(e,n).concat([o]);return mr(e,n,c.join(" ")),!0},lf=(e,n,o)=>{const r=Ze(Hu(e,n),c=>c!==o);return r.length>0?mr(e,n,r.join(" ")):Qr(e,n),!1},Nc=e=>e.dom.classList!==void 0,uf=e=>Hu(e,"class"),Mc=(e,n)=>rm(e,"class",n),tl=(e,n)=>lf(e,"class",n),df=(e,n)=>ee(uf(e),n)?tl(e,n):Mc(e,n),gu=(e,n)=>{Nc(e)?e.dom.classList.add(n):Mc(e,n)},ff=e=>{(Nc(e)?e.dom.classList:uf(e)).length===0&&Qr(e,"class")},Cl=(e,n)=>{Nc(e)?e.dom.classList.remove(n):tl(e,n),ff(e)},ug=(e,n)=>{const o=Nc(e)?e.dom.classList.toggle(n):df(e,n);return ff(e),o},Xl=(e,n)=>Nc(e)&&e.dom.classList.contains(n),dg=(e,n)=>{const r=(n||document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1){const c="HTML does not have a single root node";throw console.error(c,e),new Error(c)}return Vu(r.childNodes[0])},fg=(e,n)=>{const r=(n||document).createElement(e);return Vu(r)},mg=(e,n)=>{const r=(n||document).createTextNode(e);return Vu(r)},Vu=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},le={fromHtml:dg,fromTag:fg,fromText:mg,fromDom:Vu,fromPoint:(e,n,o)=>F.from(e.dom.elementFromPoint(n,o)).map(Vu)},pu=(e,n)=>{const o=[],r=u=>(o.push(u),n(u));let c=n(e);do c=c.bind(r);while(c.isSome());return o},xi=(e,n)=>{const o=e.dom;if(o.nodeType!==ba)return!1;{const r=o;if(r.matches!==void 0)return r.matches(n);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(n);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(n);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},kd=e=>e.nodeType!==ba&&e.nodeType!==Wr&&e.nodeType!==ua||e.childElementCount===0,gg=(e,n)=>{const o=n===void 0?document:n.dom;return kd(o)?[]:ve(o.querySelectorAll(e),le.fromDom)},eb=(e,n)=>{const o=n===void 0?document:n.dom;return kd(o)?F.none():F.from(o.querySelector(e)).map(le.fromDom)},xs=(e,n)=>e.dom===n.dom,pc=(e,n)=>{const o=e.dom,r=n.dom;return o===r?!1:o.contains(r)},Sl=e=>le.fromDom(e.dom.ownerDocument),Ti=e=>hp(e)?e:Sl(e),hu=e=>le.fromDom(Ti(e).dom.documentElement),$i=e=>le.fromDom(Ti(e).dom.defaultView),Qa=e=>F.from(e.dom.parentNode).map(le.fromDom),nl=e=>F.from(e.dom.parentElement).map(le.fromDom),pg=(e,n)=>{const o=ae(n)?n:Ne;let r=e.dom;const c=[];for(;r.parentNode!==null&&r.parentNode!==void 0;){const u=r.parentNode,m=le.fromDom(u);if(c.push(m),o(m)===!0)break;r=u}return c},yp=e=>{const n=o=>Ze(o,r=>!xs(e,r));return Qa(e).map(ya).map(n).getOr([])},Ei=e=>F.from(e.dom.previousSibling).map(le.fromDom),xl=e=>F.from(e.dom.nextSibling).map(le.fromDom),hg=e=>Un(pu(e,Ei)),Cc=e=>pu(e,xl),ya=e=>ve(e.dom.childNodes,le.fromDom),bu=(e,n)=>{const o=e.dom.childNodes;return F.from(o[n]).map(le.fromDom)},wd=e=>bu(e,0),Ii=e=>bu(e,e.dom.childNodes.length-1),Sc=e=>e.dom.childNodes.length,bg=e=>e.dom.hasChildNodes(),vp=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return le.fromDom(n)},mf=e=>lg(e)&&Ie(e.dom.host),am=ae(Element.prototype.attachShadow)&&ae(Node.prototype.getRootNode),_d=st(am),Tl=am?e=>le.fromDom(e.dom.getRootNode()):Ti,kp=e=>mf(e)?e:vp(Ti(e)),jy=e=>mf(e)?e:le.fromDom(Ti(e).dom.body),yg=e=>{const n=Tl(e);return mf(n)?F.some(n):F.none()},vg=e=>le.fromDom(e.dom.host),Uu=e=>{if(_d()&&Ie(e.target)){const n=le.fromDom(e.target);if(gc(n)&&gf(n)&&e.composed&&e.composedPath){const o=e.composedPath();if(o)return gn(o)}}return F.from(e.target)},gf=e=>Ie(e.dom.shadowRoot),Cd=e=>{const n=Ja(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const o=n.ownerDocument;return yg(le.fromDom(n)).fold(()=>o.body.contains(n),rn(Cd,vg))};var Ar=(e,n,o,r,c)=>e(o,r)?F.some(o):ae(c)&&c(o)?F.none():n(o,r,c);const Ir=(e,n,o)=>{let r=e.dom;const c=ae(o)?o:Ne;for(;r.parentNode;){r=r.parentNode;const u=le.fromDom(r);if(n(u))return F.some(u);if(c(u))break}return F.none()},Bc=(e,n,o)=>Ar((c,u)=>u(c),Ir,e,n,o),kg=(e,n)=>{const o=e.dom;return o.parentNode?wp(le.fromDom(o.parentNode),r=>!xs(e,r)&&n(r)):F.none()},wp=(e,n)=>{const o=c=>n(le.fromDom(c));return Ve(e.dom.childNodes,o).map(le.fromDom)},Ua=(e,n)=>{const o=r=>{for(let c=0;cIr(e,r=>xi(r,n),o),Pc=(e,n)=>eb(n,e),El=(e,n,o)=>Ar((c,u)=>xi(c,u),Jl,e,n,o),cm=e=>El(e,"[contenteditable]"),Ho=(e,n=!1)=>Cd(e)?e.dom.isContentEditable:cm(e).fold(st(n),o=>qc(o)==="true"),qc=e=>e.dom.contentEditable,yu=e=>e.style!==void 0&&ae(e.style.getPropertyValue),Sd=(e,n,o)=>{if(!W(o))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);yu(e)&&e.style.setProperty(n,o)},im=(e,n)=>{yu(e)&&e.style.removeProperty(n)},_p=(e,n,o)=>{const r=e.dom;Sd(r,n,o)},ec=(e,n)=>{const o=e.dom;Ot(n,(r,c)=>{Sd(o,c,r)})},aa=(e,n)=>{const o=e.dom,c=window.getComputedStyle(o).getPropertyValue(n);return c===""&&!Cd(e)?ai(o,n):c},ai=(e,n)=>yu(e)?e.style.getPropertyValue(n):"",va=(e,n)=>{const o=e.dom,r=ai(o,n);return F.from(r).filter(c=>c.length>0)},xd=e=>{const n={},o=e.dom;if(yu(o))for(let r=0;r{const o=e.dom;im(o,n),Gs(_l(e,"style").map(Ba),"")&&Qr(e,"style")},ea=e=>e.dom.offsetWidth,za=(e,n)=>{Qa(e).each(r=>{r.dom.insertBefore(n.dom,e.dom)})},ol=(e,n)=>{xl(e).fold(()=>{Qa(e).each(c=>{da(c,n)})},r=>{za(r,n)})},Wu=(e,n)=>{wd(e).fold(()=>{da(e,n)},r=>{e.dom.insertBefore(n.dom,r.dom)})},da=(e,n)=>{e.dom.appendChild(n.dom)},wg=(e,n)=>{za(e,n),da(n,e)},Cp=(e,n)=>{re(n,(o,r)=>{const c=r===0?e:n[r-1];ol(c,o)})},Zs=(e,n)=>{re(n,o=>{da(e,o)})},sl=e=>{e.dom.textContent="",re(ya(e),n=>{Ts(n)})},Ts=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Fc=e=>{const n=ya(e);n.length>0&&Cp(e,n),Ts(e)},vu=(e,n)=>{const r=(n||document).createElement("div");return r.innerHTML=e,ya(le.fromDom(r))},Ql=e=>ve(e,le.fromDom),Jo=e=>e.dom.innerHTML,Zu=(e,n)=>{const r=Sl(e).dom,c=le.fromDom(r.createDocumentFragment()),u=vu(n,r);Zs(c,u),sl(e),da(e,c)},_g=e=>{const n=le.fromTag("div"),o=le.fromDom(e.dom.cloneNode(!0));return da(n,o),Jo(n)},Cg=(e,n,o,r,c,u,m)=>({target:e,x:n,y:o,stop:r,prevent:c,kill:u,raw:m}),tb=e=>{const n=le.fromDom(Uu(e).getOr(e.target)),o=()=>e.stopPropagation(),r=()=>e.preventDefault(),c=E(r,o);return Cg(n,e.clientX,e.clientY,o,r,c,e)},Sp=(e,n)=>o=>{e(o)&&n(tb(o))},lm=(e,n,o,r,c)=>{const u=Sp(o,r);return e.dom.addEventListener(n,u,c),{unbind:et(pf,e,n,u,c)}},Sg=(e,n,o,r)=>lm(e,n,o,r,!1),pf=(e,n,o,r)=>{e.dom.removeEventListener(n,o,r)},C=(e,n)=>({left:e,top:n,translate:(r,c)=>C(e+r,n+c)}),z=C,H=e=>{const n=e.getBoundingClientRect();return z(n.left,n.top)},ce=(e,n)=>e!==void 0?e:n!==void 0?n:0,ye=e=>{const n=e.dom.ownerDocument,o=n.body,r=n.defaultView,c=n.documentElement;if(o===e.dom)return z(o.offsetLeft,o.offsetTop);const u=ce(r==null?void 0:r.pageYOffset,c.scrollTop),m=ce(r==null?void 0:r.pageXOffset,c.scrollLeft),b=ce(c.clientTop,o.clientTop),v=ce(c.clientLeft,o.clientLeft);return Rt(e).translate(m-v,u-b)},Rt=e=>{const n=e.dom,r=n.ownerDocument.body;return r===n?z(r.offsetLeft,r.offsetTop):Cd(e)?H(n):z(0,0)},Rn=e=>{const n=e!==void 0?e.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop;return z(o,r)},Do=(e,n,o)=>{const c=(o!==void 0?o.dom:document).defaultView;c&&c.scrollTo(e,n)},xo=(e,n)=>{qs().browser.isSafari()&&ae(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},lo=e=>{const n=e===void 0?window:e;return qs().browser.isFirefox()?F.none():F.from(n.visualViewport)},zr=(e,n,o,r)=>({x:e,y:n,width:o,height:r,right:e+o,bottom:n+r}),ja=e=>{const n=e===void 0?window:e,o=n.document,r=Rn(le.fromDom(o));return lo(n).fold(()=>{const c=n.document.documentElement,u=c.clientWidth,m=c.clientHeight;return zr(r.left,r.top,u,m)},c=>zr(Math.max(c.pageLeft,r.left),Math.max(c.pageTop,r.top),c.width,c.height))},ci=(e,n)=>Ze(ya(e),n),eu=(e,n)=>{let o=[];return re(ya(e),r=>{n(r)&&(o=o.concat([r])),o=o.concat(eu(r,n))}),o},tc=(e,n)=>gg(n,e),av=(e,n,o)=>Jl(e,n,o).isSome();class wr{constructor(n,o){this.node=n,this.rootNode=o,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,o,r,c){if(n){if(!c&&n[o])return n[o];if(n!==this.rootNode){let u=n[r];if(u)return u;for(let m=n.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(u=m[r],u)return u}}}findPreviousNode(n,o){if(n){const r=n.previousSibling;if(this.rootNode&&r===this.rootNode)return;if(r){if(!o){for(let u=r.lastChild;u;u=u.lastChild)if(!u.lastChild)return u}return r}const c=n.parentNode;if(c&&c!==this.rootNode)return c}}}const Kn=e=>n=>!!n&&n.nodeType===e,ku=e=>!!e&&!Object.getPrototypeOf(e),Cn=Kn(1),tu=e=>Cn(e)&&Mr(le.fromDom(e)),Wy=e=>Cn(e)&&e.namespaceURI==="http://www.w3.org/2000/svg",wu=e=>{const n=e.toLowerCase();return o=>Ie(o)&&o.nodeName.toLowerCase()===n},ka=e=>{const n=e.map(o=>o.toLowerCase());return o=>{if(o&&o.nodeName){const r=o.nodeName.toLowerCase();return ee(n,r)}return!1}},qu=(e,n)=>{const o=n.toLowerCase().split(" ");return r=>{if(Cn(r)){const c=r.ownerDocument.defaultView;if(c)for(let u=0;un=>Cn(n)&&n.hasAttribute(e),nc=(e,n)=>o=>Cn(o)&&o.getAttribute(e)===n,nu=e=>Cn(e)&&e.hasAttribute("data-mce-bogus"),xp=e=>Cn(e)&&e.getAttribute("data-mce-bogus")==="all",_u=e=>Cn(e)&&e.tagName==="TABLE",Zy=e=>n=>!!(tu(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),Tg=ka(["textarea","input"]),Mt=Kn(3),qy=Kn(4),Td=Kn(7),Gu=Kn(8),Eg=Kn(9),Lr=Kn(11),er=wu("br"),Gc=wu("img"),$c=Zy("true"),hs=Zy("false"),um=ka(["td","th"]),hc=ka(["td","th","caption"]),ca=ka(["video","audio","object","embed"]),Tp=wu("li"),_t=wu("details"),Ai=wu("summary"),Ag="\uFEFF",Ms=" ",ou=e=>e===Ag,Gy=e=>e.replace(/\uFEFF/g,""),nb=((e,n)=>{const o=u=>{if(!e(u))throw new Error("Can only get "+n+" value of a "+n+" node");return r(u).getOr("")},r=u=>e(u)?F.from(u.dom.nodeValue):F.none();return{get:o,getOption:r,set:(u,m)=>{if(!e(u))throw new Error("Can only set raw "+n+" value of a "+n+" node");u.dom.nodeValue=m}}})(Ja,"text"),Al=e=>nb.get(e),ob=e=>nb.getOption(e),Li=(e,n)=>nb.set(e,n),js=["td","th"],Cu=["thead","tbody","tfoot"],hf=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],bc=["li","dd","dt"],sb=["ul","ol","dl"],bf=["pre","script","textarea","style"],yf=e=>{let n;return o=>(n=n||Ln(e,at),Wn(n,rs(o)))},Kc=e=>rs(e)==="table",Ed=e=>gc(e)&&rs(e)==="br",Le=yf(hf),ii=yf(sb),rl=yf(bc),al=yf(Cu),li=yf(js),$a=yf(bf),Wa=e=>{const n=[];let o=e.dom;for(;o;)n.push(le.fromDom(o)),o=o.lastChild;return n},Ky=e=>{const n=tc(e,"br"),o=Ze(Wa(e).slice(-1),Ed);n.length===o.length&&re(o,Ts)},ui=()=>{const e=le.fromTag("br");return mr(e,"data-mce-bogus","1"),e},Su=e=>{sl(e),da(e,ui())},ao=(e,n)=>{Ii(e).each(o=>{Ei(o).each(r=>{n.isBlock(rs(e))&&Ed(o)&&n.isBlock(rs(r))&&Ts(o)})})},w=Ag,T=ou,L=Gy,K=e=>e.insertContent(w,{preserve_zwsp:!0}),_e=Cn,dt=Mt,Pt=e=>(dt(e)&&(e=e.parentNode),_e(e)&&e.hasAttribute("data-mce-caret")),Qt=e=>dt(e)&&T(e.data),Yn=e=>Pt(e)||Qt(e),Vo=e=>e.firstChild!==e.lastChild||!er(e.firstChild),ta=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(w),u=e.parentNode;if(n){const m=e.previousSibling;if(dt(m)){if(Yn(m))return m;if(cl(m))return m.splitText(m.data.length-1)}u==null||u.insertBefore(c,e)}else{const m=e.nextSibling;if(dt(m)){if(Yn(m))return m;if(di(m))return m.splitText(1),m}e.nextSibling?u==null||u.insertBefore(c,e.nextSibling):u==null||u.appendChild(c)}return c},Hs=e=>{const n=e.container();return Mt(n)?n.data.charAt(e.offset())===w||e.isAtStart()&&Qt(n.previousSibling):!1},Or=e=>{const n=e.container();return Mt(n)?n.data.charAt(e.offset()-1)===w||e.isAtEnd()&&Qt(n.nextSibling):!1},Oi=(e,n,o)=>{var r;const u=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement(e);u.setAttribute("data-mce-caret",o?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(ui().dom);const m=n.parentNode;return o?m==null||m.insertBefore(u,n):n.nextSibling?m==null||m.insertBefore(u,n.nextSibling):m==null||m.appendChild(u),u},di=e=>dt(e)&&e.data[0]===w,cl=e=>dt(e)&&e.data[e.data.length-1]===w,Ad=e=>{var n;const o=e.getElementsByTagName("br"),r=o[o.length-1];nu(r)&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))},ru=e=>e&&e.hasAttribute("data-mce-caret")?(Ad(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,Og=e=>Pt(e.startContainer),dm=$c,vf=hs,Dg=er,Ra=Mt,il=ka(["script","style","textarea"]),fm=ka(["img","input","textarea","hr","iframe","video","audio","object","embed"]),kf=ka(["table"]),Ps=Yn,ms=e=>Ps(e)?!1:Ra(e)?!il(e.parentNode):fm(e)||Dg(e)||kf(e)||Ic(e),oc=e=>Cn(e)&&e.getAttribute("unselectable")==="true",Ic=e=>!oc(e)&&vf(e),rb=(e,n)=>{for(let o=e.parentNode;o&&o!==n;o=o.parentNode){if(Ic(o))return!1;if(dm(o))return!0}return!0},Ku=e=>Ic(e)?!Q(cs(e.getElementsByTagName("*")),(n,o)=>n||dm(o),!1):!1,Lc=e=>fm(e)||Ku(e),wf=(e,n)=>ms(e)&&rb(e,n),xu=/^[ \t\r\n]*$/,mm=e=>xu.test(e),zg=e=>{for(const n of e)if(!ou(n))return!1;return!0},Ep=e=>" \f \v".indexOf(e)!==-1,_f=e=>e===` +import{o as Gq,s as Kq,R as tZ,t as Yq,v as Xq,w as Jq,x as Qq,y as eG,z as nZ,D as tG,G as _q}from"./index-Hn-s1JD5.js";var Cq={exports:{}};(function(as){(function(){var So=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},wo=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},Vn=function(e,n){var o=Array.prototype.slice.call(e);return o.sort(n)},co=function(e,n){return fo(function(o,r){return e.eq(n(o),n(r))})},fo=function(e){return{eq:e}},Bn=fo(function(e,n){return e===n}),Qe=Bn,mn=function(e){return fo(function(n,o){if(n.length!==o.length)return!1;for(var r=n.length,c=0;c{var r;return o(e,n.prototype)?!0:((r=e.constructor)===null||r===void 0?void 0:r.name)===n.name},Ht=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&Wt(e,String,(o,r)=>r.isPrototypeOf(o))?"string":n},nn=e=>n=>Ht(n)===e,nt=e=>n=>typeof n===e,Dt=e=>n=>e===n,At=(e,n)=>Be(e)&&Wt(e,n,(o,r)=>un(o)===r),W=nn("string"),Be=nn("object"),Bo=e=>At(e,Object),mt=nn("array"),U=Dt(null),it=nt("boolean"),pn=Dt(void 0),on=e=>e==null,Ie=e=>!on(e),ae=nt("function"),po=nt("number"),Se=(e,n)=>{if(mt(e)){for(let o=0,r=e.length;o{},E=(e,n)=>(...o)=>e(n.apply(null,o)),rn=(e,n)=>o=>e(n(o)),st=e=>()=>e,In=e=>e,Yt=(e,n)=>e===n;function et(e,...n){return(...o)=>{const r=n.concat(o);return e.apply(null,r)}}const ro=e=>n=>!e(n),Wo=e=>()=>{throw new Error(e)},wt=e=>e(),fn=e=>{e()},Ne=st(!1),at=st(!0);class F{constructor(n,o){this.tag=n,this.value=o}static some(n){return new F(!0,n)}static none(){return F.singletonNone}fold(n,o){return this.tag?o(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?F.some(n(this.value)):F.none()}bind(n){return this.tag?n(this.value):F.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:F.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return Ie(n)?F.some(n):F.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}F.singletonNone=new F(!1);const Go=Array.prototype.slice,to=Array.prototype.indexOf,lt=Array.prototype.push,gt=(e,n)=>to.call(e,n),an=(e,n)=>{const o=gt(e,n);return o===-1?F.none():F.some(o)},ee=(e,n)=>gt(e,n)>-1,be=(e,n)=>{for(let o=0,r=e.length;o{const o=e.length,r=new Array(o);for(let c=0;c{for(let o=0,r=e.length;o{for(let o=e.length-1;o>=0;o--){const r=e[o];n(r,o)}},Fe=(e,n)=>{const o=[],r=[];for(let c=0,u=e.length;c{const o=[];for(let r=0,c=e.length;r(Ee(e,(r,c)=>{o=n(o,r,c)}),o),Q=(e,n,o)=>(re(e,(r,c)=>{o=n(o,r,c)}),o),Ce=(e,n,o)=>{for(let r=0,c=e.length;rCe(e,n,Ne),zt=(e,n)=>{for(let o=0,r=e.length;o{const n=[];for(let o=0,r=e.length;oqn(ve(e,n)),zn=(e,n)=>{for(let o=0,r=e.length;o{const n=Go.call(e,0);return n.reverse(),n},Lo=(e,n)=>Ze(e,o=>!ee(n,o)),Ln=(e,n)=>{const o={};for(let r=0,c=e.length;r{const o=Go.call(e,0);return o.sort(n),o},Jn=(e,n)=>n>=0&&nJn(e,0),ho=e=>Jn(e,e.length-1),cs=ae(Array.from)?Array.from:e=>Go.call(e),Bs=(e,n)=>{for(let o=0;o{const o=[],r=ae(n)?c=>be(o,u=>n(u,c)):c=>ee(o,c);for(let c=0,u=e.length;c{const o=ts(e);for(let r=0,c=o.length;rir(e,(o,r)=>({k:r,v:n(o,r)})),ir=(e,n)=>{const o={};return Ot(e,(r,c)=>{const u=n(r,c);o[u.k]=u.v}),o},Kr=e=>(n,o)=>{e[o]=n},ga=(e,n,o,r)=>{Ot(e,(c,u)=>{(n(c,u)?o:r)(c,u)})},Pr=(e,n)=>{const o={},r={};return ga(e,n,Kr(o),Kr(r)),{t:o,f:r}},Cs=(e,n)=>{const o={};return ga(e,n,Kr(o),Re),o},ra=(e,n)=>{const o=[];return Ot(e,(r,c)=>{o.push(n(r,c))}),o},Rr=e=>ra(e,In),Ss=(e,n)=>Wn(e,n)?F.from(e[n]):F.none(),Wn=(e,n)=>Aa.call(e,n),or=(e,n)=>Wn(e,n)&&e[n]!==void 0&&e[n]!==null,ze=(e,n,o=bo)=>An(o).eq(e,n),Ye=e=>{const n={};return re(e,o=>{n[o]={}}),ts(n)},jt=e=>e.length!==void 0,yn=Array.isArray,_o=e=>{if(yn(e))return e;{const n=[];for(let o=0,r=e.length;o{if(!e)return!1;if(o=o||e,jt(e)){for(let r=0,c=e.length;r{const o=[];return ns(e,(r,c)=>{o.push(n(r,c,e))}),o},Fr=(e,n)=>{const o=[];return ns(e,(r,c)=>{(!n||n(r,c,e))&&o.push(r)}),o},lr=(e,n)=>{if(e){for(let o=0,r=e.length;o{let c=pn(o)?e[0]:o;for(let u=0;u{for(let r=0,c=e.length;re[e.length-1],ct=e=>{let n=!1,o;return(...r)=>(n||(n=!0,o=e.apply(null,r)),o)},En=(e,n,o,r)=>{const c=e.isiOS()&&/ipad/i.test(o)===!0,u=e.isiOS()&&!c,m=e.isiOS()||e.isAndroid(),b=m||r("(pointer:coarse)"),v=c||!u&&m&&r("(min-device-width:768px)"),x=u||m&&!v,R=n.isSafari()&&e.isiOS()&&/safari/i.test(o)===!1,N=!x&&!v&&!R;return{isiPad:st(c),isiPhone:st(u),isTablet:st(v),isPhone:st(x),isTouch:st(b),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:st(R),isDesktop:st(N)}},Pn=(e,n)=>{for(let o=0;o{const o=Pn(e,n);if(!o)return{major:0,minor:0};const r=c=>Number(n.replace(o,"$"+c));return yo(r(1),r(2))},Us=(e,n)=>{const o=String(n).toLowerCase();return e.length===0?ke():Po(e,o)},ke=()=>yo(0,0),yo=(e,n)=>({major:e,minor:n}),de={nu:yo,detect:Us,unknown:ke},me=(e,n)=>Bs(n.brands,o=>{const r=o.brand.toLowerCase();return Ve(e,c=>{var u;return r===((u=c.brand)===null||u===void 0?void 0:u.toLowerCase())}).map(c=>({current:c.name,version:de.nu(parseInt(o.version,10),0)}))}),ht=(e,n)=>{const o=String(n).toLowerCase();return Ve(e,r=>r.search(o))},xt=(e,n)=>ht(e,n).map(o=>{const r=de.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Xt=(e,n)=>ht(e,n).map(o=>{const r=de.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Fn=(e,n)=>e.substring(n),xn=(e,n,o)=>n===""||e.length>=n.length&&e.substr(o,o+n.length)===n,Tn=(e,n)=>Qn(e,n)?Fn(e,n.length):e,On=(e,n,o=0,r)=>{const c=e.indexOf(n,o);return c!==-1?pn(r)?!0:c+n.length<=r:!1},Qn=(e,n)=>xn(e,n,0),ss=(e,n)=>xn(e,n,e.length-n.length),$s=e=>n=>n.replace(e,""),Ba=$s(/^\s+|\s+$/g),Ya=$s(/^\s+/g),fc=$s(/\s+$/g),mo=e=>e.length>0,is=e=>!mo(e),vs=(e,n)=>n<=0?"":new Array(n+1).join(e),pa=(e,n=10)=>{const o=parseInt(e,n);return isNaN(o)?F.none():F.some(o)},jr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ur=e=>n=>On(n,e),Ws=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>On(e,"edge/")&&On(e,"chrome")&&On(e,"safari")&&On(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,jr],search:e=>On(e,"chrome")&&!On(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>On(e,"msie")||On(e,"trident")},{name:"Opera",versionRegexes:[jr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ur("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ur("firefox")},{name:"Safari",versionRegexes:[jr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(On(e,"safari")||On(e,"mobile/"))&&On(e,"applewebkit")}],Ha=[{name:"Windows",search:ur("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>On(e,"iphone")||On(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ur("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:ur("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ur("linux"),versionRegexes:[]},{name:"Solaris",search:ur("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ur("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ur("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Bi={browsers:st(Ws),oses:st(Ha)},Ns="Edge",la="Chromium",Pa="IE",$r="Opera",wc="Firefox",Dc="Safari",ha=()=>zc({current:void 0,version:de.unknown()}),zc=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isEdge:r(Ns),isChromium:r(la),isIE:r(Pa),isOpera:r($r),isFirefox:r(wc),isSafari:r(Dc)}},Rc={unknown:ha,nu:zc,edge:st(Ns),chromium:st(la),ie:st(Pa),opera:st($r),firefox:st(wc),safari:st(Dc)},Ji="Windows",mc="iOS",Qi="Android",Fa="Linux",ri="macOS",wi="Solaris",el="FreeBSD",Yl="ChromeOS",Z=()=>ge({current:void 0,version:de.unknown()}),ge=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isWindows:r(Ji),isiOS:r(mc),isAndroid:r(Qi),isMacOS:r(ri),isLinux:r(Fa),isSolaris:r(wi),isFreeBSD:r(el),isChromeOS:r(Yl)}},De={unknown:Z,nu:ge,windows:st(Ji),ios:st(mc),android:st(Qi),linux:st(Fa),macos:st(ri),solaris:st(wi),freebsd:st(el),chromeos:st(Yl)},Nt={detect:(e,n,o)=>{const r=Bi.browsers(),c=Bi.oses(),u=n.bind(v=>me(r,v)).orThunk(()=>xt(r,e)).fold(Rc.unknown,Rc.nu),m=Xt(c,e).fold(De.unknown,De.nu),b=En(m,u,e,o);return{browser:u,os:m,deviceType:b}}},no=e=>window.matchMedia(e).matches;let Is=ct(()=>Nt.detect(navigator.userAgent,F.from(navigator.userAgentData),no));const qs=()=>Is(),Ls=navigator.userAgent,Qs=qs(),fs=Qs.browser,yr=Qs.os,Va=Qs.deviceType,_i=Ls.indexOf("Windows Phone")!==-1,tn={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:fs.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!fs.isIE(),windowsPhone:_i,browser:{current:fs.current,version:fs.version,isChromium:fs.isChromium,isEdge:fs.isEdge,isFirefox:fs.isFirefox,isIE:fs.isIE,isOpera:fs.isOpera,isSafari:fs.isSafari},os:{current:yr.current,version:yr.version,isAndroid:yr.isAndroid,isChromeOS:yr.isChromeOS,isFreeBSD:yr.isFreeBSD,isiOS:yr.isiOS,isLinux:yr.isLinux,isMacOS:yr.isMacOS,isSolaris:yr.isSolaris,isWindows:yr.isWindows},deviceType:{isDesktop:Va.isDesktop,isiPad:Va.isiPad,isiPhone:Va.isiPhone,isPhone:Va.isPhone,isTablet:Va.isTablet,isTouch:Va.isTouch,isWebView:Va.isWebView}},wl=/^\s*|\s*$/g,vr=e=>on(e)?"":(""+e).replace(wl,""),B=(e,n)=>n?n==="array"&&yn(e)?!0:typeof e===n:e!==void 0,Y=(e,n,o={})=>{const r=W(e)?e.split(n||","):e||[];let c=r.length;for(;c--;)o[r[c]]={};return o},se=Wn,Ke=(e,...n)=>{for(let o=0;on.call(r,c,u,o)===!1?!1:(Kt(c,n,o,r),!0)))},Et={trim:vr,isArray:yn,is:B,toArray:_o,makeMap:Y,each:ns,map:Nr,grep:Fr,inArray:lr,hasOwn:se,extend:Ke,walk:Kt,resolve:(e,n=window)=>{const o=e.split(".");for(let r=0,c=o.length;rmt(e)?e:e===""?[]:Nr(e.split(n||","),vr),_addCacheSuffix:e=>{const n=tn.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},Gs=(e,n,o=Yt)=>e.exists(r=>o(r,n)),Xa=(e,n,o=Yt)=>Yr(e,n,o).getOr(e.isNone()&&n.isNone()),fr=e=>{const n=[],o=r=>{n.push(r)};for(let r=0;re.isSome()&&n.isSome()?F.some(o(e.getOrDie(),n.getOrDie())):F.none(),Ci=(e,n,o,r)=>e.isSome()&&n.isSome()&&o.isSome()?F.some(r(e.getOrDie(),n.getOrDie(),o.getOrDie())):F.none(),q=(e,n)=>e?F.some(n):F.none(),ue=typeof window<"u"?window:Function("return this;")(),Pe=(e,n)=>{let o=n??ue;for(let r=0;r{const o=e.split(".");return Pe(o,n)},Jt=(e,n)=>pt(e,n),os=(e,n)=>{const o=Jt(e,n);if(o==null)throw new Error(e+" not available on this browser");return o},Er=Object.getPrototypeOf,Oa=e=>os("HTMLElement",e),ls=e=>{const n=pt("ownerDocument.defaultView",e);return Be(e)&&(Oa(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(Er(e).constructor.name))},Xr=8,Wr=9,ua=11,ba=1,mu=3,rs=e=>e.dom.nodeName.toLowerCase(),kr=e=>e.dom.nodeType,Jr=e=>n=>kr(n)===e,ig=e=>kr(e)===Xr||rs(e)==="#comment",Mr=e=>gc(e)&&ls(e.dom),gc=Jr(ba),Ja=Jr(mu),hp=Jr(Wr),lg=Jr(ua),Si=e=>n=>gc(n)&&rs(n)===e,sm=(e,n,o)=>{if(W(o)||it(o)||po(o))e.setAttribute(n,o+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple")},mr=(e,n,o)=>{sm(e.dom,n,o)},Pi=(e,n)=>{const o=e.dom;Ot(n,(r,c)=>{sm(o,c,r)})},_c=(e,n)=>{const o=e.dom.getAttribute(n);return o===null?void 0:o},_l=(e,n)=>F.from(_c(e,n)),Da=(e,n)=>{const o=e.dom;return o&&o.hasAttribute?o.hasAttribute(n):!1},Qr=(e,n)=>{e.dom.removeAttribute(n)},Fi=e=>{const n=e.dom.attributes;return n==null||n.length===0},Lu=e=>Q(e.dom.attributes,(n,o)=>(n[o.name]=o.value,n),{}),Hu=(e,n)=>{const o=_c(e,n);return o===void 0||o===""?[]:o.split(" ")},rm=(e,n,o)=>{const c=Hu(e,n).concat([o]);return mr(e,n,c.join(" ")),!0},lf=(e,n,o)=>{const r=Ze(Hu(e,n),c=>c!==o);return r.length>0?mr(e,n,r.join(" ")):Qr(e,n),!1},Nc=e=>e.dom.classList!==void 0,uf=e=>Hu(e,"class"),Mc=(e,n)=>rm(e,"class",n),tl=(e,n)=>lf(e,"class",n),df=(e,n)=>ee(uf(e),n)?tl(e,n):Mc(e,n),gu=(e,n)=>{Nc(e)?e.dom.classList.add(n):Mc(e,n)},ff=e=>{(Nc(e)?e.dom.classList:uf(e)).length===0&&Qr(e,"class")},Cl=(e,n)=>{Nc(e)?e.dom.classList.remove(n):tl(e,n),ff(e)},ug=(e,n)=>{const o=Nc(e)?e.dom.classList.toggle(n):df(e,n);return ff(e),o},Xl=(e,n)=>Nc(e)&&e.dom.classList.contains(n),dg=(e,n)=>{const r=(n||document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1){const c="HTML does not have a single root node";throw console.error(c,e),new Error(c)}return Vu(r.childNodes[0])},fg=(e,n)=>{const r=(n||document).createElement(e);return Vu(r)},mg=(e,n)=>{const r=(n||document).createTextNode(e);return Vu(r)},Vu=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},le={fromHtml:dg,fromTag:fg,fromText:mg,fromDom:Vu,fromPoint:(e,n,o)=>F.from(e.dom.elementFromPoint(n,o)).map(Vu)},pu=(e,n)=>{const o=[],r=u=>(o.push(u),n(u));let c=n(e);do c=c.bind(r);while(c.isSome());return o},xi=(e,n)=>{const o=e.dom;if(o.nodeType!==ba)return!1;{const r=o;if(r.matches!==void 0)return r.matches(n);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(n);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(n);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},kd=e=>e.nodeType!==ba&&e.nodeType!==Wr&&e.nodeType!==ua||e.childElementCount===0,gg=(e,n)=>{const o=n===void 0?document:n.dom;return kd(o)?[]:ve(o.querySelectorAll(e),le.fromDom)},eb=(e,n)=>{const o=n===void 0?document:n.dom;return kd(o)?F.none():F.from(o.querySelector(e)).map(le.fromDom)},xs=(e,n)=>e.dom===n.dom,pc=(e,n)=>{const o=e.dom,r=n.dom;return o===r?!1:o.contains(r)},Sl=e=>le.fromDom(e.dom.ownerDocument),Ti=e=>hp(e)?e:Sl(e),hu=e=>le.fromDom(Ti(e).dom.documentElement),$i=e=>le.fromDom(Ti(e).dom.defaultView),Qa=e=>F.from(e.dom.parentNode).map(le.fromDom),nl=e=>F.from(e.dom.parentElement).map(le.fromDom),pg=(e,n)=>{const o=ae(n)?n:Ne;let r=e.dom;const c=[];for(;r.parentNode!==null&&r.parentNode!==void 0;){const u=r.parentNode,m=le.fromDom(u);if(c.push(m),o(m)===!0)break;r=u}return c},yp=e=>{const n=o=>Ze(o,r=>!xs(e,r));return Qa(e).map(ya).map(n).getOr([])},Ei=e=>F.from(e.dom.previousSibling).map(le.fromDom),xl=e=>F.from(e.dom.nextSibling).map(le.fromDom),hg=e=>Un(pu(e,Ei)),Cc=e=>pu(e,xl),ya=e=>ve(e.dom.childNodes,le.fromDom),bu=(e,n)=>{const o=e.dom.childNodes;return F.from(o[n]).map(le.fromDom)},wd=e=>bu(e,0),Ii=e=>bu(e,e.dom.childNodes.length-1),Sc=e=>e.dom.childNodes.length,bg=e=>e.dom.hasChildNodes(),vp=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return le.fromDom(n)},mf=e=>lg(e)&&Ie(e.dom.host),am=ae(Element.prototype.attachShadow)&&ae(Node.prototype.getRootNode),_d=st(am),Tl=am?e=>le.fromDom(e.dom.getRootNode()):Ti,kp=e=>mf(e)?e:vp(Ti(e)),jy=e=>mf(e)?e:le.fromDom(Ti(e).dom.body),yg=e=>{const n=Tl(e);return mf(n)?F.some(n):F.none()},vg=e=>le.fromDom(e.dom.host),Uu=e=>{if(_d()&&Ie(e.target)){const n=le.fromDom(e.target);if(gc(n)&&gf(n)&&e.composed&&e.composedPath){const o=e.composedPath();if(o)return gn(o)}}return F.from(e.target)},gf=e=>Ie(e.dom.shadowRoot),Cd=e=>{const n=Ja(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const o=n.ownerDocument;return yg(le.fromDom(n)).fold(()=>o.body.contains(n),rn(Cd,vg))};var Ar=(e,n,o,r,c)=>e(o,r)?F.some(o):ae(c)&&c(o)?F.none():n(o,r,c);const Ir=(e,n,o)=>{let r=e.dom;const c=ae(o)?o:Ne;for(;r.parentNode;){r=r.parentNode;const u=le.fromDom(r);if(n(u))return F.some(u);if(c(u))break}return F.none()},Bc=(e,n,o)=>Ar((c,u)=>u(c),Ir,e,n,o),kg=(e,n)=>{const o=e.dom;return o.parentNode?wp(le.fromDom(o.parentNode),r=>!xs(e,r)&&n(r)):F.none()},wp=(e,n)=>{const o=c=>n(le.fromDom(c));return Ve(e.dom.childNodes,o).map(le.fromDom)},Ua=(e,n)=>{const o=r=>{for(let c=0;cIr(e,r=>xi(r,n),o),Pc=(e,n)=>eb(n,e),El=(e,n,o)=>Ar((c,u)=>xi(c,u),Jl,e,n,o),cm=e=>El(e,"[contenteditable]"),Ho=(e,n=!1)=>Cd(e)?e.dom.isContentEditable:cm(e).fold(st(n),o=>qc(o)==="true"),qc=e=>e.dom.contentEditable,yu=e=>e.style!==void 0&&ae(e.style.getPropertyValue),Sd=(e,n,o)=>{if(!W(o))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);yu(e)&&e.style.setProperty(n,o)},im=(e,n)=>{yu(e)&&e.style.removeProperty(n)},_p=(e,n,o)=>{const r=e.dom;Sd(r,n,o)},ec=(e,n)=>{const o=e.dom;Ot(n,(r,c)=>{Sd(o,c,r)})},aa=(e,n)=>{const o=e.dom,c=window.getComputedStyle(o).getPropertyValue(n);return c===""&&!Cd(e)?ai(o,n):c},ai=(e,n)=>yu(e)?e.style.getPropertyValue(n):"",va=(e,n)=>{const o=e.dom,r=ai(o,n);return F.from(r).filter(c=>c.length>0)},xd=e=>{const n={},o=e.dom;if(yu(o))for(let r=0;r{const o=e.dom;im(o,n),Gs(_l(e,"style").map(Ba),"")&&Qr(e,"style")},ea=e=>e.dom.offsetWidth,za=(e,n)=>{Qa(e).each(r=>{r.dom.insertBefore(n.dom,e.dom)})},ol=(e,n)=>{xl(e).fold(()=>{Qa(e).each(c=>{da(c,n)})},r=>{za(r,n)})},Wu=(e,n)=>{wd(e).fold(()=>{da(e,n)},r=>{e.dom.insertBefore(n.dom,r.dom)})},da=(e,n)=>{e.dom.appendChild(n.dom)},wg=(e,n)=>{za(e,n),da(n,e)},Cp=(e,n)=>{re(n,(o,r)=>{const c=r===0?e:n[r-1];ol(c,o)})},Zs=(e,n)=>{re(n,o=>{da(e,o)})},sl=e=>{e.dom.textContent="",re(ya(e),n=>{Ts(n)})},Ts=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Fc=e=>{const n=ya(e);n.length>0&&Cp(e,n),Ts(e)},vu=(e,n)=>{const r=(n||document).createElement("div");return r.innerHTML=e,ya(le.fromDom(r))},Ql=e=>ve(e,le.fromDom),Jo=e=>e.dom.innerHTML,Zu=(e,n)=>{const r=Sl(e).dom,c=le.fromDom(r.createDocumentFragment()),u=vu(n,r);Zs(c,u),sl(e),da(e,c)},_g=e=>{const n=le.fromTag("div"),o=le.fromDom(e.dom.cloneNode(!0));return da(n,o),Jo(n)},Cg=(e,n,o,r,c,u,m)=>({target:e,x:n,y:o,stop:r,prevent:c,kill:u,raw:m}),tb=e=>{const n=le.fromDom(Uu(e).getOr(e.target)),o=()=>e.stopPropagation(),r=()=>e.preventDefault(),c=E(r,o);return Cg(n,e.clientX,e.clientY,o,r,c,e)},Sp=(e,n)=>o=>{e(o)&&n(tb(o))},lm=(e,n,o,r,c)=>{const u=Sp(o,r);return e.dom.addEventListener(n,u,c),{unbind:et(pf,e,n,u,c)}},Sg=(e,n,o,r)=>lm(e,n,o,r,!1),pf=(e,n,o,r)=>{e.dom.removeEventListener(n,o,r)},C=(e,n)=>({left:e,top:n,translate:(r,c)=>C(e+r,n+c)}),z=C,H=e=>{const n=e.getBoundingClientRect();return z(n.left,n.top)},ce=(e,n)=>e!==void 0?e:n!==void 0?n:0,ye=e=>{const n=e.dom.ownerDocument,o=n.body,r=n.defaultView,c=n.documentElement;if(o===e.dom)return z(o.offsetLeft,o.offsetTop);const u=ce(r==null?void 0:r.pageYOffset,c.scrollTop),m=ce(r==null?void 0:r.pageXOffset,c.scrollLeft),b=ce(c.clientTop,o.clientTop),v=ce(c.clientLeft,o.clientLeft);return Rt(e).translate(m-v,u-b)},Rt=e=>{const n=e.dom,r=n.ownerDocument.body;return r===n?z(r.offsetLeft,r.offsetTop):Cd(e)?H(n):z(0,0)},Rn=e=>{const n=e!==void 0?e.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop;return z(o,r)},Do=(e,n,o)=>{const c=(o!==void 0?o.dom:document).defaultView;c&&c.scrollTo(e,n)},xo=(e,n)=>{qs().browser.isSafari()&&ae(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},lo=e=>{const n=e===void 0?window:e;return qs().browser.isFirefox()?F.none():F.from(n.visualViewport)},zr=(e,n,o,r)=>({x:e,y:n,width:o,height:r,right:e+o,bottom:n+r}),ja=e=>{const n=e===void 0?window:e,o=n.document,r=Rn(le.fromDom(o));return lo(n).fold(()=>{const c=n.document.documentElement,u=c.clientWidth,m=c.clientHeight;return zr(r.left,r.top,u,m)},c=>zr(Math.max(c.pageLeft,r.left),Math.max(c.pageTop,r.top),c.width,c.height))},ci=(e,n)=>Ze(ya(e),n),eu=(e,n)=>{let o=[];return re(ya(e),r=>{n(r)&&(o=o.concat([r])),o=o.concat(eu(r,n))}),o},tc=(e,n)=>gg(n,e),av=(e,n,o)=>Jl(e,n,o).isSome();class wr{constructor(n,o){this.node=n,this.rootNode=o,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,o,r,c){if(n){if(!c&&n[o])return n[o];if(n!==this.rootNode){let u=n[r];if(u)return u;for(let m=n.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(u=m[r],u)return u}}}findPreviousNode(n,o){if(n){const r=n.previousSibling;if(this.rootNode&&r===this.rootNode)return;if(r){if(!o){for(let u=r.lastChild;u;u=u.lastChild)if(!u.lastChild)return u}return r}const c=n.parentNode;if(c&&c!==this.rootNode)return c}}}const Kn=e=>n=>!!n&&n.nodeType===e,ku=e=>!!e&&!Object.getPrototypeOf(e),Cn=Kn(1),tu=e=>Cn(e)&&Mr(le.fromDom(e)),Wy=e=>Cn(e)&&e.namespaceURI==="http://www.w3.org/2000/svg",wu=e=>{const n=e.toLowerCase();return o=>Ie(o)&&o.nodeName.toLowerCase()===n},ka=e=>{const n=e.map(o=>o.toLowerCase());return o=>{if(o&&o.nodeName){const r=o.nodeName.toLowerCase();return ee(n,r)}return!1}},qu=(e,n)=>{const o=n.toLowerCase().split(" ");return r=>{if(Cn(r)){const c=r.ownerDocument.defaultView;if(c)for(let u=0;un=>Cn(n)&&n.hasAttribute(e),nc=(e,n)=>o=>Cn(o)&&o.getAttribute(e)===n,nu=e=>Cn(e)&&e.hasAttribute("data-mce-bogus"),xp=e=>Cn(e)&&e.getAttribute("data-mce-bogus")==="all",_u=e=>Cn(e)&&e.tagName==="TABLE",Zy=e=>n=>!!(tu(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),Tg=ka(["textarea","input"]),Mt=Kn(3),qy=Kn(4),Td=Kn(7),Gu=Kn(8),Eg=Kn(9),Lr=Kn(11),er=wu("br"),Gc=wu("img"),$c=Zy("true"),hs=Zy("false"),um=ka(["td","th"]),hc=ka(["td","th","caption"]),ca=ka(["video","audio","object","embed"]),Tp=wu("li"),_t=wu("details"),Ai=wu("summary"),Ag="\uFEFF",Ms=" ",ou=e=>e===Ag,Gy=e=>e.replace(/\uFEFF/g,""),nb=((e,n)=>{const o=u=>{if(!e(u))throw new Error("Can only get "+n+" value of a "+n+" node");return r(u).getOr("")},r=u=>e(u)?F.from(u.dom.nodeValue):F.none();return{get:o,getOption:r,set:(u,m)=>{if(!e(u))throw new Error("Can only set raw "+n+" value of a "+n+" node");u.dom.nodeValue=m}}})(Ja,"text"),Al=e=>nb.get(e),ob=e=>nb.getOption(e),Li=(e,n)=>nb.set(e,n),js=["td","th"],Cu=["thead","tbody","tfoot"],hf=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],bc=["li","dd","dt"],sb=["ul","ol","dl"],bf=["pre","script","textarea","style"],yf=e=>{let n;return o=>(n=n||Ln(e,at),Wn(n,rs(o)))},Kc=e=>rs(e)==="table",Ed=e=>gc(e)&&rs(e)==="br",Le=yf(hf),ii=yf(sb),rl=yf(bc),al=yf(Cu),li=yf(js),$a=yf(bf),Wa=e=>{const n=[];let o=e.dom;for(;o;)n.push(le.fromDom(o)),o=o.lastChild;return n},Ky=e=>{const n=tc(e,"br"),o=Ze(Wa(e).slice(-1),Ed);n.length===o.length&&re(o,Ts)},ui=()=>{const e=le.fromTag("br");return mr(e,"data-mce-bogus","1"),e},Su=e=>{sl(e),da(e,ui())},ao=(e,n)=>{Ii(e).each(o=>{Ei(o).each(r=>{n.isBlock(rs(e))&&Ed(o)&&n.isBlock(rs(r))&&Ts(o)})})},w=Ag,T=ou,L=Gy,K=e=>e.insertContent(w,{preserve_zwsp:!0}),_e=Cn,dt=Mt,Pt=e=>(dt(e)&&(e=e.parentNode),_e(e)&&e.hasAttribute("data-mce-caret")),Qt=e=>dt(e)&&T(e.data),Yn=e=>Pt(e)||Qt(e),Vo=e=>e.firstChild!==e.lastChild||!er(e.firstChild),ta=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(w),u=e.parentNode;if(n){const m=e.previousSibling;if(dt(m)){if(Yn(m))return m;if(cl(m))return m.splitText(m.data.length-1)}u==null||u.insertBefore(c,e)}else{const m=e.nextSibling;if(dt(m)){if(Yn(m))return m;if(di(m))return m.splitText(1),m}e.nextSibling?u==null||u.insertBefore(c,e.nextSibling):u==null||u.appendChild(c)}return c},Hs=e=>{const n=e.container();return Mt(n)?n.data.charAt(e.offset())===w||e.isAtStart()&&Qt(n.previousSibling):!1},Or=e=>{const n=e.container();return Mt(n)?n.data.charAt(e.offset()-1)===w||e.isAtEnd()&&Qt(n.nextSibling):!1},Oi=(e,n,o)=>{var r;const u=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement(e);u.setAttribute("data-mce-caret",o?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(ui().dom);const m=n.parentNode;return o?m==null||m.insertBefore(u,n):n.nextSibling?m==null||m.insertBefore(u,n.nextSibling):m==null||m.appendChild(u),u},di=e=>dt(e)&&e.data[0]===w,cl=e=>dt(e)&&e.data[e.data.length-1]===w,Ad=e=>{var n;const o=e.getElementsByTagName("br"),r=o[o.length-1];nu(r)&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))},ru=e=>e&&e.hasAttribute("data-mce-caret")?(Ad(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,Og=e=>Pt(e.startContainer),dm=$c,vf=hs,Dg=er,Ra=Mt,il=ka(["script","style","textarea"]),fm=ka(["img","input","textarea","hr","iframe","video","audio","object","embed"]),kf=ka(["table"]),Ps=Yn,ms=e=>Ps(e)?!1:Ra(e)?!il(e.parentNode):fm(e)||Dg(e)||kf(e)||Ic(e),oc=e=>Cn(e)&&e.getAttribute("unselectable")==="true",Ic=e=>!oc(e)&&vf(e),rb=(e,n)=>{for(let o=e.parentNode;o&&o!==n;o=o.parentNode){if(Ic(o))return!1;if(dm(o))return!0}return!0},Ku=e=>Ic(e)?!Q(cs(e.getElementsByTagName("*")),(n,o)=>n||dm(o),!1):!1,Lc=e=>fm(e)||Ku(e),wf=(e,n)=>ms(e)&&rb(e,n),xu=/^[ \t\r\n]*$/,mm=e=>xu.test(e),zg=e=>{for(const n of e)if(!ou(n))return!1;return!0},Ep=e=>" \f \v".indexOf(e)!==-1,_f=e=>e===` `||e==="\r",tT=(e,n)=>n=0?_f(e[n]):!1,Rg=(e,n=4,o=!0,r=!0)=>{const c=vs(" ",n),u=e.replace(/\t/g,c);return Q(u,(b,v)=>Ep(v)||v===Ms?b.pcIsSpace||b.str===""&&o||b.str.length===u.length-1&&r||tT(u,b.str.length+1)?{pcIsSpace:!1,str:b.str+Ms}:{pcIsSpace:!0,str:b.str+" "}:{pcIsSpace:_f(v),str:b.str+v},{pcIsSpace:!1,str:""}).str},cv=(e,n)=>{const o=le.fromDom(n),r=le.fromDom(e);return av(r,"pre,code",et(xs,o))},T_=(e,n)=>Mt(e)&&mm(e.data)&&!cv(e,n),wa=e=>Cn(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),Ap=(e,n)=>ms(e)&&!T_(e,n)||wa(e)||Yu(e),Yu=xg("data-mce-bookmark"),gm=xg("data-mce-bogus"),Ng=nc("data-mce-bogus","all"),Mg=e=>nl(le.fromDom(e)).exists(n=>!Ho(n)),ll=(e,n)=>{let o=0;if(Ap(e,e))return!1;{let r=e.firstChild;if(!r)return!0;const c=new wr(r,e);do{if(n){if(Ng(r)){r=c.next(!0);continue}if(gm(r)){r=c.next();continue}}if($c(r)&&Mg(r))return!1;if(er(r)){o++,r=c.next();continue}if(Ap(r,e))return!1;r=c.next()}while(r);return o<=1}},ia=(e,n=!0)=>ll(e.dom,n),Xu=e=>e.toLowerCase()==="svg",iv=e=>Xu(e.nodeName),ab=e=>(e==null?void 0:e.nodeName)==="svg"?"svg":"html",Yy=["svg"],pm=()=>{let e=[];const n=()=>e[e.length-1];return{track:u=>{iv(u)&&e.push(u);let m=n();return m&&!m.contains(u)&&(e.pop(),m=n()),ab(m)},current:()=>ab(n()),reset:()=>{e=[]}}},cb="data-mce-block",Xy=e=>Ze(ts(e),n=>!/[A-Z]/.test(n)),Od=e=>ve(Xy(e),n=>`${n}:`+ve(Yy,o=>`not(${o} ${n})`).join(":")).join(","),Ju=(e,n)=>Ie(n.querySelector(e))?(n.setAttribute(cb,"true"),n.getAttribute("data-mce-selected")==="inline-boundary"&&n.removeAttribute("data-mce-selected"),!0):(n.removeAttribute(cb),!1),Ol=(e,n)=>{const o=Od(e.getTransparentElements()),r=Od(e.getBlockElements());return Ze(n.querySelectorAll(o),c=>Ju(r,c))},hm=(e,n)=>{var o;const r=n?"lastChild":"firstChild";for(let c=e[r];c;c=c[r])if(ia(le.fromDom(c))){(o=c.parentNode)===null||o===void 0||o.removeChild(c);return}},bm=(e,n)=>{const o=document.createRange(),r=e.parentNode;if(r){o.setStartBefore(e),o.setEndBefore(n);const c=o.extractContents();hm(c,!0),o.setStartAfter(n),o.setEndAfter(e);const u=o.extractContents();hm(u,!1),ia(le.fromDom(c))||r.insertBefore(c,e),ia(le.fromDom(n))||r.insertBefore(n,e),ia(le.fromDom(u))||r.insertBefore(u,e),r.removeChild(e)}},E_=(e,n,o)=>{const r=e.getBlockElements(),c=le.fromDom(n),u=b=>rs(b)in r,m=b=>xs(b,c);re(Ql(o),b=>{Ir(b,u,m).each(v=>{const x=ci(b,R=>u(R)&&!e.isValidChild(rs(v),rs(R)));if(x.length>0){const R=nl(v);re(x,N=>{Ir(N,u,m).each($=>{bm($.dom,N.dom)})}),R.each(N=>Ol(e,N.dom))}})})},Jy=(e,n,o)=>{re([...o,...ks(e,n)?[n]:[]],r=>re(tc(le.fromDom(r),r.nodeName.toLowerCase()),c=>{oo(e,c.dom)&&Fc(c)}))},ib=(e,n)=>{const o=Ol(e,n);E_(e,n,o),Jy(e,n,o)},Qy=(e,n)=>{if(ub(e,n)){const o=Od(e.getBlockElements());Ju(o,n)}},A_=(e,n,o)=>{const r=u=>xs(u,le.fromDom(n)),c=pg(le.fromDom(o),r);Jn(c,c.length-2).filter(gc).fold(()=>ib(e,n),u=>ib(e,u.dom))},e1=e=>e.hasAttribute(cb),lb=(e,n)=>Wn(e.getTransparentElements(),n),ub=(e,n)=>Cn(n)&&lb(e,n.nodeName),ks=(e,n)=>ub(e,n)&&e1(n),oo=(e,n)=>ub(e,n)&&!e1(n),Cf=(e,n)=>n.type===1&&lb(e,n.name)&&W(n.attr(cb)),t1=qs().browser,db=e=>Ve(e,gc),nT=e=>t1.isFirefox()&&rs(e)==="table"?db(ya(e)).filter(n=>rs(n)==="caption").bind(n=>db(Cc(n)).map(o=>{const r=o.dom.offsetTop,c=n.dom.offsetTop,u=n.dom.offsetHeight;return r<=c?-u:0})).getOr(0):0,lv=(e,n)=>e.children&&ee(e.children,n),_r=(e,n,o)=>{let r=0,c=0;const u=e.ownerDocument;if(o=o||e,n){if(o===e&&n.getBoundingClientRect&&aa(le.fromDom(e),"position")==="static"){const b=n.getBoundingClientRect();return r=b.left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,c=b.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop,{x:r,y:c}}let m=n;for(;m&&m!==o&&m.nodeType&&!lv(m,o);){const b=m;r+=b.offsetLeft||0,c+=b.offsetTop||0,m=b.offsetParent}for(m=n.parentNode;m&&m!==o&&m.nodeType&&!lv(m,o);)r-=m.scrollLeft||0,c-=m.scrollTop||0,m=m.parentNode;c+=nT(le.fromDom(n))}return{x:r,y:c}},uv=(e,n={})=>{let o=0;const r={},c=le.fromDom(e),u=Ti(c),m=xe=>{n.referrerPolicy=xe},b=xe=>{n.contentCssCors=xe},v=xe=>{da(kp(c),xe)},x=xe=>{const Oe=kp(c);Pc(Oe,"#"+xe).each(Ts)},R=xe=>Ss(r,xe).getOrThunk(()=>({id:"mce-u"+o++,passed:[],failed:[],count:0})),N=xe=>new Promise((Oe,Ae)=>{let Ue;const St=Et._addCacheSuffix(xe),It=R(St);r[St]=It,It.count++;const ln=(Sn,eo)=>{re(Sn,fn),It.status=eo,It.passed=[],It.failed=[],Ue&&(Ue.onload=null,Ue.onerror=null,Ue=null)},ut=()=>ln(It.passed,2),tt=()=>ln(It.failed,3);if(Oe&&It.passed.push(Oe),Ae&&It.failed.push(Ae),It.status===1)return;if(It.status===2){ut();return}if(It.status===3){tt();return}It.status=1;const Ct=le.fromTag("link",u.dom);Pi(Ct,{rel:"stylesheet",type:"text/css",id:It.id}),n.contentCssCors&&mr(Ct,"crossOrigin","anonymous"),n.referrerPolicy&&mr(Ct,"referrerpolicy",n.referrerPolicy),Ue=Ct.dom,Ue.onload=ut,Ue.onerror=tt,v(Ct),mr(Ct,"href",St)}),$=(xe,Oe)=>{const Ae=R(xe);r[xe]=Ae,Ae.count++;const Ue=le.fromTag("style",u.dom);Pi(Ue,{rel:"stylesheet",type:"text/css",id:Ae.id}),Ue.dom.innerHTML=Oe,v(Ue)},J=xe=>Promise.allSettled(ve(xe,Ae=>N(Ae).then(st(Ae)))).then(Ae=>{const Ue=Fe(Ae,St=>St.status==="fulfilled");return Ue.fail.length>0?Promise.reject(ve(Ue.fail,St=>St.reason)):ve(Ue.pass,St=>St.value)}),ne=xe=>{const Oe=Et._addCacheSuffix(xe);Ss(r,Oe).each(Ae=>{--Ae.count===0&&(delete r[Oe],x(Ae.id))})};return{load:N,loadRawCss:$,loadAll:J,unload:ne,unloadRawCss:xe=>{Ss(r,xe).each(Oe=>{--Oe.count===0&&(delete r[xe],x(Oe.id))})},unloadAll:xe=>{re(xe,Oe=>{ne(Oe)})},_setReferrerPolicy:m,_setContentCssCors:b}},fv=(()=>{const e=new WeakMap;return{forElement:(o,r)=>{const u=Tl(o).dom;return F.from(e.get(u)).getOrThunk(()=>{const m=uv(u,r);return e.set(u,m),m})}}})(),vt=e=>e.nodeName.toLowerCase()==="span",n1=(e,n,o)=>Ie(e)&&(Ap(e,n)||o.isInline(e.nodeName.toLowerCase())),oT=(e,n,o)=>{const r=new wr(e,n).prev(!1),c=new wr(e,n).next(!1),u=pn(r)||n1(r,n,o),m=pn(c)||n1(c,n,o);return u&&m},fb=e=>vt(e)&&e.getAttribute("data-mce-type")==="bookmark",sT=(e,n,o)=>Mt(e)&&e.data.length>0&&oT(e,n,o),Op=e=>Cn(e)?e.childNodes.length>0:!1,mv=e=>Lr(e)||Eg(e),Sf=(e,n,o,r)=>{var c;const u=r||n;if(Cn(n)&&fb(n))return n;const m=n.childNodes;for(let b=m.length-1;b>=0;b--)Sf(e,m[b],o,u);if(Cn(n)){const b=n.childNodes;b.length===1&&fb(b[0])&&((c=n.parentNode)===null||c===void 0||c.insertBefore(b[0],n))}return!mv(n)&&!Ap(n,u)&&!Op(n)&&!sT(n,u,o)&&e.remove(n),n},rT=Et.makeMap,Dd=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gr=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zd=/[<>&\"\']/g,gv=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Tu={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},xf={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},pv={"<":"<",">":">","&":"&",""":'"',"'":"'"},Bg=e=>{const n=le.fromTag("div").dom;return n.innerHTML=e,n.textContent||n.innerText||e},O_=(e,n)=>{const o={};if(e){const r=e.split(",");n=n||10;for(let c=0;ce.replace(n?Dd:gr,o=>xf[o]||o),aT=e=>(""+e).replace(zd,n=>xf[n]||n),bv=(e,n)=>e.replace(n?Dd:gr,o=>o.length>1?"&#"+((o.charCodeAt(0)-55296)*1024+(o.charCodeAt(1)-56320)+65536)+";":xf[o]||"&#"+o.charCodeAt(0)+";"),Rd=(e,n,o)=>{const r=o||o1;return e.replace(n?Dd:gr,c=>xf[c]||r[c]||c)},ym={encodeRaw:hv,encodeAllRaw:aT,encodeNumeric:bv,encodeNamed:Rd,getEncodeFunc:(e,n)=>{const o=O_(n)||o1,r=(m,b)=>m.replace(b?Dd:gr,v=>xf[v]!==void 0?xf[v]:o[v]!==void 0?o[v]:v.length>1?"&#"+((v.charCodeAt(0)-55296)*1024+(v.charCodeAt(1)-56320)+65536)+";":"&#"+v.charCodeAt(0)+";"),c=(m,b)=>Rd(m,b,o),u=rT(e.replace(/\+/g,","));return u.named&&u.numeric?r:u.named?n?c:Rd:u.numeric?bv:hv},decode:e=>e.replace(gv,(n,o)=>o?(o.charAt(0).toLowerCase()==="x"?o=parseInt(o.substr(1),16):o=parseInt(o,10),o>65535?(o-=65536,String.fromCharCode(55296+(o>>10),56320+(o&1023))):Tu[o]||String.fromCharCode(o)):pv[n]||o1[n]||Bg(n))},Hc=(e,n)=>(e=Et.trim(e),e?e.split(n||" "):[]),_n=e=>new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$"),cT=e=>{const n=/^(~)?(.+)$/;return Dn(Hc(e,","),o=>{const r=n.exec(o);if(r){const c=r[1]==="~",u=c?"span":"div",m=r[2];return[{inline:c,cloneName:u,name:m}]}else return[]})},vv=e=>{let n,o,r;if(n="id accesskey class dir lang style tabindex title role",o="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",e!=="html4"){const u="a ins del canvas map";n+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",o+=" article aside details dialog figure main header footer hgroup section nav "+u,r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"}e!=="html5-strict"&&(n+=" xml:lang",r=[r,"acronym applet basefont big font strike tt"].join(" "),o=[o,"center dir isindex noframes"].join(" "));const c=[o,r].join(" ");return{globalAttributes:n,blockContent:o,phrasingContent:r,flowContent:c}},iT=e=>{const{globalAttributes:n,phrasingContent:o,flowContent:r}=vv(e),c={},u=(v,x,R)=>{c[v]={attributes:Ln(x,st({})),attributesOrder:x,children:Ln(R,st({}))}},m=(v,x="",R="")=>{const N=Hc(R),$=Hc(v);let J=$.length;const ne=Hc([n,x].join(" "));for(;J--;)u($[J],ne.slice(),N)},b=(v,x)=>{const R=Hc(v),N=Hc(x);let $=R.length;for(;$--;){const J=c[R[$]];for(let ne=0,G=N.length;ne{m(R,"",o)}),re(Hc("center dir isindex noframes"),R=>{m(R,"",r)})),m("html","manifest","head body"),m("head","","base command link meta noscript script style title"),m("title hr noscript br"),m("base","href target"),m("link","href rel media hreflang type sizes hreflang"),m("meta","name http-equiv content charset"),m("style","media type scoped"),m("script","src async defer type charset"),m("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",r),m("dd div","",r),m("address dt caption","",e==="html4"?o:r),m("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",o),m("blockquote","cite",r),m("ol","reversed start type","li"),m("ul","","li"),m("li","value",r),m("dl","","dt dd"),m("a","href target rel media hreflang type",e==="html4"?o:r),m("q","cite",o),m("ins del","cite datetime",r),m("img","src sizes srcset alt usemap ismap width height"),m("iframe","src name width height",r),m("embed","src type width height"),m("object","data type typemustmatch name usemap form width height",[r,"param"].join(" ")),m("param","name value"),m("map","name",[r,"area"].join(" ")),m("area","alt coords shape href target rel media hreflang type"),m("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),m("colgroup","span","col"),m("col","span"),m("tbody thead tfoot","","tr"),m("tr","","td th"),m("td","colspan rowspan headers",r),m("th","colspan rowspan headers scope abbr",r),m("form","accept-charset action autocomplete enctype method name novalidate target",r),m("fieldset","disabled form name",[r,"legend"].join(" ")),m("label","form for",o),m("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),m("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?r:o),m("select","disabled form multiple name required size","option optgroup"),m("optgroup","disabled label","option"),m("option","disabled label selected value"),m("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),m("menu","type label",[r,"li"].join(" ")),m("noscript","",r),e!=="html4"&&(m("wbr"),m("ruby","",[o,"rt rp"].join(" ")),m("figcaption","",r),m("mark rt rp bdi","",o),m("summary","",[o,"h1 h2 h3 h4 h5 h6"].join(" ")),m("canvas","width height",r),m("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[r,"track source"].join(" ")),m("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[r,"track source"].join(" ")),m("picture","","img source"),m("source","src srcset type media sizes"),m("track","kind src srclang label default"),m("datalist","",[o,"option"].join(" ")),m("article section nav aside main header footer","",r),m("hgroup","","h1 h2 h3 h4 h5 h6"),m("figure","",[r,"figcaption"].join(" ")),m("time","datetime",o),m("dialog","open",r),m("command","type label icon disabled checked radiogroup command"),m("output","for form name",o),m("progress","value max",o),m("meter","value min max low high optimum",o),m("details","open",[r,"summary"].join(" ")),m("keygen","autofocus challenge disabled form keytype name"),u("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),e!=="html5-strict"&&(b("script","language xml:space"),b("style","xml:space"),b("object","declare classid code codebase codetype archive standby align border hspace vspace"),b("embed","align name hspace vspace"),b("param","valuetype type"),b("a","charset name rev shape coords"),b("br","clear"),b("applet","codebase archive code object alt name width height align hspace vspace"),b("img","name longdesc align border hspace vspace"),b("iframe","longdesc frameborder marginwidth marginheight scrolling align"),b("font basefont","size color face"),b("input","usemap align"),b("select"),b("textarea"),b("h1 h2 h3 h4 h5 h6 div p legend caption","align"),b("ul","type compact"),b("li","type"),b("ol dl menu dir","compact"),b("pre","width xml:space"),b("hr","align noshade size width"),b("isindex","prompt"),b("table","summary width frame rules cellspacing cellpadding align bgcolor"),b("col","width align char charoff valign"),b("colgroup","width align char charoff valign"),b("thead","align char charoff valign"),b("tr","align char charoff valign bgcolor"),b("th","axis align char charoff valign nowrap bgcolor width height"),b("form","accept"),b("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),b("tfoot","align char charoff valign"),b("tbody","align char charoff valign"),b("area","nohref"),b("body","background bgcolor text link vlink alink")),e!=="html4"&&(b("input button select textarea","autofocus"),b("input textarea","placeholder"),b("a","download"),b("link script img","crossorigin"),b("img","loading"),b("iframe","sandbox seamless allow allowfullscreen loading")),e!=="html4"&&re([c.video,c.audio],v=>{delete v.children.audio,delete v.children.video}),re(Hc("a form meter progress dfn"),v=>{c[v]&&delete c[v].children[v]}),delete c.caption.children.table,delete c.script,c},D_=e=>e==="-"?"remove":"add",Pg=e=>{const n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return Dn(Hc(e,","),o=>{const r=n.exec(o);if(r){const c=r[1],u=c?D_(c):"replace",m=r[2],b=Hc(r[3],"|");return[{operation:u,name:m,validChildren:b}]}else return[]})},Dp=(e,n)=>{const o=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,r=/[*?+]/,{attributes:c,attributesOrder:u}=n;return re(Hc(e,"|"),m=>{const b=o.exec(m);if(b){const v={},x=b[1],R=b[2].replace(/[\\:]:/g,":"),N=b[3],$=b[4];if(x==="!"&&(n.attributesRequired=n.attributesRequired||[],n.attributesRequired.push(R),v.required=!0),x==="-"){delete c[R],u.splice(Et.inArray(u,R),1);return}if(N&&(N==="="?(n.attributesDefault=n.attributesDefault||[],n.attributesDefault.push({name:R,value:$}),v.defaultValue=$):N==="~"?(n.attributesForced=n.attributesForced||[],n.attributesForced.push({name:R,value:$}),v.forcedValue=$):N==="<"&&(v.validValues=Et.makeMap($,"?"))),r.test(R)){const J=v;n.attributePatterns=n.attributePatterns||[],J.pattern=_n(R),n.attributePatterns.push(J)}else c[R]||u.push(R),c[R]=v}})},mb=(e,n)=>{Ot(e.attributes,(o,r)=>{n.attributes[r]=o}),n.attributesOrder.push(...e.attributesOrder)},zp=(e,n)=>{const o=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return Dn(Hc(n,","),r=>{const c=o.exec(r);if(c){const u=c[1],m=c[2],b=c[3],v=c[4],x=c[5],R={attributes:{},attributesOrder:[]};if(e.each(N=>mb(N,R)),u==="#"?R.paddEmpty=!0:u==="-"&&(R.removeEmpty=!0),v==="!"&&(R.removeEmptyAttrs=!0),x&&Dp(x,R),b&&(R.outputName=m),m==="@")if(e.isNone())e=F.some(R);else return[];return[b?{name:m,element:R,aliasName:b}:{name:m,element:R}]}else return[]})},s1={},Tf=Et.makeMap,Qu=Et.each,gb=Et.extend,au=Et.explode,r1=(e,n={})=>{const o=Tf(e," ",Tf(e.toUpperCase()," "));return gb(o,n)},z_=e=>r1("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),Rp=(e,n)=>{if(e){const o={};return W(e)&&(e={"*":e}),Qu(e,(r,c)=>{o[c]=o[c.toUpperCase()]=n==="map"?Tf(r,/[, ]/):au(r,/[, ]/)}),o}else return},Ef=(e={})=>{var n;const o={},r={};let c=[];const u={},m={},b=(Fo,Fs,Tr)=>{const Ur=e[Fo];if(Ur)return Tf(Ur,/[, ]/,Tf(Ur.toUpperCase(),/[, ]/));{let sa=s1[Fo];return sa||(sa=r1(Fs,Tr),s1[Fo]=sa),sa}},v=(n=e.schema)!==null&&n!==void 0?n:"html5",x=iT(v);e.verify_html===!1&&(e.valid_elements="*[*]");const R=Rp(e.valid_styles),N=Rp(e.invalid_styles,"map"),$=Rp(e.valid_classes,"map"),J=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),ne=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),G=b("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),oe=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),xe="td th iframe video audio object script code",Oe=b("non_empty_elements",xe+" pre svg",G),Ae=b("move_caret_before_on_enter_elements",xe+" table",G),Ue="h1 h2 h3 h4 h5 h6",St=b("text_block_elements",Ue+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),It=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",St),ln=b("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),ut=b("transparent_elements","a ins del canvas map"),tt=b("wrap_block_elements","pre "+Ue);Qu("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),Fo=>{m[Fo]=new RegExp("]*>","gi")});const Ct=Fo=>{const Fs=F.from(o["@"]),Tr=/[*?+]/;re(zp(Fs,Fo??""),({name:Ur,element:sa,aliasName:Zl})=>{if(Zl&&(o[Zl]=sa),Tr.test(Ur)){const nm=sa;nm.pattern=_n(Ur),c.push(nm)}else o[Ur]=sa})},Sn=Fo=>{c=[],re(ts(o),Fs=>{delete o[Fs]}),Ct(Fo)},eo=Fo=>{delete s1.text_block_elements,delete s1.block_elements,re(cT(Fo??""),({inline:Fs,name:Tr,cloneName:Ur})=>{if(r[Tr]=r[Ur],u[Tr]=Ur,Oe[Tr.toUpperCase()]={},Oe[Tr]={},Fs||(It[Tr.toUpperCase()]={},It[Tr]={}),!o[Tr]){let sa=o[Ur];sa=gb({},sa),delete sa.removeEmptyAttrs,delete sa.removeEmpty,o[Tr]=sa}Ot(r,(sa,Zl)=>{sa[Ur]&&(r[Zl]=sa=gb({},r[Zl]),sa[Tr]=sa[Ur])})})},es=Fo=>{re(Pg(Fo??""),({operation:Fs,name:Tr,validChildren:Ur})=>{const sa=Fs==="replace"?{"#comment":{}}:r[Tr];re(Ur,Zl=>{Fs==="remove"?delete sa[Zl]:sa[Zl]={}}),r[Tr]=sa})},Yo=Fo=>{const Fs=o[Fo];if(Fs)return Fs;let Tr=c.length;for(;Tr--;){const Ur=c[Tr];if(Ur.pattern.test(Fo))return Ur}};e.valid_elements?(Sn(e.valid_elements),Qu(x,(Fo,Fs)=>{r[Fs]=Fo.children})):(Qu(x,(Fo,Fs)=>{o[Fs]={attributes:Fo.attributes,attributesOrder:Fo.attributesOrder},r[Fs]=Fo.children}),Qu(Hc("strong/b em/i"),Fo=>{const Fs=Hc(Fo,"/");o[Fs[1]].outputName=Fs[0]}),Qu(ln,(Fo,Fs)=>{o[Fs]&&(e.padd_empty_block_inline_children&&(o[Fs].paddInEmptyBlock=!0),o[Fs].removeEmpty=!0)}),Qu(Hc("ol ul blockquote a table tbody"),Fo=>{o[Fo]&&(o[Fo].removeEmpty=!0)}),Qu(Hc("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),Fo=>{o[Fo]&&(o[Fo].paddEmpty=!0)}),Qu(Hc("span"),Fo=>{o[Fo].removeEmptyAttrs=!0})),delete o.svg,eo(e.custom_elements),es(e.valid_children),Ct(e.extended_valid_elements),es("+ol[ul|ol],+ul[ul|ol]"),Qu({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(Fo,Fs)=>{o[Fs]&&(o[Fs].parentsRequired=Hc(Fo))}),e.invalid_elements&&Qu(au(e.invalid_elements),Fo=>{o[Fo]&&delete o[Fo]}),Yo("span")||Ct("span[!data-mce-type|*]");const ar=st(R),xr=st(N),Ta=st($),oi=st(oe),nr=st(It),Zt=st(St),jn=st(ln),Xo=st(Object.seal(G)),gs=st(ne),Nn=st(Oe),zo=st(Ae),Vt=st(J),Ro=st(ut),Os=st(tt),hr=st(Object.seal(m)),cr=(Fo,Fs)=>{const Tr=r[Fo.toLowerCase()];return!!(Tr&&Tr[Fs.toLowerCase()])},vc=(Fo,Fs)=>{const Tr=Yo(Fo);if(Tr)if(Fs){if(Tr.attributes[Fs])return!0;const Ur=Tr.attributePatterns;if(Ur){let sa=Ur.length;for(;sa--;)if(Ur[sa].pattern.test(Fs))return!0}}else return!0;return!1},sf=Fo=>Wn(nr(),Fo),ng=Fo=>!Qn(Fo,"#")&&vc(Fo)&&!sf(Fo),vl=Fo=>Wn(Os(),Fo)||ng(Fo),hd=st(u);return{type:v,children:r,elements:o,getValidStyles:ar,getValidClasses:Ta,getBlockElements:nr,getInvalidStyles:xr,getVoidElements:Xo,getTextBlockElements:Zt,getTextInlineElements:jn,getBoolAttrs:oi,getElementRule:Yo,getSelfClosingElements:gs,getNonEmptyElements:Nn,getMoveCaretBeforeOnEnterElements:zo,getWhitespaceElements:Vt,getTransparentElements:Ro,getSpecialElements:hr,isValidChild:cr,isValid:vc,isBlock:sf,isInline:ng,isWrapper:vl,getCustomElements:hd,addValidElements:Ct,setValidElements:Sn,addCustomElements:eo,addValidChildren:es}},lT=e=>({value:Np(e)}),Np=e=>Tn(e,"#").toUpperCase(),Fg=e=>{const n=e.toString(16);return(n.length===1?"0"+n:n).toUpperCase()},Eu=e=>{const n=Fg(e.red)+Fg(e.green)+Fg(e.blue);return lT(n)},ul=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,uT=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,R_=(e,n,o,r)=>({red:e,green:n,blue:o,alpha:r}),N_=(e,n,o,r)=>{const c=parseInt(e,10),u=parseInt(n,10),m=parseInt(o,10),b=parseFloat(r);return R_(c,u,m,b)},kv=e=>{if(e==="transparent")return F.some(R_(0,0,0,0));const n=ul.exec(e);if(n!==null)return F.some(N_(n[1],n[2],n[3],"1"));const o=uT.exec(e);return o!==null?F.some(N_(o[1],o[2],o[3],o[4])):F.none()},dl=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,Mp=e=>kv(e).map(Eu).map(n=>"#"+n.value).getOr(e),a1=(e={},n)=>{const o=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,r=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,u={};let m,b;const v=Ag;n&&(m=n.getValidStyles(),b=n.getInvalidStyles());const x=(`\\" \\' \\; \\: ; : `+v).split(" ");for(let N=0;N{const $={};let J=!1;const ne=e.url_converter,G=e.url_converter_scope||R,oe=(ut,tt,Ct)=>{const Sn=$[ut+"-top"+tt];if(!Sn)return;const eo=$[ut+"-right"+tt];if(!eo)return;const es=$[ut+"-bottom"+tt];if(!es)return;const Yo=$[ut+"-left"+tt];if(!Yo)return;const ar=[Sn,eo,es,Yo];let xr=ar.length-1;for(;xr--&&ar[xr]===ar[xr+1];);xr>-1&&Ct||($[ut+tt]=xr===-1?ar[0]:ar.join(" "),delete $[ut+"-top"+tt],delete $[ut+"-right"+tt],delete $[ut+"-bottom"+tt],delete $[ut+"-left"+tt])},xe=ut=>{const tt=$[ut];if(!tt)return;const Ct=tt.indexOf(",")>-1?[tt]:tt.split(" ");let Sn=Ct.length;for(;Sn--;)if(Ct[Sn]!==Ct[0])return!1;return $[ut]=Ct[0],!0},Oe=(ut,tt,Ct,Sn)=>{xe(tt)&&xe(Ct)&&xe(Sn)&&($[ut]=$[tt]+" "+$[Ct]+" "+$[Sn],delete $[tt],delete $[Ct],delete $[Sn])},Ae=ut=>(J=!0,u[ut]),Ue=(ut,tt)=>(J&&(ut=ut.replace(/\uFEFF[0-9]/g,Ct=>u[Ct])),tt||(ut=ut.replace(/\\([\'\";:])/g,"$1")),ut),St=ut=>String.fromCharCode(parseInt(ut.slice(1),16)),It=ut=>ut.replace(/\\[0-9a-f]+/gi,St),ln=(ut,tt,Ct,Sn,eo,es)=>{if(eo=eo||es,eo)return eo=Ue(eo),"'"+eo.replace(/\'/g,"\\'")+"'";if(tt=Ue(tt||Ct||Sn||""),!e.allow_script_urls){const Yo=tt.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Yo)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(Yo))return""}return ne&&(tt=ne.call(G,tt,"style")),"url('"+tt.replace(/\'/g,"\\'")+"')"};if(N){N=N.replace(/[\u0000-\u001F]/g,""),N=N.replace(/\\[\"\';:\uFEFF]/g,Ae).replace(/\"[^\"]+\"|\'[^\']+\'/g,tt=>tt.replace(/[;:]/g,Ae));let ut;for(;ut=r.exec(N);){r.lastIndex=ut.index+ut[0].length;let tt=ut[1].replace(c,"").toLowerCase(),Ct=ut[2].replace(c,"");if(tt&&Ct){if(tt=It(tt),Ct=It(Ct),tt.indexOf(v)!==-1||tt.indexOf('"')!==-1||!e.allow_script_urls&&(tt==="behavior"||/expression\s*\(|\/\*|\*\//.test(Ct)))continue;tt==="font-weight"&&Ct==="700"?Ct="bold":(tt==="color"||tt==="background-color")&&(Ct=Ct.toLowerCase()),W(e.force_hex_color)&&e.force_hex_color!=="off"&&kv(Ct).each(Sn=>{(e.force_hex_color==="always"||Sn.alpha===1)&&(Ct=Mp(dl(Sn)))}),Ct=Ct.replace(o,ln),$[tt]=J?Ue(Ct,!0):Ct}}oe("border","",!0),oe("border","-width"),oe("border","-color"),oe("border","-style"),oe("padding",""),oe("margin",""),Oe("border","border-width","border-style","border-color"),$.border==="medium none"&&delete $.border,$["border-image"]==="none"&&delete $["border-image"]}return $},serialize:(N,$)=>{let J="";const ne=(oe,xe)=>{const Oe=xe[oe];if(Oe)for(let Ae=0,Ue=Oe.length;Ae0?" ":"")+St+": "+It+";")}},G=(oe,xe)=>{if(!b||!xe)return!0;let Oe=b["*"];return Oe&&Oe[oe]?!1:(Oe=b[xe],!(Oe&&Oe[oe]))};return $&&m?(ne("*",m),ne($,m)):Ot(N,(oe,xe)=>{oe&&G(xe,$)&&(J+=(J.length>0?" ":"")+xe+": "+oe+";")}),J}};return R},c1={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},dT=e=>e instanceof Event||ae(e.initEvent),M_=e=>e.isDefaultPrevented===at||e.isDefaultPrevented===Ne,wv=e=>on(e.preventDefault)||dT(e),Bp=(e,n)=>{const o=n??{};for(const r in e)Wn(c1,r)||(o[r]=e[r]);return Ie(e.composedPath)&&(o.composedPath=()=>e.composedPath()),Ie(e.getModifierState)&&(o.getModifierState=r=>e.getModifierState(r)),Ie(e.getTargetRanges)&&(o.getTargetRanges=()=>e.getTargetRanges()),o},Pp=(e,n,o,r)=>{var c;const u=Bp(n,r);return u.type=e,on(u.target)&&(u.target=(c=u.srcElement)!==null&&c!==void 0?c:o),wv(n)&&(u.preventDefault=()=>{u.defaultPrevented=!0,u.isDefaultPrevented=at,ae(n.preventDefault)&&n.preventDefault()},u.stopPropagation=()=>{u.cancelBubble=!0,u.isPropagationStopped=at,ae(n.stopPropagation)&&n.stopPropagation()},u.stopImmediatePropagation=()=>{u.isImmediatePropagationStopped=at,u.stopPropagation()},M_(u)||(u.isDefaultPrevented=u.defaultPrevented===!0?at:Ne,u.isPropagationStopped=u.cancelBubble===!0?at:Ne,u.isImmediatePropagationStopped=Ne)),u},i1="mce-data-",fT=/^(?:mouse|contextmenu)|click/,l1=(e,n,o,r)=>{e.addEventListener(n,o,r||!1)},Fp=(e,n,o,r)=>{e.removeEventListener(n,o,r||!1)},mT=e=>Ie(e)&&fT.test(e.type),pb=(e,n)=>{const o=Pp(e.type,e,document,n);if(mT(e)&&pn(e.pageX)&&!pn(e.clientX)){const r=o.target.ownerDocument||document,c=r.documentElement,u=r.body,m=o;m.pageX=e.clientX+(c&&c.scrollLeft||u&&u.scrollLeft||0)-(c&&c.clientLeft||u&&u.clientLeft||0),m.pageY=e.clientY+(c&&c.scrollTop||u&&u.scrollTop||0)-(c&&c.clientTop||u&&u.clientTop||0)}return o},_v=(e,n,o)=>{const r=e.document,c={type:"ready"};if(o.domLoaded){n(c);return}const u=()=>r.readyState==="complete"||r.readyState==="interactive"&&r.body,m=()=>{Fp(e,"DOMContentLoaded",m),Fp(e,"load",m),o.domLoaded||(o.domLoaded=!0,n(c)),e=null};u()?m():l1(e,"DOMContentLoaded",m),o.domLoaded||l1(e,"load",m)};class fl{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=i1+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(n,o,r,c){const u=this;let m;const b=window,v=$=>{u.executeHandlers(pb($||b.event),x)};if(!n||Mt(n)||Gu(n))return r;let x;n[u.expando]?x=n[u.expando]:(x=u.count++,n[u.expando]=x,u.events[x]={}),c=c||n;const R=o.split(" ");let N=R.length;for(;N--;){let $=R[N],J=v,ne=!1,G=!1;if($==="DOMContentLoaded"&&($="ready"),u.domLoaded&&$==="ready"&&n.readyState==="complete"){r.call(c,pb({type:$}));continue}!u.hasFocusIn&&($==="focusin"||$==="focusout")&&(ne=!0,G=$==="focusin"?"focus":"blur",J=oe=>{const xe=pb(oe||b.event);xe.type=xe.type==="focus"?"focusin":"focusout",u.executeHandlers(xe,x)}),m=u.events[x][$],m?$==="ready"&&u.domLoaded?r(pb({type:$})):m.push({func:r,scope:c}):(u.events[x][$]=m=[{func:r,scope:c}],m.fakeName=G,m.capture=ne,m.nativeHandler=J,$==="ready"?_v(n,J,u):l1(n,G||$,J,ne))}return n=m=null,r}unbind(n,o,r){if(!n||Mt(n)||Gu(n))return this;const c=n[this.expando];if(c){let u=this.events[c];if(o){const m=o.split(" ");let b=m.length;for(;b--;){const v=m[b],x=u[v];if(x){if(r){let R=x.length;for(;R--;)if(x[R].func===r){const N=x.nativeHandler,$=x.fakeName,J=x.capture,ne=x.slice(0,R).concat(x.slice(R+1));ne.nativeHandler=N,ne.fakeName=$,ne.capture=J,u[v]=ne}}(!r||x.length===0)&&(delete u[v],Fp(n,x.fakeName||v,x.nativeHandler,x.capture))}}}else Ot(u,(m,b)=>{Fp(n,m.fakeName||b,m.nativeHandler,m.capture)}),u={};for(const m in u)if(Wn(u,m))return this;delete this.events[c];try{delete n[this.expando]}catch{n[this.expando]=null}}return this}fire(n,o,r){return this.dispatch(n,o,r)}dispatch(n,o,r){if(!n||Mt(n)||Gu(n))return this;const c=pb({type:o,target:n},r);do{const u=n[this.expando];u&&this.executeHandlers(c,u),n=n.parentNode||n.ownerDocument||n.defaultView||n.parentWindow}while(n&&!c.isPropagationStopped());return this}clean(n){if(!n||Mt(n)||Gu(n))return this;if(n[this.expando]&&this.unbind(n),n.getElementsByTagName||(n=n.document),n&&n.getElementsByTagName){this.unbind(n);const o=n.getElementsByTagName("*");let r=o.length;for(;r--;)n=o[r],n[this.expando]&&this.unbind(n)}return this}destroy(){this.events={}}cancel(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}executeHandlers(n,o){const r=this.events[o],c=r&&r[n.type];if(c)for(let u=0,m=c.length;u{on(o)||o===""?Qr(e,n):mr(e,n,o)},vm=e=>e.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),Nd=(e,n)=>{let o=0;if(e)for(let r=e.nodeType,c=e.previousSibling;c;c=c.previousSibling){const u=c.nodeType;n&&Mt(c)&&(u===r||!c.data.length)||(o++,r=u)}return o},Cv=(e,n)=>{const o=_c(n,"style"),r=e.serialize(e.parse(o),rs(n));f1(n,d1,r)},$p=(e,n)=>po(e)?Wn(BO,n)?e+"":e+"px":e,m1=(e,n,o)=>{const r=vm(n);on(o)||o===""?ju(e,r):_p(e,r,$p(o,r))},P_=(e,n,o)=>{const r=n.keep_values,c={set:(m,b,v)=>{const x=le.fromDom(m);ae(n.url_converter)&&Ie(b)&&(b=n.url_converter.call(n.url_converter_scope||o(),String(b),v,m));const R="data-mce-"+v;f1(x,R,b),f1(x,v,b)},get:(m,b)=>{const v=le.fromDom(m);return _c(v,"data-mce-"+b)||_c(v,b)}},u={style:{set:(m,b)=>{const v=le.fromDom(m);r&&f1(v,d1,b),Qr(v,"style"),W(b)&&ec(v,e.parse(b))},get:m=>{const b=le.fromDom(m),v=_c(b,d1)||_c(b,"style");return e.serialize(e.parse(v),rs(b))}}};return r&&(u.href=u.src=c),u},Dr=(e,n={})=>{const o={},r=window,c={};let u=0;const m=!0,b=!0,v=fv.forElement(le.fromDom(e),{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),x=[],R=n.schema?n.schema:Ef({}),N=a1({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope,force_hex_color:n.force_hex_color},n.schema),$=n.ownEvents?new fl:fl.Event,J=R.getBlockElements(),ne=We=>W(We)?Wn(J,We):Cn(We)&&(Wn(J,We.nodeName)||ks(R,We)),G=We=>We&&e&&W(We)?e.getElementById(We):We,oe=We=>{const Je=G(We);return Ie(Je)?le.fromDom(Je):null},xe=(We,Je,Ut="")=>{let Ft;const Xn=oe(We);if(Ie(Xn)&&gc(Xn)){const ps=sv[Je];ps&&ps.get?Ft=ps.get(Xn.dom,Je):Ft=_c(Xn,Je)}return Ie(Ft)?Ft:Ut},Oe=We=>{const Je=G(We);return on(Je)?[]:Je.attributes},Ae=(We,Je,Ut)=>{jn(We,Ft=>{if(Cn(Ft)){const Xn=le.fromDom(Ft),ps=Ut===""?null:Ut,Gr=_c(Xn,Je),kl=sv[Je];kl&&kl.set?kl.set(Xn.dom,ps,Je):f1(Xn,Je,ps),Gr!==ps&&n.onSetAttrib&&n.onSetAttrib({attrElm:Xn.dom,attrName:Je,attrValue:ps})}})},Ue=(We,Je)=>We.cloneNode(Je),St=()=>n.root_element||e.body,It=We=>{const Je=ja(We);return{x:Je.x,y:Je.y,w:Je.width,h:Je.height}},ln=(We,Je)=>_r(e.body,G(We),Je),ut=(We,Je,Ut)=>{jn(We,Ft=>{const Xn=le.fromDom(Ft);m1(Xn,Je,Ut),n.update_styles&&Cv(N,Xn)})},tt=(We,Je)=>{jn(We,Ut=>{const Ft=le.fromDom(Ut);Ot(Je,(Xn,ps)=>{m1(Ft,ps,Xn)}),n.update_styles&&Cv(N,Ft)})},Ct=(We,Je,Ut)=>{const Ft=G(We);if(!(on(Ft)||!tu(Ft)&&!Wy(Ft)))return Ut?aa(le.fromDom(Ft),vm(Je)):(Je=Je.replace(/-(\D)/g,(Xn,ps)=>ps.toUpperCase()),Je==="float"&&(Je="cssFloat"),Ft.style?Ft.style[Je]:void 0)},Sn=We=>{const Je=G(We);if(!Je)return{w:0,h:0};let Ut=Ct(Je,"width"),Ft=Ct(Je,"height");return(!Ut||Ut.indexOf("px")===-1)&&(Ut="0"),(!Ft||Ft.indexOf("px")===-1)&&(Ft="0"),{w:parseInt(Ut,10)||Je.offsetWidth||Je.clientWidth,h:parseInt(Ft,10)||Je.offsetHeight||Je.clientHeight}},eo=We=>{const Je=G(We),Ut=ln(Je),Ft=Sn(Je);return{x:Ut.x,y:Ut.y,w:Ft.w,h:Ft.h}},es=(We,Je)=>{if(!We)return!1;const Ut=mt(We)?We:[We];return be(Ut,Ft=>xi(le.fromDom(Ft),Je))},Yo=(We,Je,Ut,Ft)=>{const Xn=[];let ps=G(We);Ft=Ft===void 0;const Gr=Ut||(St().nodeName!=="BODY"?St().parentNode:null);if(W(Je))if(Je==="*")Je=Cn;else{const kl=Je;Je=Oc=>es(Oc,kl)}for(;ps&&!(ps===Gr||on(ps.nodeType)||Eg(ps)||Lr(ps));){if(!Je||Je(ps))if(Ft)Xn.push(ps);else return[ps];ps=ps.parentNode}return Ft?Xn:null},ar=(We,Je,Ut)=>{const Ft=Yo(We,Je,Ut,!1);return Ft&&Ft.length>0?Ft[0]:null},xr=(We,Je,Ut)=>{let Ft=Je;if(We){W(Je)&&(Ft=Xn=>es(Xn,Je));for(let Xn=We[Ut];Xn;Xn=Xn[Ut])if(ae(Ft)&&Ft(Xn))return Xn}return null},Ta=(We,Je)=>xr(We,Je,"nextSibling"),oi=(We,Je)=>xr(We,Je,"previousSibling"),nr=We=>ae(We.querySelectorAll),Zt=(We,Je)=>{var Ut,Ft;const Xn=(Ft=(Ut=G(Je))!==null&&Ut!==void 0?Ut:n.root_element)!==null&&Ft!==void 0?Ft:e;return nr(Xn)?cs(Xn.querySelectorAll(We)):[]},jn=function(We,Je,Ut){const Ft=Ut??this;if(mt(We)){const Xn=[];return u1(We,(ps,Gr)=>{const kl=G(ps);kl&&Xn.push(Je.call(Ft,kl,Gr))}),Xn}else{const Xn=G(We);return Xn?Je.call(Ft,Xn):!1}},Xo=(We,Je)=>{jn(We,Ut=>{Ot(Je,(Ft,Xn)=>{Ae(Ut,Xn,Ft)})})},gs=(We,Je)=>{jn(We,Ut=>{const Ft=le.fromDom(Ut);Zu(Ft,Je)})},Nn=(We,Je,Ut,Ft,Xn)=>jn(We,ps=>{const Gr=W(Je)?e.createElement(Je):Je;return Ie(Ut)&&Xo(Gr,Ut),Ft&&(!W(Ft)&&Ft.nodeType?Gr.appendChild(Ft):W(Ft)&&gs(Gr,Ft)),Xn?Gr:ps.appendChild(Gr)}),zo=(We,Je,Ut)=>Nn(e.createElement(We),We,Je,Ut,!0),Vt=ym.decode,Ro=ym.encodeAllRaw,Os=(We,Je,Ut="")=>{let Ft="<"+We;for(const Xn in Je)or(Je,Xn)&&(Ft+=" "+Xn+'="'+Ro(Je[Xn])+'"');return is(Ut)&&Wn(R.getVoidElements(),We)?Ft+" />":Ft+">"+Ut+""},hr=We=>{const Je=e.createElement("div"),Ut=e.createDocumentFragment();Ut.appendChild(Je),We&&(Je.innerHTML=We);let Ft;for(;Ft=Je.firstChild;)Ut.appendChild(Ft);return Ut.removeChild(Je),Ut},cr=(We,Je)=>jn(We,Ut=>{const Ft=le.fromDom(Ut);return Je&&re(ya(Ft),Xn=>{Ja(Xn)&&Xn.dom.length===0?Ts(Xn):za(Ft,Xn)}),Ts(Ft),Ft.dom}),vc=We=>jn(We,Je=>{const Ut=Je.attributes;for(let Ft=Ut.length-1;Ft>=0;Ft--)Je.removeAttributeNode(Ut.item(Ft))}),sf=We=>N.parse(We),ng=(We,Je)=>N.serialize(We,Je),vl=We=>{if(rg!==Dr.DOM&&e===document){if(o[We])return;o[We]=!0}let Je=e.getElementById("mceDefaultStyles");if(!Je){Je=e.createElement("style"),Je.id="mceDefaultStyles",Je.type="text/css";const Ut=e.head;Ut.firstChild?Ut.insertBefore(Je,Ut.firstChild):Ut.appendChild(Je)}Je.styleSheet?Je.styleSheet.cssText+=We:Je.appendChild(e.createTextNode(We))},hd=We=>{We||(We=""),re(We.split(","),Je=>{c[Je]=!0,v.load(Je).catch(Re)})},Fo=(We,Je,Ut)=>{jn(We,Ft=>{if(Cn(Ft)){const Xn=le.fromDom(Ft),ps=Je.split(" ");re(ps,Gr=>{Ie(Ut)?(Ut?gu:Cl)(Xn,Gr):ug(Xn,Gr)})}})},Fs=(We,Je)=>{Fo(We,Je,!0)},Tr=(We,Je)=>{Fo(We,Je,!1)},Ur=(We,Je)=>{const Ut=oe(We),Ft=Je.split(" ");return Ie(Ut)&&zn(Ft,Xn=>Xl(Ut,Xn))},sa=We=>{jn(We,Je=>ju(le.fromDom(Je),"display"))},Zl=We=>{jn(We,Je=>_p(le.fromDom(Je),"display","none"))},nm=We=>{const Je=oe(We);return Ie(Je)&&Gs(va(Je,"display"),"none")},Yh=We=>(We||"mce_")+u++,b_=We=>{const Je=oe(We);return Ie(Je)?Cn(Je.dom)?Je.dom.outerHTML:_g(Je):""},$y=(We,Je)=>{jn(We,Ut=>{Cn(Ut)&&(Ut.outerHTML=Je)})},tv=(We,Je)=>{const Ut=G(Je);return jn(We,Ft=>{const Xn=Ut==null?void 0:Ut.parentNode,ps=Ut==null?void 0:Ut.nextSibling;return Xn&&(ps?Xn.insertBefore(Ft,ps):Xn.appendChild(Ft)),Ft})},nv=(We,Je,Ut)=>jn(Je,Ft=>{var Xn;const ps=mt(Je)?We.cloneNode(!0):We;return Ut&&u1(B_(Ft.childNodes),Gr=>{ps.appendChild(Gr)}),(Xn=Ft.parentNode)===null||Xn===void 0||Xn.replaceChild(ps,Ft),Ft}),y_=(We,Je)=>{if(We.nodeName!==Je.toUpperCase()){const Ut=zo(Je);return u1(Oe(We),Ft=>{Ae(Ut,Ft.nodeName,xe(We,Ft.nodeName))}),nv(Ut,We,!0),Ut}else return We},Iy=(We,Je)=>{let Ut=We;for(;Ut;){let Ft=Je;for(;Ft&&Ut!==Ft;)Ft=Ft.parentNode;if(Ut===Ft)break;Ut=Ut.parentNode}return!Ut&&We.ownerDocument?We.ownerDocument.documentElement:Ut},Ly=We=>{if(Cn(We)){const Je=We.nodeName.toLowerCase()==="a"&&!xe(We,"href")&&xe(We,"id");if(xe(We,"name")||xe(We,"data-mce-bookmark")||Je)return!0}return!1},rf=(We,Je,Ut)=>{let Ft=0;if(Ly(We))return!1;const Xn=We.firstChild;if(Xn){const ps=new wr(Xn,We),Gr=R?R.getWhitespaceElements():{},kl=Je||(R?R.getNonEmptyElements():null);let Oc=Xn;do{if(Cn(Oc)){const Jh=Oc.getAttribute("data-mce-bogus");if(Jh){Oc=ps.next(Jh==="all");continue}const bd=Oc.nodeName.toLowerCase();if(kl&&kl[bd]){if(bd==="br"){Ft++,Oc=ps.next();continue}return!1}if(Ly(Oc))return!1}if(Gu(Oc)||Mt(Oc)&&!mm(Oc.data)&&(!(Ut!=null&&Ut.includeZwsp)||!zg(Oc.data))||Mt(Oc)&&Oc.parentNode&&Gr[Oc.parentNode.nodeName]&&mm(Oc.data))return!1;Oc=ps.next()}while(Oc)}return Ft<=1},og=()=>e.createRange(),v_=(We,Je,Ut)=>{let Ft=og(),Xn,ps;if(We&&Je&&We.parentNode&&Je.parentNode){const Gr=We.parentNode;return Ft.setStart(Gr,Nd(We)),Ft.setEnd(Je.parentNode,Nd(Je)),Xn=Ft.extractContents(),Ft=og(),Ft.setStart(Je.parentNode,Nd(Je)+1),Ft.setEnd(Gr,Nd(We)+1),ps=Ft.extractContents(),Gr.insertBefore(Sf(rg,Xn,R),We),Ut?Gr.insertBefore(Ut,We):Gr.insertBefore(Je,We),Gr.insertBefore(Sf(rg,ps,R),We),cr(We),Ut||Je}else return},ov=(We,Je,Ut,Ft)=>{if(mt(We)){let Xn=We.length;const ps=[];for(;Xn--;)ps[Xn]=ov(We[Xn],Je,Ut,Ft);return ps}else return n.collect&&(We===e||We===r)&&x.push([We,Je,Ut,Ft]),$.bind(We,Je,Ut,Ft||rg)},Zx=(We,Je,Ut)=>{if(mt(We)){let Ft=We.length;const Xn=[];for(;Ft--;)Xn[Ft]=Zx(We[Ft],Je,Ut);return Xn}else{if(x.length>0&&(We===e||We===r)){let Ft=x.length;for(;Ft--;){const[Xn,ps,Gr]=x[Ft];We===Xn&&(!Je||Je===ps)&&(!Ut||Ut===Gr)&&$.unbind(Xn,ps,Gr)}}return $.unbind(We,Je,Ut)}},sg=(We,Je,Ut)=>$.dispatch(We,Je,Ut),qx=(We,Je,Ut)=>$.dispatch(We,Je,Ut),k_=We=>{if(We&&tu(We)){const Je=We.getAttribute("data-mce-contenteditable");return Je&&Je!=="inherit"?Je:We.contentEditable!=="inherit"?We.contentEditable:null}else return null},rg={doc:e,settings:n,win:r,files:c,stdMode:m,boxModel:b,styleSheetLoader:v,boundEvents:x,styles:N,schema:R,events:$,isBlock:ne,root:null,clone:Ue,getRoot:St,getViewPort:It,getRect:eo,getSize:Sn,getParent:ar,getParents:Yo,get:G,getNext:Ta,getPrev:oi,select:Zt,is:es,add:Nn,create:zo,createHTML:Os,createFragment:hr,remove:cr,setStyle:ut,getStyle:Ct,setStyles:tt,removeAllAttribs:vc,setAttrib:Ae,setAttribs:Xo,getAttrib:xe,getPos:ln,parseStyle:sf,serializeStyle:ng,addStyle:vl,loadCSS:hd,addClass:Fs,removeClass:Tr,hasClass:Ur,toggleClass:Fo,show:sa,hide:Zl,isHidden:nm,uniqueId:Yh,setHTML:gs,getOuterHTML:b_,setOuterHTML:$y,decode:Vt,encode:Ro,insertAfter:tv,replace:nv,rename:y_,findCommonAncestor:Iy,run:jn,getAttribs:Oe,isEmpty:rf,createRng:og,nodeIndex:Nd,split:v_,bind:ov,unbind:Zx,fire:qx,dispatch:sg,getContentEditable:k_,getContentEditableParent:We=>{const Je=St();let Ut=null;for(let Ft=We;Ft&&Ft!==Je&&(Ut=k_(Ft),Ut===null);Ft=Ft.parentNode);return Ut},isEditable:We=>{if(Ie(We)){const Je=Cn(We)?We:We.parentElement;return Ie(Je)&&tu(Je)&&Ho(le.fromDom(Je))}else return!1},destroy:()=>{if(x.length>0){let We=x.length;for(;We--;){const[Je,Ut,Ft]=x[We];$.unbind(Je,Ut,Ft)}}Ot(c,(We,Je)=>{v.unload(Je),delete c[Je]})},isChildOf:(We,Je)=>We===Je||Je.contains(We),dumpRng:We=>"startContainer: "+We.startContainer.nodeName+", startOffset: "+We.startOffset+", endContainer: "+We.endContainer.nodeName+", endOffset: "+We.endOffset},sv=P_(N,n,st(rg));return rg};Dr.DOM=Dr(document),Dr.nodeIndex=Nd;const gT=Dr.DOM,_a=0,F_=1,Zr=2,Ip=3;class Za{constructor(n={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=n}_setReferrerPolicy(n){this.settings.referrerPolicy=n}loadScript(n){return new Promise((o,r)=>{const c=gT;let u;const m=()=>{c.remove(x),u&&(u.onerror=u.onload=u=null)},b=()=>{m(),o()},v=()=>{m(),r("Failed to load script: "+n)},x=c.uniqueId();u=document.createElement("script"),u.id=x,u.type="text/javascript",u.src=Et._addCacheSuffix(n),this.settings.referrerPolicy&&c.setAttrib(u,"referrerpolicy",this.settings.referrerPolicy),u.onload=b,u.onerror=v,(document.getElementsByTagName("head")[0]||document.body).appendChild(u)})}isDone(n){return this.states[n]===Zr}markDone(n){this.states[n]=Zr}add(n){const o=this;return o.queue.push(n),o.states[n]===void 0&&(o.states[n]=_a),new Promise((c,u)=>{o.scriptLoadedCallbacks[n]||(o.scriptLoadedCallbacks[n]=[]),o.scriptLoadedCallbacks[n].push({resolve:c,reject:u})})}load(n){return this.add(n)}remove(n){delete this.states[n],delete this.scriptLoadedCallbacks[n]}loadQueue(){const n=this.queue;return this.queue=[],this.loadScripts(n)}loadScripts(n){const o=this,r=(v,x)=>{Ss(o.scriptLoadedCallbacks,x).each(R=>{re(R,N=>N[v](x))}),delete o.scriptLoadedCallbacks[x]},c=v=>{const x=Ze(v,R=>R.status==="rejected");return x.length>0?Promise.reject(Dn(x,({reason:R})=>mt(R)?R:[R])):Promise.resolve()},u=v=>Promise.allSettled(ve(v,x=>o.states[x]===Zr?(r("resolve",x),Promise.resolve()):o.states[x]===Ip?(r("reject",x),Promise.reject(x)):(o.states[x]=F_,o.loadScript(x).then(()=>{o.states[x]=Zr,r("resolve",x);const R=o.queue;return R.length>0?(o.queue=[],u(R).then(c)):Promise.resolve()},()=>(o.states[x]=Ip,r("reject",x),Promise.reject(x)))))),m=v=>(o.loading=!0,u(v).then(x=>{o.loading=!1;const R=o.queueLoadedCallbacks.shift();return F.from(R).each(fn),c(x)})),b=Ye(n);return o.loading?new Promise((v,x)=>{o.queueLoadedCallbacks.push(()=>{m(b).then(v,x)})}):m(b)}}Za.ScriptLoader=new Za;const na=e=>{let n=e;return{get:()=>n,set:c=>{n=c}}},Dl=(e,n)=>{const o=e.indexOf(n);return o!==-1&&e.indexOf(n,o+1)>o},Sv=e=>Be(e)&&Wn(e,"raw"),Vc=e=>mt(e)&&e.length>1,hb={},Lp=na("en"),Md=()=>Ss(hb,Lp.get()),Au={getData:()=>Zo(hb,e=>({...e})),setCode:e=>{e&&Lp.set(e)},getCode:()=>Lp.get(),add:(e,n)=>{let o=hb[e];o||(hb[e]=o={});const r=ve(ts(n),c=>c.toLowerCase());Ot(n,(c,u)=>{const m=u.toLowerCase();m!==u&&Dl(r,m)?(Wn(n,m)||(o[m]=c),o[u]=c):o[m]=c})},translate:e=>{const n=Md().getOr({}),o=m=>ae(m)?Object.prototype.toString.call(m):r(m)?"":""+m,r=m=>m===""||m===null||m===void 0,c=m=>{const b=o(m);return Wn(n,b)?o(n[b]):Ss(n,b.toLowerCase()).map(o).getOr(b)},u=m=>m.replace(/{context:\w+}$/,"");if(r(e))return"";if(Sv(e))return o(e.raw);if(Vc(e)){const m=e.slice(1),b=c(e[0]).replace(/\{([0-9]+)\}/g,(v,x)=>Wn(m,x)?o(m[x]):v);return u(b)}return u(c(e))},isRtl:()=>Md().bind(e=>Ss(e,"_dir")).exists(e=>e==="rtl"),hasCode:e=>Wn(hb,e)},fi=()=>{const e=[],n={},o={},r=[],c=(G,oe)=>{const xe=Ze(r,Oe=>Oe.name===G&&Oe.state===oe);re(xe,Oe=>Oe.resolve())},u=G=>Wn(n,G),m=G=>Wn(o,G),b=G=>{if(o[G])return o[G].instance},v=(G,oe)=>{const xe=Au.getCode(),Oe=","+(oe||"")+",";!xe||oe&&Oe.indexOf(","+xe+",")===-1||Za.ScriptLoader.add(n[G]+"/langs/"+xe+".js")},x=(G,oe)=>{fi.languageLoad!==!1&&(u(G)?v(G,oe):ne(G,"loaded").then(()=>v(G,oe)))},R=(G,oe)=>(e.push(oe),o[G]={instance:oe},c(G,"added"),oe),N=G=>{delete n[G],delete o[G]},$=(G,oe)=>W(oe)?W(G)?{prefix:"",resource:oe,suffix:""}:{prefix:G.prefix,resource:oe,suffix:G.suffix}:oe,J=(G,oe)=>{if(n[G])return Promise.resolve();let xe=W(oe)?oe:oe.prefix+oe.resource+oe.suffix;xe.indexOf("/")!==0&&xe.indexOf("://")===-1&&(xe=fi.baseURL+"/"+xe),n[G]=xe.substring(0,xe.lastIndexOf("/"));const Oe=()=>(c(G,"loaded"),Promise.resolve());return o[G]?Oe():Za.ScriptLoader.add(xe).then(Oe)},ne=(G,oe="added")=>oe==="added"&&m(G)||oe==="loaded"&&u(G)?Promise.resolve():new Promise(xe=>{r.push({name:G,state:oe,resolve:xe})});return{items:e,urls:n,lookup:o,get:b,requireLangPack:x,add:R,remove:N,createUrl:$,load:J,waitFor:ne}};fi.languageLoad=!0,fi.baseURL="",fi.PluginManager=fi(),fi.ThemeManager=fi(),fi.ModelManager=fi();const hT=e=>{const n=na(F.none()),o=()=>n.get().each(e);return{clear:()=>{o(),n.set(F.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:b=>{o(),n.set(F.some(b))}}},bT=e=>{const n=na(F.none()),o=()=>n.get().each(b=>clearInterval(b));return{clear:()=>{o(),n.set(F.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:b=>{o(),n.set(F.some(setInterval(b,e)))}}},wm=()=>{const e=hT(Re);return{...e,on:o=>e.get().each(o)}},bb=(e,n)=>{let o=null;return{cancel:()=>{U(o)||(clearTimeout(o),o=null)},throttle:(...u)=>{U(o)&&(o=setTimeout(()=>{o=null,e.apply(null,u)},n))}}},g1=(e,n)=>{let o=null;const r=()=>{U(o)||(clearTimeout(o),o=null)};return{cancel:r,throttle:(...u)=>{r(),o=setTimeout(()=>{o=null,e.apply(null,u)},n)}}},p1=st("mce-annotation"),Bd=st("data-mce-annotation"),Vp=st("data-mce-annotation-uid"),Up=st("data-mce-annotation-active"),jp=st("data-mce-annotation-classes"),$g=st("data-mce-annotation-attrs"),I_=e=>n=>xs(n,e),fa=(e,n)=>{const o=e.selection.getRng(),r=le.fromDom(o.startContainer),c=le.fromDom(e.getBody()),u=n.fold(()=>"."+p1(),v=>`[${Bd()}="${v}"]`),m=bu(r,o.startOffset).getOr(r);return El(m,u,I_(c)).bind(v=>_l(v,`${Vp()}`).bind(x=>_l(v,`${Bd()}`).map(R=>{const N=H_(e,x);return{uid:x,name:R,elements:N}})))},L_=e=>gc(e)&&Xl(e,p1()),Wp=(e,n)=>Da(e,"data-mce-bogus")||av(e,'[data-mce-bogus="all"]',I_(n)),H_=(e,n)=>{const o=le.fromDom(e.getBody()),r=tc(o,`[${Vp()}="${n}"]`);return Ze(r,c=>!Wp(c,o))},h1=(e,n)=>{const o=le.fromDom(e.getBody()),r=tc(o,`[${Bd()}="${n}"]`),c={};return re(r,u=>{if(!Wp(u,o)){const m=_c(u,Vp()),b=Ss(c,m).getOr([]);c[m]=b.concat([u])}}),c},Yc=(e,n)=>{const o=na({}),r=()=>({listeners:[],previous:wm()}),c=(N,$)=>{u(N,J=>($(J),J))},u=(N,$)=>{const J=o.get(),ne=Ss(J,N).getOrThunk(r),G=$(ne);J[N]=G,o.set(J)},m=(N,$,J)=>{c(N,ne=>{re(ne.listeners,G=>G(!0,N,{uid:$,nodes:ve(J,oe=>oe.dom)}))})},b=N=>{c(N,$=>{re($.listeners,J=>J(!1,N))})},v=(N,$)=>{re(H_(e,N),J=>{$?mr(J,Up(),"true"):Qr(J,Up())})},x=g1(()=>{const N=Gn(n.getNames());re(N,$=>{u($,J=>{const ne=J.previous.get();return fa(e,F.some($)).fold(()=>{ne.each(G=>{b($),J.previous.clear(),v(G,!1)})},({uid:G,name:oe,elements:xe})=>{Gs(ne,G)||(ne.each(Oe=>v(Oe,!1)),m(oe,G,xe),J.previous.set(G),v(G,!0))}),{previous:J.previous,listeners:J.listeners}})})},30);return e.on("remove",()=>{x.cancel()}),e.on("NodeChange",()=>{x.throttle()}),{addListener:(N,$)=>{u(N,J=>({previous:J.previous,listeners:J.listeners.concat([$])}))}}},zl=(e,n)=>{const o=Bd(),r=u=>F.from(u.attr(o)).bind(n.lookup),c=u=>{var m,b;u.attr(Vp(),null),u.attr(Bd(),null),u.attr(Up(),null);const v=F.from(u.attr($g())).map($=>$.split(",")).getOr([]),x=F.from(u.attr(jp())).map($=>$.split(",")).getOr([]);re(v,$=>u.attr($,null));const R=(b=(m=u.attr("class"))===null||m===void 0?void 0:m.split(" "))!==null&&b!==void 0?b:[],N=Lo(R,[p1()].concat(x));u.attr("class",N.length>0?N.join(" "):null),u.attr(jp(),null),u.attr($g(),null)};e.serializer.addTempAttr(Up()),e.serializer.addAttributeFilter(o,u=>{for(const m of u)r(m).each(b=>{b.persistent===!1&&(m.name==="span"?m.unwrap():c(m))})})},V_=()=>{const e={};return{register:(c,u)=>{e[c]={name:c,settings:u}},lookup:c=>Ss(e,c).map(u=>u.settings),getNames:()=>ts(e)}};let b1=0;const Ig=e=>{const o=new Date().getTime(),r=Math.floor(Math.random()*1e9);return b1++,e+"_"+r+b1+String(o)},yT=(e,n)=>{re(n,o=>{gu(e,o)})},U_=(e,n)=>{re(n,o=>{Cl(e,o)})},xv=(e,n)=>le.fromDom(e.dom.cloneNode(n)),ml=e=>xv(e,!1),y1=e=>xv(e,!0),Ca=(e,n)=>{const o=le.fromTag(n),r=Lu(e);return Pi(o,r),o},ed=(e,n)=>{const o=Ca(e,n);ol(e,o);const r=ya(e);return Zs(o,r),Ts(e),o},Zp=(e,n,o=Ne)=>{const r=new wr(e,n),c=u=>{let m;do m=r[u]();while(m&&!Mt(m)&&!o(m));return F.from(m).filter(Mt)};return{current:()=>F.from(r.current()).filter(Mt),next:()=>c("next"),prev:()=>c("prev"),prev2:()=>c("prev2")}},_m=(e,n)=>{const o=n||(m=>e.isBlock(m)||er(m)||hs(m)),r=(m,b,v,x)=>{if(Mt(m)){const R=x(m,b,m.data);if(R!==-1)return F.some({container:m,offset:R})}return v().bind(R=>r(R.container,R.offset,v,x))};return{backwards:(m,b,v,x)=>{const R=Zp(m,x??e.getRoot(),o);return r(m,b,()=>R.prev().map(N=>({container:N,offset:N.length})),v).getOrNull()},forwards:(m,b,v,x)=>{const R=Zp(m,x??e.getRoot(),o);return r(m,b,()=>R.next().map(N=>({container:N,offset:0})),v).getOrNull()}}},Lg=Math.round,Hg=e=>e?{left:Lg(e.left),top:Lg(e.top),bottom:Lg(e.bottom),right:Lg(e.right),width:Lg(e.width),height:Lg(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Of=(e,n)=>(e=Hg(e),n||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),j_=(e,n)=>e.left===n.left&&e.top===n.top&&e.bottom===n.bottom&&e.right===n.right,Vg=(e,n,o)=>e>=0&&e<=Math.min(n.height,o.height)/2,Cm=(e,n)=>{const o=Math.min(n.height/2,e.height/2);return e.bottom-on.bottom?!1:Vg(n.top-e.bottom,e,n)},Ug=(e,n)=>e.top>n.bottom?!0:e.bottomn>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom,vT=e=>Q(e,(n,o)=>n.fold(()=>F.some(o),r=>{const c=Math.min(o.left,r.left),u=Math.min(o.top,r.top),m=Math.max(o.right,r.right),b=Math.max(o.bottom,r.bottom);return F.some({top:u,right:m,bottom:b,left:c,width:m-c,height:b-u})}),F.none()),Tv=(e,n,o)=>{const r=Math.max(Math.min(n,e.left+e.width),e.left),c=Math.max(Math.min(o,e.top+e.height),e.top);return Math.sqrt((n-r)*(n-r)+(o-c)*(o-c))},kT=(e,n)=>Math.max(0,Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)),v1=(e,n,o)=>Math.min(Math.max(e,n),o),Ev=e=>{const n=e.startContainer,o=e.startOffset;return n===e.endContainer&&n.hasChildNodes()&&e.endOffset===o+1?n.childNodes[o]:null},gl=(e,n)=>{if(Cn(e)&&e.hasChildNodes()){const o=e.childNodes,r=v1(n,0,o.length-1);return o[r]}else return e},Z_=(e,n)=>{if(!(n<0&&Cn(e)&&e.hasChildNodes()))return gl(e,n)},qp=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),q_=e=>W(e)&&e.charCodeAt(0)>=768&&qp.test(e),wT=(...e)=>n=>{for(let o=0;on=>{for(let o=0;oe?e.createRange():Dr.DOM.createRng(),xm=e=>W(e)&&/[\r\n\t ]/.test(e),Dv=e=>!!e.setStart&&!!e.setEnd,w1=e=>{const n=e.startContainer,o=e.startOffset;if(xm(e.toString())&&Av(n.parentNode)&&Mt(n)){const r=n.data;if(xm(r[o-1])||xm(r[o+1]))return!0}return!1},kb=e=>{const n=e.ownerDocument,o=Pd(n),r=n.createTextNode(Ms),c=e.parentNode;c.insertBefore(r,e),o.setStart(r,0),o.setEnd(r,1);const u=Hg(o.getBoundingClientRect());return c.removeChild(r),u},zv=e=>{const n=e.startContainer,o=e.endContainer,r=e.startOffset,c=e.endOffset;if(n===o&&Mt(o)&&r===0&&c===1){const u=e.cloneRange();return u.setEndAfter(o),Fd(u)}else return null},_1=e=>e.left===0&&e.right===0&&e.top===0&&e.bottom===0,Fd=e=>{var n;let o;const r=e.getClientRects();return r.length>0?o=Hg(r[0]):o=Hg(e.getBoundingClientRect()),!Dv(e)&&vb(e)&&_1(o)?kb(e):_1(o)&&Dv(e)&&(n=zv(e))!==null&&n!==void 0?n:o},Df=(e,n)=>{const o=Of(e,n);return o.width=1,o.right=o.left+1,o},_T=e=>{const n=[],o=m=>{m.height!==0&&(n.length>0&&j_(m,n[n.length-1])||n.push(m))},r=(m,b)=>{const v=Pd(m.ownerDocument);if(b0&&(v.setStart(m,b-1),v.setEnd(m,b),w1(v)||o(Df(Fd(v),!1))),b{const r=()=>(tr(e),n===0),c=()=>tr(e)?n>=e.data.length:n>=e.childNodes.length,u=()=>{const R=Pd(e.ownerDocument);return R.setStart(e,n),R.setEnd(e,n),R},m=()=>(o||(o=_T(Xe(e,n))),o),b=()=>m().length>0,v=R=>R&&e===R.container()&&n===R.offset(),x=R=>sc(e,R?n-1:n);return{container:st(e),offset:st(n),toRange:u,getClientRects:m,isVisible:b,isAtStart:r,isAtEnd:c,isEqual:v,getNode:x}};Xe.fromRangeStart=e=>Xe(e.startContainer,e.startOffset),Xe.fromRangeEnd=e=>Xe(e.endContainer,e.endOffset),Xe.after=e=>Xe(e.parentNode,Ov(e)+1),Xe.before=e=>Xe(e.parentNode,Ov(e)),Xe.isAbove=(e,n)=>Yr(gn(n.getClientRects()),ho(e.getClientRects()),Cm).getOr(!1),Xe.isBelow=(e,n)=>Yr(ho(n.getClientRects()),gn(e.getClientRects()),Ug).getOr(!1),Xe.isAtStart=e=>e?e.isAtStart():!1,Xe.isAtEnd=e=>e?e.isAtEnd():!1,Xe.isTextPosition=e=>e?Mt(e.container()):!1,Xe.isElementPosition=e=>!Xe.isTextPosition(e);const wb=(e,n)=>{Mt(n)&&n.data.length===0&&e.remove(n)},Gp=(e,n,o)=>{n.insertNode(o),wb(e,o.previousSibling),wb(e,o.nextSibling)},Rl=(e,n,o)=>{const r=F.from(o.firstChild),c=F.from(o.lastChild);n.insertNode(o),r.each(u=>wb(e,u.previousSibling)),c.each(u=>wb(e,u.nextSibling))},Rv=(e,n,o)=>{Lr(o)?Rl(e,n,o):Gp(e,n,o)},Hr=Mt,C1=nu,zf=Dr.nodeIndex,Nv=e=>{const n=e.parentNode;return C1(n)?Nv(n):n},S1=e=>e?fe(e.childNodes,(n,o)=>(C1(o)&&o.nodeName!=="BR"?n=n.concat(S1(o)):n.push(o),n),[]):[],Mv=(e,n)=>{let o=e;for(;(o=o.previousSibling)&&Hr(o);)n+=o.data.length;return n},_b=e=>n=>e===n,Kp=e=>{let n,o;n=S1(Nv(e)),o=ie(n,_b(e),e),n=n.slice(0,o+1);const r=fe(n,(c,u,m)=>(Hr(u)&&Hr(n[m-1])&&c++,c),0);return n=Fr(n,ka([e.nodeName])),o=ie(n,_b(e),e),o-r},Bv=e=>(Hr(e)?"text()":e.nodeName.toLowerCase())+"["+Kp(e)+"]",CT=(e,n,o)=>{const r=[];for(let c=n.parentNode;c&&c!==e;c=c.parentNode)r.push(c);return r},Di=(e,n)=>{let o=[],r=n.container(),c=n.offset(),u;if(Hr(r))u=Mv(r,c);else{const b=r.childNodes;c>=b.length?(u="after",c=b.length-1):u="before",r=b[c]}o.push(Bv(r));let m=CT(e,r);return m=Fr(m,ro(nu)),o=o.concat(Nr(m,b=>Bv(b))),o.reverse().join("/")+","+u},rc=(e,n,o)=>{let r=S1(e);return r=Fr(r,(c,u)=>!Hr(c)||!Hr(r[u-1])),r=Fr(r,ka([n])),r[o]},Uc=(e,n)=>{let o=e,r=0;for(;Hr(o);){const c=o.data.length;if(n>=r&&n<=r+c){e=o,n=n-r;break}if(!Hr(o.nextSibling)){e=o,n=c;break}r+=c,o=o.nextSibling}return Hr(e)&&n>e.data.length&&(n=e.data.length),Xe(e,n)},zi=(e,n)=>{if(!n)return null;const o=n.split(","),r=o[0].split("/"),c=o.length>1?o[1]:"before",u=fe(r,(m,b)=>{const v=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(b);return v?(v[1]==="text()"&&(v[1]="#text"),rc(m,v[1],parseInt(v[2],10))):null},e);if(!u)return null;if(!Hr(u)&&u.parentNode){let m;return c==="after"?m=zf(u)+1:m=zf(u),Xe(u.parentNode,m)}return Uc(u,parseInt(c,10))},Xc=hs,mi=(e,n,o)=>{let r=e(n.data.slice(0,o)).length;for(let c=n.previousSibling;c&&Mt(c);c=c.previousSibling)r+=e(c.data).length;return r},ac=(e,n,o,r,c)=>{const u=c?r.startContainer:r.endContainer;let m=c?r.startOffset:r.endOffset;const b=[],v=e.getRoot();if(Mt(u))b.push(o?mi(n,u,m):m);else{let x=0;const R=u.childNodes;m>=R.length&&R.length&&(x=1,m=Math.max(0,R.length-1)),b.push(e.nodeIndex(R[m],o)+x)}for(let x=u;x&&x!==v;x=x.parentNode)b.push(e.nodeIndex(x,o));return b},Pv=(e,n,o,r)=>{const c=n.dom,u=ac(c,e,o,r,!0),m=n.isForward(),b=Og(r)?{isFakeCaret:!0}:{};if(n.isCollapsed())return{start:u,forward:m,...b};{const v=ac(c,e,o,r,!1);return{start:u,end:v,forward:m,...b}}},Cb=(e,n,o)=>{let r=0;return Et.each(e.select(n),c=>{if(c.getAttribute("data-mce-bogus")!=="all"){if(c===o)return!1;r++;return}}),r},Fv=(e,n)=>{let o=n?e.startContainer:e.endContainer,r=n?e.startOffset:e.endOffset;if(Cn(o)&&o.nodeName==="TR"){const c=o.childNodes;o=c[Math.min(n?r:r-1,c.length-1)],o&&(r=n?0:o.childNodes.length,n?e.setStart(o,r):e.setEnd(o,r))}},Sb=e=>(Fv(e,!0),Fv(e,!1),e),$v=(e,n)=>{if(Cn(e)&&(e=gl(e,n),Xc(e)))return e;if(Yn(e)){Mt(e)&&Pt(e)&&(e=e.parentNode);let o=e.previousSibling;if(Xc(o)||(o=e.nextSibling,Xc(o)))return o}},G_=e=>$v(e.startContainer,e.startOffset)||$v(e.endContainer,e.endOffset),x1=(e,n,o)=>{const r=o.getNode(),c=o.getRng();if(r.nodeName==="IMG"||Xc(r)){const m=r.nodeName;return{name:m,index:Cb(o.dom,m,r)}}const u=G_(c);if(u){const m=u.tagName;return{name:m,index:Cb(o.dom,m,u)}}return Pv(e,o,n,c)},Iv=e=>{const n=e.getRng();return{start:Di(e.dom.getRoot(),Xe.fromRangeStart(n)),end:Di(e.dom.getRoot(),Xe.fromRangeEnd(n)),forward:e.isForward()}},ST=e=>({rng:e.getRng(),forward:e.isForward()}),xT=(e,n,o)=>{const r={"data-mce-type":"bookmark",id:n,style:"overflow:hidden;line-height:0px"};return o?e.create("span",r,""):e.create("span",r)},K_=(e,n)=>{const o=e.dom;let r=e.getRng();const c=o.uniqueId(),u=e.isCollapsed(),m=e.getNode(),b=m.nodeName,v=e.isForward();if(b==="IMG")return{name:b,index:Cb(o,b,m)};const x=Sb(r.cloneRange());if(!u){x.collapse(!1);const N=xT(o,c+"_end",n);Rv(o,x,N)}r=Sb(r),r.collapse(!0);const R=xT(o,c+"_start",n);return Rv(o,r,R),e.moveToBookmark({id:c,keep:!0,forward:v}),{id:c,forward:v}},TT=(e,n,o=!1)=>n===2?x1(L,o,e):n===3?Iv(e):n?ST(e):K_(e,!1),Yp=et(x1,In,!0),T1=e=>{const n=u=>u(e),o=st(e),r=()=>c,c={tag:!0,inner:e,fold:(u,m)=>m(e),isValue:at,isError:Ne,map:u=>Hi.value(u(e)),mapError:r,bind:n,exists:n,forall:n,getOr:o,or:r,getOrThunk:o,orThunk:r,getOrDie:o,each:u=>{u(e)},toOptional:()=>F.some(e)};return c},Y_=e=>{const n=()=>o,o={tag:!1,inner:e,fold:(r,c)=>r(e),isValue:Ne,isError:at,map:n,mapError:r=>Hi.error(r(e)),bind:n,exists:Ne,forall:at,getOr:In,or:In,getOrThunk:wt,orThunk:wt,getOrDie:Wo(String(e)),each:Re,toOptional:F.none};return o},Hi={value:T1,error:Y_,fromOption:(e,n)=>e.fold(()=>Y_(n),T1)},nd={generate:e=>{if(!mt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const n=[],o={};return re(e,(r,c)=>{const u=ts(r);if(u.length!==1)throw new Error("one and only one name per case");const m=u[0],b=r[m];if(o[m]!==void 0)throw new Error("duplicate key detected:"+m);if(m==="cata")throw new Error("cannot have a case named cata (sorry)");if(!mt(b))throw new Error("case arguments must be an array");n.push(m),o[m]=(...v)=>{const x=v.length;if(x!==b.length)throw new Error("Wrong number of arguments to case "+m+". Expected "+b.length+" ("+b+"), got "+x);return{fold:(...N)=>{if(N.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+N.length);return N[c].apply(null,v)},match:N=>{const $=ts(N);if(n.length!==$.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+` Actual: `+$.join(","));if(!zn(n,ne=>ee($,ne)))throw new Error("Not all branches were specified when using match. Specified: "+$.join(", ")+` Required: `+n.join(", "));return N[m].apply(null,v)},log:N=>{console.log(N,{constructors:n,constructor:m,params:v})}}}}),o}};nd.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Lt=e=>{const n=[],o=[];return re(e,r=>{r.fold(c=>{n.push(c)},c=>{o.push(c)})}),{errors:n,values:o}},Lv=e=>e.type==="inline-command"||e.type==="inline-format",cc=e=>e.type==="block-command"||e.type==="block-format",X_=e=>{const n=r=>Hi.error({message:r,pattern:e}),o=(r,c,u)=>{if(e.format!==void 0){let m;if(mt(e.format)){if(!zn(e.format,W))return n(r+" pattern has non-string items in the `format` array");m=e.format}else if(W(e.format))m=[e.format];else return n(r+" pattern has non-string `format` parameter");return Hi.value(c(m))}else return e.cmd!==void 0?W(e.cmd)?Hi.value(u(e.cmd,e.value)):n(r+" pattern has non-string `cmd` parameter"):n(r+" pattern is missing both `format` and `cmd` parameters")};if(!Be(e))return n("Raw pattern is not an object");if(!W(e.start))return n("Raw pattern is missing `start` parameter");if(e.end!==void 0){if(!W(e.end))return n("Inline pattern has non-string `end` parameter");if(e.start.length===0&&e.end.length===0)return n("Inline pattern has empty `start` and `end` parameters");let r=e.start,c=e.end;return c.length===0&&(c=r,r=""),o("Inline",u=>({type:"inline-format",start:r,end:c,format:u}),(u,m)=>({type:"inline-command",start:r,end:c,cmd:u,value:m}))}else return e.replacement!==void 0?W(e.replacement)?e.start.length===0?n("Replacement pattern has empty `start` parameter"):Hi.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):n("Replacement pattern has non-string `replacement` parameter"):e.start.length===0?n("Block pattern has empty `start` parameter"):o("Block",r=>({type:"block-format",start:e.start,format:r[0]}),(r,c)=>({type:"block-command",start:e.start,cmd:r,value:c}))},E1=e=>Ze(e,cc),Hv=e=>Ze(e,Lv),Vi=(e,n)=>({inlinePatterns:Hv(e),blockPatterns:E1(e),dynamicPatternsLookup:n}),ET=e=>{const n=Lt(ve(e,X_));return re(n.errors,o=>console.error(o.message,o.pattern)),n.values},J_=e=>n=>{const o=e(n);return ET(o)},Ui=qs().deviceType,Xp=Ui.isTouch(),xb=Dr.DOM,$d=e=>{const n=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return Q(n,(o,r)=>{const c=r.split("="),u=c[0],m=c.length>1?c[1]:u;return o[Ba(u)]=Ba(m),o},{})},Ou=e=>At(e,RegExp),hn=e=>n=>n.options.get(e),Nl=e=>W(e)||Be(e),Q_=(e,n="")=>o=>{const r=W(o);if(r)if(o.indexOf("=")!==-1){const c=$d(o);return{value:Ss(c,e.id).getOr(n),valid:r}}else return{value:o,valid:r};else return{valid:!1,message:"Must be a string."}},e2=e=>{const n=e.options.register;n("id",{processor:"string",default:e.id}),n("selector",{processor:"string"}),n("target",{processor:"object"}),n("suffix",{processor:"string"}),n("cache_suffix",{processor:"string"}),n("base_url",{processor:"string"}),n("referrer_policy",{processor:"string",default:""}),n("language_load",{processor:"boolean",default:!0}),n("inline",{processor:"boolean",default:!1}),n("iframe_attrs",{processor:"object",default:{}}),n("doctype",{processor:"string",default:""}),n("document_base_url",{processor:"string",default:e.documentBaseUrl}),n("body_id",{processor:Q_(e,"tinymce"),default:"tinymce"}),n("body_class",{processor:Q_(e),default:""}),n("content_security_policy",{processor:"string",default:""}),n("br_in_pre",{processor:"boolean",default:!0}),n("forced_root_block",{processor:o=>{const r=W(o)&&mo(o);return r?{value:o,valid:r}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),n("forced_root_block_attrs",{processor:"object",default:{}}),n("newline_behavior",{processor:o=>{const r=ee(["block","linebreak","invert","default"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),n("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),n("no_newline_selector",{processor:"string",default:""}),n("keep_styles",{processor:"boolean",default:!0}),n("end_container_on_empty_block",{processor:o=>it(o)?{valid:!0,value:o}:W(o)?{valid:!0,value:o}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),n("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),n("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),n("font_size_classes",{processor:"string",default:""}),n("automatic_uploads",{processor:"boolean",default:!0}),n("images_reuse_filename",{processor:"boolean",default:!1}),n("images_replace_blob_uris",{processor:"boolean",default:!0}),n("icons",{processor:"string",default:""}),n("icons_url",{processor:"string",default:""}),n("images_upload_url",{processor:"string",default:""}),n("images_upload_base_path",{processor:"string",default:""}),n("images_upload_credentials",{processor:"boolean",default:!1}),n("images_upload_handler",{processor:"function"}),n("language",{processor:"string",default:"en"}),n("language_url",{processor:"string",default:""}),n("entity_encoding",{processor:"string",default:"named"}),n("indent",{processor:"boolean",default:!0}),n("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_use_margin",{processor:"boolean",default:!1}),n("indentation",{processor:"string",default:"40px"}),n("content_css",{processor:o=>{const r=o===!1||W(o)||Se(o,W);return r?W(o)?{value:ve(o.split(","),Ba),valid:r}:mt(o)?{value:o,valid:r}:o===!1?{value:[],valid:r}:{value:o,valid:r}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:Qv(e)?[]:["default"]}),n("content_style",{processor:"string"}),n("content_css_cors",{processor:"boolean",default:!1}),n("font_css",{processor:o=>{const r=W(o)||Se(o,W);return r?{value:mt(o)?o:ve(o.split(","),Ba),valid:r}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),n("inline_boundaries",{processor:"boolean",default:!0}),n("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),n("object_resizing",{processor:o=>{const r=it(o)||W(o);return r?o===!1||Ui.isiPhone()||Ui.isiPad()?{value:"",valid:r}:{value:o===!0?"table,img,figure.image,div,video,iframe":o,valid:r}:{valid:!1,message:"Must be boolean or a string"}},default:!Xp}),n("resize_img_proportional",{processor:"boolean",default:!0}),n("event_root",{processor:"object"}),n("service_message",{processor:"string"}),n("theme",{processor:o=>o===!1||W(o)||ae(o),default:"silver"}),n("theme_url",{processor:"string"}),n("formats",{processor:"object"}),n("format_empty_lines",{processor:"boolean",default:!1}),n("format_noneditable_selector",{processor:"string",default:""}),n("preview_styles",{processor:o=>{const r=o===!1||W(o);return r?{value:o===!1?"":o,valid:r}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),n("custom_ui_selector",{processor:"string",default:""}),n("hidden_input",{processor:"boolean",default:!0}),n("submit_patch",{processor:"boolean",default:!0}),n("encoding",{processor:"string"}),n("add_form_submit_trigger",{processor:"boolean",default:!0}),n("add_unload_trigger",{processor:"boolean",default:!0}),n("custom_undo_redo_levels",{processor:"number",default:0}),n("disable_nodechange",{processor:"boolean",default:!1}),n("readonly",{processor:"boolean",default:!1}),n("editable_root",{processor:"boolean",default:!0}),n("plugins",{processor:"string[]",default:[]}),n("external_plugins",{processor:"object"}),n("forced_plugins",{processor:"string[]"}),n("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),n("model_url",{processor:"string"}),n("block_unsupported_drop",{processor:"boolean",default:!0}),n("visual",{processor:"boolean",default:!0}),n("visual_table_class",{processor:"string",default:"mce-item-table"}),n("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),n("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),n("setup",{processor:"function"}),n("init_instance_callback",{processor:"function"}),n("url_converter",{processor:"function",default:e.convertURL}),n("url_converter_scope",{processor:"object",default:e}),n("urlconverter_callback",{processor:"function"}),n("allow_conditional_comments",{processor:"boolean",default:!1}),n("allow_html_data_urls",{processor:"boolean",default:!1}),n("allow_svg_data_urls",{processor:"boolean"}),n("allow_html_in_named_anchor",{processor:"boolean",default:!1}),n("allow_script_urls",{processor:"boolean",default:!1}),n("allow_unsafe_link_target",{processor:"boolean",default:!1}),n("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),n("fix_list_elements",{processor:"boolean",default:!1}),n("preserve_cdata",{processor:"boolean",default:!1}),n("remove_trailing_brs",{processor:"boolean",default:!0}),n("pad_empty_with_br",{processor:"boolean",default:!1}),n("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),n("element_format",{processor:"string",default:"html"}),n("entities",{processor:"string"}),n("schema",{processor:"string",default:"html5"}),n("convert_urls",{processor:"boolean",default:!0}),n("relative_urls",{processor:"boolean",default:!0}),n("remove_script_host",{processor:"boolean",default:!0}),n("custom_elements",{processor:"string"}),n("extended_valid_elements",{processor:"string"}),n("invalid_elements",{processor:"string"}),n("invalid_styles",{processor:Nl}),n("valid_children",{processor:"string"}),n("valid_classes",{processor:Nl}),n("valid_elements",{processor:"string"}),n("valid_styles",{processor:Nl}),n("verify_html",{processor:"boolean",default:!0}),n("auto_focus",{processor:o=>W(o)||o===!0}),n("browser_spellcheck",{processor:"boolean",default:!1}),n("protect",{processor:"array"}),n("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),n("deprecation_warnings",{processor:"boolean",default:!0}),n("a11y_advanced_options",{processor:"boolean",default:!1}),n("api_key",{processor:"string"}),n("paste_block_drop",{processor:"boolean",default:!1}),n("paste_data_images",{processor:"boolean",default:!0}),n("paste_preprocess",{processor:"function"}),n("paste_postprocess",{processor:"function"}),n("paste_webkit_styles",{processor:"string",default:"none"}),n("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),n("paste_merge_formats",{processor:"boolean",default:!0}),n("smart_paste",{processor:"boolean",default:!0}),n("paste_as_text",{processor:"boolean",default:!1}),n("paste_tab_spaces",{processor:"number",default:4}),n("text_patterns",{processor:o=>Se(o,Be)||o===!1?{value:ET(o===!1?[]:o),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),n("text_patterns_lookup",{processor:o=>ae(o)?{value:J_(o),valid:!0}:{valid:!1,message:"Must be a single function"},default:o=>[]}),n("noneditable_class",{processor:"string",default:"mceNonEditable"}),n("editable_class",{processor:"string",default:"mceEditable"}),n("noneditable_regexp",{processor:o=>Se(o,Ou)?{value:o,valid:!0}:Ou(o)?{value:[o],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),n("table_tab_navigation",{processor:"boolean",default:!0}),n("highlight_on_focus",{processor:"boolean",default:!1}),n("xss_sanitization",{processor:"boolean",default:!0}),n("details_initial_state",{processor:o=>{const r=ee(["inherited","collapsed","expanded"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("details_serialized_state",{processor:o=>{const r=ee(["inherited","collapsed","expanded"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("init_content_sync",{processor:"boolean",default:!1}),n("newdocument_content",{processor:"string",default:""}),n("force_hex_color",{processor:o=>{const r=["always","rgb_only","off"],c=ee(r,o);return c?{value:o,valid:c}:{valid:!1,message:`Must be one of: ${r.join(", ")}.`}},default:"off"}),n("sandbox_iframes",{processor:"boolean",default:!1}),n("convert_unsafe_embeds",{processor:"boolean",default:!1}),e.on("ScriptsLoaded",()=>{n("directionality",{processor:"string",default:Au.isRtl()?"rtl":void 0}),n("placeholder",{processor:"string",default:xb.getAttrib(e.getElement(),"placeholder")})})},Vv=hn("iframe_attrs"),t2=hn("doctype"),Uv=hn("document_base_url"),jv=hn("body_id"),AT=hn("body_class"),Wv=hn("content_security_policy"),OT=hn("br_in_pre"),gi=hn("forced_root_block"),Tb=hn("forced_root_block_attrs"),DT=hn("newline_behavior"),zT=hn("br_newline_selector"),Zv=hn("no_newline_selector"),RT=hn("keep_styles"),n2=hn("end_container_on_empty_block"),o2=hn("automatic_uploads"),Eb=hn("images_reuse_filename"),s2=hn("images_replace_blob_uris"),qv=hn("icons"),jg=hn("icons_url"),NT=hn("images_upload_url"),MT=hn("images_upload_base_path"),Gv=hn("images_upload_credentials"),BT=hn("images_upload_handler"),Rf=hn("content_css_cors"),us=hn("referrer_policy"),Kv=hn("language"),pi=hn("language_url"),A1=hn("indent_use_margin"),Yv=hn("indentation"),Xv=hn("content_css"),O1=hn("content_style"),r2=hn("font_css"),PT=hn("directionality"),FT=hn("inline_boundaries_selector"),Jp=hn("object_resizing"),a2=hn("resize_img_proportional"),LO=hn("placeholder"),Tm=hn("event_root"),$T=hn("service_message"),Qp=hn("theme"),IT=hn("theme_url"),Jv=hn("model"),c2=hn("model_url"),Wg=hn("inline_boundaries"),LT=hn("formats"),i2=hn("preview_styles"),l2=hn("format_empty_lines"),eh=hn("format_noneditable_selector"),u2=hn("custom_ui_selector"),Qv=hn("inline"),HT=hn("hidden_input"),d2=hn("submit_patch"),Id=hn("add_form_submit_trigger"),Ab=hn("add_unload_trigger"),Ob=hn("custom_undo_redo_levels"),D1=hn("disable_nodechange"),Db=hn("readonly"),cu=hn("editable_root"),th=hn("content_css_cors"),zb=hn("plugins"),Em=hn("external_plugins"),z1=hn("block_unsupported_drop"),VT=hn("visual"),UT=hn("visual_table_class"),f2=hn("visual_anchor_class"),jT=hn("iframe_aria_text"),ek=hn("setup"),WT=hn("init_instance_callback"),ZT=hn("urlconverter_callback"),m2=hn("auto_focus"),qT=hn("browser_spellcheck"),g2=hn("protect"),GT=hn("paste_block_drop"),R1=hn("paste_data_images"),KT=hn("paste_preprocess"),p2=hn("paste_postprocess"),nh=hn("newdocument_content"),tk=hn("paste_webkit_styles"),nk=hn("paste_remove_styles_if_webkit"),ok=hn("paste_merge_formats"),h2=hn("smart_paste"),sk=hn("paste_as_text"),YT=hn("paste_tab_spaces"),N1=hn("allow_html_data_urls"),M1=hn("text_patterns"),XT=hn("text_patterns_lookup"),rk=hn("noneditable_class"),b2=hn("editable_class"),JT=hn("noneditable_regexp"),ak=hn("preserve_cdata"),QT=hn("highlight_on_focus"),oh=hn("xss_sanitization"),eE=hn("init_content_sync"),ck=e=>e.options.isSet("text_patterns_lookup"),tE=e=>Et.explode(e.options.get("font_size_style_values")),nE=e=>Et.explode(e.options.get("font_size_classes")),oE=e=>e.options.get("encoding")==="xml",y2=e=>Et.explode(e.options.get("images_file_types")),sE=hn("table_tab_navigation"),xc=hn("details_initial_state"),HO=hn("details_serialized_state"),sh=hn("force_hex_color"),B1=hn("sandbox_iframes"),v2=Cn,ik=Mt,k2=e=>{const n=e.parentNode;n&&n.removeChild(e)},w2=e=>{const n=L(e);return{count:e.length-n.length,text:n}},Zg=e=>{let n;for(;(n=e.data.lastIndexOf(w))!==-1;)e.deleteData(n,1)},Rb=(e,n)=>(ic(e),n),rE=(e,n)=>{const o=w2(e.data.substr(0,n.offset())),r=w2(e.data.substr(n.offset()));return(o.text+r.text).length>0?(Zg(e),Xe(e,n.offset()-o.count)):n},aE=(e,n)=>{const o=n.container(),r=an(cs(o.childNodes),e).map(c=>cik(e)&&n.container()===e?rE(e,n):Rb(e,n),lk=(e,n)=>n.container()===e.parentNode?aE(e,n):Rb(e,n),_2=(e,n)=>Xe.isTextPosition(n)?Nb(e,n):lk(e,n),ic=e=>{v2(e)&&Yn(e)&&(Vo(e)?e.removeAttribute("data-mce-caret"):k2(e)),ik(e)&&(Zg(e),e.data.length===0&&k2(e))},C2=hs,uk=ca,VO=um,rh="*[contentEditable=false],video,audio,embed,object",cE=(e,n,o)=>{const r=Of(n.getBoundingClientRect(),o);let c,u;if(e.tagName==="BODY"){const b=e.ownerDocument.documentElement;c=e.scrollLeft||b.scrollLeft,u=e.scrollTop||b.scrollTop}else{const b=e.getBoundingClientRect();c=e.scrollLeft-b.left,u=e.scrollTop-b.top}r.left+=c,r.right+=c,r.top+=u,r.bottom+=u,r.width=1;let m=n.offsetWidth-n.clientWidth;return m>0&&(o&&(m*=-1),r.left+=m,r.right+=m),r},S2=e=>{var n,o;const r=tc(le.fromDom(e),rh);for(let c=0;c{const c=wm();let u,m;const b=gi(e),v=e.dom,x=(G,oe)=>{let xe;if(R(),VO(oe))return null;if(o(oe)){const Oe=Oi(b,oe,G),Ae=cE(n,oe,G);v.setStyle(Oe,"top",Ae.top),m=Oe;const Ue=v.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});v.setStyles(Ue,{...Ae}),v.add(n,Ue),c.set({caret:Ue,element:oe,before:G}),G&&v.addClass(Ue,"mce-visual-caret-before"),N(),xe=oe.ownerDocument.createRange(),xe.setStart(Oe,0),xe.setEnd(Oe,0)}else return m=ta(oe,G),xe=oe.ownerDocument.createRange(),P1(m.nextSibling)?(xe.setStart(m,0),xe.setEnd(m,0)):(xe.setStart(m,1),xe.setEnd(m,1)),xe;return xe},R=()=>{S2(n),m&&(ic(m),m=null),c.on(G=>{v.remove(G.caret),c.clear()}),u&&(clearInterval(u),u=void 0)},N=()=>{u=setInterval(()=>{c.on(G=>{r()?v.toggleClass(G.caret,"mce-visual-caret-hidden"):v.addClass(G.caret,"mce-visual-caret-hidden")})},500)};return{show:x,hide:R,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{c.on(G=>{const oe=cE(n,G.element,G.before);v.setStyles(G.caret,{...oe})})},destroy:()=>clearInterval(u)}},Mb=()=>tn.browser.isFirefox(),P1=e=>C2(e)||uk(e),ah=e=>(P1(e)||_u(e)&&Mb())&&nl(le.fromDom(e)).exists(Ho),iE=$c,Am=hs,x2=ca,Om=qu("display","block table table-cell table-caption list-item"),Dm=Yn,fk=Pt,T2=Cn,UO=Mt,mk=ms,zm=e=>e>0,Ld=e=>e<0,Bb=(e,n)=>{let o;for(;o=e(n);)if(!fk(o))return o;return null},ch=(e,n,o,r,c)=>{const u=new wr(e,r),m=Am(e)||fk(e);let b;if(Ld(n)){if(m&&(b=Bb(u.prev.bind(u),!0),o(b)))return b;for(;b=Bb(u.prev.bind(u),c);)if(o(b))return b}if(zm(n)){if(m&&(b=Bb(u.next.bind(u),!0),o(b)))return b;for(;b=Bb(u.next.bind(u),c);)if(o(b))return b}return null},gk=(e,n)=>{const o=c=>iE(c.dom),r=c=>c.dom===n;return Ir(le.fromDom(e),o,r).map(c=>c.dom).getOr(n)},Nf=(e,n)=>{for(;e&&e!==n;){if(Om(e))return e;e=e.parentNode}return null},od=(e,n,o)=>Nf(e.container(),o)===Nf(n.container(),o),Pb=(e,n)=>{if(!n)return F.none();const o=n.container(),r=n.offset();return T2(o)?F.from(o.childNodes[r+e]):F.none()},F1=(e,n)=>{var o;const c=((o=n.ownerDocument)!==null&&o!==void 0?o:document).createRange();return e?(c.setStartBefore(n),c.setEndBefore(n)):(c.setStartAfter(n),c.setEndAfter(n)),c},Fb=(e,n,o)=>Nf(n,e)===Nf(o,e),pk=(e,n,o)=>{const r=e?"previousSibling":"nextSibling";let c=o;for(;c&&c!==n;){let u=c[r];if(u&&Dm(u)&&(u=u[r]),Am(u)||x2(u)){if(Fb(n,u,c))return u;break}if(mk(u))break;c=c.parentNode}return null},ih=et(F1,!0),$b=et(F1,!1),hk=(e,n,o)=>{let r;const c=et(pk,!0,n),u=et(pk,!1,n),m=o.startContainer,b=o.startOffset;if(Pt(m)){const v=UO(m)?m.parentNode:m,x=v.getAttribute("data-mce-caret");if(x==="before"&&(r=v.nextSibling,ah(r)))return ih(r);if(x==="after"&&(r=v.previousSibling,ah(r)))return $b(r)}if(!o.collapsed)return o;if(Mt(m)){if(Dm(m)){if(e===1){if(r=u(m),r)return ih(r);if(r=c(m),r)return $b(r)}if(e===-1){if(r=c(m),r)return $b(r);if(r=u(m),r)return ih(r)}return o}if(cl(m)&&b>=m.data.length-1)return e===1&&(r=u(m),r)?ih(r):o;if(di(m)&&b<=1)return e===-1&&(r=c(m),r)?$b(r):o;if(b===m.data.length)return r=u(m),r?ih(r):o;if(b===0)return r=c(m),r?$b(r):o}return o},E2=(e,n)=>Pb(e?0:-1,n).filter(Am),Rm=(e,n,o)=>{const r=hk(e,n,o);return e===-1?Xe.fromRangeStart(r):Xe.fromRangeEnd(r)},$1=e=>F.from(e.getNode()).map(le.fromDom),lE=e=>F.from(e.getNode(!0)).map(le.fromDom),A2=(e,n)=>{let o=n;for(;o=e(o);)if(o.isVisible())return o;return o},bk=(e,n)=>{const o=od(e,n);return!o&&er(e.getNode())?!0:o};var Sa;(function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"})(Sa||(Sa={}));const jO=hs,Mf=Mt,O2=Cn,I1=er,Nm=ms,Jc=Lc,lh=wf,Ib=(e,n)=>{const o=[];let r=e;for(;r&&r!==n;)o.push(r),r=r.parentNode;return o},uh=(e,n)=>e.hasChildNodes()&&n{if(zm(e)){if(Nm(n.previousSibling)&&!Mf(n.previousSibling))return Xe.before(n);if(Mf(n))return Xe(n,0)}if(Ld(e)){if(Nm(n.nextSibling)&&!Mf(n.nextSibling))return Xe.after(n);if(Mf(n))return Xe(n,n.data.length)}return Ld(e)?I1(n)?Xe.before(n):Xe.after(n):Xe.before(n)},dh=(e,n)=>{const o=n.nextSibling;return o&&Nm(o)?Mf(o)?Xe(o,0):Xe.before(o):qg(Sa.Forwards,Xe.after(n),e)},qg=(e,n,o)=>{let r,c,u,m;if(!O2(o)||!n)return null;if(n.isEqual(Xe.after(o))&&o.lastChild){if(m=Xe.after(o.lastChild),Ld(e)&&Nm(o.lastChild)&&O2(o.lastChild))return I1(o.lastChild)?Xe.before(o.lastChild):m}else m=n;const b=m.container();let v=m.offset();if(Mf(b)){if(Ld(e)&&v>0)return Xe(b,--v);if(zm(e)&&v0&&(c=uh(b,v-1),Nm(c)))return!Jc(c)&&(u=ch(c,e,lh,c),u)?Mf(u)?Xe(u,u.data.length):Xe.after(u):Mf(c)?Xe(c,c.data.length):Xe.before(c);if(zm(e)&&v({next:n=>qg(Sa.Forwards,n,e),prev:n=>qg(Sa.Backwards,n,e)}),uE=(e,n,o)=>{const r=e?Xe.before(o):Xe.after(o);return Tc(e,n,r)},dE=e=>er(e)?Xe.before(e):Xe.after(e),Mm=e=>Xe.isTextPosition(e)?e.offset()===0:ms(e.getNode()),fh=e=>{if(Xe.isTextPosition(e)){const n=e.container();return e.offset()===n.data.length}else return ms(e.getNode(!0))},L1=(e,n)=>!Xe.isTextPosition(e)&&!Xe.isTextPosition(n)&&e.getNode()===n.getNode(!0),Hd=e=>!Xe.isTextPosition(e)&&er(e.getNode()),vk=(e,n,o)=>e?!L1(n,o)&&!Hd(n)&&fh(n)&&Mm(o):!L1(o,n)&&Mm(n)&&fh(o),Tc=(e,n,o)=>{const r=sd(n);return F.from(e?r.next(o):r.prev(o))},Bf=(e,n,o)=>Tc(e,n,o).bind(r=>od(o,r,n)&&vk(e,o,r)?Tc(e,n,r):F.some(r)),Du=(e,n,o,r)=>Bf(e,n,o).bind(c=>r(c)?Du(e,n,c,r):F.some(c)),mh=(e,n)=>{const o=e?n.firstChild:n.lastChild;return Mt(o)?F.some(Xe(o,e?0:o.data.length)):o?ms(o)?F.some(e?Xe.before(o):dE(o)):uE(e,n,o):F.none()},hi=et(Tc,!0),ji=et(Tc,!1),Ri=et(mh,!0),zu=et(mh,!1),H1="_mce_caret",Ml=e=>Cn(e)&&e.id===H1,Gg=(e,n)=>{let o=n;for(;o&&o!==e;){if(Ml(o))return o;o=o.parentNode}return null},kk=e=>W(e.start),fE=e=>Wn(e,"rng"),D2=e=>Wn(e,"id"),Lb=e=>Wn(e,"name"),z2=e=>Et.isArray(e.start),Hb=e=>!Lb(e)&&it(e.forward)?e.forward:!0,V1=(e,n)=>(Cn(n)&&e.isBlock(n)&&!n.innerHTML&&(n.innerHTML='
    '),n),mE=(e,n)=>{const o=F.from(zi(e.getRoot(),n.start)),r=F.from(zi(e.getRoot(),n.end));return Yr(o,r,(c,u)=>{const m=e.createRng();return m.setStart(c.container(),c.offset()),m.setEnd(u.container(),u.offset()),{range:m,forward:Hb(n)}})},R2=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(w);e.appendChild(c),n.setStart(c,0),n.setEnd(c,0)},gE=e=>!e.hasChildNodes(),WO=(e,n)=>zu(e).fold(Ne,o=>(n.setStart(o.container(),o.offset()),n.setEnd(o.container(),o.offset()),!0)),N2=(e,n,o)=>gE(n)&&Gg(e,n)?(R2(n,o),!0):!1,ws=(e,n,o,r)=>{const c=o[n?"start":"end"],u=e.getRoot();if(c){let m=u,b=c[0];for(let v=c.length-1;m&&v>=1;v--){const x=m.childNodes;if(N2(u,m,r))return!0;if(c[v]>x.length-1)return N2(u,m,r)?!0:WO(m,r);m=x[c[v]]}Mt(m)&&(b=Math.min(c[0],m.data.length)),Cn(m)&&(b=Math.min(c[0],m.childNodes.length)),n?r.setStart(m,b):r.setEnd(m,b)}return!0},rd=e=>Mt(e)&&e.data.length>0,Kg=(e,n,o)=>{const r=e.get(o.id+"_"+n),c=r==null?void 0:r.parentNode,u=o.keep;if(r&&c){let m,b;if(n==="start"?u?r.hasChildNodes()?(m=r.firstChild,b=1):rd(r.nextSibling)?(m=r.nextSibling,b=0):rd(r.previousSibling)?(m=r.previousSibling,b=r.previousSibling.data.length):(m=c,b=e.nodeIndex(r)+1):(m=c,b=e.nodeIndex(r)):u?r.hasChildNodes()?(m=r.firstChild,b=1):rd(r.previousSibling)?(m=r.previousSibling,b=r.previousSibling.data.length):(m=c,b=e.nodeIndex(r)):(m=c,b=e.nodeIndex(r)),!u){const v=r.previousSibling,x=r.nextSibling;Et.each(Et.grep(r.childNodes),N=>{Mt(N)&&(N.data=N.data.replace(/\uFEFF/g,""))});let R;for(;R=e.get(o.id+"_"+n);)e.remove(R,!0);if(Mt(x)&&Mt(v)&&!tn.browser.isOpera()){const N=v.data.length;v.appendData(x.data),e.remove(x),m=v,b=N}}return F.some(Xe(m,b))}else return F.none()},wk=(e,n)=>{const o=e.createRng();return ws(e,!0,n,o)&&ws(e,!1,n,o)?F.some({range:o,forward:Hb(n)}):F.none()},M2=(e,n)=>{const o=Kg(e,"start",n),r=Kg(e,"end",n);return Yr(o,r.or(o),(c,u)=>{const m=e.createRng();return m.setStart(V1(e,c.container()),c.offset()),m.setEnd(V1(e,u.container()),u.offset()),{range:m,forward:Hb(n)}})},Vb=(e,n)=>F.from(e.select(n.name)[n.index]).map(o=>{const r=e.createRng();return r.selectNode(o),{range:r,forward:!0}}),pE=(e,n)=>{const o=e.dom;if(n){if(z2(n))return wk(o,n);if(kk(n))return mE(o,n);if(D2(n))return M2(o,n);if(Lb(n))return Vb(o,n);if(fE(n))return F.some({range:n.rng,forward:Hb(n)})}return F.none()},gh=(e,n,o)=>TT(e,n,o),U1=(e,n)=>{pE(e,n).each(({range:o,forward:r})=>{e.setRng(o,r)})},Bl=e=>Cn(e)&&e.tagName==="SPAN"&&e.getAttribute("data-mce-type")==="bookmark",j1=(e=>n=>e===n)(Ms),ph=e=>e!==""&&` \f diff --git a/public/admin-assets/assets/Tinymce-DeODYiJH.js.gz b/public/admin-assets/assets/Tinymce-DeODYiJH.js.gz new file mode 100644 index 0000000..2cf0a84 Binary files /dev/null and b/public/admin-assets/assets/Tinymce-DeODYiJH.js.gz differ diff --git a/public/admin-assets/assets/codemirror-BRvu937V.js b/public/admin-assets/assets/codemirror-COVsbYii.js similarity index 74% rename from public/admin-assets/assets/codemirror-BRvu937V.js rename to public/admin-assets/assets/codemirror-COVsbYii.js index 0c418a6..7814501 100644 --- a/public/admin-assets/assets/codemirror-BRvu937V.js +++ b/public/admin-assets/assets/codemirror-COVsbYii.js @@ -1 +1 @@ -import{o as a}from"./index-CgQH3-O6.js";import{r as f}from"./codemirror-J1AFzwAO.js";function s(o,c){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c}; +import{o as a}from"./index-Hn-s1JD5.js";import{r as f}from"./codemirror-I2c5QWqw.js";function s(o,c){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c}; diff --git a/public/admin-assets/assets/codemirror-J1AFzwAO.js b/public/admin-assets/assets/codemirror-I2c5QWqw.js similarity index 99% rename from public/admin-assets/assets/codemirror-J1AFzwAO.js rename to public/admin-assets/assets/codemirror-I2c5QWqw.js index cfce17e..ec9663c 100644 --- a/public/admin-assets/assets/codemirror-J1AFzwAO.js +++ b/public/admin-assets/assets/codemirror-I2c5QWqw.js @@ -1,4 +1,4 @@ -import{p as hu}from"./index-CgQH3-O6.js";var An={exports:{}},Xo;function pu(){return Xo||(Xo=1,function(Yo,cu){(function(re,Tr){Yo.exports=Tr()})(hu,function(){var re=navigator.userAgent,Tr=navigator.platform,We=/gecko\/\d/i.test(re),On=/MSIE \d/.test(re),Wn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(re),Mr=/Edge\/(\d+)/.exec(re),A=On||Wn||Mr,E=A&&(On?document.documentMode||6:+(Mr||Wn)[1]),ie=!Mr&&/WebKit\//.test(re),qo=ie&&/Qt\/\d+\.\d+/.test(re),ze=!Mr&&/Chrome\/(\d+)/.exec(re),Hn=ze&&+ze[1],Ce=/Opera\//.test(re),Dr=/Apple Computer/.test(navigator.vendor),Zo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(re),Qo=/PhantomJS/.test(re),Kt=Dr&&(/Mobile\/\w+/.test(re)||navigator.maxTouchPoints>2),Nr=/Android/.test(re),_t=Kt||Nr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(re),ye=Kt||/Mac/.test(Tr),Jo=/\bCrOS\b/.test(re),jo=/win/i.test(Tr),$e=Ce&&re.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(Ce=!1,ie=!0);var Fn=ye&&(qo||Ce&&($e==null||$e<12.11)),pi=We||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=gi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Wr=[""];function bi(e){for(;Wr.length<=e;)Wr.push(W(Wr)+" ");return Wr[e]}function W(e){return e[e.length-1]}function Hr(e,t){for(var i=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||$o.test(e))}function Fr(e,t){return t?t.source.indexOf("\\w")>-1&&xi(e)?!0:t.test(e):xi(e)}function Rn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ea=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ci(e){return e.charCodeAt(0)>=768&&ea.test(e)}function Bn(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function ta(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;lt||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Qt=null;function Jt(e,t,i){var r;Qt=null;for(var n=0;nt)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Qt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Qt=n)}return r??Qt}var ra=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=wi(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function Ct(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ve(this,t,i)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Un(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Si(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function jt(e){oe(e),Un(e)}function Li(e){return e.target||e.srcElement}function Kn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ye&&e.ctrlKey&&t==1&&(t=3),t}var ia=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),ki;function na(e){if(ki==null){var t=k("span","​");pe(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ki=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=ki?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Ti;function la(e){if(Ti!=null)return Ti;var t=pe(e,document.createTextNode("AخA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:Ti=r.right-i.right<3}var Mi=` +import{p as hu}from"./index-Hn-s1JD5.js";var An={exports:{}},Xo;function pu(){return Xo||(Xo=1,function(Yo,cu){(function(re,Tr){Yo.exports=Tr()})(hu,function(){var re=navigator.userAgent,Tr=navigator.platform,We=/gecko\/\d/i.test(re),On=/MSIE \d/.test(re),Wn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(re),Mr=/Edge\/(\d+)/.exec(re),A=On||Wn||Mr,E=A&&(On?document.documentMode||6:+(Mr||Wn)[1]),ie=!Mr&&/WebKit\//.test(re),qo=ie&&/Qt\/\d+\.\d+/.test(re),ze=!Mr&&/Chrome\/(\d+)/.exec(re),Hn=ze&&+ze[1],Ce=/Opera\//.test(re),Dr=/Apple Computer/.test(navigator.vendor),Zo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(re),Qo=/PhantomJS/.test(re),Kt=Dr&&(/Mobile\/\w+/.test(re)||navigator.maxTouchPoints>2),Nr=/Android/.test(re),_t=Kt||Nr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(re),ye=Kt||/Mac/.test(Tr),Jo=/\bCrOS\b/.test(re),jo=/win/i.test(Tr),$e=Ce&&re.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(Ce=!1,ie=!0);var Fn=ye&&(qo||Ce&&($e==null||$e<12.11)),pi=We||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=gi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Wr=[""];function bi(e){for(;Wr.length<=e;)Wr.push(W(Wr)+" ");return Wr[e]}function W(e){return e[e.length-1]}function Hr(e,t){for(var i=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||$o.test(e))}function Fr(e,t){return t?t.source.indexOf("\\w")>-1&&xi(e)?!0:t.test(e):xi(e)}function Rn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ea=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ci(e){return e.charCodeAt(0)>=768&&ea.test(e)}function Bn(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function ta(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;lt||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Qt=null;function Jt(e,t,i){var r;Qt=null;for(var n=0;nt)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Qt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Qt=n)}return r??Qt}var ra=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=wi(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function Ct(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ve(this,t,i)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Un(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Si(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function jt(e){oe(e),Un(e)}function Li(e){return e.target||e.srcElement}function Kn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ye&&e.ctrlKey&&t==1&&(t=3),t}var ia=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),ki;function na(e){if(ki==null){var t=k("span","​");pe(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ki=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=ki?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Ti;function la(e){if(Ti!=null)return Ti;var t=pe(e,document.createTextNode("AخA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:Ti=r.right-i.right<3}var Mi=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(` `,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},oa=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},aa=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Di=null;function sa(e){if(Di!=null)return Di;var t=pe(e,k("span","x")),i=t.getBoundingClientRect(),r=tt(t,0,1).getBoundingClientRect();return Di=Math.abs(i.left-r.left)>1}var Ni={},wt={};function ua(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ni[e]=t}function fa(e,t){wt[e]=t}function Pr(e){if(typeof e=="string"&&wt.hasOwnProperty(e))e=wt[e];else if(e&&typeof e.name=="string"&&wt.hasOwnProperty(e.name)){var t=wt[e.name];typeof t=="string"&&(t={name:t}),e=In(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ai(e,t){t=Pr(t);var i=Ni[t.name];if(!i)return Ai(e,"text/plain");var r=i(e,t);if(St.hasOwnProperty(t.name)){var n=St[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var St={};function ha(e,t){var i=St.hasOwnProperty(e)?St[e]:St[e]={};nt(t,i)}function lt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Oi(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function _n(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.post},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t=e.first&&ti?g(i,w(e,i).text.length):ca(t,w(e,t.line).text.length)}function ca(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function Yn(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},De.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},De.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},De.fromSaved=function(e,t,i){return t instanceof Rr?new De(e,lt(e.mode,t.state),i,t.lookAhead):new De(e,lt(e.mode,t),i)},De.prototype.save=function(e){var t=e!==!1?lt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rr(t,this.maxLookAhead):t};function qn(e,t,i,r){var n=[e.state.modeGen],l={};$n(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,$n(e,t.text,f.mode,i,function(c,p){for(var v=h;dc&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;ve.options.maxHighlightLength&<(e.doc.mode,r.state),l=qn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function $t(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new De(r,!0,t);var l=da(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?De.fromSaved(r,o,l):new De(r,_n(r.mode),l);return r.iter(l,t,function(s){Ei(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&ut.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Jn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function jn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=$t(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pose.options.maxHighlightLength?(a=!1,o&&Ei(e,t,r,f.pos),f.pos=t.length,h=null):h=Vn(Ii(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;so;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Rr?u.lookAhead:0)<=l.modeFrontier))return a;var f=be(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function pa(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Rr)||r+n.lookAhead=t:l.to>t);(r||(r=[])).push(new Br(o,l.from,s?null:l.to))}}return r}function xa(e,t,i){var r;if(e)for(var n=0;n=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from0&&a)for(var C=0;C0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function rl(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||Bi(r,l.marker)<0)&&(r=l.marker)}return r}function ol(e,t,i,r,n){var l=w(e,t),o=Fe&&l.markedSpans;if(o)for(var a=0;a=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function we(e){for(var t;t=ll(e);)e=t.find(-1,!0).line;return e}function Sa(e){for(var t;t=Ur(e);)e=t.find(1,!0).line;return e}function La(e){for(var t,i;t=Ur(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function zi(e,t){var i=w(e,t),r=we(i);return i==r?t:H(r)}function al(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!_e(e,i))return t;for(;r=Ur(i);)i=r.find(1,!0).line;return H(i)+1}function _e(e,t){var i=Fe&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var Lt=function(e,t,i){this.text=e,il(this,t),this.height=i?i(this):1};Lt.prototype.lineNo=function(){return H(this)},Ct(Lt);function ka(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),rl(e),il(e,i);var n=r?r(e):1;n!=e.height&&Me(e,n)}function Ta(e){e.parent=null,rl(e)}var Ma={},Da={};function sl(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Da:Ma;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function ul(e,t){var i=bt("span",null,null,ie?"padding-right: .1px":null),r={pre:bt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Aa,la(e.display.measure)&&(o=He(l,e.doc.direction))&&(r.addToken=Wa(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Ha(l,r,Zn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=vi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=vi(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(na(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=vi(r.pre.className,r.textClass||"")),r}function Na(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Aa(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Oa(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",bi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==` diff --git a/public/admin-assets/assets/codemirror-I2c5QWqw.js.gz b/public/admin-assets/assets/codemirror-I2c5QWqw.js.gz new file mode 100644 index 0000000..d683f07 Binary files /dev/null and b/public/admin-assets/assets/codemirror-I2c5QWqw.js.gz differ diff --git a/public/admin-assets/assets/codemirror-J1AFzwAO.js.gz b/public/admin-assets/assets/codemirror-J1AFzwAO.js.gz deleted file mode 100644 index 0bfc582..0000000 Binary files a/public/admin-assets/assets/codemirror-J1AFzwAO.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/cssMode-CKlPhDK6.js b/public/admin-assets/assets/cssMode-BgfGO5tI.js similarity index 99% rename from public/admin-assets/assets/cssMode-CKlPhDK6.js rename to public/admin-assets/assets/cssMode-BgfGO5tI.js index f2a59de..4ed9b15 100644 --- a/public/admin-assets/assets/cssMode-CKlPhDK6.js +++ b/public/admin-assets/assets/cssMode-BgfGO5tI.js @@ -1,4 +1,4 @@ -import{e as x,R as Me,l as v,a as T,U as Pe}from"./editor.main-zqPJG_fq.js";import"./index-CgQH3-O6.js";var Fe=2*60*1e3,je=function(){function n(t){var a=this;this._defaults=t,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return a._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return a._stopWorker()})}return n.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},n.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},n.prototype._checkIfIdle=function(){if(this._worker){var t=Date.now()-this._lastUsedTime;t>Fe&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=x.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var t=this,a=[],r=0;r0&&(s.arguments=i),s}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.title)&&u.string(e.command)}n.is=a})(P||(P={}));var A;(function(n){function t(i,o){return{range:i,newText:o}}n.replace=t;function a(i,o){return{range:{start:i,end:i},newText:o}}n.insert=a;function r(i){return{range:i,newText:""}}n.del=r;function e(i){var o=i;return u.objectLiteral(o)&&u.string(o.newText)&&m.is(o.range)}n.is=e})(A||(A={}));var R;(function(n){function t(r,e,i){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),i!==void 0&&(o.description=i),o}n.create=t;function a(r){var e=r;return e!==void 0&&u.objectLiteral(e)&&u.string(e.label)&&(u.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(u.string(e.description)||e.description===void 0)}n.is=a})(R||(R={}));var _;(function(n){function t(a){var r=a;return typeof r=="string"}n.is=t})(_||(_={}));var E;(function(n){function t(i,o,s){return{range:i,newText:o,annotationId:s}}n.replace=t;function a(i,o,s){return{range:{start:i,end:i},newText:o,annotationId:s}}n.insert=a;function r(i,o){return{range:i,newText:"",annotationId:o}}n.del=r;function e(i){var o=i;return A.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}n.is=e})(E||(E={}));var V;(function(n){function t(r,e){return{textDocument:r,edits:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&O.is(e.textDocument)&&Array.isArray(e.edits)}n.is=a})(V||(V={}));var L;(function(n){function t(r,e,i){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="create"&&u.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(L||(L={}));var S;(function(n){function t(r,e,i,o){var s={kind:"rename",oldUri:r,newUri:e};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}n.create=t;function a(r){var e=r;return e&&e.kind==="rename"&&u.string(e.oldUri)&&u.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(S||(S={}));var F;(function(n){function t(r,e,i){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="delete"&&u.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||u.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||u.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(F||(F={}));var q;(function(n){function t(a){var r=a;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return u.string(e.kind)?L.is(e)||S.is(e)||F.is(e):V.is(e)}))}n.is=t})(q||(q={}));var W=function(){function n(t,a){this.edits=t,this.changeAnnotations=a}return n.prototype.insert=function(t,a,r){var e,i;if(r===void 0?e=A.insert(t,a):_.is(r)?(i=r,e=E.insert(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.insert(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.replace=function(t,a,r){var e,i;if(r===void 0?e=A.replace(t,a):_.is(r)?(i=r,e=E.replace(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.replace(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.delete=function(t,a){var r,e;if(a===void 0?r=A.del(t):_.is(a)?(e=a,r=E.del(t,a)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(a),r=E.del(t,e)),this.edits.push(r),e!==void 0)return e},n.prototype.add=function(t){this.edits.push(t)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ae=function(){function n(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(t,a){var r;if(_.is(t)?r=t:(r=this.nextId(),a=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(a===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=a,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(t){var a=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ae(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(V.is(r)){var e=new W(r.edits,a._changeAnnotations);a._textEditChanges[r.textDocument.uri]=e}})):t.changes&&Object.keys(t.changes).forEach(function(r){var e=new W(t.changes[r]);a._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(t){if(O.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a={uri:t.uri,version:t.version},r=this._textEditChanges[a.uri];if(!r){var e=[],i={textDocument:a,edits:e};this._workspaceEdit.documentChanges.push(i),r=new W(e,this._changeAnnotations),this._textEditChanges[a.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var e=[];this._workspaceEdit.changes[t]=e,r=new W(e),this._textEditChanges[t]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=L.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=L.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n.prototype.renameFile=function(t,a,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;R.is(r)||_.is(r)?i=r:e=r;var o,s;if(i===void 0?o=S.create(t,a,e):(s=_.is(i)?i:this._changeAnnotations.manage(i),o=S.create(t,a,e,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.deleteFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=F.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=F.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n})();var oe;(function(n){function t(r){return{uri:r}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)}n.is=a})(oe||(oe={}));var ue;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.integer(e.version)}n.is=a})(ue||(ue={}));var O;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&(e.version===null||u.integer(e.version))}n.is=a})(O||(O={}));var se;(function(n){function t(r,e,i,o){return{uri:r,languageId:e,version:i,text:o}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.string(e.languageId)&&u.integer(e.version)&&u.string(e.text)}n.is=a})(se||(se={}));var j;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(j||(j={}));(function(n){function t(a){var r=a;return r===n.PlainText||r===n.Markdown}n.is=t})(j||(j={}));var Q;(function(n){function t(a){var r=a;return u.objectLiteral(a)&&j.is(r.kind)&&u.string(r.value)}n.is=t})(Q||(Q={}));var l;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(l||(l={}));var G;(function(n){n.PlainText=1,n.Snippet=2})(G||(G={}));var ce;(function(n){n.Deprecated=1})(ce||(ce={}));var de;(function(n){function t(r,e,i){return{newText:r,insert:e,replace:i}}n.create=t;function a(r){var e=r;return e&&u.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=a})(de||(de={}));var fe;(function(n){n.asIs=1,n.adjustIndentation=2})(fe||(fe={}));var ge;(function(n){function t(a){return{label:a}}n.create=t})(ge||(ge={}));var le;(function(n){function t(a,r){return{items:a||[],isIncomplete:!!r}}n.create=t})(le||(le={}));var z;(function(n){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=t;function a(r){var e=r;return u.string(e)||u.objectLiteral(e)&&u.string(e.language)&&u.string(e.value)}n.is=a})(z||(z={}));var he;(function(n){function t(a){var r=a;return!!r&&u.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||u.typedArray(r.contents,z.is))&&(a.range===void 0||m.is(a.range))}n.is=t})(he||(he={}));var ve;(function(n){function t(a,r){return r?{label:a,documentation:r}:{label:a}}n.create=t})(ve||(ve={}));var pe;(function(n){function t(a,r){for(var e=[],i=2;i=0;f--){var p=c[f],b=i.offsetAt(p.range.start),d=i.offsetAt(p.range.end);if(d<=g)s=s.substring(0,b)+p.newText+s.substring(d,s.length);else throw new Error("Overlapping edit");g=b}return s}n.applyEdits=r;function e(i,o){if(i.length<=1)return i;var s=i.length/2|0,c=i.slice(0,s),g=i.slice(s);e(c,o),e(g,o);for(var f=0,p=0,b=0;fFe&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=x.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var t=this,a=[],r=0;r0&&(s.arguments=i),s}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.title)&&u.string(e.command)}n.is=a})(P||(P={}));var A;(function(n){function t(i,o){return{range:i,newText:o}}n.replace=t;function a(i,o){return{range:{start:i,end:i},newText:o}}n.insert=a;function r(i){return{range:i,newText:""}}n.del=r;function e(i){var o=i;return u.objectLiteral(o)&&u.string(o.newText)&&m.is(o.range)}n.is=e})(A||(A={}));var R;(function(n){function t(r,e,i){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),i!==void 0&&(o.description=i),o}n.create=t;function a(r){var e=r;return e!==void 0&&u.objectLiteral(e)&&u.string(e.label)&&(u.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(u.string(e.description)||e.description===void 0)}n.is=a})(R||(R={}));var _;(function(n){function t(a){var r=a;return typeof r=="string"}n.is=t})(_||(_={}));var E;(function(n){function t(i,o,s){return{range:i,newText:o,annotationId:s}}n.replace=t;function a(i,o,s){return{range:{start:i,end:i},newText:o,annotationId:s}}n.insert=a;function r(i,o){return{range:i,newText:"",annotationId:o}}n.del=r;function e(i){var o=i;return A.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}n.is=e})(E||(E={}));var V;(function(n){function t(r,e){return{textDocument:r,edits:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&O.is(e.textDocument)&&Array.isArray(e.edits)}n.is=a})(V||(V={}));var L;(function(n){function t(r,e,i){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="create"&&u.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(L||(L={}));var S;(function(n){function t(r,e,i,o){var s={kind:"rename",oldUri:r,newUri:e};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}n.create=t;function a(r){var e=r;return e&&e.kind==="rename"&&u.string(e.oldUri)&&u.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(S||(S={}));var F;(function(n){function t(r,e,i){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="delete"&&u.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||u.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||u.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(F||(F={}));var q;(function(n){function t(a){var r=a;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return u.string(e.kind)?L.is(e)||S.is(e)||F.is(e):V.is(e)}))}n.is=t})(q||(q={}));var W=function(){function n(t,a){this.edits=t,this.changeAnnotations=a}return n.prototype.insert=function(t,a,r){var e,i;if(r===void 0?e=A.insert(t,a):_.is(r)?(i=r,e=E.insert(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.insert(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.replace=function(t,a,r){var e,i;if(r===void 0?e=A.replace(t,a):_.is(r)?(i=r,e=E.replace(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.replace(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.delete=function(t,a){var r,e;if(a===void 0?r=A.del(t):_.is(a)?(e=a,r=E.del(t,a)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(a),r=E.del(t,e)),this.edits.push(r),e!==void 0)return e},n.prototype.add=function(t){this.edits.push(t)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ae=function(){function n(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(t,a){var r;if(_.is(t)?r=t:(r=this.nextId(),a=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(a===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=a,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(t){var a=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ae(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(V.is(r)){var e=new W(r.edits,a._changeAnnotations);a._textEditChanges[r.textDocument.uri]=e}})):t.changes&&Object.keys(t.changes).forEach(function(r){var e=new W(t.changes[r]);a._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(t){if(O.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a={uri:t.uri,version:t.version},r=this._textEditChanges[a.uri];if(!r){var e=[],i={textDocument:a,edits:e};this._workspaceEdit.documentChanges.push(i),r=new W(e,this._changeAnnotations),this._textEditChanges[a.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var e=[];this._workspaceEdit.changes[t]=e,r=new W(e),this._textEditChanges[t]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=L.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=L.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n.prototype.renameFile=function(t,a,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;R.is(r)||_.is(r)?i=r:e=r;var o,s;if(i===void 0?o=S.create(t,a,e):(s=_.is(i)?i:this._changeAnnotations.manage(i),o=S.create(t,a,e,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.deleteFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=F.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=F.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n})();var oe;(function(n){function t(r){return{uri:r}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)}n.is=a})(oe||(oe={}));var ue;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.integer(e.version)}n.is=a})(ue||(ue={}));var O;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&(e.version===null||u.integer(e.version))}n.is=a})(O||(O={}));var se;(function(n){function t(r,e,i,o){return{uri:r,languageId:e,version:i,text:o}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.string(e.languageId)&&u.integer(e.version)&&u.string(e.text)}n.is=a})(se||(se={}));var j;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(j||(j={}));(function(n){function t(a){var r=a;return r===n.PlainText||r===n.Markdown}n.is=t})(j||(j={}));var Q;(function(n){function t(a){var r=a;return u.objectLiteral(a)&&j.is(r.kind)&&u.string(r.value)}n.is=t})(Q||(Q={}));var l;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(l||(l={}));var G;(function(n){n.PlainText=1,n.Snippet=2})(G||(G={}));var ce;(function(n){n.Deprecated=1})(ce||(ce={}));var de;(function(n){function t(r,e,i){return{newText:r,insert:e,replace:i}}n.create=t;function a(r){var e=r;return e&&u.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=a})(de||(de={}));var fe;(function(n){n.asIs=1,n.adjustIndentation=2})(fe||(fe={}));var ge;(function(n){function t(a){return{label:a}}n.create=t})(ge||(ge={}));var le;(function(n){function t(a,r){return{items:a||[],isIncomplete:!!r}}n.create=t})(le||(le={}));var z;(function(n){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=t;function a(r){var e=r;return u.string(e)||u.objectLiteral(e)&&u.string(e.language)&&u.string(e.value)}n.is=a})(z||(z={}));var he;(function(n){function t(a){var r=a;return!!r&&u.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||u.typedArray(r.contents,z.is))&&(a.range===void 0||m.is(a.range))}n.is=t})(he||(he={}));var ve;(function(n){function t(a,r){return r?{label:a,documentation:r}:{label:a}}n.create=t})(ve||(ve={}));var pe;(function(n){function t(a,r){for(var e=[],i=2;i=0;f--){var p=c[f],b=i.offsetAt(p.range.start),d=i.offsetAt(p.range.end);if(d<=g)s=s.substring(0,b)+p.newText+s.substring(d,s.length);else throw new Error("Overlapping edit");g=b}return s}n.applyEdits=r;function e(i,o){if(i.length<=1)return i;var s=i.length/2|0,c=i.slice(0,s),g=i.slice(s);e(c,o),e(g,o);for(var f=0,p=0,b=0;f0&&t.push(a.length),this._lineOffsets=t}return this._lineOffsets},n.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var a=this.getLineOffsets(),r=0,e=a.length;if(e===0)return k.create(0,t);for(;rt?e=i:r=i+1}var o=r-1;return k.create(o,t-a[o])},n.prototype.offsetAt=function(t){var a=this.getLineOffsets();if(t.line>=a.length)return this._content.length;if(t.line<0)return 0;var r=a[t.line],e=t.line+1"u"}n.undefined=r;function e(d){return d===!0||d===!1}n.boolean=e;function i(d){return t.call(d)==="[object String]"}n.string=i;function o(d){return t.call(d)==="[object Number]"}n.number=o;function s(d,y,N){return t.call(d)==="[object Number]"&&y<=d&&d<=N}n.numberRange=s;function c(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}n.integer=c;function g(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}n.uinteger=g;function f(d){return t.call(d)==="[object Function]"}n.func=f;function p(d){return d!==null&&typeof d=="object"}n.objectLiteral=p;function b(d,y){return Array.isArray(d)&&d.every(y)}n.typedArray=b})(u||(u={}));var We=function(){function n(t,a,r){var e=this;this._languageId=t,this._worker=a,this._disposables=[],this._listener=Object.create(null);var i=function(s){var c=s.getLanguageId();if(c===e._languageId){var g;e._listener[s.uri.toString()]=s.onDidChangeContent(function(){window.clearTimeout(g),g=window.setTimeout(function(){return e._doValidate(s.uri,c)},500)}),e._doValidate(s.uri,c)}},o=function(s){x.setModelMarkers(s,e._languageId,[]);var c=s.uri.toString(),g=e._listener[c];g&&(g.dispose(),delete e._listener[c])};this._disposables.push(x.onDidCreateModel(i)),this._disposables.push(x.onWillDisposeModel(o)),this._disposables.push(x.onDidChangeModelLanguage(function(s){o(s.model),i(s.model)})),r.onDidChange(function(s){x.getModels().forEach(function(c){c.getLanguageId()===e._languageId&&(o(c),i(c))})}),this._disposables.push({dispose:function(){for(var s in e._listener)e._listener[s].dispose()}}),x.getModels().forEach(i)}return n.prototype.dispose=function(){this._disposables.forEach(function(t){return t&&t.dispose()}),this._disposables=[]},n.prototype._doValidate=function(t,a){this._worker(t).then(function(r){return r.doValidation(t.toString())}).then(function(r){var e=r.map(function(o){return He(t,o)}),i=x.getModel(t);i&&i.getLanguageId()===a&&x.setModelMarkers(i,a,e)}).then(void 0,function(r){console.error(r)})},n}();function Ue(n){switch(n){case I.Error:return T.Error;case I.Warning:return T.Warning;case I.Information:return T.Info;case I.Hint:return T.Hint;default:return T.Info}}function He(n,t){var a=typeof t.code=="number"?String(t.code):t.code;return{severity:Ue(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:a,source:t.source}}function C(n){if(n)return{character:n.column-1,line:n.lineNumber-1}}function Ve(n){if(n)return{start:{line:n.startLineNumber-1,character:n.startColumn-1},end:{line:n.endLineNumber-1,character:n.endColumn-1}}}function w(n){if(n)return new Me(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)}function Oe(n){return typeof n.insert<"u"&&typeof n.replace<"u"}function ze(n){var t=v.CompletionItemKind;switch(n){case l.Text:return t.Text;case l.Method:return t.Method;case l.Function:return t.Function;case l.Constructor:return t.Constructor;case l.Field:return t.Field;case l.Variable:return t.Variable;case l.Class:return t.Class;case l.Interface:return t.Interface;case l.Module:return t.Module;case l.Property:return t.Property;case l.Unit:return t.Unit;case l.Value:return t.Value;case l.Enum:return t.Enum;case l.Keyword:return t.Keyword;case l.Snippet:return t.Snippet;case l.Color:return t.Color;case l.File:return t.File;case l.Reference:return t.Reference}return t.Property}function J(n){if(n)return{range:w(n.range),text:n.newText}}function Xe(n){return n&&n.command==="editor.action.triggerSuggest"?{id:n.command,title:n.title,arguments:n.arguments}:void 0}var $e=function(){function n(t){this._worker=t}return Object.defineProperty(n.prototype,"triggerCharacters",{get:function(){return["/","-",":"]},enumerable:!1,configurable:!0}),n.prototype.provideCompletionItems=function(t,a,r,e){var i=t.uri;return this._worker(i).then(function(o){return o.doComplete(i.toString(),C(a))}).then(function(o){if(o){var s=t.getWordUntilPosition(a),c=new Me(a.lineNumber,s.startColumn,a.lineNumber,s.endColumn),g=o.items.map(function(f){var p={label:f.label,insertText:f.insertText||f.label,sortText:f.sortText,filterText:f.filterText,documentation:f.documentation,detail:f.detail,command:Xe(f.command),range:c,kind:ze(f.kind)};return f.textEdit&&(Oe(f.textEdit)?p.range={insert:w(f.textEdit.insert),replace:w(f.textEdit.replace)}:p.range=w(f.textEdit.range),p.insertText=f.textEdit.newText),f.additionalTextEdits&&(p.additionalTextEdits=f.additionalTextEdits.map(J)),f.insertTextFormat===G.Snippet&&(p.insertTextRules=v.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:o.isIncomplete,suggestions:g}}})},n}();function Be(n){return n&&typeof n=="object"&&typeof n.kind=="string"}function Te(n){return typeof n=="string"?{value:n}:Be(n)?n.kind==="plaintext"?{value:n.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:n.value}:{value:"```"+n.language+` `+n.value+"\n```\n"}}function qe(n){if(n)return Array.isArray(n)?n.map(Te):[Te(n)]}var Qe=function(){function n(t){this._worker=t}return n.prototype.provideHover=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.doHover(e.toString(),C(a))}).then(function(i){if(i)return{range:w(i.range),contents:qe(i.contents)}})},n}();function Ge(n){switch(n){case M.Read:return v.DocumentHighlightKind.Read;case M.Write:return v.DocumentHighlightKind.Write;case M.Text:return v.DocumentHighlightKind.Text}return v.DocumentHighlightKind.Text}var Je=function(){function n(t){this._worker=t}return n.prototype.provideDocumentHighlights=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.findDocumentHighlights(e.toString(),C(a))}).then(function(i){if(i)return i.map(function(o){return{range:w(o.range),kind:Ge(o.kind)}})})},n}();function Le(n){return{uri:Pe.parse(n.uri),range:w(n.range)}}var Ye=function(){function n(t){this._worker=t}return n.prototype.provideDefinition=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.findDefinition(e.toString(),C(a))}).then(function(i){if(i)return[Le(i)]})},n}(),Ze=function(){function n(t){this._worker=t}return n.prototype.provideReferences=function(t,a,r,e){var i=t.uri;return this._worker(i).then(function(o){return o.findReferences(i.toString(),C(a))}).then(function(o){if(o)return o.map(Le)})},n}();function Ke(n){if(!(!n||!n.changes)){var t=[];for(var a in n.changes)for(var r=Pe.parse(a),e=0,i=n.changes[a];eyr[k]})}}}return Object.freeze(Object.defineProperty(co,Symbol.toStringTag,{value:"Module"}))}var o2={exports:{}},qv={exports:{}},i2;function u9(){return i2||(i2=1,function(co,Es){(function(lt,yr){yr(Es)})(n2,function(lt){/*! ***************************************************************************** +import{p as n2,o as s9}from"./index-Hn-s1JD5.js";function l9(co,Es){for(var lt=0;ltyr[k]})}}}return Object.freeze(Object.defineProperty(co,Symbol.toStringTag,{value:"Module"}))}var o2={exports:{}},qv={exports:{}},i2;function u9(){return i2||(i2=1,function(co,Es){(function(lt,yr){yr(Es)})(n2,function(lt){/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any diff --git a/public/admin-assets/assets/echarts-wordcloud-Bc14w0eo.js.gz b/public/admin-assets/assets/echarts-wordcloud-Bc14w0eo.js.gz new file mode 100644 index 0000000..42c1e58 Binary files /dev/null and b/public/admin-assets/assets/echarts-wordcloud-Bc14w0eo.js.gz differ diff --git a/public/admin-assets/assets/echarts-wordcloud-DHegDQJt.js.gz b/public/admin-assets/assets/echarts-wordcloud-DHegDQJt.js.gz deleted file mode 100644 index ea382fa..0000000 Binary files a/public/admin-assets/assets/echarts-wordcloud-DHegDQJt.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/editor.main-zqPJG_fq.js b/public/admin-assets/assets/editor.main-BblzkW2o.js similarity index 99% rename from public/admin-assets/assets/editor.main-zqPJG_fq.js rename to public/admin-assets/assets/editor.main-BblzkW2o.js index ed46abf..499e41b 100644 --- a/public/admin-assets/assets/editor.main-zqPJG_fq.js +++ b/public/admin-assets/assets/editor.main-BblzkW2o.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["assets/tsMode-BPYiYr8N.js","assets/index-CgQH3-O6.js","assets/index-BCzH1Rt1.css","assets/cssMode-CKlPhDK6.js","assets/jsonMode-BJbtHWja.js","assets/htmlMode-CQSxHhWo.js","assets/handlebars-DC8CSLaW.js","assets/html-COPzPFoE.js","assets/javascript-B79qqSz8.js","assets/typescript-Dm-085YJ.js","assets/liquid-D_9SLMGA.js","assets/python-Bknl8K_6.js","assets/razor-jyPxjyDD.js","assets/xml-DBBf7RkZ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{n as ce}from"./index-CgQH3-O6.js";function EB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function p(s,e,...t){return EB(e,t)}var Pw;const m_="en";let tb=!1,ib=!1,__=!1,wR=!1,SR=!1,BD=!1,gm,Fw=m_,NB,Na;const Et=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Et.vscode<"u"&&typeof Et.vscode.process<"u"?qi=Et.vscode.process:typeof process<"u"&&(qi=process);const TB=typeof((Pw=qi==null?void 0:qi.versions)===null||Pw===void 0?void 0:Pw.electron)=="string"&&qi.type==="renderer";if(typeof navigator=="object"&&!TB)Na=navigator.userAgent,tb=Na.indexOf("Windows")>=0,ib=Na.indexOf("Macintosh")>=0,BD=(Na.indexOf("Macintosh")>=0||Na.indexOf("iPad")>=0||Na.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,__=Na.indexOf("Linux")>=0,SR=!0,gm=navigator.language,Fw=gm;else if(typeof qi=="object"){tb=qi.platform==="win32",ib=qi.platform==="darwin",__=qi.platform==="linux",__&&qi.env.SNAP&&qi.env.SNAP_REVISION,gm=m_,Fw=m_;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];gm=e.locale,Fw=t||m_,NB=e._translationsConfigFile}catch{}wR=!0}else console.error("Unable to resolve platform.");const Ai=tb,Me=ib,Cn=__,uo=wR,Nu=SR,lr=BD,AB=Na,KS=function(){if(Et.setImmediate)return Et.setImmediate.bind(Et);if(typeof Et.postMessage=="function"&&!Et.importScripts){let t=[];Et.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let o=0,r=t.length;o{const o=++i;t.push({id:o,callback:n}),Et.postMessage({vscodeSetImmediateId:o},"*")}}if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Ms=ib||BD?2:tb?1:3;let WI=!0,VI=!1;function yR(){if(!VI){VI=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,WI=new Uint16Array(s.buffer)[0]===513}return WI}const LR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function RB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of LR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DR=RB();function nb(s){let e=DR;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const MB={maxLen:1e3,windowSize:15,timeBudget:150};function sb(s,e,t,i,n=MB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),sb(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const h=r-n.windowSize*d;e.lastIndex=Math.max(0,h);const c=OB(e,t,r,a);if(!c&&l||(l=c,h<=0))break;a=h}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function OB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ta=8;class xR{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class PB{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class kR{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class pi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class Tu{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class mh{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function pe(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ze extends mh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return pe(e,this.defaultValue)}}function qS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class St extends mh{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return qS(e,t,i,n)}validate(e){return St.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class er extends mh{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class kn extends mh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return kn.string(e,this.defaultValue)}}function mn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class ti extends mh{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return mn(e,this.defaultValue,this._allowedValues)}}class nf extends pi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function FB(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class BB extends pi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class WB extends pi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:pe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:pe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function VB(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(wi||(wi={}));function HB(s){switch(s){case"line":return wi.Line;case"block":return wi.Block;case"underline":return wi.Underline;case"line-thin":return wi.LineThin;case"block-outline":return wi.BlockOutline;case"underline-thin":return wi.UnderlineThin}}class zB extends Tu{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}class UB extends ze{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class $B extends pi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:pe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":mn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":mn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:pe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:pe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:pe(t.loop,this.defaultValue.loop)}}}class Hn extends pi{constructor(){super(44,"fontLigatures",Hn.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Hn.OFF:e==="true"?Hn.ON:e:e?Hn.ON:Hn.OFF}}Hn.OFF='"liga" off, "calt" off';Hn.ON='"liga" on, "calt" on';class jB extends Tu{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class KB extends mh{constructor(){super(45,"fontSize",Hi.fontSize,{type:"number",minimum:6,maximum:100,default:Hi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){let t=er.float(e,this.defaultValue);return t===0?Hi.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Zo extends pi{constructor(){super(46,"fontWeight",Hi.fontWeight,{anyOf:[{type:"number",minimum:Zo.MINIMUM_VALUE,maximum:Zo.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Zo.SUGGESTION_VALUES}],default:Hi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(St.clampedInt(e,Hi.fontWeight,Zo.MINIMUM_VALUE,Zo.MAXIMUM_VALUE))}}Zo.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Zo.MINIMUM_VALUE=1;Zo.MAXIMUM_VALUE=1e3;class qB extends pi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:mn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:mn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:mn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:mn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:mn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:mn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:kn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:kn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:kn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:kn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:kn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class GB extends pi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),delay:St.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:pe(t.sticky,this.defaultValue.sticky),above:pe(t.above,this.defaultValue.above)}}}class Ec extends Tu{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return Ec.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,C=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,w=c?2:3;let y=Math.floor(o*n);const k=y/o;let L=!1,D=!1,N=w*u,B=u/o,O=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:we,extraLinesBeyondLastLine:Se,desiredRatio:Tt,minimapLineCount:bt}=Ec.computeContainedMinimapLineCount({viewLineCount:C,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(C/bt>1)L=!0,D=!0,u=1,N=1,B=u/o;else{let Pt=!1,dt=u+1;if(g==="fit"){const Sn=Math.ceil((C+Se)*N);v&&a&&b<=t.stableFitRemainingWidth?(Pt=!0,dt=t.stableFitMaxMinimapScale):Pt=Sn>y}if(g==="fill"||Pt){L=!0;const Sn=u;N=Math.min(l*o,Math.max(1,Math.floor(1/Tt))),v&&a&&b<=t.stableFitRemainingWidth&&(dt=t.stableFitMaxMinimapScale),u=Math.min(dt,Math.max(1,Math.floor(N/w))),u>Sn&&(O=Math.min(2,u/Sn)),B=u/o/O,y=Math.ceil(Math.max(we,C+Se)*N),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const $=Math.floor(f*B),K=Math.min($,Math.max(0,Math.floor((b-_-2)*B/(d+B)))+Ta);let le=Math.floor(o*K);const de=le/o;le=Math.floor(le*O);const _e=c?1:2,De=m==="left"?0:i-K-_;return{renderMinimap:_e,minimapLeft:De,minimapWidth:K,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:le,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:de,minimapCanvasOuterHeight:k}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,h=t.viewLineCount,c=e.get(121),u=c==="inherit"?e.get(120):c,f=u==="inherit"?e.get(116):u,g=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,C=e.get(49),b=e.get(59).renderType!==0,v=e.get(60),w=e.get(93),y=e.get(64),k=e.get(91),L=k.verticalScrollbarSize,D=k.verticalHasArrows,N=k.arrowSize,B=k.horizontalScrollbarSize,O=e.get(57),$=e.get(37);let K;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const Xs=parseFloat(O.substr(0,O.length-2));K=St.clampedInt(Xs*a,0,0,1e3)}else K=St.clampedInt(O,0,0,1e3);$&&(K+=16);let le=0;if(b){const Xs=Math.max(r,v);le=Math.round(Xs*l)}let de=0;C&&(de=o);let _e=0,De=_e+de,we=De+le,Se=we+K;const Tt=i-de-le-K;let bt=!1,xt=!1,Pt=-1;m!==2&&(u==="inherit"&&_?(bt=!0,xt=!0):f==="on"||f==="bounded"?xt=!0:f==="wordWrapColumn"&&(Pt=g));const dt=Ec._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:Tt,isViewportWrapping:xt},t.memory||new kR);dt.renderMinimap!==0&&dt.minimapLeft===0&&(_e+=dt.minimapWidth,De+=dt.minimapWidth,we+=dt.minimapWidth,Se+=dt.minimapWidth);const Sn=Tt-dt.minimapWidth,No=Math.max(1,Math.floor((Sn-L-2)/a)),xr=D?N:0;return xt&&(Pt=Math.max(1,No),f==="bounded"&&(Pt=Math.min(Pt,g))),{width:i,height:n,glyphMarginLeft:_e,glyphMarginWidth:de,lineNumbersLeft:De,lineNumbersWidth:le,decorationsLeft:we,decorationsWidth:K,contentLeft:Se,contentWidth:Sn,minimap:dt,viewportColumn:No,isWordWrapMinified:bt,isViewportWrapping:xt,wrappingColumn:Pt,verticalScrollbarWidth:L,horizontalScrollbarHeight:B,overviewRuler:{top:xr,width:L,height:n-2*xr,right:0}}}}class ZB extends pi{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class YB extends pi{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),fontSize:St.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:kn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class XB extends er{constructor(){super(58,"lineHeight",Hi.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +const __vite__fileDeps=["assets/tsMode-BnGu4F7B.js","assets/index-Hn-s1JD5.js","assets/index-BCzH1Rt1.css","assets/cssMode-BgfGO5tI.js","assets/jsonMode-DlxCG009.js","assets/htmlMode-DQtrbM7a.js","assets/handlebars-HvTq5gyi.js","assets/html-DFebxkkb.js","assets/javascript-FIJUHX4Q.js","assets/typescript-B7B4_omT.js","assets/liquid-Cj9GJa6P.js","assets/python-SnQgAngQ.js","assets/razor-Bmb5iKBj.js","assets/xml-D3ZpXmrN.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{n as ce}from"./index-Hn-s1JD5.js";function EB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function p(s,e,...t){return EB(e,t)}var Pw;const m_="en";let tb=!1,ib=!1,__=!1,wR=!1,SR=!1,BD=!1,gm,Fw=m_,NB,Na;const Et=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Et.vscode<"u"&&typeof Et.vscode.process<"u"?qi=Et.vscode.process:typeof process<"u"&&(qi=process);const TB=typeof((Pw=qi==null?void 0:qi.versions)===null||Pw===void 0?void 0:Pw.electron)=="string"&&qi.type==="renderer";if(typeof navigator=="object"&&!TB)Na=navigator.userAgent,tb=Na.indexOf("Windows")>=0,ib=Na.indexOf("Macintosh")>=0,BD=(Na.indexOf("Macintosh")>=0||Na.indexOf("iPad")>=0||Na.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,__=Na.indexOf("Linux")>=0,SR=!0,gm=navigator.language,Fw=gm;else if(typeof qi=="object"){tb=qi.platform==="win32",ib=qi.platform==="darwin",__=qi.platform==="linux",__&&qi.env.SNAP&&qi.env.SNAP_REVISION,gm=m_,Fw=m_;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];gm=e.locale,Fw=t||m_,NB=e._translationsConfigFile}catch{}wR=!0}else console.error("Unable to resolve platform.");const Ai=tb,Me=ib,Cn=__,uo=wR,Nu=SR,lr=BD,AB=Na,KS=function(){if(Et.setImmediate)return Et.setImmediate.bind(Et);if(typeof Et.postMessage=="function"&&!Et.importScripts){let t=[];Et.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let o=0,r=t.length;o{const o=++i;t.push({id:o,callback:n}),Et.postMessage({vscodeSetImmediateId:o},"*")}}if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Ms=ib||BD?2:tb?1:3;let WI=!0,VI=!1;function yR(){if(!VI){VI=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,WI=new Uint16Array(s.buffer)[0]===513}return WI}const LR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function RB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of LR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DR=RB();function nb(s){let e=DR;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const MB={maxLen:1e3,windowSize:15,timeBudget:150};function sb(s,e,t,i,n=MB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),sb(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const h=r-n.windowSize*d;e.lastIndex=Math.max(0,h);const c=OB(e,t,r,a);if(!c&&l||(l=c,h<=0))break;a=h}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function OB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ta=8;class xR{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class PB{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class kR{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class pi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class Tu{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class mh{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function pe(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ze extends mh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return pe(e,this.defaultValue)}}function qS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class St extends mh{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return qS(e,t,i,n)}validate(e){return St.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class er extends mh{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class kn extends mh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return kn.string(e,this.defaultValue)}}function mn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class ti extends mh{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return mn(e,this.defaultValue,this._allowedValues)}}class nf extends pi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function FB(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class BB extends pi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class WB extends pi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:pe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:pe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function VB(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(wi||(wi={}));function HB(s){switch(s){case"line":return wi.Line;case"block":return wi.Block;case"underline":return wi.Underline;case"line-thin":return wi.LineThin;case"block-outline":return wi.BlockOutline;case"underline-thin":return wi.UnderlineThin}}class zB extends Tu{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}class UB extends ze{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class $B extends pi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:pe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":mn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":mn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:pe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:pe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:pe(t.loop,this.defaultValue.loop)}}}class Hn extends pi{constructor(){super(44,"fontLigatures",Hn.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Hn.OFF:e==="true"?Hn.ON:e:e?Hn.ON:Hn.OFF}}Hn.OFF='"liga" off, "calt" off';Hn.ON='"liga" on, "calt" on';class jB extends Tu{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class KB extends mh{constructor(){super(45,"fontSize",Hi.fontSize,{type:"number",minimum:6,maximum:100,default:Hi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){let t=er.float(e,this.defaultValue);return t===0?Hi.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Zo extends pi{constructor(){super(46,"fontWeight",Hi.fontWeight,{anyOf:[{type:"number",minimum:Zo.MINIMUM_VALUE,maximum:Zo.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Zo.SUGGESTION_VALUES}],default:Hi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(St.clampedInt(e,Hi.fontWeight,Zo.MINIMUM_VALUE,Zo.MAXIMUM_VALUE))}}Zo.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Zo.MINIMUM_VALUE=1;Zo.MAXIMUM_VALUE=1e3;class qB extends pi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:mn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:mn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:mn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:mn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:mn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:mn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:kn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:kn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:kn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:kn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:kn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class GB extends pi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),delay:St.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:pe(t.sticky,this.defaultValue.sticky),above:pe(t.above,this.defaultValue.above)}}}class Ec extends Tu{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return Ec.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,C=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,w=c?2:3;let y=Math.floor(o*n);const k=y/o;let L=!1,D=!1,N=w*u,B=u/o,O=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:we,extraLinesBeyondLastLine:Se,desiredRatio:Tt,minimapLineCount:bt}=Ec.computeContainedMinimapLineCount({viewLineCount:C,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(C/bt>1)L=!0,D=!0,u=1,N=1,B=u/o;else{let Pt=!1,dt=u+1;if(g==="fit"){const Sn=Math.ceil((C+Se)*N);v&&a&&b<=t.stableFitRemainingWidth?(Pt=!0,dt=t.stableFitMaxMinimapScale):Pt=Sn>y}if(g==="fill"||Pt){L=!0;const Sn=u;N=Math.min(l*o,Math.max(1,Math.floor(1/Tt))),v&&a&&b<=t.stableFitRemainingWidth&&(dt=t.stableFitMaxMinimapScale),u=Math.min(dt,Math.max(1,Math.floor(N/w))),u>Sn&&(O=Math.min(2,u/Sn)),B=u/o/O,y=Math.ceil(Math.max(we,C+Se)*N),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const $=Math.floor(f*B),K=Math.min($,Math.max(0,Math.floor((b-_-2)*B/(d+B)))+Ta);let le=Math.floor(o*K);const de=le/o;le=Math.floor(le*O);const _e=c?1:2,De=m==="left"?0:i-K-_;return{renderMinimap:_e,minimapLeft:De,minimapWidth:K,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:le,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:de,minimapCanvasOuterHeight:k}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,h=t.viewLineCount,c=e.get(121),u=c==="inherit"?e.get(120):c,f=u==="inherit"?e.get(116):u,g=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,C=e.get(49),b=e.get(59).renderType!==0,v=e.get(60),w=e.get(93),y=e.get(64),k=e.get(91),L=k.verticalScrollbarSize,D=k.verticalHasArrows,N=k.arrowSize,B=k.horizontalScrollbarSize,O=e.get(57),$=e.get(37);let K;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const Xs=parseFloat(O.substr(0,O.length-2));K=St.clampedInt(Xs*a,0,0,1e3)}else K=St.clampedInt(O,0,0,1e3);$&&(K+=16);let le=0;if(b){const Xs=Math.max(r,v);le=Math.round(Xs*l)}let de=0;C&&(de=o);let _e=0,De=_e+de,we=De+le,Se=we+K;const Tt=i-de-le-K;let bt=!1,xt=!1,Pt=-1;m!==2&&(u==="inherit"&&_?(bt=!0,xt=!0):f==="on"||f==="bounded"?xt=!0:f==="wordWrapColumn"&&(Pt=g));const dt=Ec._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:Tt,isViewportWrapping:xt},t.memory||new kR);dt.renderMinimap!==0&&dt.minimapLeft===0&&(_e+=dt.minimapWidth,De+=dt.minimapWidth,we+=dt.minimapWidth,Se+=dt.minimapWidth);const Sn=Tt-dt.minimapWidth,No=Math.max(1,Math.floor((Sn-L-2)/a)),xr=D?N:0;return xt&&(Pt=Math.max(1,No),f==="bounded"&&(Pt=Math.min(Pt,g))),{width:i,height:n,glyphMarginLeft:_e,glyphMarginWidth:de,lineNumbersLeft:De,lineNumbersWidth:le,decorationsLeft:we,decorationsWidth:K,contentLeft:Se,contentWidth:Sn,minimap:dt,viewportColumn:No,isWordWrapMinified:bt,isViewportWrapping:xt,wrappingColumn:Pt,verticalScrollbarWidth:L,horizontalScrollbarHeight:B,overviewRuler:{top:xr,width:L,height:n-2*xr,right:0}}}}class ZB extends pi{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class YB extends pi{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),fontSize:St.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:kn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class XB extends er{constructor(){super(58,"lineHeight",Hi.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class QB extends pi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),size:mn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:mn(t.side,this.defaultValue.side,["right","left"]),showSlider:mn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:pe(t.renderCharacters,this.defaultValue.renderCharacters),scale:St.clampedInt(t.scale,1,1,3),maxColumn:St.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function JB(s){return s==="ctrlCmd"?Me?"metaKey":"ctrlKey":"altKey"}class e5 extends pi{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:St.clampedInt(t.top,0,0,1e3),bottom:St.clampedInt(t.bottom,0,0,1e3)}}}class t5 extends pi{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),cycle:pe(t.cycle,this.defaultValue.cycle)}}}class i5 extends Tu{constructor(){super(127)}compute(e,t,i){return e.pixelRatio}}class n5 extends pi{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:p("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:pe(t.other,this.defaultValue.other),comments:pe(t.comments,this.defaultValue.comments),strings:pe(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class s5 extends pi{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function WD(s){const e=s.get(86);return e==="editable"?s.get(80):e!=="on"}class o5 extends pi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if(typeof i=="number")t.push({column:St.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:St.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function HI(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let r5=class extends pi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=St.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=St.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:St.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:HI(t.vertical,this.defaultValue.vertical),horizontal:HI(t.horizontal,this.defaultValue.horizontal),useShadows:pe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:pe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:pe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:pe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:pe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:St.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:St.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:pe(t.scrollByPage,this.defaultValue.scrollByPage)}}};class a5 extends pi{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),mode:mn(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class l5 extends pi{constructor(){const e={enabled:Gi.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class d5 extends pi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:zI(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:zI(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:pe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:pe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:pe(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function zI(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class h5 extends pi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:mn(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:pe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:pe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:pe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:pe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:pe(t.showIcons,this.defaultValue.showIcons),showStatusBar:pe(t.showStatusBar,this.defaultValue.showStatusBar),preview:pe(t.preview,this.defaultValue.preview),previewMode:mn(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:pe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:pe(t.showMethods,this.defaultValue.showMethods),showFunctions:pe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:pe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:pe(t.showDeprecated,this.defaultValue.showDeprecated),showFields:pe(t.showFields,this.defaultValue.showFields),showVariables:pe(t.showVariables,this.defaultValue.showVariables),showClasses:pe(t.showClasses,this.defaultValue.showClasses),showStructs:pe(t.showStructs,this.defaultValue.showStructs),showInterfaces:pe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:pe(t.showModules,this.defaultValue.showModules),showProperties:pe(t.showProperties,this.defaultValue.showProperties),showEvents:pe(t.showEvents,this.defaultValue.showEvents),showOperators:pe(t.showOperators,this.defaultValue.showOperators),showUnits:pe(t.showUnits,this.defaultValue.showUnits),showValues:pe(t.showValues,this.defaultValue.showValues),showConstants:pe(t.showConstants,this.defaultValue.showConstants),showEnums:pe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:pe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:pe(t.showKeywords,this.defaultValue.showKeywords),showWords:pe(t.showWords,this.defaultValue.showWords),showColors:pe(t.showColors,this.defaultValue.showColors),showFiles:pe(t.showFiles,this.defaultValue.showFiles),showReferences:pe(t.showReferences,this.defaultValue.showReferences),showFolders:pe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:pe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:pe(t.showSnippets,this.defaultValue.showSnippets),showUsers:pe(t.showUsers,this.defaultValue.showUsers),showIssues:pe(t.showIssues,this.defaultValue.showIssues)}}}class c5 extends pi{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:pe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class u5 extends Tu{constructor(){super(128,[80])}compute(e,t,i){return t.get(80)?!0:e.tabFocusMode}}function f5(s){switch(s){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class g5 extends Tu{constructor(){super(130,[129])}compute(e,t,i){const n=t.get(129);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}const p5="Consolas, 'Courier New', monospace",m5="Menlo, Monaco, 'Courier New', monospace",_5="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",Hi={fontFamily:Me?m5:Cn?_5:p5,fontWeight:"normal",fontSize:Me?12:14,lineHeight:0,letterSpacing:0},Gi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},pc=[];function Q(s){return pc[s.id]=s,s}const Do={acceptSuggestionOnCommitCharacter:Q(new ze(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Q(new ti(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Q(new BB),accessibilityPageSize:Q(new St(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:Q(new kn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:Q(new ti(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Q(new ti(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Q(new ti(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Q(new ti(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Q(new nf(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],FB,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Q(new ze(10,"automaticLayout",!1)),autoSurround:Q(new ti(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Q(new l5),bracketPairGuides:Q(new d5),stickyTabStops:Q(new ze(103,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Q(new ze(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Q(new kn(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Q(new St(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:Q(new ze(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:Q(new ze(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Q(new WB),contextmenu:Q(new ze(20,"contextmenu",!0)),copyWithSyntaxHighlighting:Q(new ze(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Q(new nf(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],VB,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Q(new ze(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Q(new nf(24,"cursorStyle",wi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],HB,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Q(new St(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Q(new ti(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Q(new St(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Q(new ze(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:Q(new ze(29,"disableMonospaceOptimizations",!1)),domReadOnly:Q(new ze(30,"domReadOnly",!1)),dragAndDrop:Q(new ze(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Q(new UB),extraEditorClassName:Q(new kn(33,"extraEditorClassName","")),fastScrollSensitivity:Q(new er(34,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Q(new $B),fixedOverflowWidgets:Q(new ze(36,"fixedOverflowWidgets",!1)),folding:Q(new ze(37,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Q(new ti(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Q(new ze(39,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Q(new ze(40,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:Q(new ze(41,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Q(new kn(42,"fontFamily",Hi.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:Q(new jB),fontLigatures2:Q(new Hn),fontSize:Q(new KB),fontWeight:Q(new Zo),formatOnPaste:Q(new ze(47,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Q(new ze(48,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Q(new ze(49,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Q(new qB),hideCursorInOverviewRuler:Q(new ze(51,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Q(new GB),inDiffEditor:Q(new ze(53,"inDiffEditor",!1)),letterSpacing:Q(new er(55,"letterSpacing",Hi.letterSpacing,s=>er.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Q(new ZB),lineDecorationsWidth:Q(new mh(57,"lineDecorationsWidth",10)),lineHeight:Q(new XB),lineNumbers:Q(new s5),lineNumbersMinChars:Q(new St(60,"lineNumbersMinChars",5,1,300)),linkedEditing:Q(new ze(61,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:Q(new ze(62,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Q(new ti(63,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:Q(new QB),mouseStyle:Q(new ti(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Q(new er(66,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Q(new ze(67,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Q(new ze(68,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Q(new nf(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],JB,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Q(new ti(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:Q(new ze(71,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Q(new ze(72,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Q(new St(73,"overviewRulerLanes",3,0,3)),padding:Q(new e5),parameterHints:Q(new t5),peekWidgetDefaultFocus:Q(new ti(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Q(new ze(77,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Q(new n5),quickSuggestionsDelay:Q(new St(79,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Q(new ze(80,"readOnly",!1)),renameOnType:Q(new ze(81,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Q(new ze(82,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Q(new ze(83,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Q(new ti(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Q(new ze(85,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Q(new ti(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Q(new ti(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Q(new St(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:Q(new ze(89,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Q(new o5),scrollbar:Q(new r5),scrollBeyondLastColumn:Q(new St(92,"scrollBeyondLastColumn",5,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Q(new ze(93,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Q(new ze(94,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Q(new ze(95,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Cn})),selectionHighlight:Q(new ze(96,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Q(new ze(97,"selectOnLineNumbers",!0)),showFoldingControls:Q(new ti(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Q(new ze(99,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:Q(new ze(124,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Q(new YB),snippetSuggestions:Q(new ti(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Q(new c5),smoothScrolling:Q(new ze(102,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Q(new St(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Q(new h5),inlineSuggest:Q(new a5),suggestFontSize:Q(new St(106,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:Q(new St(107,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:Q(new ze(108,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Q(new ti(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Q(new ti(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:Q(new St(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:Q(new ti(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Q(new ze(113,"useShadowDOM",!0)),useTabStops:Q(new ze(114,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:Q(new kn(115,"wordSeparators",LR,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Q(new ti(116,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Q(new kn(117,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Q(new kn(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Q(new St(119,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Q(new ti(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Q(new ti(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:Q(new nf(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],f5,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:Q(new ti(123,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:Q(new zB),pixelRatio:Q(new i5),tabFocusMode:Q(new u5),layoutInfo:Q(new Ec),wrappingInfo:Q(new g5)};class b5{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+` @@ -616,7 +616,7 @@ ${e.toString()}`}}class wC{constructor(e=new qg,t=!1,i){this._activeInstantiatio `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=` `,this.value+=t,this.value+="\n```\n",this}}function dg(s){return D2(s)?!s.value:Array.isArray(s)?s.every(dg):!0}function D2(s){return s instanceof ma?!0:s&&typeof s=="object"?typeof s.value=="string"&&(typeof s.isTrusted=="boolean"||s.isTrusted===void 0)&&(typeof s.supportThemeIcons=="boolean"||s.supportThemeIcons===void 0):!1}function kG(s){return s.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function oS(s){return s&&s.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function IG(s){const e=[],t=s.split("|").map(n=>n.trim());s=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),r=n?n[1]:"",a=o?o[1]:"",l=isFinite(parseInt(a)),d=isFinite(parseInt(r));l&&e.push(`width="${a}"`),d&&e.push(`height="${r}"`)}return{href:s,dimensions:e}}var CL=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function EG(s,e){Gs(e)?s.title=e:e!=null&&e.markdownNotSupportedFallback?s.title=e.markdownNotSupportedFallback:s.removeAttribute("title")}class NG{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return CL(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(e===void 0||Gs(e)||e instanceof HTMLElement)n=e;else if(!Bf(e.markdown))n=(i=e.markdown)!==null&&i!==void 0?i:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new ln;const o=this._cancellationTokenSource.token;if(n=yield e.markdown(o),this.isDisposed||o.isCancellationRequested)return}this.show(n,t)})}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}i==null||i.dispose()}hasContent(e){return e?D2(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function TG(s,e,t){let i,n;const o=(h,c)=>{var u;h&&(n==null||n.dispose(),n=void 0),c&&(i==null||i.dispose(),i=void 0),(u=s.onDidHideHover)===null||u===void 0||u.call(s)},r=(h,c,u)=>new hn(()=>CL(this,void 0,void 0,function*(){(!n||n.isDisposed)&&(n=new NG(s,u||e,h>0),yield n.update(t,c))}),h),a=()=>{if(i)return;const h=new X,c=g=>o(!1,g.fromElement===e);h.add(q(e,ue.MOUSE_LEAVE,c,!0));const u=()=>o(!0,!0);h.add(q(e,ue.MOUSE_DOWN,u,!0));const f={targetElements:[e],dispose:()=>{}};if(s.placement===void 0||s.placement==="mouse"){const g=m=>f.x=m.x+10;h.add(q(e,ue.MOUSE_MOVE,g,!0))}h.add(r(s.delay,!1,f)),i=h},l=q(e,ue.MOUSE_OVER,a,!0);return{show:h=>{o(!1,!0),r(0,h)},hide:()=>{o(!0,!0)},update:h=>CL(this,void 0,void 0,function*(){t=h,yield n==null?void 0:n.update(t)}),dispose:()=>{l.dispose(),o(!0,!0)}}}class rS{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class Yk extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new rS(U(e,Y(".monaco-icon-label")))),this.labelContainer=U(this.domNode.element,Y(".monaco-icon-label-container"));const i=U(this.labelContainer,Y("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new rS(U(this.labelContainer,Y("span.monaco-icon-description-container")))),t!=null&&t.supportHighlights||t!=null&&t.supportIcons?this.nameNode=new MG(i,!!t.supportIcons):this.nameNode=new AG(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new bl(U(this.descriptionContainer.element,Y("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new rS(U(this.descriptionContainer.element,Y("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof bl?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)EG(e,t);else{const n=TG(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class AG{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&po(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=U(this.container,Y("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:i,end:i+n.length},r=t.map(a=>Bi.intersect(o,a)).filter(a=>!Bi.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+e.length,r})}class MG{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&po(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new bl(U(this.container,Y("a.label-name",{id:t==null?void 0:t.domId})),this.supportIcons)),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=RG(e,i,t==null?void 0:t.matches);for(let o=0;o{const s=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:s,collatorIsNumeric:s.resolvedOptions().numeric}});function OG(s,e,t=!1){const i=s||"",n=e||"",o=UT.value.collator.compare(i,n);return UT.value.collatorIsNumeric&&o===0&&i!==n?in.length)return 1}return 0}var x2=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},BG=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Ho=Y;class WG{constructor(e){this.hidden=!1,this._onChecked=new M,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Qp{get templateId(){return Qp.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=U(e,Ho(".quick-input-list-entry"));const i=U(t.entry,Ho("label.quick-input-list-label"));t.toDisposeTemplate.push(ii(i,ue.CLICK,d=>{t.checkbox.offsetParent||d.preventDefault()})),t.checkbox=U(i,Ho("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ii(t.checkbox,ue.CHANGE,d=>{t.element.checked=t.checkbox.checked}));const n=U(i,Ho(".quick-input-list-rows")),o=U(n,Ho(".quick-input-list-row")),r=U(n,Ho(".quick-input-list-row"));t.label=new Yk(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=U(o,Ho(".quick-input-list-entry-keybinding"));t.keybinding=new Xk(a,Ms);const l=U(r,Ho(".quick-input-list-label-meta"));return t.detail=new bl(l,!0),t.separator=U(t.entry,Ho(".quick-input-list-separator")),t.actionBar=new pa(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=qe(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(d=>i.checkbox.checked=d));const{labelHighlights:n,descriptionHighlights:o,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=o||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),i.detail.set(e.saneDetail,r),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((d,h)=>{let c=d.iconClass||(d.iconPath?_L(d.iconPath):void 0);d.alwaysVisible&&(c=c?`${c} always-visible`:"always-visible");const u=new Us(`id-${h}`,"",c,!0,()=>BG(this,void 0,void 0,function*(){e.fireButtonTriggered({button:d,item:e.item})}));return u.tooltip=d.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=qe(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=qe(e.toDisposeElement),e.toDisposeTemplate=qe(e.toDisposeTemplate)}}Qp.ID="listelement";class VG{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Qp.ID}}var qt;(function(s){s[s.First=1]="First",s[s.Second=2]="Second",s[s.Last=3]="Last",s[s.Next=4]="Next",s[s.Previous=5]="Previous",s[s.NextPage=6]="NextPage",s[s.PreviousPage=7]="PreviousPage"})(qt||(qt={}));class Qk{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new M,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new M,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new M,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new M,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new M,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new M,this.onKeyDown=this._onKeyDown.event,this._onLeave=new M,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=U(this.parent,Ho(".quick-input-list"));const n=new VG,o=new zG;this.list=i.createList("QuickInput",this.container,n,[new Qp],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Ot(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Me?r.metaKey:r.ctrlKey)&&this.list.setFocus(tn(this.list.length));break;case 16:const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break;case 18:const d=this.list.getFocus();d.length===1&&d[0]===this.list.length-1&&this._onLeave.fire();break}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(q(this.container,ue.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return he.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return he.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=qe(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,a,l;if(n.type!=="separator"){const d=o&&e[o-1],h=n.label&&n.label.replace(/\r?\n/g," "),c=n.meta&&n.meta.replace(/\r?\n/g," "),u=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),g=n.ariaLabel||[h,u,f].map(m=>zW(m)).filter(m=>!!m).join(", ");i.push(new WG({index:o,item:n,saneLabel:h,saneMeta:c,saneAriaLabel:g,saneDescription:u,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:d&&d.type==="separator"?d:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===qt.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=qt.First),e===qt.Previous&&this.list.getFocus()[0]===0&&(e=qt.Last),e===qt.Second&&this.list.length<2&&(e=qt.First),e){case qt.First:this.list.focusFirst();break;case qt.Second:this.list.focusNth(1);break;case qt.Last:this.list.focusLast();break;case qt.Next:this.list.focusNext();break;case qt.Previous:this.list.focusPrevious();break;case qt.NextPage:this.list.focusNextPage();break;case qt.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;const n=i.index&&this.inputElements[i.index-1];i.separator=n&&n.type==="separator"?n:void 0});else{let i;this.elements.forEach(n=>{const o=this.matchOnLabel?Kn(Um(e,zm(n.saneLabel))):void 0,r=this.matchOnDescription?Kn(Um(e,zm(n.saneDescription||""))):void 0,a=this.matchOnDetail?Kn(Um(e,zm(n.saneDetail||""))):void 0,l=this.matchOnMeta?Kn(Um(e,zm(n.saneMeta||""))):void 0;if(o||r||a||l?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){const d=n.index&&this.inputElements[n.index-1];i=d&&d.type==="separator"?d:i,i&&!n.hidden&&(n.separator=i,i=void 0)}})}const t=this.elements.filter(i=>!i.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((n,o)=>HG(n,o,i))}return this.elementsToIndexes=t.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=qe(this.elementDisposables),this.disposables=qe(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}x2([si],Qk.prototype,"onDidChangeFocus",null);x2([si],Qk.prototype,"onDidChangeSelection",null);function HG(s,e,t){const i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:PG(s.saneLabel,e.saneLabel,t)}class zG{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var $T=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Fn=Y,UG=Zs("quick-input-back",ie.arrowLeft),vL={iconClass:UG.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class Kv extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=Kv.noPromptMessage,this._severity=Wt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new M),this.onDidHideEmitter=this._register(new M),this.onDisposeEmitter=this._register(new M),this.visibleDisposables=this._register(new X),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!lr;this._ignoreFocusOut=e&&!lr,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=rp.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText=" ");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new hn,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===vL);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new Us(`id-${a}`,"",r.iconClass||_L(r.iconPath),!0,()=>$T(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const o=this.buttons.filter(r=>r!==vL);this.ui.rightActionBar.push(o.map((r,a)=>{const l=new Us(`id-${a}`,"",r.iconClass||_L(r.iconPath),!0,()=>$T(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,al(this.ui.message,...Rd(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Wt.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Kv.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ap extends Kv{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new M),this.onWillAcceptEmitter=this._register(new M),this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?eo.NONE:eo.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new M),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new M),this.onDidTriggerItemButtonEmitter=this._register(new M),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?_G:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(qt.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(qt.Next),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(qt.Previous):this.ui.list.focus(qt.Last),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 12:this.ui.list.focus(qt.NextPage),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 11:this.ui.list.focus(qt.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(qt.First),rt.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(qt.Last),rt.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&zs(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&zs(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&zs(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return q(this.ui.container,ue.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Ot(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||ap.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case eo.NONE:this._itemActivation=eo.FIRST;break;case eo.SECOND:this.ui.list.focus(qt.Second),this._itemActivation=eo.FIRST;break;case eo.LAST:this.ui.list.focus(qt.Last),this._itemActivation=eo.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(qt.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ap.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class qv extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this.onDidTriggerButtonEmitter=this._register(new M),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new M),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new M),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(q(window,ue.KEY_DOWN,e,!0)),this._register(q(window,ue.KEY_UP,e,!0)),this._register(q(window,ue.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=U(this.parentElement,Fn(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Yn(e),i=U(e,Fn(".quick-input-titlebar")),n=this._register(new pa(i));n.domNode.classList.add("quick-input-left-action-bar");const o=U(i,Fn(".quick-input-title")),r=this._register(new pa(i));r.domNode.classList.add("quick-input-right-action-bar");const a=U(e,Fn(".quick-input-description")),l=U(e,Fn(".quick-input-header")),d=U(l,Fn("input.quick-input-check-all"));d.type="checkbox",this._register(ii(d,ue.CHANGE,B=>{const O=d.checked;L.setAllVisibleChecked(O)})),this._register(q(d,ue.CLICK,B=>{(B.x||B.y)&&f.setFocus()}));const h=U(l,Fn(".quick-input-description")),c=U(l,Fn(".quick-input-and-message")),u=U(c,Fn(".quick-input-filter")),f=this._register(new xG(u));f.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U(u,Fn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const m=new mL(g,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),_=U(u,Fn(".quick-input-count"));_.setAttribute("aria-live","polite");const C=new mL(_,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),b=U(l,Fn(".quick-input-action")),v=new WT(b);v.label=p("ok","OK"),this._register(v.onDidClick(B=>{this.onDidAcceptEmitter.fire()}));const w=U(l,Fn(".quick-input-action")),y=new WT(w);y.label=p("custom","Custom"),this._register(y.onDidClick(B=>{this.onDidCustomEmitter.fire()}));const k=U(c,Fn(`#${this.idPrefix}message.quick-input-message`)),L=this._register(new Qk(e,this.idPrefix+"list",this.options));this._register(L.onChangedAllVisibleChecked(B=>{d.checked=B})),this._register(L.onChangedVisibleCount(B=>{m.setCount(B)})),this._register(L.onChangedCheckedCount(B=>{C.setCount(B)})),this._register(L.onLeave(()=>{setTimeout(()=>{f.setFocus(),this.controller instanceof ap&&this.controller.canSelectMany&&L.clearFocus()},0)})),this._register(L.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new pG(e);D.getContainer().classList.add("quick-input-progress");const N=Gc(e);return this._register(N),this._register(q(e,ue.FOCUS,B=>{this.previousFocusElement=B.relatedTarget instanceof HTMLElement?B.relatedTarget:void 0},!0)),this._register(N.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(rp.Blur),this.previousFocusElement=void 0})),this._register(q(e,ue.FOCUS,B=>{f.setFocus()})),this._register(q(e,ue.KEY_DOWN,B=>{const O=new Ot(B);switch(O.keyCode){case 3:rt.stop(B,!0),this.onDidAcceptEmitter.fire();break;case 9:rt.stop(B,!0),this.hide(rp.Gesture);break;case 2:if(!O.altKey&&!O.ctrlKey&&!O.metaKey){const $=[".action-label.codicon"];e.classList.contains("show-checkboxes")?$.push("input"):$.push("input[type=text]"),this.getUI().list.isDisplayed()&&$.push(".monaco-list");const K=e.querySelectorAll($.join(", "));O.shiftKey&&O.target===K[0]?(rt.stop(B,!0),K[K.length-1].focus()):!O.shiftKey&&O.target===K[K.length-1]&&(rt.stop(B,!0),K[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:a,description2:h,rightActionBar:r,checkAll:d,filterContainer:u,inputBox:f,visibleCountContainer:g,visibleCount:m,countContainer:_,count:C,okContainer:b,ok:v,message:k,customButtonContainer:w,customButton:y,list:L,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:B=>this.show(B),hide:()=>this.hide(),setVisibilities:B=>this.setVisibilities(B),setComboboxAccessibility:B=>this.setComboboxAccessibility(B),setEnabled:B=>this.setEnabled(B),setContextKey:B=>this.options.setContextKey(B)},this.updateStyles(),this.ui}pick(e,t={},i=Oe.None){return new Promise((n,o)=>{let r=h=>{r=n,t.onKeyMods&&t.onKeyMods(a.keyMods),n(h)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const d=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const h=a.activeItems[0];h&&(r(h),a.hide())}}),a.onDidChangeActive(h=>{const c=h[0];c&&t.onDidFocus&&t.onDidFocus(c)}),a.onDidChangeSelection(h=>{if(!a.canSelectMany){const c=h[0];c&&(r(c),a.hide())}}),a.onDidTriggerItemButton(h=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},h),{removeItem:()=>{const c=a.items.indexOf(h.item);if(c!==-1){const u=a.items.slice(),f=u.splice(c,1),g=a.activeItems.filter(_=>_!==f[0]),m=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,g&&(a.activeItems=g),a.keepScrollPosition=m}}}))),a.onDidChangeValue(h=>{l&&!h&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{qe(d),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([h,c])=>{l=c,a.busy=!1,a.items=h,a.canSelectMany&&(a.selectedItems=h.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,h=>{o(h),a.hide()})})}createQuickPick(){const e=this.getUI();return new ap(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Wt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),al(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();vL.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",n||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,qv.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` `);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}qv.MAX_WIDTH=600;var wL;(function(s){s[s.PRESERVE=0]="PRESERVE",s[s.LAST=1]="LAST"})(wL||(wL={}));const Th={Quickaccess:"workbench.contributions.quickaccess"};class $G{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Ve(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return vh([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}Xt.add(Th.Quickaccess,new $G);const Rl=Je("quickInputService");var jG=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jT=function(s,e){return function(t,i){e(t,i,s)}};let SL=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Xt.as(Th.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const m=a.value.substr(l.prefix.length);m&&(g=`${r.prefix}${m}`)}if(!g){const m=o==null?void 0:o.defaultFilterValue;m===wL.LAST?g=this.lastAcceptedPickerValues.get(r):typeof m=="string"&&(g=`${r.prefix}${m}`)}typeof g=="string"&&(e=g)}const d=new X,h=d.add(this.quickInputService.createQuickPick());h.value=e,this.adjustValueSelection(h,r,i),h.placeholder=r==null?void 0:r.placeholder,h.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||i!=null&&i.quickNavigateConfiguration)&&(h.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:eo.SECOND),h.contextKey=r==null?void 0:r.contextKey,h.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(h.ariaLabel=r==null?void 0:r.placeholder);let c,u;t&&(c=new Promise(g=>u=g),d.add(ha(h.onWillAccept)(g=>{g.veto(),h.hide()}))),d.add(this.registerPickerListeners(h,o,r,e));const f=d.add(new ln);if(o&&d.add(o.provide(h,f.token)),ha(h.onDidHide)(()=>{h.selectedItems.length===0&&f.cancel(),d.dispose(),u==null||u(h.selectedItems)}),h.show(),t)return c}adjustValueSelection(e,t,i){var n;let o;i!=null&&i.preserveValue?o=[e.value.length,e.value.length]:o=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n){const o=new X,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add(Ve(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};SL=jG([jT(0,Rl),jT(1,Ge)],SL);var KG=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mf=function(s,e){return function(t,i){e(t,i,s)}};let yL=class extends C8{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(SL))),this._quickAccess}createController(e=this.layoutService,t){var i,n;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>e.focus(),createList:(a,l,d,h,c)=>this.instantiationService.createInstance(hL,a,l,d,h,c),styles:this.computeStyles()},r=this._register(new qv(Object.assign(Object.assign({},o),t)));return r.layout(e.dimension,(n=(i=e.offset)===null||i===void 0?void 0:i.top)!==null&&n!==void 0?n:0),this._register(e.onDidLayout(a=>{var l,d;return r.layout(a,(d=(l=e.offset)===null||l===void 0?void 0:l.top)!==null&&d!==void 0?d:0)})),this._register(r.onShow(()=>this.resetContextKeys())),this._register(r.onHide(()=>this.resetContextKeys())),r}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new re(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=Oe.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},io(this.theme,{quickInputBackground:cN,quickInputForeground:f9,quickInputTitleBackground:g9,contrastBorder:Zt,widgetShadow:fl})),inputBox:io(this.theme,{inputForeground:Kx,inputBackground:jx,inputBorder:qx,inputValidationInfoBackground:Gx,inputValidationInfoForeground:Zx,inputValidationInfoBorder:Yx,inputValidationWarningBackground:RO,inputValidationWarningForeground:MO,inputValidationWarningBorder:OO,inputValidationErrorBackground:PO,inputValidationErrorForeground:FO,inputValidationErrorBorder:BO}),countBadge:io(this.theme,{badgeBackground:Xf,badgeForeground:Qf,badgeBorder:Zt}),button:io(this.theme,{buttonForeground:s9,buttonBackground:xy,buttonHoverBackground:o9,buttonBorder:Zt}),progressBar:io(this.theme,{progressBarBackground:r9}),keybindingLabel:io(this.theme,{keybindingLabelBackground:_9,keybindingLabelForeground:b9,keybindingLabelBorder:C9,keybindingLabelBottomBorder:v9,keybindingLabelShadow:fl}),list:io(this.theme,{listBackground:cN,listInactiveFocusForeground:T_,listInactiveSelectionIconForeground:A_,listInactiveFocusBackground:R_,listFocusOutline:Xi,listInactiveFocusOutline:Xi,pickerGroupBorder:m9,pickerGroupForeground:p9})}}};yL=KG([mf(0,Ge),mf(1,ve),mf(2,Dt),mf(3,On),mf(4,Bv)],yL);var k2=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rd=function(s,e){return function(t,i){e(t,i,s)}};let LL=class extends yL{constructor(e,t,i,n,o,r){super(t,i,n,o,r),this.host=void 0;const a=uu.get(e);this.host={_serviceBrand:void 0,get container(){return a.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};LL=k2([rd(1,Ge),rd(2,ve),rd(3,Dt),rd(4,On),rd(5,Bv)],LL);let DL=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(LL,e);this.mapEditorToService.set(e,t),ha(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=Oe.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};DL=k2([rd(0,Ge),rd(1,tt)],DL);class uu{constructor(e){this.editor=e,this.widget=new Gv(this.editor)}static get(e){return e.getContribution(uu.ID)}dispose(){this.widget.dispose()}}uu.ID="editor.controller.quickInput";class Gv{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Gv.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Gv.ID="editor.contrib.quickInputWidget";nt(uu.ID,uu);var it;(function(s){const e=new qg;class t{constructor(l,d){this._serviceId=l,this._factory=d,this._value=null}get id(){return this._serviceId}get(l){if(!this._value){if(l&&(this._value=l[this._serviceId.toString()]),this._value||(this._value=this._factory(l)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");e.set(this._serviceId,this._value)}return this._value}}s.LazyStaticService=t;let i=[];function n(a,l){let d=new t(a,l);return i.push(d),d}function o(a){let l=new qg;for(const[h,c]of AV())l.set(h,c);for(let h in a)a.hasOwnProperty(h)&&l.set(Je(h),a[h]);i.forEach(h=>l.set(h.id,h.get(a)));let d=new wC(l,!0);return l.set(Ge,d),[l,d]}s.init=o,s.instantiationService=n(Ge,()=>new wC(e,!0));const r=new lO;s.configurationService=n(Vt,()=>r),s.resourceConfigurationService=n(px,()=>new u8(r)),s.resourcePropertiesService=n(PM,()=>new _y(r)),s.contextService=n(nO,()=>new bv),s.labelService=n(qp,()=>new p8),s.telemetryService=n(El,()=>new f8),s.dialogService=n(Kp,()=>new h8),s.notificationService=n(ni,()=>new _v),s.markerService=n(Xp,()=>new od),s.modeService=n(Qi,a=>new Jg),s.standaloneThemeService=n(kh,()=>new oK),s.logService=n(Cr,()=>new nH(new iH)),s.undoRedoService=n(Wp,a=>new NC(s.dialogService.get(a),s.notificationService.get(a))),s.languageConfigurationService=n(Pp,a=>new Ib(s.configurationService.get(a),s.modeService.get(a))),s.modelService=n(ri,a=>new _C(s.configurationService.get(a),s.resourcePropertiesService.get(a),s.standaloneThemeService.get(a),s.logService.get(a),s.undoRedoService.get(a),s.modeService.get(a),s.languageConfigurationService.get(a))),s.markerDecorationsService=n(Ex,a=>new gL(s.modelService.get(a),s.markerService.get(a))),s.contextKeyService=n(ve,a=>new Gy(s.configurationService.get(a))),s.codeEditorService=n(tt,a=>new pC(null,s.contextKeyService.get(a),s.standaloneThemeService.get(a))),s.editorProgressService=n(Ca,()=>new mv),s.storageService=n(yr,()=>new nG),s.editorWorkerService=n(Ys,a=>new dy(s.modelService.get(a),s.resourceConfigurationService.get(a),s.logService.get(a)))})(it||(it={}));class qG extends H{constructor(e,t){super();const[i,n]=it.init(t);this._serviceCollection=i,this._instantiationService=n;const o=this.get(Vt),r=this.get(ni),a=this.get(El),l=this.get(Dt),d=this.get(Cr),h=this.get(ve);let c=(_,C)=>{let b=null;return t&&(b=t[_.toString()]),b||(b=C()),this._serviceCollection.set(_,b),b};c(On,()=>new pL(h,o)),c(Ss,()=>new lL(l));let u=c(Yt,()=>new c8(this._instantiationService)),f=c(Nt,()=>this._register(new aO(h,u,a,r,d,e))),g=c(Bv,()=>new m8(it.codeEditorService.get(tt),e));c(Rl,()=>new DL(n,it.codeEditorService.get(tt)));let m=c(Nl,()=>this._register(new iL(g)));c(Al,()=>new aG),c(Tl,()=>{const _=new tL(a,r,m,f,l);return _.configure({blockMouse:!1}),this._register(_)}),c(yh,()=>new uL(u)),c(yx,()=>new g8(it.modelService.get(ri)))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}function I2(s,e,t){let i=new qG(s,e),n=null;i.has(Qn)||(n=new my(it.modelService.get()),i.set(Qn,n)),i.has(Co)||i.set(Co,new G1(i.get(tt),i.get(Yt)));let o=t(i);return n&&n.setEditor(o),o}function GG(s,e,t){return I2(s,t||{},i=>new Uy(s,e,i,i.get(Ge),i.get(tt),i.get(Yt),i.get(ve),i.get(Nt),i.get(Nl),i.get(kh),i.get(ni),i.get(Vt),i.get(On),i.get(ri),i.get(Qi)))}function ZG(s){return it.codeEditorService.get().onCodeEditorAdd(e=>{s(e)})}function YG(s,e,t){return I2(s,t||{},i=>new $y(s,e,i,i.get(Ge),i.get(ve),i.get(Nt),i.get(Nl),i.get(Ys),i.get(tt),i.get(kh),i.get(ni),i.get(Vt),i.get(Tl),i.get(Ca),i.get(Al)))}function XG(s,e){return new fW(s,e)}function QG(s,e,t){return EP(it.modelService.get(),it.modeService.get(),s,e,t)}function JG(s,e){it.modelService.get().setMode(s,it.modeService.get().create(e))}function eZ(s,e,t){s&&it.markerService.get().changeOne(e,s.uri,t)}function tZ(s){return it.markerService.get().read(s)}function iZ(s){return it.markerService.get().onMarkerChanged(s)}function nZ(s){return it.modelService.get().getModel(s)}function sZ(){return it.modelService.get().getModels()}function oZ(s){return it.modelService.get().onModelAdded(s)}function rZ(s){return it.modelService.get().onModelRemoved(s)}function aZ(s){return it.modelService.get().onModelModeChanged(e=>{s({model:e.model,oldLanguage:e.oldModeId})})}function lZ(s){return lH(it.modelService.get(),s)}function dZ(s,e){const t=it.standaloneThemeService.get();return t.registerEditorContainer(s),Sx.colorizeElement(t,it.modeService.get(),s,e)}function hZ(s,e,t){return it.standaloneThemeService.get().registerEditorContainer(document.body),Sx.colorize(it.modeService.get(),s,e,t)}function cZ(s,e,t=4){return it.standaloneThemeService.get().registerEditorContainer(document.body),Sx.colorizeModelLine(s,e,t)}function uZ(s){let e=Rt.get(s);return e||{getInitialState:()=>Op,tokenize:(t,i,n,o)=>vM(s,t,n,o)}}function fZ(s,e){it.modeService.get().triggerMode(e);let i=uZ(e),n=cr(s),o=[],r=i.getInitialState();for(let a=0,l=n.length;a=100){i=i-100;let n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw pt(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw pt(s,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!IH(s,Ba(s,n,"",[],""))))throw pt(s,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),i}}else if(Array.isArray(t)){let i=[];for(let n=0,o=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=xL(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=kL(e,this.name,t)}}function LZ(s,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");let t={};t.languageId=s,t.includeLF=Xm(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Xm(e.ignoreCase,!1),t.unicode=Xm(e.unicode,!1),t.tokenPostfix=KT(e.tokenPostfix,"."+t.languageId),t.defaultToken=KT(e.defaultToken,"source"),t.usesEmbedded=!1;let i=e;i.languageId=s,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const d of l){let h=d.include;if(h){if(typeof h!="string")throw pt(t,"an 'include' attribute must be a string at: "+r);if(h[0]==="@"&&(h=h.substr(1)),!e.tokenizer[h])throw pt(t,"include target '"+h+"' is not defined at: "+r);n(r+"."+h,a,e.tokenizer[h])}else{const c=new yZ(r);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(c.setRegex(i,d[0]),d.length>=3)if(typeof d[1]=="string")c.setAction(i,{token:d[1],next:d[2]});else if(typeof d[1]=="object"){const u=d[1];u.next=d[2],c.setAction(i,u)}else throw pt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else c.setAction(i,d[1]);else{if(!d.regex)throw pt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);d.name&&typeof d.name=="string"&&(c.name=d.name),d.matchOnlyAtStart&&(c.matchOnlyAtLineStart=Xm(d.matchOnlyAtLineStart,!1)),c.setRegex(i,d.regex),c.setAction(i,d.action)}a.push(c)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw pt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw pt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let o=[];for(let r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw pt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:Xa(t,a.open),close:Xa(t,a.close)});else throw pt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function DZ(s){Td.registerLanguage(s)}function xZ(){let s=[];return s=s.concat(Td.getLanguages()),s}function kZ(s){return it.modeService.get().languageIdCodec.encodeLanguageId(s)}function IZ(s,e){let t=it.modeService.get().onDidEncounterLanguage(i=>{i===s&&(t.dispose(),e())});return t}function EZ(s,e){const t=it.modeService.get().validateLanguageId(s);if(!t)throw new Error(`Cannot set configuration for unknown language ${s}`);return Qe.register(t,e,100)}class NZ{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if(typeof this._actual.tokenize=="function")return lp.adaptTokenize(this._languageId,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new jC(n.tokens,n.endState)}}class lp{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._modeService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){let n=[],o=0;for(let r=0,a=e.length;r0&&r[a-1]===f)continue;let g=u.startIndex;h===0?g=0:gTZ(n)?new NZ(t,n):new lp(t,n,it.modeService.get(),it.standaloneThemeService.get());return E2(e)?Rt.registerPromise(s,e.then(n=>i(n))):Rt.register(s,i(e))}function MZ(s,e){const t=i=>TH(it.modeService.get(),it.standaloneThemeService.get(),s,LZ(s,i));return E2(e)?Rt.registerPromise(s,e.then(i=>t(i))):Rt.register(s,t(e))}function OZ(s,e){return vb.register(s,e)}function PZ(s,e){return wb.register(s,e)}function FZ(s,e){return yd.register(s,e)}function BZ(s,e){return wg.register(s,{provideHover:(t,i,n)=>{let o=t.getWordAtPosition(i);return Promise.resolve(e.provideHover(t,i,n)).then(r=>{if(r)return!r.range&&o&&(r.range=new S(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),r.range||(r.range=new S(i.lineNumber,i.column,i.lineNumber,i.column)),r})}})}function WZ(s,e){return Vs.register(s,e)}function VZ(s,e){return Xc.register(s,e)}function HZ(s,e){return Sb.register(s,e)}function zZ(s,e){return Sg.register(s,e)}function UZ(s,e){return Lb.register(s,e)}function $Z(s,e){return Db.register(s,e)}function jZ(s,e){return Zr.register(s,e)}function KZ(s,e,t){return ar.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(i,n,o,r)=>{let a=it.markerService.get().read({resource:i.uri}).filter(l=>S.areIntersectingOrTouching(l,n));return e.provideCodeActions(i,n,{markers:a,only:o.only},r)},resolveCodeAction:e.resolveCodeAction})}function qZ(s,e){return Wf.register(s,e)}function GZ(s,e){return ao.register(s,e)}function ZZ(s,e){return xb.register(s,e)}function YZ(s,e){return yg.register(s,e)}function XZ(s,e){return ro.register(s,e)}function QZ(s,e){return Qc.register(s,e)}function JZ(s,e){return J1.register(s,e)}function eY(s,e){return yb.register(s,e)}function tY(s,e){return JC.register(s,e)}function iY(s,e){return Jc.register(s,e)}function nY(s,e){return ev.register(s,e)}function sY(s,e){return hx.register(s,e)}function oY(s,e){return za.register(s,e)}function rY(){return{register:DZ,getLanguages:xZ,onLanguage:IZ,getEncodedLanguageId:kZ,setLanguageConfiguration:EZ,setColorMap:AZ,setTokensProvider:RZ,setMonarchTokensProvider:MZ,registerReferenceProvider:OZ,registerRenameProvider:PZ,registerCompletionItemProvider:XZ,registerSignatureHelpProvider:FZ,registerHoverProvider:BZ,registerDocumentSymbolProvider:WZ,registerDocumentHighlightProvider:VZ,registerLinkedEditingRangeProvider:HZ,registerDefinitionProvider:zZ,registerImplementationProvider:UZ,registerTypeDefinitionProvider:$Z,registerCodeLensProvider:jZ,registerCodeActionProvider:KZ,registerDocumentFormattingEditProvider:qZ,registerDocumentRangeFormattingEditProvider:GZ,registerOnTypeFormattingEditProvider:ZZ,registerLinkProvider:YZ,registerColorProvider:QZ,registerFoldingRangeProvider:JZ,registerDeclarationProvider:eY,registerSelectionRangeProvider:tY,registerDocumentSemanticTokensProvider:iY,registerDocumentRangeSemanticTokensProvider:nY,registerInlineCompletionsProvider:sY,registerInlayHintsProvider:oY,DocumentHighlightKind:d1,CompletionItemKind:n1,CompletionItemTag:s1,CompletionItemInsertTextRule:i1,SymbolKind:N1,SymbolTag:T1,IndentAction:g1,CompletionTriggerKind:o1,SignatureHelpTriggerKind:E1,InlayHintKind:p1,InlineCompletionTriggerKind:m1,FoldingRangeKind:vo}}class fu{static _handleEolEdits(e,t){let i,n=[];for(let o of t)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&n.push(o);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=fu._handleEolEdits(e,t);n.length===1&&fu._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(o=>Ut.replace(S.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",n.map(o=>Ut.replaceMove(S.lift(o.range),o.text))),i&&e.pushUndoStop()}}class aS{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var yo=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function Jk(s){if(s=s.filter(n=>n.range),!s.length)return;let{range:e}=s[0];for(let n=1;n0&&S.areIntersectingOrTouching(l[d-1],g)?l[d-1]=S.fromPositions(l[d-1].getStartPosition(),g.getEndPosition()):d=l.push(g);const h=g=>yo(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,g,r.getFormattingOptions(),a.token))||[]}),c=(g,m)=>{if(!g.length||!m.length)return!1;const _=g.reduce((C,b)=>S.plusRange(C,b.range),g[0].range);if(!m.some(C=>S.intersectRanges(_,C.range)))return!1;for(let C of g)for(let b of m)if(S.intersectRanges(C.range,b.range))return!0;return!1},u=[],f=[];try{for(let g of l){if(a.token.isCancellationRequested)return!0;f.push(yield h(g))}for(let g=0;g({text:_.text,range:S.lift(_.range),forceMoveMarkers:!0})),_=>{for(const{range:C}of _)if(S.areIntersectingOrTouching(C,m))return[new ne(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)];return null})}return!0})}function lY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ge),r=ur(e)?e.getModel():e,a=N2(r),l=yield Jd.select(a,r,t);l&&(i.report(l),yield o.invokeFunction(dY,l,e,t,n))})}function dY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ys);let r,a;ur(t)?(r=t.getModel(),a=new Zg(t,5,void 0,n)):(r=t,a=new wk(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(ur(t))fu.execute(t,l,i!==2),i!==2&&(Jk(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,h=new ne(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([h],l.map(c=>({text:c.text,range:S.lift(c.range),forceMoveMarkers:!0})),c=>{for(const{range:u}of c)if(S.areIntersectingOrTouching(u,h))return[new ne(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function hY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=ao.ordered(e);for(const r of o){let a=yield Promise.resolve(r.provideDocumentRangeFormattingEdits(e,t,i,n)).catch(Di);if(Tn(a))return yield s.computeMoreMinimalEdits(e.uri,a)}})}function cY(s,e,t,i){return yo(this,void 0,void 0,function*(){const n=N2(e);for(const o of n){let r=yield Promise.resolve(o.provideDocumentFormattingEdits(e,t,i)).catch(Di);if(Tn(r))return yield s.computeMoreMinimalEdits(e.uri,r)}})}function A2(s,e,t,i,n){const o=xb.ordered(e);return o.length===0||o[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(o[0].provideOnTypeFormattingEdits(e,t,i,n,Oe.None)).catch(Di).then(r=>s.computeMoreMinimalEdits(e.uri,r))}$e.registerCommand("_executeFormatRangeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n]=e;ut(me.isUri(t)),ut(S.isIRange(i));const o=s.get(Qn),r=s.get(Ys),a=yield o.createModelReference(t);try{return hY(r,a.object.textEditorModel,S.lift(i),n,Oe.None)}finally{a.dispose()}})});$e.registerCommand("_executeFormatDocumentProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i]=e;ut(me.isUri(t));const n=s.get(Qn),o=s.get(Ys),r=yield n.createModelReference(t);try{return cY(o,r.object.textEditorModel,i,Oe.None)}finally{r.dispose()}})});$e.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n,o]=e;ut(me.isUri(t)),ut(F.isIPosition(i)),ut(typeof n=="string");const r=s.get(Qn),a=s.get(Ys),l=yield r.createModelReference(t);try{return A2(a,l.object.textEditorModel,F.lift(i),n,o)}finally{l.dispose()}})});var lS;Do.wrappingIndent.defaultValue=0;Do.glyphMargin.defaultValue=!1;Do.autoIndent.defaultValue=3;Do.overviewRulerLanes.defaultValue=2;Jd.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const un=FR();un.editor=bZ();un.languages=rY();const uY=un.CancellationTokenSource,gu=un.Emitter,fY=un.KeyCode,gY=un.KeyMod,pY=un.Position,mY=un.Range,_Y=un.Selection,bY=un.SelectionDirection,CY=un.MarkerSeverity,vY=un.MarkerTag,wY=un.Uri,SY=un.Token,yY=un.editor,on=un.languages;(!((lS=Et.MonacoEnvironment)===null||lS===void 0)&&lS.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=un);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var LY="4.4.4",IL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(IL||(IL={}));var EL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(EL||(EL={}));var NL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(NL||(NL={}));var dp;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(dp||(dp={}));var TL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(TL||(TL={}));var R2=function(){function s(e,t,i,n){this._onDidChange=new gu,this._onDidExtraLibsChange=new gu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),s.prototype.getExtraLibs=function(){return this._extraLibs},s.prototype.addExtraLib=function(e,t){var i=this,n;if(typeof t>"u"?n="ts:extralib-"+Math.random().toString(36).substring(2,15):n=t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var r=i._extraLibs[n];r&&r.version===o&&(delete i._extraLibs[n],i._removedExtraLibs[n]=o,i._fireOnDidExtraLibsChangeSoon())}}},s.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var i=0,n=e;iimport("./tsMode-BPYiYr8N.js"),__vite__mapDeps([0,1,2]))}on.onLanguage("typescript",function(){return Zv().then(function(s){return s.setupTypeScript(M2)})});on.onLanguage("javascript",function(){return Zv().then(function(s){return s.setupJavaScript(O2)})});var eI=function(){function s(e,t,i){this._onDidChange=new gu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),s.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),tI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},iI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},P2=new eI("css",tI,iI),F2=new eI("scss",tI,iI),B2=new eI("less",tI,iI);on.css={cssDefaults:P2,lessDefaults:B2,scssDefaults:F2};function nI(){return ce(()=>import("./cssMode-CKlPhDK6.js"),__vite__mapDeps([3,1,2]))}on.onLanguage("less",function(){nI().then(function(s){return s.setupMode(B2)})});on.onLanguage("scss",function(){nI().then(function(s){return s.setupMode(F2)})});on.onLanguage("css",function(){nI().then(function(s){return s.setupMode(P2)})});var IY=function(){function s(e,t,i){this._onDidChange=new gu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),s.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),EY={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},NY={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},W2=new IY("json",EY,NY);on.json={jsonDefaults:W2};function TY(){return ce(()=>import("./jsonMode-BJbtHWja.js"),__vite__mapDeps([4,1,2]))}on.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});on.onLanguage("json",function(){TY().then(function(s){return s.setupMode(W2)})});var AY=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},RY=function(s,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(d){return function(h){return l([d,h])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(o=d[0]&2?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]import("./htmlMode-CQSxHhWo.js"),__vite__mapDeps([5,1,2]))}function Qv(s,e,t){var i=this;e===void 0&&(e=Yv),t===void 0&&(t=Xv(s));var n=new MY(s,e,t),o,r=on.onLanguage(s,function(){return AY(i,void 0,void 0,function(){return RY(this,function(a){switch(a.label){case 0:return[4,WY()];case 1:return o=a.sent().setupMode(n),[2]}})})});return{defaults:n,dispose:function(){r.dispose(),o==null||o.dispose(),o=void 0}}}var U2={},dS={},VY=function(){function s(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(i,n){t._lazyLoadPromiseResolve=i,t._lazyLoadPromiseReject=n})}return s.getOrCreate=function(e){return dS[e]||(dS[e]=new s(e)),dS[e]},s.prototype.whenLoaded=function(){return this._lazyLoadPromise},s.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,U2[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},s}();function fe(s){var e=s.id;U2[e]=s,on.register(s);var t=VY.getOrCreate(e);on.setMonarchTokensProvider(e,t.whenLoaded().then(function(i){return i.language})),on.onLanguage(e,function(){t.load().then(function(i){on.setLanguageConfiguration(e,i.conf)})})}fe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return ce(()=>import("./abap-CRCWOmpq.js"),[])}});fe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return ce(()=>import("./apex-BL_CmIl-.js"),[])}});fe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return ce(()=>import("./azcli-1IWB1ccx.js"),[])}});fe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return ce(()=>import("./bat-DPkNLes8.js"),[])}});fe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return ce(()=>import("./bicep-DLNwh9K6.js"),[])}});fe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return ce(()=>import("./cameligo-CGrWLZr3.js"),[])}});fe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return ce(()=>import("./clojure-D9WOWImG.js"),[])}});fe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return ce(()=>import("./coffee-B7EJu28W.js"),[])}});fe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return ce(()=>import("./cpp-RmZVvII3.js"),[])}});fe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return ce(()=>import("./cpp-RmZVvII3.js"),[])}});fe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return ce(()=>import("./csharp-BoL64M5l.js"),[])}});fe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return ce(()=>import("./csp-C46ZqvIl.js"),[])}});fe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return ce(()=>import("./css-yEtxmcUf.js"),[])}});fe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return ce(()=>import("./dart-D8lhlL1r.js"),[])}});fe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return ce(()=>import("./dockerfile-DLk6rpji.js"),[])}});fe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return ce(()=>import("./ecl-BO6FnfXk.js"),[])}});fe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return ce(()=>import("./elixir-B9GXSzSz.js"),[])}});fe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return ce(()=>import("./flow9-Cac8vKd7.js"),[])}});fe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return ce(()=>import("./fsharp-fd1GTHhf.js"),[])}});fe({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return ce(()=>import("./go-O9LJTZXk.js"),[])}});fe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return ce(()=>import("./graphql-LQdxqEYJ.js"),[])}});fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return ce(()=>import("./handlebars-DC8CSLaW.js"),__vite__mapDeps([6,1,2]))}});fe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return ce(()=>import("./hcl-DxDQ3s82.js"),[])}});fe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return ce(()=>import("./html-COPzPFoE.js"),__vite__mapDeps([7,1,2]))}});fe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return ce(()=>import("./ini-BvajGCUy.js"),[])}});fe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return ce(()=>import("./java-SYsfObOQ.js"),[])}});fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return ce(()=>import("./javascript-B79qqSz8.js"),__vite__mapDeps([8,9,1,2]))}});fe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return ce(()=>import("./julia-DQXNmw_w.js"),[])}});fe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return ce(()=>import("./kotlin-qQ0MG-9I.js"),[])}});fe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return ce(()=>import("./less-B86-qBTk.js"),[])}});fe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return ce(()=>import("./lexon-Canl7DCW.js"),[])}});fe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return ce(()=>import("./lua-D28Ae8-K.js"),[])}});fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return ce(()=>import("./liquid-D_9SLMGA.js"),__vite__mapDeps([10,1,2]))}});fe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return ce(()=>import("./m3-DPitgjJI.js"),[])}});fe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return ce(()=>import("./markdown-XFFkuszK.js"),[])}});fe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return ce(()=>import("./mips-CdjsipkG.js"),[])}});fe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return ce(()=>import("./msdax-CYqgjx_P.js"),[])}});fe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return ce(()=>import("./mysql-uE-sL1AK.js"),[])}});fe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return ce(()=>import("./objective-c-B1aVtJYH.js"),[])}});fe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return ce(()=>import("./pascal-BhNW15KB.js"),[])}});fe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return ce(()=>import("./pascaligo-5jv8CcQD.js"),[])}});fe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return ce(()=>import("./perl-DlYyT36c.js"),[])}});fe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return ce(()=>import("./pgsql-DYSgOGm2.js"),[])}});fe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return ce(()=>import("./php-120yhfDK.js"),[])}});fe({id:"pla",extensions:[".pla"],loader:function(){return ce(()=>import("./pla-CjnFlu4u.js"),[])}});fe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ce(()=>import("./postiats-CQpG440k.js"),[])}});fe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return ce(()=>import("./powerquery-DdJtto1Z.js"),[])}});fe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return ce(()=>import("./powershell-Bu_VLpJB.js"),[])}});fe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return ce(()=>import("./protobuf-UZVfc1EA.js"),[])}});fe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return ce(()=>import("./pug-kFxLfcjb.js"),[])}});fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return ce(()=>import("./python-Bknl8K_6.js"),__vite__mapDeps([11,1,2]))}});fe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return ce(()=>import("./qsharp-BhgV_cYv.js"),[])}});fe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return ce(()=>import("./r-BIFz-_sK.js"),[])}});fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return ce(()=>import("./razor-jyPxjyDD.js"),__vite__mapDeps([12,1,2]))}});fe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return ce(()=>import("./redis-CHOsPHWR.js"),[])}});fe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return ce(()=>import("./redshift-w2XKkDvD.js"),[])}});fe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return ce(()=>import("./restructuredtext-CghPJEOS.js"),[])}});fe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return ce(()=>import("./ruby-CYWGW-b1.js"),[])}});fe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return ce(()=>import("./rust-DMDD0SHb.js"),[])}});fe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return ce(()=>import("./sb-BYAiYHFx.js"),[])}});fe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return ce(()=>import("./scala-Bqvq8jcR.js"),[])}});fe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return ce(()=>import("./scheme-Dhb-2j9p.js"),[])}});fe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return ce(()=>import("./scss-CdQcnAnq.js"),[])}});fe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return ce(()=>import("./shell-CmmbcNmB.js"),[])}});fe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return ce(()=>import("./solidity-CME5AdoB.js"),[])}});fe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return ce(()=>import("./sophia-RYC1BQQz.js"),[])}});fe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return ce(()=>import("./sparql-KEyrF7De.js"),[])}});fe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return ce(()=>import("./sql-BdTr02Mf.js"),[])}});fe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return ce(()=>import("./st-C8kzSboH.js"),[])}});fe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return ce(()=>import("./swift-vE6e-x0J.js"),[])}});fe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return ce(()=>import("./systemverilog-DgMryOEJ.js"),[])}});fe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return ce(()=>import("./systemverilog-DgMryOEJ.js"),[])}});fe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return ce(()=>import("./tcl-PloMZuKG.js"),[])}});fe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return ce(()=>import("./twig-bne2BnKZ.js"),[])}});fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return ce(()=>import("./typescript-Dm-085YJ.js"),__vite__mapDeps([9,1,2]))}});fe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return ce(()=>import("./vb-BwAE3J76.js"),[])}});fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-DBBf7RkZ.js"),__vite__mapDeps([13,1,2]))}});fe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return ce(()=>import("./yaml-A89blxgn.js"),[])}});var HY=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zY=function(s,e){return function(t,i){e(t,i,s)}},Jv=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const ew=new re("selectionAnchorSet",!1);let _a=class $2{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=ew.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution($2.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:ne.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new ma().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Ei(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ne.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};_a.ID="editor.contrib.selectionAnchorController";_a=HY([zY(1,ve)],_a);class UY extends oe{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2080),weight:100}})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).setSelectionAnchor()})}}class $Y extends oe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:ew})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).goToSelectionAnchor()})}}class jY extends oe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:ew,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2089),weight:100}})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).selectFromAnchorToCursor()})}}class KY extends oe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:ew,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).cancelSelectionAnchor()})}}nt(_a.ID,_a);ee(UY);ee($Y);ee(jY);ee(KY);const qY=R("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class GY extends oe{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=bo.get(t);i&&i.jumpToBracket()}}class ZY extends oe{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=bo.get(t);if(!n)return;let o=!0;i&&i.selectBrackets===!1&&(o=!1),n.selectToBracket(o)}}class YY{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class bo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Lt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(bo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.findEnclosingBrackets(n);if(a)r=a[0].getStartPosition();else{const l=e.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ne(r.lineNumber,r.column,r.lineNumber,r.column):new ne(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.matchBracket(o);if(!r&&(r=t.findEnclosingBrackets(o),!r)){const d=t.findNextBracket(o);d&&d.range&&(r=t.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(S.compareRangesUsingStarts);const[d,h]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition(),h.containsPosition(o)){const c=a;a=l,l=c}}a&&l&&i.push(new ne(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],r=0;for(let c=0,u=e.length;c1&&o.sort(F.compare);let a=[],l=0,d=0,h=n.length;for(let c=0,u=o.length;c{const t=s.getColor(O6);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor(YO);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});ps.appendMenuItem(ae.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class XY{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new S(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,o,i,o),a)}else{const r=new S(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ne(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ne(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class j2 extends oe{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const o of n)i.push(new XY(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class QY extends j2{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:E.writable})}}class JY extends j2{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:E.writable})}}ee(QY);ee(JY);class eX extends oe{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,d=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&d===2))continue;let h=l===d?r.getPosition():Xe.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),c=Xe.leftPosition(i,h),u=Xe.leftPosition(i,c),f=i.getValueInRange(S.fromPositions(u,c)),g=i.getValueInRange(S.fromPositions(c,h)),m=S.fromPositions(u,h);n.push(new xi(m,g+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(eX);var tX=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const eh="9_cutcopypaste",iX=uo||document.queryCommandSupported("cut"),K2=uo||document.queryCommandSupported("copy"),nX=typeof navigator.clipboard>"u"||rn?document.queryCommandSupported("paste"):!0;function sI(s){return s.register(),s}const sX=iX?sI(new Mu({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:uo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:ae.EditorContext,group:eh,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:ae.SimpleEditorContext,group:eh,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1}]})):void 0,oX=K2?sI(new Mu({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:uo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:ae.EditorContext,group:eh,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:ae.SimpleEditorContext,group:eh,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;ps.appendMenuItem(ae.MenubarEditMenu,{submenu:ae.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});ps.appendMenuItem(ae.EditorContext,{submenu:ae.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:eh,order:3});const hS=nX?sI(new Mu({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:uo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:ae.EditorContext,group:eh,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:ae.SimpleEditorContext,group:eh,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4}]})):void 0;class rX extends oe{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(Ty.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Ty.forceCopyWithSyntaxHighlighting=!1)}}function q2(s,e){s&&(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(tt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(32),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}q2(sX,"cut");q2(oX,"copy");hS&&(hS.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(tt),i=s.get(Al),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Nu?tX(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bg.INSTANCE.get(r);let l=!1,d=null,h=null;a&&(l=n.getOption(32)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,h=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:h})}}):!0:!1}),hS.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));K2&&ee(rX);class TC{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}class We{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+We.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new We(this.value+We.sep+e)}}We.sep=".";We.None=new We("@@none@@");We.Empty=new We("");We.QuickFix=new We("quickfix");We.Refactor=new We("refactor");We.Source=new We("source");We.SourceOrganizeImports=We.Source.append("organizeImports");We.SourceFixAll=We.Source.append("fixAll");function aX(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>G2(e,t,s.include))||!s.includeSourceActions&&We.Source.contains(e))}function lX(s,e){const t=e.kind?new We(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>G2(t,i,s.include))||!s.includeSourceActions&&t&&We.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function G2(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Jo{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Jo(t.kind,t.apply,!1):new Jo(Jo.getKindFromUser(e,t.kind),Jo.getApplyFromUser(e,t.apply),Jo.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new We(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var oI=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Z2="editor.action.codeAction",Y2="editor.action.refactor",X2="editor.action.sourceAction",rI="editor.action.organizeImports",aI="editor.action.fixAll";class Q2{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return oI(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Di(n)}i&&(this.action.edit=i.edit)}return this})}}class lI extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(lI.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Tn(e.diagnostics)?Tn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Tn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&We.QuickFix.contains(new We(e.kind))&&!!e.isPreferred)}}const YT={actions:[],documentation:void 0};function dI(s,e,t,i,n){var o;const r=t.filter||{},a={only:(o=r.include)===null||o===void 0?void 0:o.value,trigger:t.type},l=new wk(s,n),d=dX(s,r),h=new X,c=d.map(f=>oI(this,void 0,void 0,function*(){try{i.report(f);const g=yield f.provideCodeActions(s,e,a,l.token);if(g&&h.add(g),l.token.isCancellationRequested)return YT;const m=((g==null?void 0:g.actions)||[]).filter(C=>C&&lX(r,C)),_=hX(f,m,r.include);return{actions:m.map(C=>new Q2(C,f)),documentation:_}}catch(g){if(br(g))throw g;return Di(g),YT}})),u=ar.onDidChange(()=>{const f=ar.all(s);zs(f,d)||l.cancel()});return Promise.all(c).then(f=>{const g=_x(f.map(_=>_.actions)),m=vh(f.map(_=>_.documentation));return new lI(g,m,h)}).finally(()=>{u.dispose(),l.dispose()})}function dX(s,e){return ar.all(s).filter(t=>t.providedCodeActionKinds?t.providedCodeActionKinds.some(i=>aX(e,new We(i))):!0)}function hX(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new We(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const o of i)if(o.kind.contains(new We(n.kind)))return o.command}}$e.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return oI(this,void 0,void 0,function*(){if(!(e instanceof me))throw fo();const o=s.get(ri).getModel(e);if(!o)throw fo();const r=ne.isISelection(t)?ne.liftSelection(t):S.isIRange(t)?o.validateRange(t):void 0;if(!r)throw fo();const a=typeof i=="string"?new We(i):void 0,l=yield dI(o,r,{type:1,filter:{includeSourceActions:!0,include:a}},xh.None,Oe.None),d=[],h=Math.min(l.validActions.length,typeof n=="number"?n:0);for(let c=0;cc.action)}finally{setTimeout(()=>l.dispose(),100)}})});var cX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},uX=function(s,e){return function(t,i){e(t,i,s)}};let is=class AL{constructor(e,t){this._messageWidget=new dn,this._messageListeners=new X,this._editor=e,this._visible=AL.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(AL.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ei(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new XT(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new hn(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new S(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(XT.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};is.ID="editor.contrib.messageController";is.MESSAGE_VISIBLE=new re("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));is=cX([uX(1,ve)],is);const fX=Mi.bindToContribution(is.get);J(new fX({id:"leaveEditorMessage",precondition:is.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:130,primary:9}}));let XT=class{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};nt(is.ID,is);st((s,e)=>{const t=s.getColor(Yx);if(t){let o=s.type===gs.HIGH_CONTRAST?2:1;e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${o}px solid ${t}; }`)}const i=s.getColor(Gx);i&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const n=s.getColor(Zx);n&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${n}; }`)});var gX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QT=function(s,e){return function(t,i){e(t,i,s)}},pX=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class JT extends Us{constructor(e,t){super(e.command?e.command.id:e.title,mX(e.title),void 0,!e.disabled,t),this.action=e}}function mX(s){return s.replace(/\r\n|\r|\n/g," ")}let RL=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new dn),this._keybindingResolver=new tw({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return pX(this,void 0,void 0,function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Au();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=F.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),d=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof JT?l(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=h=>new JT(h.action,()=>this._delegate.onSelectCodeAction(h)),a=t.map(r),l=[...i],d=this._editor.getModel();if(d&&a.length)for(const h of ar.all(d))h._getAdditionalMenuItems&&l.push(...h._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(c=>c.action)));return l.length&&a.push(new $s,...l.map(h=>r(new Q2({title:h.title,command:h},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Ii(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};RL=gX([QT(2,Tl),QT(3,Nt)],RL);class tw{constructor(e){this._keybindingProvider=e}getResolver(){const e=new TC(()=>this._keybindingProvider.getKeybindings().filter(t=>tw.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===rI?i={kind:We.SourceOrganizeImports.value}:t.command===aI&&(i={kind:We.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Jo.fromUser(i,{kind:We.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new We(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}tw.codeActionCommands=[Y2,Z2,X2,rI,aI];var _X=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},bX=function(s,e){return function(t,i){e(t,i,s)}},cg;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(cg||(cg={}));let AC=class J2 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new M),this.onClick=this._onClick.event,this._state=cg.Hidden,this._domNode=document.createElement("div"),this._domNode.className=ie.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),lt.ignoreTarget(this._domNode),this._register(a3(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=Ii(this._domNode),l=this._editor.getOption(58);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{if((o.buttons&1)!==1)return;this.hide();const r=new Lh;r.startMonitoring(o.target,o.buttons,Ou,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(56).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=n.get(43),h=o.getLineContent(r),c=ts.computeIndentLevel(h,l),u=d.spaceWidth*c>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let g=r;if(!u){if(r>1&&!f(r-1))g-=1;else if(!f(r+1))g+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new cg.Showing(e,t,i,{position:{lineNumber:g,column:1},preference:J2._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=cg.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...ie.lightBulb.classNamesArray),this._domNode.classList.add(...ie.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...ie.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...ie.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};AC._posPref=[0];AC=_X([bX(3,Nt)],AC);st((s,e)=>{var t;const i=(t=s.getColor(ms))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(M9);n&&e.addRule(` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:Xa(t,a.open),close:Xa(t,a.close)});else throw pt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function DZ(s){Td.registerLanguage(s)}function xZ(){let s=[];return s=s.concat(Td.getLanguages()),s}function kZ(s){return it.modeService.get().languageIdCodec.encodeLanguageId(s)}function IZ(s,e){let t=it.modeService.get().onDidEncounterLanguage(i=>{i===s&&(t.dispose(),e())});return t}function EZ(s,e){const t=it.modeService.get().validateLanguageId(s);if(!t)throw new Error(`Cannot set configuration for unknown language ${s}`);return Qe.register(t,e,100)}class NZ{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if(typeof this._actual.tokenize=="function")return lp.adaptTokenize(this._languageId,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new jC(n.tokens,n.endState)}}class lp{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._modeService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){let n=[],o=0;for(let r=0,a=e.length;r0&&r[a-1]===f)continue;let g=u.startIndex;h===0?g=0:gTZ(n)?new NZ(t,n):new lp(t,n,it.modeService.get(),it.standaloneThemeService.get());return E2(e)?Rt.registerPromise(s,e.then(n=>i(n))):Rt.register(s,i(e))}function MZ(s,e){const t=i=>TH(it.modeService.get(),it.standaloneThemeService.get(),s,LZ(s,i));return E2(e)?Rt.registerPromise(s,e.then(i=>t(i))):Rt.register(s,t(e))}function OZ(s,e){return vb.register(s,e)}function PZ(s,e){return wb.register(s,e)}function FZ(s,e){return yd.register(s,e)}function BZ(s,e){return wg.register(s,{provideHover:(t,i,n)=>{let o=t.getWordAtPosition(i);return Promise.resolve(e.provideHover(t,i,n)).then(r=>{if(r)return!r.range&&o&&(r.range=new S(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),r.range||(r.range=new S(i.lineNumber,i.column,i.lineNumber,i.column)),r})}})}function WZ(s,e){return Vs.register(s,e)}function VZ(s,e){return Xc.register(s,e)}function HZ(s,e){return Sb.register(s,e)}function zZ(s,e){return Sg.register(s,e)}function UZ(s,e){return Lb.register(s,e)}function $Z(s,e){return Db.register(s,e)}function jZ(s,e){return Zr.register(s,e)}function KZ(s,e,t){return ar.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(i,n,o,r)=>{let a=it.markerService.get().read({resource:i.uri}).filter(l=>S.areIntersectingOrTouching(l,n));return e.provideCodeActions(i,n,{markers:a,only:o.only},r)},resolveCodeAction:e.resolveCodeAction})}function qZ(s,e){return Wf.register(s,e)}function GZ(s,e){return ao.register(s,e)}function ZZ(s,e){return xb.register(s,e)}function YZ(s,e){return yg.register(s,e)}function XZ(s,e){return ro.register(s,e)}function QZ(s,e){return Qc.register(s,e)}function JZ(s,e){return J1.register(s,e)}function eY(s,e){return yb.register(s,e)}function tY(s,e){return JC.register(s,e)}function iY(s,e){return Jc.register(s,e)}function nY(s,e){return ev.register(s,e)}function sY(s,e){return hx.register(s,e)}function oY(s,e){return za.register(s,e)}function rY(){return{register:DZ,getLanguages:xZ,onLanguage:IZ,getEncodedLanguageId:kZ,setLanguageConfiguration:EZ,setColorMap:AZ,setTokensProvider:RZ,setMonarchTokensProvider:MZ,registerReferenceProvider:OZ,registerRenameProvider:PZ,registerCompletionItemProvider:XZ,registerSignatureHelpProvider:FZ,registerHoverProvider:BZ,registerDocumentSymbolProvider:WZ,registerDocumentHighlightProvider:VZ,registerLinkedEditingRangeProvider:HZ,registerDefinitionProvider:zZ,registerImplementationProvider:UZ,registerTypeDefinitionProvider:$Z,registerCodeLensProvider:jZ,registerCodeActionProvider:KZ,registerDocumentFormattingEditProvider:qZ,registerDocumentRangeFormattingEditProvider:GZ,registerOnTypeFormattingEditProvider:ZZ,registerLinkProvider:YZ,registerColorProvider:QZ,registerFoldingRangeProvider:JZ,registerDeclarationProvider:eY,registerSelectionRangeProvider:tY,registerDocumentSemanticTokensProvider:iY,registerDocumentRangeSemanticTokensProvider:nY,registerInlineCompletionsProvider:sY,registerInlayHintsProvider:oY,DocumentHighlightKind:d1,CompletionItemKind:n1,CompletionItemTag:s1,CompletionItemInsertTextRule:i1,SymbolKind:N1,SymbolTag:T1,IndentAction:g1,CompletionTriggerKind:o1,SignatureHelpTriggerKind:E1,InlayHintKind:p1,InlineCompletionTriggerKind:m1,FoldingRangeKind:vo}}class fu{static _handleEolEdits(e,t){let i,n=[];for(let o of t)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&n.push(o);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=fu._handleEolEdits(e,t);n.length===1&&fu._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(o=>Ut.replace(S.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",n.map(o=>Ut.replaceMove(S.lift(o.range),o.text))),i&&e.pushUndoStop()}}class aS{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var yo=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function Jk(s){if(s=s.filter(n=>n.range),!s.length)return;let{range:e}=s[0];for(let n=1;n0&&S.areIntersectingOrTouching(l[d-1],g)?l[d-1]=S.fromPositions(l[d-1].getStartPosition(),g.getEndPosition()):d=l.push(g);const h=g=>yo(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,g,r.getFormattingOptions(),a.token))||[]}),c=(g,m)=>{if(!g.length||!m.length)return!1;const _=g.reduce((C,b)=>S.plusRange(C,b.range),g[0].range);if(!m.some(C=>S.intersectRanges(_,C.range)))return!1;for(let C of g)for(let b of m)if(S.intersectRanges(C.range,b.range))return!0;return!1},u=[],f=[];try{for(let g of l){if(a.token.isCancellationRequested)return!0;f.push(yield h(g))}for(let g=0;g({text:_.text,range:S.lift(_.range),forceMoveMarkers:!0})),_=>{for(const{range:C}of _)if(S.areIntersectingOrTouching(C,m))return[new ne(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)];return null})}return!0})}function lY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ge),r=ur(e)?e.getModel():e,a=N2(r),l=yield Jd.select(a,r,t);l&&(i.report(l),yield o.invokeFunction(dY,l,e,t,n))})}function dY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ys);let r,a;ur(t)?(r=t.getModel(),a=new Zg(t,5,void 0,n)):(r=t,a=new wk(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(ur(t))fu.execute(t,l,i!==2),i!==2&&(Jk(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,h=new ne(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([h],l.map(c=>({text:c.text,range:S.lift(c.range),forceMoveMarkers:!0})),c=>{for(const{range:u}of c)if(S.areIntersectingOrTouching(u,h))return[new ne(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function hY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=ao.ordered(e);for(const r of o){let a=yield Promise.resolve(r.provideDocumentRangeFormattingEdits(e,t,i,n)).catch(Di);if(Tn(a))return yield s.computeMoreMinimalEdits(e.uri,a)}})}function cY(s,e,t,i){return yo(this,void 0,void 0,function*(){const n=N2(e);for(const o of n){let r=yield Promise.resolve(o.provideDocumentFormattingEdits(e,t,i)).catch(Di);if(Tn(r))return yield s.computeMoreMinimalEdits(e.uri,r)}})}function A2(s,e,t,i,n){const o=xb.ordered(e);return o.length===0||o[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(o[0].provideOnTypeFormattingEdits(e,t,i,n,Oe.None)).catch(Di).then(r=>s.computeMoreMinimalEdits(e.uri,r))}$e.registerCommand("_executeFormatRangeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n]=e;ut(me.isUri(t)),ut(S.isIRange(i));const o=s.get(Qn),r=s.get(Ys),a=yield o.createModelReference(t);try{return hY(r,a.object.textEditorModel,S.lift(i),n,Oe.None)}finally{a.dispose()}})});$e.registerCommand("_executeFormatDocumentProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i]=e;ut(me.isUri(t));const n=s.get(Qn),o=s.get(Ys),r=yield n.createModelReference(t);try{return cY(o,r.object.textEditorModel,i,Oe.None)}finally{r.dispose()}})});$e.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n,o]=e;ut(me.isUri(t)),ut(F.isIPosition(i)),ut(typeof n=="string");const r=s.get(Qn),a=s.get(Ys),l=yield r.createModelReference(t);try{return A2(a,l.object.textEditorModel,F.lift(i),n,o)}finally{l.dispose()}})});var lS;Do.wrappingIndent.defaultValue=0;Do.glyphMargin.defaultValue=!1;Do.autoIndent.defaultValue=3;Do.overviewRulerLanes.defaultValue=2;Jd.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const un=FR();un.editor=bZ();un.languages=rY();const uY=un.CancellationTokenSource,gu=un.Emitter,fY=un.KeyCode,gY=un.KeyMod,pY=un.Position,mY=un.Range,_Y=un.Selection,bY=un.SelectionDirection,CY=un.MarkerSeverity,vY=un.MarkerTag,wY=un.Uri,SY=un.Token,yY=un.editor,on=un.languages;(!((lS=Et.MonacoEnvironment)===null||lS===void 0)&&lS.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=un);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var LY="4.4.4",IL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(IL||(IL={}));var EL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(EL||(EL={}));var NL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(NL||(NL={}));var dp;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(dp||(dp={}));var TL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(TL||(TL={}));var R2=function(){function s(e,t,i,n){this._onDidChange=new gu,this._onDidExtraLibsChange=new gu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),s.prototype.getExtraLibs=function(){return this._extraLibs},s.prototype.addExtraLib=function(e,t){var i=this,n;if(typeof t>"u"?n="ts:extralib-"+Math.random().toString(36).substring(2,15):n=t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var r=i._extraLibs[n];r&&r.version===o&&(delete i._extraLibs[n],i._removedExtraLibs[n]=o,i._fireOnDidExtraLibsChangeSoon())}}},s.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var i=0,n=e;iimport("./tsMode-BnGu4F7B.js"),__vite__mapDeps([0,1,2]))}on.onLanguage("typescript",function(){return Zv().then(function(s){return s.setupTypeScript(M2)})});on.onLanguage("javascript",function(){return Zv().then(function(s){return s.setupJavaScript(O2)})});var eI=function(){function s(e,t,i){this._onDidChange=new gu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),s.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),tI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},iI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},P2=new eI("css",tI,iI),F2=new eI("scss",tI,iI),B2=new eI("less",tI,iI);on.css={cssDefaults:P2,lessDefaults:B2,scssDefaults:F2};function nI(){return ce(()=>import("./cssMode-BgfGO5tI.js"),__vite__mapDeps([3,1,2]))}on.onLanguage("less",function(){nI().then(function(s){return s.setupMode(B2)})});on.onLanguage("scss",function(){nI().then(function(s){return s.setupMode(F2)})});on.onLanguage("css",function(){nI().then(function(s){return s.setupMode(P2)})});var IY=function(){function s(e,t,i){this._onDidChange=new gu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),s.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),EY={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},NY={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},W2=new IY("json",EY,NY);on.json={jsonDefaults:W2};function TY(){return ce(()=>import("./jsonMode-DlxCG009.js"),__vite__mapDeps([4,1,2]))}on.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});on.onLanguage("json",function(){TY().then(function(s){return s.setupMode(W2)})});var AY=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},RY=function(s,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(d){return function(h){return l([d,h])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(o=d[0]&2?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]import("./htmlMode-DQtrbM7a.js"),__vite__mapDeps([5,1,2]))}function Qv(s,e,t){var i=this;e===void 0&&(e=Yv),t===void 0&&(t=Xv(s));var n=new MY(s,e,t),o,r=on.onLanguage(s,function(){return AY(i,void 0,void 0,function(){return RY(this,function(a){switch(a.label){case 0:return[4,WY()];case 1:return o=a.sent().setupMode(n),[2]}})})});return{defaults:n,dispose:function(){r.dispose(),o==null||o.dispose(),o=void 0}}}var U2={},dS={},VY=function(){function s(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(i,n){t._lazyLoadPromiseResolve=i,t._lazyLoadPromiseReject=n})}return s.getOrCreate=function(e){return dS[e]||(dS[e]=new s(e)),dS[e]},s.prototype.whenLoaded=function(){return this._lazyLoadPromise},s.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,U2[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},s}();function fe(s){var e=s.id;U2[e]=s,on.register(s);var t=VY.getOrCreate(e);on.setMonarchTokensProvider(e,t.whenLoaded().then(function(i){return i.language})),on.onLanguage(e,function(){t.load().then(function(i){on.setLanguageConfiguration(e,i.conf)})})}fe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return ce(()=>import("./abap-CRCWOmpq.js"),[])}});fe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return ce(()=>import("./apex-BL_CmIl-.js"),[])}});fe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return ce(()=>import("./azcli-1IWB1ccx.js"),[])}});fe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return ce(()=>import("./bat-DPkNLes8.js"),[])}});fe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return ce(()=>import("./bicep-DLNwh9K6.js"),[])}});fe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return ce(()=>import("./cameligo-CGrWLZr3.js"),[])}});fe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return ce(()=>import("./clojure-D9WOWImG.js"),[])}});fe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return ce(()=>import("./coffee-B7EJu28W.js"),[])}});fe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return ce(()=>import("./cpp-RmZVvII3.js"),[])}});fe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return ce(()=>import("./cpp-RmZVvII3.js"),[])}});fe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return ce(()=>import("./csharp-BoL64M5l.js"),[])}});fe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return ce(()=>import("./csp-C46ZqvIl.js"),[])}});fe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return ce(()=>import("./css-yEtxmcUf.js"),[])}});fe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return ce(()=>import("./dart-D8lhlL1r.js"),[])}});fe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return ce(()=>import("./dockerfile-DLk6rpji.js"),[])}});fe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return ce(()=>import("./ecl-BO6FnfXk.js"),[])}});fe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return ce(()=>import("./elixir-B9GXSzSz.js"),[])}});fe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return ce(()=>import("./flow9-Cac8vKd7.js"),[])}});fe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return ce(()=>import("./fsharp-fd1GTHhf.js"),[])}});fe({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return ce(()=>import("./go-O9LJTZXk.js"),[])}});fe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return ce(()=>import("./graphql-LQdxqEYJ.js"),[])}});fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return ce(()=>import("./handlebars-HvTq5gyi.js"),__vite__mapDeps([6,1,2]))}});fe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return ce(()=>import("./hcl-DxDQ3s82.js"),[])}});fe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return ce(()=>import("./html-DFebxkkb.js"),__vite__mapDeps([7,1,2]))}});fe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return ce(()=>import("./ini-BvajGCUy.js"),[])}});fe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return ce(()=>import("./java-SYsfObOQ.js"),[])}});fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return ce(()=>import("./javascript-FIJUHX4Q.js"),__vite__mapDeps([8,9,1,2]))}});fe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return ce(()=>import("./julia-DQXNmw_w.js"),[])}});fe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return ce(()=>import("./kotlin-qQ0MG-9I.js"),[])}});fe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return ce(()=>import("./less-B86-qBTk.js"),[])}});fe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return ce(()=>import("./lexon-Canl7DCW.js"),[])}});fe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return ce(()=>import("./lua-D28Ae8-K.js"),[])}});fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return ce(()=>import("./liquid-Cj9GJa6P.js"),__vite__mapDeps([10,1,2]))}});fe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return ce(()=>import("./m3-DPitgjJI.js"),[])}});fe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return ce(()=>import("./markdown-XFFkuszK.js"),[])}});fe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return ce(()=>import("./mips-CdjsipkG.js"),[])}});fe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return ce(()=>import("./msdax-CYqgjx_P.js"),[])}});fe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return ce(()=>import("./mysql-uE-sL1AK.js"),[])}});fe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return ce(()=>import("./objective-c-B1aVtJYH.js"),[])}});fe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return ce(()=>import("./pascal-BhNW15KB.js"),[])}});fe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return ce(()=>import("./pascaligo-5jv8CcQD.js"),[])}});fe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return ce(()=>import("./perl-DlYyT36c.js"),[])}});fe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return ce(()=>import("./pgsql-DYSgOGm2.js"),[])}});fe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return ce(()=>import("./php-120yhfDK.js"),[])}});fe({id:"pla",extensions:[".pla"],loader:function(){return ce(()=>import("./pla-CjnFlu4u.js"),[])}});fe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ce(()=>import("./postiats-CQpG440k.js"),[])}});fe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return ce(()=>import("./powerquery-DdJtto1Z.js"),[])}});fe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return ce(()=>import("./powershell-Bu_VLpJB.js"),[])}});fe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return ce(()=>import("./protobuf-UZVfc1EA.js"),[])}});fe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return ce(()=>import("./pug-kFxLfcjb.js"),[])}});fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return ce(()=>import("./python-SnQgAngQ.js"),__vite__mapDeps([11,1,2]))}});fe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return ce(()=>import("./qsharp-BhgV_cYv.js"),[])}});fe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return ce(()=>import("./r-BIFz-_sK.js"),[])}});fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return ce(()=>import("./razor-Bmb5iKBj.js"),__vite__mapDeps([12,1,2]))}});fe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return ce(()=>import("./redis-CHOsPHWR.js"),[])}});fe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return ce(()=>import("./redshift-w2XKkDvD.js"),[])}});fe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return ce(()=>import("./restructuredtext-CghPJEOS.js"),[])}});fe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return ce(()=>import("./ruby-CYWGW-b1.js"),[])}});fe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return ce(()=>import("./rust-DMDD0SHb.js"),[])}});fe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return ce(()=>import("./sb-BYAiYHFx.js"),[])}});fe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return ce(()=>import("./scala-Bqvq8jcR.js"),[])}});fe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return ce(()=>import("./scheme-Dhb-2j9p.js"),[])}});fe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return ce(()=>import("./scss-CdQcnAnq.js"),[])}});fe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return ce(()=>import("./shell-CmmbcNmB.js"),[])}});fe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return ce(()=>import("./solidity-CME5AdoB.js"),[])}});fe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return ce(()=>import("./sophia-RYC1BQQz.js"),[])}});fe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return ce(()=>import("./sparql-KEyrF7De.js"),[])}});fe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return ce(()=>import("./sql-BdTr02Mf.js"),[])}});fe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return ce(()=>import("./st-C8kzSboH.js"),[])}});fe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return ce(()=>import("./swift-vE6e-x0J.js"),[])}});fe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return ce(()=>import("./systemverilog-DgMryOEJ.js"),[])}});fe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return ce(()=>import("./systemverilog-DgMryOEJ.js"),[])}});fe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return ce(()=>import("./tcl-PloMZuKG.js"),[])}});fe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return ce(()=>import("./twig-bne2BnKZ.js"),[])}});fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return ce(()=>import("./typescript-B7B4_omT.js"),__vite__mapDeps([9,1,2]))}});fe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return ce(()=>import("./vb-BwAE3J76.js"),[])}});fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-D3ZpXmrN.js"),__vite__mapDeps([13,1,2]))}});fe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return ce(()=>import("./yaml-A89blxgn.js"),[])}});var HY=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zY=function(s,e){return function(t,i){e(t,i,s)}},Jv=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const ew=new re("selectionAnchorSet",!1);let _a=class $2{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=ew.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution($2.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:ne.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new ma().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Ei(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ne.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};_a.ID="editor.contrib.selectionAnchorController";_a=HY([zY(1,ve)],_a);class UY extends oe{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2080),weight:100}})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).setSelectionAnchor()})}}class $Y extends oe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:ew})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).goToSelectionAnchor()})}}class jY extends oe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:ew,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2089),weight:100}})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).selectFromAnchorToCursor()})}}class KY extends oe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:ew,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}run(e,t){return Jv(this,void 0,void 0,function*(){_a.get(t).cancelSelectionAnchor()})}}nt(_a.ID,_a);ee(UY);ee($Y);ee(jY);ee(KY);const qY=R("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class GY extends oe{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=bo.get(t);i&&i.jumpToBracket()}}class ZY extends oe{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=bo.get(t);if(!n)return;let o=!0;i&&i.selectBrackets===!1&&(o=!1),n.selectToBracket(o)}}class YY{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class bo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Lt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(bo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.findEnclosingBrackets(n);if(a)r=a[0].getStartPosition();else{const l=e.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ne(r.lineNumber,r.column,r.lineNumber,r.column):new ne(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.matchBracket(o);if(!r&&(r=t.findEnclosingBrackets(o),!r)){const d=t.findNextBracket(o);d&&d.range&&(r=t.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(S.compareRangesUsingStarts);const[d,h]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition(),h.containsPosition(o)){const c=a;a=l,l=c}}a&&l&&i.push(new ne(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],r=0;for(let c=0,u=e.length;c1&&o.sort(F.compare);let a=[],l=0,d=0,h=n.length;for(let c=0,u=o.length;c{const t=s.getColor(O6);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor(YO);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});ps.appendMenuItem(ae.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class XY{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new S(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,o,i,o),a)}else{const r=new S(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ne(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ne(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class j2 extends oe{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const o of n)i.push(new XY(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class QY extends j2{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:E.writable})}}class JY extends j2{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:E.writable})}}ee(QY);ee(JY);class eX extends oe{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,d=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&d===2))continue;let h=l===d?r.getPosition():Xe.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),c=Xe.leftPosition(i,h),u=Xe.leftPosition(i,c),f=i.getValueInRange(S.fromPositions(u,c)),g=i.getValueInRange(S.fromPositions(c,h)),m=S.fromPositions(u,h);n.push(new xi(m,g+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(eX);var tX=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const eh="9_cutcopypaste",iX=uo||document.queryCommandSupported("cut"),K2=uo||document.queryCommandSupported("copy"),nX=typeof navigator.clipboard>"u"||rn?document.queryCommandSupported("paste"):!0;function sI(s){return s.register(),s}const sX=iX?sI(new Mu({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:uo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:ae.EditorContext,group:eh,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:ae.SimpleEditorContext,group:eh,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1}]})):void 0,oX=K2?sI(new Mu({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:uo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:ae.EditorContext,group:eh,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:ae.SimpleEditorContext,group:eh,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;ps.appendMenuItem(ae.MenubarEditMenu,{submenu:ae.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});ps.appendMenuItem(ae.EditorContext,{submenu:ae.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:eh,order:3});const hS=nX?sI(new Mu({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:uo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:ae.EditorContext,group:eh,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:ae.SimpleEditorContext,group:eh,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4}]})):void 0;class rX extends oe{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(Ty.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Ty.forceCopyWithSyntaxHighlighting=!1)}}function q2(s,e){s&&(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(tt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(32),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}q2(sX,"cut");q2(oX,"copy");hS&&(hS.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(tt),i=s.get(Al),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Nu?tX(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bg.INSTANCE.get(r);let l=!1,d=null,h=null;a&&(l=n.getOption(32)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,h=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:h})}}):!0:!1}),hS.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));K2&&ee(rX);class TC{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}class We{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+We.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new We(this.value+We.sep+e)}}We.sep=".";We.None=new We("@@none@@");We.Empty=new We("");We.QuickFix=new We("quickfix");We.Refactor=new We("refactor");We.Source=new We("source");We.SourceOrganizeImports=We.Source.append("organizeImports");We.SourceFixAll=We.Source.append("fixAll");function aX(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>G2(e,t,s.include))||!s.includeSourceActions&&We.Source.contains(e))}function lX(s,e){const t=e.kind?new We(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>G2(t,i,s.include))||!s.includeSourceActions&&t&&We.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function G2(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Jo{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Jo(t.kind,t.apply,!1):new Jo(Jo.getKindFromUser(e,t.kind),Jo.getApplyFromUser(e,t.apply),Jo.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new We(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var oI=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Z2="editor.action.codeAction",Y2="editor.action.refactor",X2="editor.action.sourceAction",rI="editor.action.organizeImports",aI="editor.action.fixAll";class Q2{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return oI(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Di(n)}i&&(this.action.edit=i.edit)}return this})}}class lI extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(lI.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Tn(e.diagnostics)?Tn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Tn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&We.QuickFix.contains(new We(e.kind))&&!!e.isPreferred)}}const YT={actions:[],documentation:void 0};function dI(s,e,t,i,n){var o;const r=t.filter||{},a={only:(o=r.include)===null||o===void 0?void 0:o.value,trigger:t.type},l=new wk(s,n),d=dX(s,r),h=new X,c=d.map(f=>oI(this,void 0,void 0,function*(){try{i.report(f);const g=yield f.provideCodeActions(s,e,a,l.token);if(g&&h.add(g),l.token.isCancellationRequested)return YT;const m=((g==null?void 0:g.actions)||[]).filter(C=>C&&lX(r,C)),_=hX(f,m,r.include);return{actions:m.map(C=>new Q2(C,f)),documentation:_}}catch(g){if(br(g))throw g;return Di(g),YT}})),u=ar.onDidChange(()=>{const f=ar.all(s);zs(f,d)||l.cancel()});return Promise.all(c).then(f=>{const g=_x(f.map(_=>_.actions)),m=vh(f.map(_=>_.documentation));return new lI(g,m,h)}).finally(()=>{u.dispose(),l.dispose()})}function dX(s,e){return ar.all(s).filter(t=>t.providedCodeActionKinds?t.providedCodeActionKinds.some(i=>aX(e,new We(i))):!0)}function hX(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new We(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const o of i)if(o.kind.contains(new We(n.kind)))return o.command}}$e.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return oI(this,void 0,void 0,function*(){if(!(e instanceof me))throw fo();const o=s.get(ri).getModel(e);if(!o)throw fo();const r=ne.isISelection(t)?ne.liftSelection(t):S.isIRange(t)?o.validateRange(t):void 0;if(!r)throw fo();const a=typeof i=="string"?new We(i):void 0,l=yield dI(o,r,{type:1,filter:{includeSourceActions:!0,include:a}},xh.None,Oe.None),d=[],h=Math.min(l.validActions.length,typeof n=="number"?n:0);for(let c=0;cc.action)}finally{setTimeout(()=>l.dispose(),100)}})});var cX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},uX=function(s,e){return function(t,i){e(t,i,s)}};let is=class AL{constructor(e,t){this._messageWidget=new dn,this._messageListeners=new X,this._editor=e,this._visible=AL.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(AL.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ei(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new XT(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new hn(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new S(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(XT.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};is.ID="editor.contrib.messageController";is.MESSAGE_VISIBLE=new re("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));is=cX([uX(1,ve)],is);const fX=Mi.bindToContribution(is.get);J(new fX({id:"leaveEditorMessage",precondition:is.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:130,primary:9}}));let XT=class{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};nt(is.ID,is);st((s,e)=>{const t=s.getColor(Yx);if(t){let o=s.type===gs.HIGH_CONTRAST?2:1;e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${o}px solid ${t}; }`)}const i=s.getColor(Gx);i&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const n=s.getColor(Zx);n&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${n}; }`)});var gX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QT=function(s,e){return function(t,i){e(t,i,s)}},pX=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class JT extends Us{constructor(e,t){super(e.command?e.command.id:e.title,mX(e.title),void 0,!e.disabled,t),this.action=e}}function mX(s){return s.replace(/\r\n|\r|\n/g," ")}let RL=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new dn),this._keybindingResolver=new tw({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return pX(this,void 0,void 0,function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Au();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=F.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),d=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof JT?l(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=h=>new JT(h.action,()=>this._delegate.onSelectCodeAction(h)),a=t.map(r),l=[...i],d=this._editor.getModel();if(d&&a.length)for(const h of ar.all(d))h._getAdditionalMenuItems&&l.push(...h._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(c=>c.action)));return l.length&&a.push(new $s,...l.map(h=>r(new Q2({title:h.title,command:h},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Ii(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};RL=gX([QT(2,Tl),QT(3,Nt)],RL);class tw{constructor(e){this._keybindingProvider=e}getResolver(){const e=new TC(()=>this._keybindingProvider.getKeybindings().filter(t=>tw.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===rI?i={kind:We.SourceOrganizeImports.value}:t.command===aI&&(i={kind:We.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Jo.fromUser(i,{kind:We.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new We(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}tw.codeActionCommands=[Y2,Z2,X2,rI,aI];var _X=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},bX=function(s,e){return function(t,i){e(t,i,s)}},cg;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(cg||(cg={}));let AC=class J2 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new M),this.onClick=this._onClick.event,this._state=cg.Hidden,this._domNode=document.createElement("div"),this._domNode.className=ie.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),lt.ignoreTarget(this._domNode),this._register(a3(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=Ii(this._domNode),l=this._editor.getOption(58);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{if((o.buttons&1)!==1)return;this.hide();const r=new Lh;r.startMonitoring(o.target,o.buttons,Ou,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(56).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=n.get(43),h=o.getLineContent(r),c=ts.computeIndentLevel(h,l),u=d.spaceWidth*c>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let g=r;if(!u){if(r>1&&!f(r-1))g-=1;else if(!f(r+1))g+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new cg.Showing(e,t,i,{position:{lineNumber:g,column:1},preference:J2._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=cg.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...ie.lightBulb.classNamesArray),this._domNode.classList.add(...ie.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...ie.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...ie.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};AC._posPref=[0];AC=_X([bX(3,Nt)],AC);st((s,e)=>{var t;const i=(t=s.getColor(ms))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(M9);n&&e.addRule(` .monaco-editor .contentWidgets ${ie.lightBulb.cssSelector} { color: ${n}; background-color: ${i}; diff --git a/public/admin-assets/assets/editor.main-BblzkW2o.js.gz b/public/admin-assets/assets/editor.main-BblzkW2o.js.gz new file mode 100644 index 0000000..a921d71 Binary files /dev/null and b/public/admin-assets/assets/editor.main-BblzkW2o.js.gz differ diff --git a/public/admin-assets/assets/editor.main-zqPJG_fq.js.gz b/public/admin-assets/assets/editor.main-zqPJG_fq.js.gz deleted file mode 100644 index ac0bfae..0000000 Binary files a/public/admin-assets/assets/editor.main-zqPJG_fq.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/exceljs.min-CPDYq6sR.js.gz b/public/admin-assets/assets/exceljs.min-CPDYq6sR.js.gz deleted file mode 100644 index 7d1f88a..0000000 Binary files a/public/admin-assets/assets/exceljs.min-CPDYq6sR.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/exceljs.min-CPDYq6sR.js b/public/admin-assets/assets/exceljs.min-CdZChlhg.js similarity index 99% rename from public/admin-assets/assets/exceljs.min-CPDYq6sR.js rename to public/admin-assets/assets/exceljs.min-CdZChlhg.js index 78b907c..e5c496c 100644 --- a/public/admin-assets/assets/exceljs.min-CPDYq6sR.js +++ b/public/admin-assets/assets/exceljs.min-CdZChlhg.js @@ -1,4 +1,4 @@ -import{o as Ve,p as Kt,q as De}from"./index-CgQH3-O6.js";function qe(Ee,Fe){for(var s=0;sT[S]})}}}return Object.freeze(Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}))}var $e={exports:{}};/*! ExcelJS 19-10-2023 */(function(Ee,Fe){(function(s){Ee.exports=s()})(function(){return function s(T,S,m){function o(t,e){if(!S[t]){if(!T[t]){var l=typeof De=="function"&&De;if(!e&&l)return l(t,!0);if(a)return a(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=S[t]={exports:{}};T[t][0].call(i.exports,function(c){return o(T[t][1][c]||c)},i,i.exports,s,T,S,m)}return S[t].exports}for(var a=typeof De=="function"&&De,r=0;r{const d=this.workbook.addWorksheet(c.sheetName),f=c.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=c.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const L=f.reduce((P,D)=>{if(P)return P;const U=t(A,D,!0);return U.isValid()?U:null},null);if(L)return new Date(L.valueOf());const I=n[A];return I!==void 0?I:A},_=o.parse(c.parserOptions).on("data",A=>{d.addRow(A.map(w))}).on("end",()=>{_.emit("worksheet",d)});_.on("worksheet",h).on("error",u),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,c){return new Promise((h,u)=>{c=c||{};const d=this.workbook.getWorksheet(c.sheetName||c.sheetId),f=o.format(c.formatterOptions);i.on("finish",()=>{h()}),f.on("error",u),f.pipe(i);const{dateFormat:w,dateUTC:_}=c,A=c.map||(I=>{if(I){if(I.text||I.hyperlink)return I.hyperlink||I.text||"";if(I.formula||I.result)return I.result||"";if(I instanceof Date)return w?_?t.utc(I).format(w):t(I).format(w):_?t.utc(I).format():t(I).format();if(I.error)return I.error;if(typeof I=="object")return JSON.stringify(I)}return I}),N=c.includeEmptyRows===void 0||c.includeEmptyRows;let L=1;d&&d.eachRow((I,P)=>{if(N)for(;L++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const l=m.decodeAddress(t);this.nativeCol=l.col+e,this.nativeColOff=0,this.nativeRow=l.row+e,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+e,this.row=t.row+e):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof o||r==null?r:new o(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}T.exports=o},{"../utils/col-cache":19}],3:[function(s,T,S){const m=s("../utils/col-cache"),o=s("../utils/under-dash"),a=s("./enums"),{slideFormula:r}=s("../utils/shared-formula"),t=s("./note");class e{constructor(i,c,h){if(!i||!c)throw new Error("A Cell needs a Row");this._row=i,this._column=c,m.validateAddress(h),this._address=h,this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(i.style,c.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,c,h){const u=i&&i.numFmt||c&&c.numFmt;u&&(h.numFmt=u);const d=i&&i.font||c&&c.font;d&&(h.font=d);const f=i&&i.alignment||c&&c.alignment;f&&(h.alignment=f);const w=i&&i.border||c&&c.border;w&&(h.border=w);const _=i&&i.fill||c&&c.fill;_&&(h.fill=_);const A=i&&i.protection||c&&c.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===e.Types.Merge}merge(i,c){this._value.release(),this._value=l.create(e.Types.Merge,this,i),c||(this.style=i.style)}unmerge(){this.type===e.Types.Merge&&(this._value.release(),this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===e.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===e.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===e.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==e.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new t(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===e.Types.String&&(this._value=l.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:c}=this.workbook;c.removeAllNames(this.fullAddress),i.forEach(h=>{c.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=t.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}e.Types=a.ValueType;const l={getType:n=>n==null?e.Types.Null:n instanceof String||typeof n=="string"?e.Types.String:typeof n=="number"?e.Types.Number:typeof n=="boolean"?e.Types.Boolean:n instanceof Date?e.Types.Date:n.text&&n.hyperlink?e.Types.Hyperlink:n.formula||n.sharedFormula?e.Types.Formula:n.richText?e.Types.RichText:n.sharedString?e.Types.SharedString:n.error?e.Types.Error:e.Types.JSON,types:[{t:e.Types.Null,f:class{constructor(n){this.model={address:n.address,type:e.Types.Null}}get value(){return null}set value(n){}get type(){return e.Types.Null}get effectiveType(){return e.Types.Null}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){}toString(){return""}}},{t:e.Types.Number,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Number,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Number}get effectiveType(){return e.Types.Number}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.String,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:e.Types.Date,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Date,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Date}get effectiveType(){return e.Types.Date}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Hyperlink,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const n={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(n.tooltip=this.model.tooltip),n}set value(n){this.model={text:n.text,hyperlink:n.hyperlink},n.tooltip&&(this.model.tooltip=n.tooltip)}get text(){return this.model.text}set text(n){this.model.text=n}get hyperlink(){return this.model.hyperlink}set hyperlink(n){this.model.hyperlink=n}get type(){return e.Types.Hyperlink}get effectiveType(){return e.Types.Hyperlink}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:e.Types.Formula,f:class{constructor(n,i){this.cell=n,this.model={address:n.address,type:e.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(n){const i={},c=h=>{const u=n[h];u&&(i[h]=u)};return c("formula"),c("result"),c("ref"),c("shareType"),c("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(n){this.model=this._copyModel(n)}validate(n){switch(l.getType(n)){case e.Types.Null:case e.Types.String:case e.Types.Number:case e.Types.Date:break;case e.Types.Hyperlink:case e.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(n){this.model.formula=n}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(n){this.model.result=n}get type(){return e.Types.Formula}get effectiveType(){const n=this.model.result;return n==null?a.ValueType.Null:n instanceof String||typeof n=="string"?a.ValueType.String:typeof n=="number"?a.ValueType.Number:n instanceof Date?a.ValueType.Date:n.text&&n.hyperlink?a.ValueType.Hyperlink:n.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(n){this.model.address=n}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:n}=this.cell,i=n.findCell(this.model.sharedFormula);this._translatedFormula=i&&r(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:e.Types.Merge,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(n){n instanceof e?(this._master&&this._master.releaseMergeRef(),n.addMergeRef(),this._master=n):this._master.value=n}isMergedTo(n){return n===this._master}get master(){return this._master}get type(){return e.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:e.Types.JSON,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(n){this.model.rawValue=n,this.model.value=JSON.stringify(n)}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:e.Types.SharedString,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.SharedString,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.SharedString}get effectiveType(){return e.Types.SharedString}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.RichText,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}toString(){return this.model.value.richText.map(n=>n.text).join("")}get type(){return e.Types.RichText}get effectiveType(){return e.Types.RichText}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:e.Types.Boolean,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Boolean,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Boolean}get effectiveType(){return e.Types.Boolean}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Error,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Error,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Error}get effectiveType(){return e.Types.Error}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((n,i)=>(n[i.t]=i.f,n),[]),create(n,i,c){const h=this.types[n];if(!h)throw new Error("Could not create Value of type "+n);return new h(i,c)}};T.exports=e},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache");class r{constructor(e,l,n){this._worksheet=e,this._number=l,n!==!1&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=e.width!==void 0?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){e!==void 0?(this._header=e,this.headers.forEach((l,n)=>{this._worksheet.getCell(n+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&m.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,l){const n=this.number;l||(l=e,e=null),this._worksheet.eachRow(e,(i,c)=>{l(i.getCell(n),c)})}get values(){const e=[];return this.eachCell((l,n)=>{l&&l.type!==o.ValueType.Null&&(e[n]=l.value)}),e}set values(e){if(!e)return;const l=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((i,c)=>{this._worksheet.getCell(c+n,l).value=i})}_applyStyle(e,l){return this.style[e]=l,this.eachCell(n=>{n[e]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const l=[];let n=null;return e&&e.forEach((i,c)=>{i.isDefault?n&&(n=null):n&&i.equivalentTo(n)?n.max=c+1:(n={min:c+1,max:c+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(n))}),l.length?l:void 0}static fromModel(e,l){const n=[];let i=1,c=0;for(l=(l=l||[]).sort(function(h,u){return h.min-u.min});c{l.removeCellEx(e)})}forEach(e){m.each(this.matrixMap,(l,n)=>{l.forEach(i=>{e(n,i)})})}getNames(e){return this.getNamesEx(o.decodeEx(e))}getNamesEx(e){return m.map(this.matrixMap,(l,n)=>l.findCellEx(e)&&n).filter(Boolean)}_explore(e,l){l.mark=!1;const{sheetName:n}=l,i=new r(l.row,l.col,l.row,l.col,n);let c,h;function u(f,w){const _=e.findCellAt(n,f,l.col);return!(!_||!_.mark)&&(i[w]=f,_.mark=!1,!0)}for(h=l.row-1;u(h,"top");h--);for(h=l.row+1;u(h,"bottom");h++);function d(f,w){const _=[];for(h=i.top;h<=i.bottom;h++){const A=e.findCellAt(n,h,f);if(!A||!A.mark)return!1;_.push(A)}i[w]=f;for(let A=0;A<_.length;A++)_[A].mark=!1;return!0}for(c=l.col-1;d(c,"left");c--);for(c=l.col+1;d(c,"right");c++);return i}getRanges(e,l){return(l=l||this.matrixMap[e])?(l.forEach(n=>{n.mark=!0}),{name:e,ranges:l.map(n=>n.mark&&this._explore(l,n)).filter(Boolean).map(n=>n.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,l){e.forEachInSheet(l,(n,i,c)=>{n&&(n.row===i&&n.col===c||(n.row=i,n.col=c,n.address=o.n2l(c)+i))})}spliceRows(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceRows(e,l,n,i),this.normaliseMatrix(c,e)})}spliceColumns(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceColumns(e,l,n,i),this.normaliseMatrix(c,e)})}get model(){return m.map(this.matrixMap,(e,l)=>this.getRanges(l,e)).filter(e=>e.ranges.length)}set model(e){const l=this.matrixMap={};e.forEach(n=>{const i=l[n.name]=new a;n.ranges.forEach(c=>{t.test(c.split("!").pop()||"")&&i.addCell(c)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(s,T,S){T.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(s,T,S){const m=s("../utils/col-cache"),o=s("./anchor");T.exports=class{constructor(a,r){this.worksheet=a,this.model=r}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:r,imageId:t,range:e,hyperlinks:l}=a;if(this.type=r,this.imageId=t,r==="image")if(typeof e=="string"){const n=m.decode(e);this.range={tl:new o(this.worksheet,{col:n.left,row:n.top},-1),br:new o(this.worksheet,{col:n.right,row:n.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,e.tl,0),br:e.br&&new o(this.worksheet,e.br,0),ext:e.ext,editAs:e.editAs,hyperlinks:l||e.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(s,T,S){const m=s("../utils/under-dash");class o{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return m.deepMerge({},o.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:e}=t;e.length===1&&Object.keys(e[0]).length===1?this.note=e[0].text:this.note=t}static fromModel(r){const t=new o;return t.model=r,t}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},T.exports=o},{"../utils/under-dash":26}],10:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(r,t,e,l,n){if(arguments.length<4){const i=m.decodeAddress(r),c=m.decodeAddress(t);this.model={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col),sheetName:e},this.setTLBR(i.row,i.col,c.row,c.col,n)}else this.model={top:Math.min(r,e),left:Math.min(t,l),bottom:Math.max(r,e),right:Math.max(t,l),sheetName:n}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof o)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=m.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,e,l){(!this.model.top||rthis.bottom)&&(this.bottom=e),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(r){if(r){const{dimensions:t,number:e}=r;t&&this.expand(e,t.min,e,t.max)}}expandToAddress(r){const t=m.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return m.n2l(this.left)+this.top}get $t$l(){return`$${m.n2l(this.left)}$${this.top}`}get br(){return m.n2l(this.right)+this.bottom}get $b$r(){return`$${m.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottomthis.bottom)&&!(r.rightthis.right)}contains(r){const t=m.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let e=this.top;e<=this.bottom;e++)r(m.encodeAddress(e,t),e,t)}}T.exports=o},{"../utils/col-cache":19}],11:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache"),r=s("./cell");T.exports=class{constructor(t,e){this._worksheet=t,this._number=e,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(t){return this._cells[t-1]}getCellEx(t){let e=this._cells[t.col-1];if(!e){const l=this._worksheet.getColumn(t.col);e=new r(this,l,t.address),this._cells[t.col-1]=e}return e}getCell(t){if(typeof t=="string"){const e=this._worksheet.getColumnKey(t);t=e?e.number:a.l2n(t)}return this._cells[t-1]||this.getCellEx({address:a.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,e){const l=t+e;for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c0)for(d=u;d>=l;d--)f=this._cells[d-1],f?(w=this.getCell(d+h),w.value=f.value,w.style=f.style,w._comment=f._comment):this._cells[d+h-1]=void 0;for(d=0;d{l&&l.type!==o.ValueType.Null&&e(l,n+1)})}addPageBreak(t,e){const l=this._worksheet,n=Math.max(0,t-1)||0,i=Math.max(0,e-1)||16838,c={id:this._number,max:i,man:1};n&&(c.min=n),l.rowBreaks.push(c)}get values(){const t=[];return this._cells.forEach(e=>{e&&e.type!==o.ValueType.Null&&(t[e.col]=e.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let e=0;t.hasOwnProperty("0")&&(e=1),t.forEach((l,n)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,n+e),row:this._number,col:n+e}).value=l)})}else this._worksheet.eachColumnKey((e,l)=>{t[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,e.number),row:this._number,col:e.number}).value=t[l])})}get hasValues(){return m.some(this._cells,t=>t&&t.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,e=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!t||t>l.col)&&(t=l.col),e0?{min:t,max:e}:null}_applyStyle(t,e){return this.style[t]=e,this._cells.forEach(l=>{l&&(l[t]=e)}),e}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let e=0,l=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!e||e>n.col)&&(e=n.col),l{switch(l.type){case r.Types.Merge:break;default:{let n;if(l.address)n=a.decodeAddress(l.address);else if(e){const{row:i}=e,c=e.col+1;n={row:i,col:c,address:a.encodeAddress(i,c),$col$row:`$${a.n2l(c)}$${i}`}}e=n,this.getCellEx(n).model=l;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(r,t,e){this.table=r,this.column=t,this.index=e}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}T.exports=class{constructor(a,r){this.worksheet=a,r&&(this.table=r,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,r=(h,u,d)=>{h[u]===void 0&&(h[u]=d)};r(a,"headerRow",!0),r(a,"totalsRow",!1),r(a,"style",{}),r(a.style,"theme","TableStyleMedium2"),r(a.style,"showFirstColumn",!1),r(a.style,"showLastColumn",!1),r(a.style,"showRowStripes",!1),r(a.style,"showColumnStripes",!1);const t=(h,u)=>{if(!h)throw new Error(u)};t(a.ref,"Table must have ref"),t(a.columns,"Table must have column definitions"),t(a.rows,"Table must have row definitions"),a.tl=m.decodeAddress(a.ref);const{row:e,col:l}=a.tl;t(e>0,"Table must be on valid row"),t(l>0,"Table must be on valid col");const{width:n,filterHeight:i,tableHeight:c}=this;a.autoFilterRef=m.encode(e,l,e+i-1,l+n-1),a.tableRef=m.encode(e,l,e+c-1,l+n-1),a.columns.forEach((h,u)=>{t(h.name,`Column ${u} must have a name`),u===0?r(h,"totalsRowLabel","Total"):(r(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,c)=>{c&&Object.keys(c).forEach(h=>{i[h]=c[h]})},{worksheet:r,table:t}=this,{row:e,col:l}=t.tl;let n=0;if(t.headerRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const{style:u,name:d}=c,f=i.getCell(l+h);f.value=d,a(f,u)})}if(t.rows.forEach(i=>{const c=r.getRow(e+n++);i.forEach((h,u)=>{const d=c.getCell(l+u);d.value=h,a(d,t.columns[u].style)})}),t.totalsRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const u=i.getCell(l+h);if(h===0)u.value=c.totalsRowLabel;else{const d=this.getFormula(c);u.value=d?{formula:c.totalsRowFormula,result:c.totalsRowResult}:null}a(u,c.style)})}}load(a){const{table:r}=this,{row:t,col:e}=r.tl;let l=0;if(r.headerRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{n.getCell(e+c).value=i.name})}if(r.rows.forEach(n=>{const i=a.getRow(t+l++);n.forEach((c,h)=>{i.getCell(e+h).value=c})}),r.totalsRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{const h=n.getCell(e+c);c===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=m.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,r)}getColumn(a){const r=this.table.columns[a];return new o(this,r,a)}addColumn(a,r,t){this.cacheState(),t===void 0?(this.table.columns.push(a),this.table.rows.forEach((e,l)=>{e.push(r[l])})):(this.table.columns.splice(t,0,a),this.table.rows.forEach((e,l)=>{e.splice(t,0,r[l])}))}removeColumns(a){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,r),this.table.rows.forEach(t=>{t.splice(a,r)})}_assign(a,r,t){this.cacheState(),a[r]=t}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(s,T,S){const m=s("./worksheet"),o=s("./defined-names"),a=s("../xlsx/xlsx"),r=s("../csv/csv");T.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t(u&&u.orderNo)>h?u.orderNo:h,0),i=Object.assign({},e,{id:l,name:t,orderNo:n+1,workbook:this}),c=new m(i);return this._worksheets[l]=c,c}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const e=this.getWorksheet(t);e&&e.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(e=>e&&e.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,e)=>t.orderNo-e.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(e=>{t(e,e.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const e=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),e}getImage(t){return this.media[t]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(t=>t.model),sheets:this.worksheets.map(t=>t.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(e=>{const{id:l,name:n,state:i}=e,c=t.sheets&&t.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new m({id:l,name:n,orderNo:c,state:i,workbook:this})).model=e}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(s,T,S){const m=s("../utils/under-dash"),o=s("../utils/col-cache"),a=s("./range"),r=s("./row"),t=s("./column"),e=s("./enums"),l=s("./image"),n=s("./table"),i=s("./data-validations"),c=s("../utils/encryptor"),{copyStyle:h}=s("../utils/copy-style");T.exports=class{constructor(u){u=u||{},this._workbook=u.workbook,this.id=u.id,this.orderNo=u.orderNo,this.name=u.name,this.state=u.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},u.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!u.pageSetup||!u.pageSetup.fitToWidth&&!u.pageSetup.fitToHeight||u.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},u.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},u.headerFooter),this.dataValidations=new i,this.views=u.views||[],this.autoFilter=u.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(u){if(u===void 0&&(u="sheet"+this.id),this._name!==u){if(typeof u!="string")throw new Error("The name has to be a string.");if(u==="")throw new Error("The name can't be empty.");if(u==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(u))throw new Error(`Worksheet name ${u} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(u))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+u);if(u&&u.length>31&&(console.warn(`Worksheet name ${u} exceeds 31 chars. This will be truncated`),u=u.substring(0,31)),this._workbook._worksheets.find(d=>d&&d.name.toLowerCase()===u.toLowerCase()))throw new Error("Worksheet name already exists: "+u);this._name=u}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const u=new a;return this._rows.forEach(d=>{if(d){const f=d.dimensions;f&&u.expand(d.number,f.min,d.number,f.max)}}),u}get columns(){return this._columns}set columns(u){this._headerRowCount=u.reduce((w,_)=>{const A=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(w,A)},0);let d=1;const f=this._columns=[];u.forEach(w=>{const _=new t(this,d++,!1);f.push(_),_.defn=w})}getColumnKey(u){return this._keys[u]}setColumnKey(u,d){this._keys[u]=d}deleteColumnKey(u){delete this._keys[u]}eachColumnKey(u){m.each(this._keys,u)}getColumn(u){if(typeof u=="string"){const d=this._keys[u];if(d)return d;u=o.l2n(u)}if(this._columns||(this._columns=[]),u>this._columns.length){let d=this._columns.length+1;for(;d<=u;)this._columns.push(new t(this,d++))}return this._columns[u-1]}spliceColumns(u,d){const f=this._rows.length;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A0)for(let P=0;P{D.push(B[P]||null)});const U=this.getRow(P+1);U.splice.apply(U,D)}else this._rows.forEach(P=>{P&&P.splice(u,d)});const N=_.length-d,L=u+d,I=this._columns.length;if(N<0)for(let P=u+_.length;P<=I;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=I;P>=L;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=u;P{u=Math.max(u,d.cellCount)}),u}get actualColumnCount(){const u=[];let d=0;return this.eachRow(f=>{f.eachCell(w=>{let{col:_}=w;u[_]||(u[_]=!0,d++)})}),d}_commitRow(){}get _lastRowNumber(){const u=this._rows;let d=u.length;for(;d>0&&u[d-1]===void 0;)d--;return d}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,d){return this._rows.slice(u-1,u-1+d)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let d=this._rows[u-1];return d||(d=this._rows[u-1]=new r(this,u)),d}getRows(u,d){if(d<1)return;const f=[];for(let w=u;w1&&arguments[1]!==void 0?arguments[1]:"n";const f=this._nextRow,w=this.getRow(f);return w.values=u,this._setStyleOption(f,d[0]==="i"?d:"n"),w}addRows(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const f=[];return u.forEach(w=>{f.push(this.addRow(w,d))}),f}insertRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,d),this._setStyleOption(u,f),this.getRow(u)}insertRows(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...d),f!=="n")for(let w=0;w1&&arguments[1]!==void 0?arguments[1]:"n";d[0]==="o"&&this.findRow(u+1)!==void 0?this._copyStyle(u+1,u,d[1]==="+"):d[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u,d[1]==="+")}_copyStyle(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this.getRow(u),_=this.getRow(d);_.style=h(w.style),w.eachCell({includeEmpty:f},(A,N)=>{_.getCell(N).style=h(A.style)}),_.height=w.height}duplicateRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this._rows[u-1],_=new Array(d).fill(w.values);this.spliceRows(u+1,f?0:d,..._);for(let A=0;A{N.getCell(I).style=L.style})}}spliceRows(u,d){const f=u+d;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A{U.getCell(x).style=B.style}),this._rows[P-1]=void 0}else this._rows[P+L-1]=void 0;else if(L>0)for(P=I;P>=f;P--)if(D=this._rows[P-1],D){const U=this.getRow(P+L);U.values=D.values,U.style=D.style,U.height=D.height,D.eachCell({includeEmpty:!0},(B,x)=>{if(U.getCell(x).style=B.style,B._value.constructor.name==="MergeValue"){const M=this.getRow(B._row._number+N).getCell(x),v=B._value._master,p=this.getRow(v._row._number+N).getCell(v._column._number);M.merge(p)}})}else this._rows[P+L-1]=void 0;for(P=0;P{f&&f.hasValues&&d(f,f.number)})}getSheetValues(){const u=[];return this._rows.forEach(d=>{d&&(u[d.number]=d.values)}),u}findCell(u,d){const f=o.getAddress(u,d),w=this._rows[f.row-1];return w?w.findCell(f.col):void 0}getCell(u,d){const f=o.getAddress(u,d);return this.getRow(f.row).getCellEx(f)}mergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f{if(w.intersects(u))throw new Error("Cannot merge already merged cells")});const f=this.getCell(u.top,u.left);for(let w=u.top;w<=u.bottom;w++)for(let _=u.left;_<=u.right;_++)(w>u.top||_>u.left)&&this.getCell(w,_).merge(f,d);this._merges[f.address]=u}_unMergeMaster(u){const d=this._merges[u.address];if(d){for(let f=d.top;f<=d.bottom;f++)for(let w=d.left;w<=d.right;w++)this.getCell(f,w).unmerge();delete this._merges[u.address]}}get hasMerges(){return m.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f3&&arguments[3]!==void 0?arguments[3]:"shared";const _=o.decode(u),{top:A,left:N,bottom:L,right:I}=_,P=I-N+1,D=o.encodeAddress(A,N),U=w==="shared";let B;B=typeof f=="function"?f:Array.isArray(f)?Array.isArray(f[0])?(M,v)=>f[M-A][v-N]:(M,v)=>f[(M-A)*P+(v-N)]:()=>{};let x=!0;for(let M=A;M<=L;M++)for(let v=N;v<=I;v++)x?(this.getCell(M,v).value={shareType:w,formula:d,ref:u,result:B(M,v)},x=!1):this.getCell(M,v).value=U?{sharedFormula:D,result:B(M,v)}:B(M,v)}addImage(u,d){const f={type:"image",imageId:u,range:d};this._media.push(new l(this,f))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const d={type:"background",imageId:u};this._media.push(new l(this,d))}getBackgroundImageId(){const u=this._media.find(d=>d.type==="background");return u&&u.imageId}protect(u,d){return new Promise(f=>{this.sheetProtection={sheet:!0},d&&"spinCount"in d&&(d.spinCount=Number.isFinite(d.spinCount)?Math.round(Math.max(0,d.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=c.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=d&&"spinCount"in d?d.spinCount:1e5,this.sheetProtection.hashValue=c.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),d&&(this.sheetProtection=Object.assign(this.sheetProtection,d),!u&&"spinCount"in d&&delete this.sheetProtection.spinCount),f()})}unprotect(){this.sheetProtection=null}addTable(u){const d=new n(this,u);return this.tables[u.name]=d,d}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):this.conditionalFormattings=u instanceof Function?this.conditionalFormattings.filter(u):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(w=>w.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(w=>w.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const d=u.rows=[],f=u.dimensions=new a;return this._rows.forEach(w=>{const _=w&&w.model;_&&(f.expand(_.number,_.min,_.number,_.max),d.push(_))}),u.merges=[],m.each(this._merges,w=>{u.merges.push(w.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(d=>{const f=new r(this,d.number);this._rows[f.number-1]=f,f.model=d})}_parseMergeCells(u){m.each(u.mergeCells,d=>{this.mergeCellsWithoutStyle(d)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new i(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(d=>new l(this,d)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((d,f)=>{const w=new n;return w.model=f,d[f.name]=w,d},{}),this.conditionalFormattings=u.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(s,T,S){s("core-js/modules/es.promise"),s("core-js/modules/es.promise.finally"),s("core-js/modules/es.object.assign"),s("core-js/modules/es.object.keys"),s("core-js/modules/es.object.values"),s("core-js/modules/es.symbol"),s("core-js/modules/es.symbol.async-iterator"),s("core-js/modules/es.array.iterator"),s("core-js/modules/es.array.includes"),s("core-js/modules/es.array.find-index"),s("core-js/modules/es.array.find"),s("core-js/modules/es.string.from-code-point"),s("core-js/modules/es.string.includes"),s("core-js/modules/es.number.is-nan"),s("regenerator-runtime/runtime");const m={Workbook:s("./doc/workbook")},o=s("./doc/enums");Object.keys(o).forEach(a=>{m[a]=o[a]}),T.exports=m},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(s,T,S){const m=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");S.bufferToString=function(o){return typeof o=="string"?o:m?m.decode(o):o.toString()}},{}],17:[function(s,T,S){const m=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=s("buffer");S.stringToBuffer=function(a){return typeof a!="string"?a:m?o.from(m.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(s,T,S){const m=s("./under-dash"),o=s("./col-cache");T.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,r,t){const e=this.sheets[a],l=e&&e[r];return l&&l[t]}addCellEx(a){if(a.top)for(let r=a.top;r<=a.bottom;r++)for(let t=a.left;t<=a.right;t++)this.getCellAt(a.sheetName,r,t);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,r){const t=this.findSheet(a,r),e=this.findSheetRow(t,a,r);return this.findRowCell(e,a,r)}getCellAt(a,r,t){const e=this.sheets[a]||(this.sheets[a]=[]),l=e[r]||(e[r]=[]);return l[t]||(l[t]={sheetName:a,address:o.n2l(t)+r,row:r,col:t})}removeCellEx(a){const r=this.findSheet(a);if(!r)return;const t=this.findSheetRow(r,a);t&&delete t[a.col]}forEachInSheet(a,r){const t=this.sheets[a];t&&t.forEach((e,l)=>{e&&e.forEach((n,i)=>{n&&r(n,l,i)})})}forEach(a){m.each(this.sheets,(r,t)=>{this.forEachInSheet(t,a)})}map(a){const r=[];return this.forEach(t=>{r.push(a(t))}),r}findSheet(a,r){const t=a.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(a,r,t){const{row:e}=r;return a&&a[e]?a[e]:t?a[e]=[]:void 0}findRowCell(a,r,t){const{col:e}=r;return a&&a[e]?a[e]:t?a[e]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(a,r,t,e){const l=this.sheets[a];if(l){const n=[];for(let i=0;i{i.splice(r,t,...n)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(s,T,S){const m=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let r,t,e,l,n,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)r=this._dictionary[i-1],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)t=i-27,e=t%26,l=Math.floor(t/26),r=this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)t=i-703,e=t%26,l=Math.floor(t/26)%26,n=Math.floor(t/676),r=this._dictionary[n]+this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!m.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const r=a.length<5&&this._hash[a];if(r)return r;let t=!1,e="",l=0,n=!1,i="",c=0;for(let u,d=0;d=65&&u<=90)t=!0,e+=a[d],l=26*l+u-64;else if(u>=48&&u<=57)n=!0,i+=a[d],c=10*c+u-48;else if(n&&t&&u!==36)break;if(t){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+e)}else l=void 0;n||(c=void 0);const h={address:a=e+i,col:l,row:c,$col$row:`$${e}$${i}`};return l<=100&&c<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,r){if(r){const t=this.n2l(r)+a;return this.decodeAddress(t)}return this.decodeAddress(a)},decode(a){const r=a.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),e=this.decodeAddress(r[1]),l={top:Math.min(t.row,e.row),left:Math.min(t.col,e.col),bottom:Math.max(t.row,e.row),right:Math.max(t.col,e.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const r=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],e=r[3],l=e.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]);const h=Math.min(i.row,c.row),u=Math.min(i.col,c.col),d=Math.max(i.row,c.row),f=Math.max(i.col,c.col);return i=this.n2l(u)+h,c=this.n2l(f)+d,{top:h,left:u,bottom:d,right:f,sheetName:t,tl:{address:i,col:u,row:h,$col$row:`$${this.n2l(u)}$${h}`,sheetName:t},br:{address:c,col:f,row:d,$col$row:`$${this.n2l(f)}$${d}`,sheetName:t},dimensions:`${i}:${c}`}}if(e.startsWith("#"))return t?{sheetName:t,error:e}:{error:e};const n=this.decodeAddress(e);return t?{sheetName:t,...n}:n},encodeAddress:(a,r)=>o.n2l(r)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,r){const[t,e,,l,n]=a,[i,c]=r;return i>=t&&i<=l&&c>=e&&c<=n}};T.exports=o},{}],20:[function(s,T,S){const m=(a,r)=>({...a,...r.reduce((t,e)=>(a[e]&&(t[e]={...a[e]}),t),{})}),o=function(a,r,t){let e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[t]&&(r[t]=m(a[t],e))};S.copyStyle=a=>{if(!a)return a;if(r=a,Object.keys(r).length===0)return{};var r;const t={...a};return o(a,t,"font",["color"]),o(a,t,"alignment"),o(a,t,"protection"),a.border&&(o(a,t,"border"),o(a.border,t.border,"top",["color"]),o(a.border,t.border,"left",["color"]),o(a.border,t.border,"bottom",["color"]),o(a.border,t.border,"right",["color"]),o(a.border,t.border,"diagonal",["color"])),a.fill&&(o(a,t,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(t.fill.stops=a.fill.stops.map(e=>m(e,["color"])))),t}},{}],21:[function(s,T,S){(function(m){(function(){const o=s("crypto"),a={hash(r){const t=o.createHash(r);for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;no.randomBytes(r)};T.exports=a}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(s,T,S){const{SaxesParser:m}=s("saxes"),{PassThrough:o}=s("readable-stream"),{bufferToString:a}=s("./browser-buffer-decode");T.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new o));const t=new m;let e;t.on("error",n=>{e=n});let l=[];t.on("opentag",n=>l.push({eventType:"opentag",value:n})),t.on("text",n=>l.push({eventType:"text",value:n})),t.on("closetag",n=>l.push({eventType:"closetag",value:n}));for await(const n of r){if(t.write(a(n)),e)throw e;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(s,T,S){const m=s("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;T.exports={slideFormula:function(r,t,e){const l=m.decode(t),n=m.decode(e);return r.replace(o,(i,c,h,u,d)=>{if(d)return i;const f=a.exec(u);if(f){const w=f[1],_=f[2].toUpperCase(),A=f[3],N=f[4];if(_.length>3||_.length===3&&_>"XFD")return i;let L=m.l2n(_),I=parseInt(N,10);return w||(L+=n.col-l.col),A||(I+=n.row-l.row),(c||"")+(w||"")+m.n2l(L)+(A||"")+I}return i})}}},{"./col-cache":19}],24:[function(s,T,S){(function(m,o){(function(){const a=s("readable-stream"),r=s("./utils"),t=s("./string-buf");class e{constructor(u,d){this._data=u,this._encoding=d}get length(){return this.toBuffer().length}copy(u,d,f,w){return this.toBuffer().copy(u,d,f,w)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){return this._data._buf.copy(u,d,f,w)}toBuffer(){return this._data.toBuffer()}}class n{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){this._data.copy(u,d,f,w)}toBuffer(){return this._data}}class i{constructor(u){this.size=u,this.buffer=o.alloc(u),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const u=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(u,0,this.iRead,this.iWrite),u}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(u){let d;return u===0?null:u===void 0||u>=this.length?(d=this.toBuffer(),this.iRead=this.iWrite,d):(d=o.alloc(u),this.buffer.copy(d,0,this.iRead,u),this.iRead+=u,d)}write(u,d,f){const w=Math.min(f,this.size-this.iWrite);return u.copy(this.buffer,this.iWrite,d,d+w),this.iWrite+=w,w}}const c=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(c,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const u=this.buffers[this.buffers.length-1];if(!u.full)return u}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(u){return new Promise(d=>{u.write(h.toBuffer(),()=>{d()})})}))},_writeToBuffers(h){let u=0;const d=h.length;for(;u1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(f),m.nextTick(d)):(await this._pipe(f),d());else this.paused||this.emit("data",f.toBuffer()),this._writeToBuffers(f),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,u,d){const f=w=>{w?d(w):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,u,f):f()},read(h){let u;if(h){for(u=[];h&&this.buffers.length&&!this.buffers[0].eod;){const d=this.buffers[0],f=d.read(h);h-=f.length,u.push(f),d.eod&&d.full&&this.buffers.shift()}return o.concat(u)}return u=this.buffers.map(d=>d.toBuffer()).filter(Boolean),this.buffers=[],o.concat(u)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(u=>u!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),T.exports=c}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(s,T,S){(function(m){(function(){T.exports=class{constructor(o){this._buf=m.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=m.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],26:[function(s,T,S){const{toString:m}=Object.prototype,o=/["&<>]/,a={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(e=>{t(r[e],e)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(e=>t(r[e],e)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(e=>t(r[e],e)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(e=>t(r[e],e)):[]},keyBy:(r,t)=>r.reduce((e,l)=>(e[l[t]]=l,e),{}),isEqual:function(r,t){const e=typeof r,l=typeof t,n=Array.isArray(r),i=Array.isArray(t);let c;if(e!==l)return!1;switch(typeof r){case"object":if(n||i)return!(!n||!i)&&r.length===t.length&&r.every((h,u)=>{const d=t[u];return a.isEqual(h,d)});if(r===null||t===null)return r===t;if(c=Object.keys(r),Object.keys(t).length!==c.length)return!1;for(const h of c)if(!t.hasOwnProperty(h))return!1;return a.every(r,(h,u)=>{const d=t[u];return a.isEqual(h,d)});default:return r===t}},escapeHtml(r){const t=o.exec(r);if(!t)return r;let e="",l="",n=0,i=t.index;for(;i":l=">";break;default:continue}n!==i&&(e+=r.substring(n,i)),n=i+1,e+=l}return n!==i?e+r.substring(n,i):e},strcmp:(r,t)=>rt?1:0,isUndefined:r=>m.call(r)==="[object Undefined]",isObject:r=>m.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let e,l,n;function i(c,h){e=r[h],n=Array.isArray(c),a.isObject(c)||n?(n?(n=!1,l=e&&Array.isArray(e)?e:[]):l=e&&a.isObject(e)?e:{},r[h]=a.deepMerge(l,c)):a.isUndefined(c)||(r[h]=c)}for(let c=0;c&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:e=>new Promise(l=>{m.setImmediate?o(()=>{l(e)}):setTimeout(()=>{l(e)},1)}),inherits:function(e,l,n,i){e.super_=l,i||(i=n,n=null),n&&Object.keys(n).forEach(h=>{Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(n,h))});const c={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{c[h]=Object.getOwnPropertyDescriptor(i,h)}),e.prototype=Object.create(l.prototype,c)},dateToExcel:(e,l)=>25569+e.getTime()/864e5-(l?1462:0),excelToDate(e,l){const n=Math.round(24*(e-25569+(l?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const l=e.lastIndexOf("/");return{path:e.substring(0,l),name:e.substring(l+1)}},getRelsPath(e){const l=t.parsePath(e);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(e){const l=r.exec(e);if(!l)return e;let n="",i="",c=0,h=l.index;for(;h=11&&u!==13)){i="";break}continue}c!==h&&(n+=e.substring(c,h)),c=h+1,i&&(n+=i)}return c!==h?n+e.substring(c,h):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,l=>{switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}}),validInt(e){const l=parseInt(e,10);return Number.isNaN(l)?0:l},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(l=>{a.access(e,a.constants.F_OK,n=>{l(!n)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>e===!0||e==="true"||e===1||e==="1"};T.exports=t}).call(this)}).call(this,typeof Kt<"u"?Kt:typeof self<"u"?self:typeof window<"u"?window:{},s("timers").setImmediate)},{fs:216,timers:523}],28:[function(s,T,S){const m=s("./under-dash"),o=s("./utils");function a(e,l,n){e.push(` ${l}="${o.xmlEncode(n.toString())}"`)}function r(e,l){if(l){const n=[];m.each(l,(i,c)=>{i!==void 0&&a(n,c,i)}),e.push(n.join(""))}}class t{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const n=this._xml;n.push(" +import{o as Ve,p as Kt,q as De}from"./index-Hn-s1JD5.js";function qe(Ee,Fe){for(var s=0;sT[S]})}}}return Object.freeze(Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}))}var $e={exports:{}};/*! ExcelJS 19-10-2023 */(function(Ee,Fe){(function(s){Ee.exports=s()})(function(){return function s(T,S,m){function o(t,e){if(!S[t]){if(!T[t]){var l=typeof De=="function"&&De;if(!e&&l)return l(t,!0);if(a)return a(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=S[t]={exports:{}};T[t][0].call(i.exports,function(c){return o(T[t][1][c]||c)},i,i.exports,s,T,S,m)}return S[t].exports}for(var a=typeof De=="function"&&De,r=0;r{const d=this.workbook.addWorksheet(c.sheetName),f=c.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=c.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const L=f.reduce((P,D)=>{if(P)return P;const U=t(A,D,!0);return U.isValid()?U:null},null);if(L)return new Date(L.valueOf());const I=n[A];return I!==void 0?I:A},_=o.parse(c.parserOptions).on("data",A=>{d.addRow(A.map(w))}).on("end",()=>{_.emit("worksheet",d)});_.on("worksheet",h).on("error",u),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,c){return new Promise((h,u)=>{c=c||{};const d=this.workbook.getWorksheet(c.sheetName||c.sheetId),f=o.format(c.formatterOptions);i.on("finish",()=>{h()}),f.on("error",u),f.pipe(i);const{dateFormat:w,dateUTC:_}=c,A=c.map||(I=>{if(I){if(I.text||I.hyperlink)return I.hyperlink||I.text||"";if(I.formula||I.result)return I.result||"";if(I instanceof Date)return w?_?t.utc(I).format(w):t(I).format(w):_?t.utc(I).format():t(I).format();if(I.error)return I.error;if(typeof I=="object")return JSON.stringify(I)}return I}),N=c.includeEmptyRows===void 0||c.includeEmptyRows;let L=1;d&&d.eachRow((I,P)=>{if(N)for(;L++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const l=m.decodeAddress(t);this.nativeCol=l.col+e,this.nativeColOff=0,this.nativeRow=l.row+e,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+e,this.row=t.row+e):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof o||r==null?r:new o(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}T.exports=o},{"../utils/col-cache":19}],3:[function(s,T,S){const m=s("../utils/col-cache"),o=s("../utils/under-dash"),a=s("./enums"),{slideFormula:r}=s("../utils/shared-formula"),t=s("./note");class e{constructor(i,c,h){if(!i||!c)throw new Error("A Cell needs a Row");this._row=i,this._column=c,m.validateAddress(h),this._address=h,this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(i.style,c.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,c,h){const u=i&&i.numFmt||c&&c.numFmt;u&&(h.numFmt=u);const d=i&&i.font||c&&c.font;d&&(h.font=d);const f=i&&i.alignment||c&&c.alignment;f&&(h.alignment=f);const w=i&&i.border||c&&c.border;w&&(h.border=w);const _=i&&i.fill||c&&c.fill;_&&(h.fill=_);const A=i&&i.protection||c&&c.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===e.Types.Merge}merge(i,c){this._value.release(),this._value=l.create(e.Types.Merge,this,i),c||(this.style=i.style)}unmerge(){this.type===e.Types.Merge&&(this._value.release(),this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===e.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===e.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===e.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==e.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new t(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===e.Types.String&&(this._value=l.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:c}=this.workbook;c.removeAllNames(this.fullAddress),i.forEach(h=>{c.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=t.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}e.Types=a.ValueType;const l={getType:n=>n==null?e.Types.Null:n instanceof String||typeof n=="string"?e.Types.String:typeof n=="number"?e.Types.Number:typeof n=="boolean"?e.Types.Boolean:n instanceof Date?e.Types.Date:n.text&&n.hyperlink?e.Types.Hyperlink:n.formula||n.sharedFormula?e.Types.Formula:n.richText?e.Types.RichText:n.sharedString?e.Types.SharedString:n.error?e.Types.Error:e.Types.JSON,types:[{t:e.Types.Null,f:class{constructor(n){this.model={address:n.address,type:e.Types.Null}}get value(){return null}set value(n){}get type(){return e.Types.Null}get effectiveType(){return e.Types.Null}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){}toString(){return""}}},{t:e.Types.Number,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Number,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Number}get effectiveType(){return e.Types.Number}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.String,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:e.Types.Date,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Date,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Date}get effectiveType(){return e.Types.Date}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Hyperlink,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const n={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(n.tooltip=this.model.tooltip),n}set value(n){this.model={text:n.text,hyperlink:n.hyperlink},n.tooltip&&(this.model.tooltip=n.tooltip)}get text(){return this.model.text}set text(n){this.model.text=n}get hyperlink(){return this.model.hyperlink}set hyperlink(n){this.model.hyperlink=n}get type(){return e.Types.Hyperlink}get effectiveType(){return e.Types.Hyperlink}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:e.Types.Formula,f:class{constructor(n,i){this.cell=n,this.model={address:n.address,type:e.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(n){const i={},c=h=>{const u=n[h];u&&(i[h]=u)};return c("formula"),c("result"),c("ref"),c("shareType"),c("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(n){this.model=this._copyModel(n)}validate(n){switch(l.getType(n)){case e.Types.Null:case e.Types.String:case e.Types.Number:case e.Types.Date:break;case e.Types.Hyperlink:case e.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(n){this.model.formula=n}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(n){this.model.result=n}get type(){return e.Types.Formula}get effectiveType(){const n=this.model.result;return n==null?a.ValueType.Null:n instanceof String||typeof n=="string"?a.ValueType.String:typeof n=="number"?a.ValueType.Number:n instanceof Date?a.ValueType.Date:n.text&&n.hyperlink?a.ValueType.Hyperlink:n.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(n){this.model.address=n}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:n}=this.cell,i=n.findCell(this.model.sharedFormula);this._translatedFormula=i&&r(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:e.Types.Merge,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(n){n instanceof e?(this._master&&this._master.releaseMergeRef(),n.addMergeRef(),this._master=n):this._master.value=n}isMergedTo(n){return n===this._master}get master(){return this._master}get type(){return e.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:e.Types.JSON,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(n){this.model.rawValue=n,this.model.value=JSON.stringify(n)}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:e.Types.SharedString,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.SharedString,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.SharedString}get effectiveType(){return e.Types.SharedString}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.RichText,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}toString(){return this.model.value.richText.map(n=>n.text).join("")}get type(){return e.Types.RichText}get effectiveType(){return e.Types.RichText}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:e.Types.Boolean,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Boolean,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Boolean}get effectiveType(){return e.Types.Boolean}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Error,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Error,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Error}get effectiveType(){return e.Types.Error}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((n,i)=>(n[i.t]=i.f,n),[]),create(n,i,c){const h=this.types[n];if(!h)throw new Error("Could not create Value of type "+n);return new h(i,c)}};T.exports=e},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache");class r{constructor(e,l,n){this._worksheet=e,this._number=l,n!==!1&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=e.width!==void 0?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){e!==void 0?(this._header=e,this.headers.forEach((l,n)=>{this._worksheet.getCell(n+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&m.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,l){const n=this.number;l||(l=e,e=null),this._worksheet.eachRow(e,(i,c)=>{l(i.getCell(n),c)})}get values(){const e=[];return this.eachCell((l,n)=>{l&&l.type!==o.ValueType.Null&&(e[n]=l.value)}),e}set values(e){if(!e)return;const l=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((i,c)=>{this._worksheet.getCell(c+n,l).value=i})}_applyStyle(e,l){return this.style[e]=l,this.eachCell(n=>{n[e]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const l=[];let n=null;return e&&e.forEach((i,c)=>{i.isDefault?n&&(n=null):n&&i.equivalentTo(n)?n.max=c+1:(n={min:c+1,max:c+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(n))}),l.length?l:void 0}static fromModel(e,l){const n=[];let i=1,c=0;for(l=(l=l||[]).sort(function(h,u){return h.min-u.min});c{l.removeCellEx(e)})}forEach(e){m.each(this.matrixMap,(l,n)=>{l.forEach(i=>{e(n,i)})})}getNames(e){return this.getNamesEx(o.decodeEx(e))}getNamesEx(e){return m.map(this.matrixMap,(l,n)=>l.findCellEx(e)&&n).filter(Boolean)}_explore(e,l){l.mark=!1;const{sheetName:n}=l,i=new r(l.row,l.col,l.row,l.col,n);let c,h;function u(f,w){const _=e.findCellAt(n,f,l.col);return!(!_||!_.mark)&&(i[w]=f,_.mark=!1,!0)}for(h=l.row-1;u(h,"top");h--);for(h=l.row+1;u(h,"bottom");h++);function d(f,w){const _=[];for(h=i.top;h<=i.bottom;h++){const A=e.findCellAt(n,h,f);if(!A||!A.mark)return!1;_.push(A)}i[w]=f;for(let A=0;A<_.length;A++)_[A].mark=!1;return!0}for(c=l.col-1;d(c,"left");c--);for(c=l.col+1;d(c,"right");c++);return i}getRanges(e,l){return(l=l||this.matrixMap[e])?(l.forEach(n=>{n.mark=!0}),{name:e,ranges:l.map(n=>n.mark&&this._explore(l,n)).filter(Boolean).map(n=>n.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,l){e.forEachInSheet(l,(n,i,c)=>{n&&(n.row===i&&n.col===c||(n.row=i,n.col=c,n.address=o.n2l(c)+i))})}spliceRows(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceRows(e,l,n,i),this.normaliseMatrix(c,e)})}spliceColumns(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceColumns(e,l,n,i),this.normaliseMatrix(c,e)})}get model(){return m.map(this.matrixMap,(e,l)=>this.getRanges(l,e)).filter(e=>e.ranges.length)}set model(e){const l=this.matrixMap={};e.forEach(n=>{const i=l[n.name]=new a;n.ranges.forEach(c=>{t.test(c.split("!").pop()||"")&&i.addCell(c)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(s,T,S){T.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(s,T,S){const m=s("../utils/col-cache"),o=s("./anchor");T.exports=class{constructor(a,r){this.worksheet=a,this.model=r}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:r,imageId:t,range:e,hyperlinks:l}=a;if(this.type=r,this.imageId=t,r==="image")if(typeof e=="string"){const n=m.decode(e);this.range={tl:new o(this.worksheet,{col:n.left,row:n.top},-1),br:new o(this.worksheet,{col:n.right,row:n.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,e.tl,0),br:e.br&&new o(this.worksheet,e.br,0),ext:e.ext,editAs:e.editAs,hyperlinks:l||e.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(s,T,S){const m=s("../utils/under-dash");class o{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return m.deepMerge({},o.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:e}=t;e.length===1&&Object.keys(e[0]).length===1?this.note=e[0].text:this.note=t}static fromModel(r){const t=new o;return t.model=r,t}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},T.exports=o},{"../utils/under-dash":26}],10:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(r,t,e,l,n){if(arguments.length<4){const i=m.decodeAddress(r),c=m.decodeAddress(t);this.model={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col),sheetName:e},this.setTLBR(i.row,i.col,c.row,c.col,n)}else this.model={top:Math.min(r,e),left:Math.min(t,l),bottom:Math.max(r,e),right:Math.max(t,l),sheetName:n}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof o)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=m.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,e,l){(!this.model.top||rthis.bottom)&&(this.bottom=e),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(r){if(r){const{dimensions:t,number:e}=r;t&&this.expand(e,t.min,e,t.max)}}expandToAddress(r){const t=m.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return m.n2l(this.left)+this.top}get $t$l(){return`$${m.n2l(this.left)}$${this.top}`}get br(){return m.n2l(this.right)+this.bottom}get $b$r(){return`$${m.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottomthis.bottom)&&!(r.rightthis.right)}contains(r){const t=m.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let e=this.top;e<=this.bottom;e++)r(m.encodeAddress(e,t),e,t)}}T.exports=o},{"../utils/col-cache":19}],11:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache"),r=s("./cell");T.exports=class{constructor(t,e){this._worksheet=t,this._number=e,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(t){return this._cells[t-1]}getCellEx(t){let e=this._cells[t.col-1];if(!e){const l=this._worksheet.getColumn(t.col);e=new r(this,l,t.address),this._cells[t.col-1]=e}return e}getCell(t){if(typeof t=="string"){const e=this._worksheet.getColumnKey(t);t=e?e.number:a.l2n(t)}return this._cells[t-1]||this.getCellEx({address:a.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,e){const l=t+e;for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c0)for(d=u;d>=l;d--)f=this._cells[d-1],f?(w=this.getCell(d+h),w.value=f.value,w.style=f.style,w._comment=f._comment):this._cells[d+h-1]=void 0;for(d=0;d{l&&l.type!==o.ValueType.Null&&e(l,n+1)})}addPageBreak(t,e){const l=this._worksheet,n=Math.max(0,t-1)||0,i=Math.max(0,e-1)||16838,c={id:this._number,max:i,man:1};n&&(c.min=n),l.rowBreaks.push(c)}get values(){const t=[];return this._cells.forEach(e=>{e&&e.type!==o.ValueType.Null&&(t[e.col]=e.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let e=0;t.hasOwnProperty("0")&&(e=1),t.forEach((l,n)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,n+e),row:this._number,col:n+e}).value=l)})}else this._worksheet.eachColumnKey((e,l)=>{t[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,e.number),row:this._number,col:e.number}).value=t[l])})}get hasValues(){return m.some(this._cells,t=>t&&t.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,e=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!t||t>l.col)&&(t=l.col),e0?{min:t,max:e}:null}_applyStyle(t,e){return this.style[t]=e,this._cells.forEach(l=>{l&&(l[t]=e)}),e}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let e=0,l=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!e||e>n.col)&&(e=n.col),l{switch(l.type){case r.Types.Merge:break;default:{let n;if(l.address)n=a.decodeAddress(l.address);else if(e){const{row:i}=e,c=e.col+1;n={row:i,col:c,address:a.encodeAddress(i,c),$col$row:`$${a.n2l(c)}$${i}`}}e=n,this.getCellEx(n).model=l;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(r,t,e){this.table=r,this.column=t,this.index=e}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}T.exports=class{constructor(a,r){this.worksheet=a,r&&(this.table=r,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,r=(h,u,d)=>{h[u]===void 0&&(h[u]=d)};r(a,"headerRow",!0),r(a,"totalsRow",!1),r(a,"style",{}),r(a.style,"theme","TableStyleMedium2"),r(a.style,"showFirstColumn",!1),r(a.style,"showLastColumn",!1),r(a.style,"showRowStripes",!1),r(a.style,"showColumnStripes",!1);const t=(h,u)=>{if(!h)throw new Error(u)};t(a.ref,"Table must have ref"),t(a.columns,"Table must have column definitions"),t(a.rows,"Table must have row definitions"),a.tl=m.decodeAddress(a.ref);const{row:e,col:l}=a.tl;t(e>0,"Table must be on valid row"),t(l>0,"Table must be on valid col");const{width:n,filterHeight:i,tableHeight:c}=this;a.autoFilterRef=m.encode(e,l,e+i-1,l+n-1),a.tableRef=m.encode(e,l,e+c-1,l+n-1),a.columns.forEach((h,u)=>{t(h.name,`Column ${u} must have a name`),u===0?r(h,"totalsRowLabel","Total"):(r(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,c)=>{c&&Object.keys(c).forEach(h=>{i[h]=c[h]})},{worksheet:r,table:t}=this,{row:e,col:l}=t.tl;let n=0;if(t.headerRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const{style:u,name:d}=c,f=i.getCell(l+h);f.value=d,a(f,u)})}if(t.rows.forEach(i=>{const c=r.getRow(e+n++);i.forEach((h,u)=>{const d=c.getCell(l+u);d.value=h,a(d,t.columns[u].style)})}),t.totalsRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const u=i.getCell(l+h);if(h===0)u.value=c.totalsRowLabel;else{const d=this.getFormula(c);u.value=d?{formula:c.totalsRowFormula,result:c.totalsRowResult}:null}a(u,c.style)})}}load(a){const{table:r}=this,{row:t,col:e}=r.tl;let l=0;if(r.headerRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{n.getCell(e+c).value=i.name})}if(r.rows.forEach(n=>{const i=a.getRow(t+l++);n.forEach((c,h)=>{i.getCell(e+h).value=c})}),r.totalsRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{const h=n.getCell(e+c);c===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=m.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,r)}getColumn(a){const r=this.table.columns[a];return new o(this,r,a)}addColumn(a,r,t){this.cacheState(),t===void 0?(this.table.columns.push(a),this.table.rows.forEach((e,l)=>{e.push(r[l])})):(this.table.columns.splice(t,0,a),this.table.rows.forEach((e,l)=>{e.splice(t,0,r[l])}))}removeColumns(a){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,r),this.table.rows.forEach(t=>{t.splice(a,r)})}_assign(a,r,t){this.cacheState(),a[r]=t}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(s,T,S){const m=s("./worksheet"),o=s("./defined-names"),a=s("../xlsx/xlsx"),r=s("../csv/csv");T.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t(u&&u.orderNo)>h?u.orderNo:h,0),i=Object.assign({},e,{id:l,name:t,orderNo:n+1,workbook:this}),c=new m(i);return this._worksheets[l]=c,c}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const e=this.getWorksheet(t);e&&e.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(e=>e&&e.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,e)=>t.orderNo-e.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(e=>{t(e,e.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const e=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),e}getImage(t){return this.media[t]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(t=>t.model),sheets:this.worksheets.map(t=>t.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(e=>{const{id:l,name:n,state:i}=e,c=t.sheets&&t.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new m({id:l,name:n,orderNo:c,state:i,workbook:this})).model=e}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(s,T,S){const m=s("../utils/under-dash"),o=s("../utils/col-cache"),a=s("./range"),r=s("./row"),t=s("./column"),e=s("./enums"),l=s("./image"),n=s("./table"),i=s("./data-validations"),c=s("../utils/encryptor"),{copyStyle:h}=s("../utils/copy-style");T.exports=class{constructor(u){u=u||{},this._workbook=u.workbook,this.id=u.id,this.orderNo=u.orderNo,this.name=u.name,this.state=u.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},u.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!u.pageSetup||!u.pageSetup.fitToWidth&&!u.pageSetup.fitToHeight||u.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},u.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},u.headerFooter),this.dataValidations=new i,this.views=u.views||[],this.autoFilter=u.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(u){if(u===void 0&&(u="sheet"+this.id),this._name!==u){if(typeof u!="string")throw new Error("The name has to be a string.");if(u==="")throw new Error("The name can't be empty.");if(u==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(u))throw new Error(`Worksheet name ${u} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(u))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+u);if(u&&u.length>31&&(console.warn(`Worksheet name ${u} exceeds 31 chars. This will be truncated`),u=u.substring(0,31)),this._workbook._worksheets.find(d=>d&&d.name.toLowerCase()===u.toLowerCase()))throw new Error("Worksheet name already exists: "+u);this._name=u}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const u=new a;return this._rows.forEach(d=>{if(d){const f=d.dimensions;f&&u.expand(d.number,f.min,d.number,f.max)}}),u}get columns(){return this._columns}set columns(u){this._headerRowCount=u.reduce((w,_)=>{const A=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(w,A)},0);let d=1;const f=this._columns=[];u.forEach(w=>{const _=new t(this,d++,!1);f.push(_),_.defn=w})}getColumnKey(u){return this._keys[u]}setColumnKey(u,d){this._keys[u]=d}deleteColumnKey(u){delete this._keys[u]}eachColumnKey(u){m.each(this._keys,u)}getColumn(u){if(typeof u=="string"){const d=this._keys[u];if(d)return d;u=o.l2n(u)}if(this._columns||(this._columns=[]),u>this._columns.length){let d=this._columns.length+1;for(;d<=u;)this._columns.push(new t(this,d++))}return this._columns[u-1]}spliceColumns(u,d){const f=this._rows.length;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A0)for(let P=0;P{D.push(B[P]||null)});const U=this.getRow(P+1);U.splice.apply(U,D)}else this._rows.forEach(P=>{P&&P.splice(u,d)});const N=_.length-d,L=u+d,I=this._columns.length;if(N<0)for(let P=u+_.length;P<=I;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=I;P>=L;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=u;P{u=Math.max(u,d.cellCount)}),u}get actualColumnCount(){const u=[];let d=0;return this.eachRow(f=>{f.eachCell(w=>{let{col:_}=w;u[_]||(u[_]=!0,d++)})}),d}_commitRow(){}get _lastRowNumber(){const u=this._rows;let d=u.length;for(;d>0&&u[d-1]===void 0;)d--;return d}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,d){return this._rows.slice(u-1,u-1+d)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let d=this._rows[u-1];return d||(d=this._rows[u-1]=new r(this,u)),d}getRows(u,d){if(d<1)return;const f=[];for(let w=u;w1&&arguments[1]!==void 0?arguments[1]:"n";const f=this._nextRow,w=this.getRow(f);return w.values=u,this._setStyleOption(f,d[0]==="i"?d:"n"),w}addRows(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const f=[];return u.forEach(w=>{f.push(this.addRow(w,d))}),f}insertRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,d),this._setStyleOption(u,f),this.getRow(u)}insertRows(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...d),f!=="n")for(let w=0;w1&&arguments[1]!==void 0?arguments[1]:"n";d[0]==="o"&&this.findRow(u+1)!==void 0?this._copyStyle(u+1,u,d[1]==="+"):d[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u,d[1]==="+")}_copyStyle(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this.getRow(u),_=this.getRow(d);_.style=h(w.style),w.eachCell({includeEmpty:f},(A,N)=>{_.getCell(N).style=h(A.style)}),_.height=w.height}duplicateRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this._rows[u-1],_=new Array(d).fill(w.values);this.spliceRows(u+1,f?0:d,..._);for(let A=0;A{N.getCell(I).style=L.style})}}spliceRows(u,d){const f=u+d;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A{U.getCell(x).style=B.style}),this._rows[P-1]=void 0}else this._rows[P+L-1]=void 0;else if(L>0)for(P=I;P>=f;P--)if(D=this._rows[P-1],D){const U=this.getRow(P+L);U.values=D.values,U.style=D.style,U.height=D.height,D.eachCell({includeEmpty:!0},(B,x)=>{if(U.getCell(x).style=B.style,B._value.constructor.name==="MergeValue"){const M=this.getRow(B._row._number+N).getCell(x),v=B._value._master,p=this.getRow(v._row._number+N).getCell(v._column._number);M.merge(p)}})}else this._rows[P+L-1]=void 0;for(P=0;P{f&&f.hasValues&&d(f,f.number)})}getSheetValues(){const u=[];return this._rows.forEach(d=>{d&&(u[d.number]=d.values)}),u}findCell(u,d){const f=o.getAddress(u,d),w=this._rows[f.row-1];return w?w.findCell(f.col):void 0}getCell(u,d){const f=o.getAddress(u,d);return this.getRow(f.row).getCellEx(f)}mergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f{if(w.intersects(u))throw new Error("Cannot merge already merged cells")});const f=this.getCell(u.top,u.left);for(let w=u.top;w<=u.bottom;w++)for(let _=u.left;_<=u.right;_++)(w>u.top||_>u.left)&&this.getCell(w,_).merge(f,d);this._merges[f.address]=u}_unMergeMaster(u){const d=this._merges[u.address];if(d){for(let f=d.top;f<=d.bottom;f++)for(let w=d.left;w<=d.right;w++)this.getCell(f,w).unmerge();delete this._merges[u.address]}}get hasMerges(){return m.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f3&&arguments[3]!==void 0?arguments[3]:"shared";const _=o.decode(u),{top:A,left:N,bottom:L,right:I}=_,P=I-N+1,D=o.encodeAddress(A,N),U=w==="shared";let B;B=typeof f=="function"?f:Array.isArray(f)?Array.isArray(f[0])?(M,v)=>f[M-A][v-N]:(M,v)=>f[(M-A)*P+(v-N)]:()=>{};let x=!0;for(let M=A;M<=L;M++)for(let v=N;v<=I;v++)x?(this.getCell(M,v).value={shareType:w,formula:d,ref:u,result:B(M,v)},x=!1):this.getCell(M,v).value=U?{sharedFormula:D,result:B(M,v)}:B(M,v)}addImage(u,d){const f={type:"image",imageId:u,range:d};this._media.push(new l(this,f))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const d={type:"background",imageId:u};this._media.push(new l(this,d))}getBackgroundImageId(){const u=this._media.find(d=>d.type==="background");return u&&u.imageId}protect(u,d){return new Promise(f=>{this.sheetProtection={sheet:!0},d&&"spinCount"in d&&(d.spinCount=Number.isFinite(d.spinCount)?Math.round(Math.max(0,d.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=c.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=d&&"spinCount"in d?d.spinCount:1e5,this.sheetProtection.hashValue=c.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),d&&(this.sheetProtection=Object.assign(this.sheetProtection,d),!u&&"spinCount"in d&&delete this.sheetProtection.spinCount),f()})}unprotect(){this.sheetProtection=null}addTable(u){const d=new n(this,u);return this.tables[u.name]=d,d}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):this.conditionalFormattings=u instanceof Function?this.conditionalFormattings.filter(u):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(w=>w.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(w=>w.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const d=u.rows=[],f=u.dimensions=new a;return this._rows.forEach(w=>{const _=w&&w.model;_&&(f.expand(_.number,_.min,_.number,_.max),d.push(_))}),u.merges=[],m.each(this._merges,w=>{u.merges.push(w.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(d=>{const f=new r(this,d.number);this._rows[f.number-1]=f,f.model=d})}_parseMergeCells(u){m.each(u.mergeCells,d=>{this.mergeCellsWithoutStyle(d)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new i(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(d=>new l(this,d)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((d,f)=>{const w=new n;return w.model=f,d[f.name]=w,d},{}),this.conditionalFormattings=u.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(s,T,S){s("core-js/modules/es.promise"),s("core-js/modules/es.promise.finally"),s("core-js/modules/es.object.assign"),s("core-js/modules/es.object.keys"),s("core-js/modules/es.object.values"),s("core-js/modules/es.symbol"),s("core-js/modules/es.symbol.async-iterator"),s("core-js/modules/es.array.iterator"),s("core-js/modules/es.array.includes"),s("core-js/modules/es.array.find-index"),s("core-js/modules/es.array.find"),s("core-js/modules/es.string.from-code-point"),s("core-js/modules/es.string.includes"),s("core-js/modules/es.number.is-nan"),s("regenerator-runtime/runtime");const m={Workbook:s("./doc/workbook")},o=s("./doc/enums");Object.keys(o).forEach(a=>{m[a]=o[a]}),T.exports=m},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(s,T,S){const m=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");S.bufferToString=function(o){return typeof o=="string"?o:m?m.decode(o):o.toString()}},{}],17:[function(s,T,S){const m=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=s("buffer");S.stringToBuffer=function(a){return typeof a!="string"?a:m?o.from(m.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(s,T,S){const m=s("./under-dash"),o=s("./col-cache");T.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,r,t){const e=this.sheets[a],l=e&&e[r];return l&&l[t]}addCellEx(a){if(a.top)for(let r=a.top;r<=a.bottom;r++)for(let t=a.left;t<=a.right;t++)this.getCellAt(a.sheetName,r,t);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,r){const t=this.findSheet(a,r),e=this.findSheetRow(t,a,r);return this.findRowCell(e,a,r)}getCellAt(a,r,t){const e=this.sheets[a]||(this.sheets[a]=[]),l=e[r]||(e[r]=[]);return l[t]||(l[t]={sheetName:a,address:o.n2l(t)+r,row:r,col:t})}removeCellEx(a){const r=this.findSheet(a);if(!r)return;const t=this.findSheetRow(r,a);t&&delete t[a.col]}forEachInSheet(a,r){const t=this.sheets[a];t&&t.forEach((e,l)=>{e&&e.forEach((n,i)=>{n&&r(n,l,i)})})}forEach(a){m.each(this.sheets,(r,t)=>{this.forEachInSheet(t,a)})}map(a){const r=[];return this.forEach(t=>{r.push(a(t))}),r}findSheet(a,r){const t=a.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(a,r,t){const{row:e}=r;return a&&a[e]?a[e]:t?a[e]=[]:void 0}findRowCell(a,r,t){const{col:e}=r;return a&&a[e]?a[e]:t?a[e]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(a,r,t,e){const l=this.sheets[a];if(l){const n=[];for(let i=0;i{i.splice(r,t,...n)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(s,T,S){const m=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let r,t,e,l,n,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)r=this._dictionary[i-1],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)t=i-27,e=t%26,l=Math.floor(t/26),r=this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)t=i-703,e=t%26,l=Math.floor(t/26)%26,n=Math.floor(t/676),r=this._dictionary[n]+this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!m.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const r=a.length<5&&this._hash[a];if(r)return r;let t=!1,e="",l=0,n=!1,i="",c=0;for(let u,d=0;d=65&&u<=90)t=!0,e+=a[d],l=26*l+u-64;else if(u>=48&&u<=57)n=!0,i+=a[d],c=10*c+u-48;else if(n&&t&&u!==36)break;if(t){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+e)}else l=void 0;n||(c=void 0);const h={address:a=e+i,col:l,row:c,$col$row:`$${e}$${i}`};return l<=100&&c<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,r){if(r){const t=this.n2l(r)+a;return this.decodeAddress(t)}return this.decodeAddress(a)},decode(a){const r=a.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),e=this.decodeAddress(r[1]),l={top:Math.min(t.row,e.row),left:Math.min(t.col,e.col),bottom:Math.max(t.row,e.row),right:Math.max(t.col,e.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const r=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],e=r[3],l=e.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]);const h=Math.min(i.row,c.row),u=Math.min(i.col,c.col),d=Math.max(i.row,c.row),f=Math.max(i.col,c.col);return i=this.n2l(u)+h,c=this.n2l(f)+d,{top:h,left:u,bottom:d,right:f,sheetName:t,tl:{address:i,col:u,row:h,$col$row:`$${this.n2l(u)}$${h}`,sheetName:t},br:{address:c,col:f,row:d,$col$row:`$${this.n2l(f)}$${d}`,sheetName:t},dimensions:`${i}:${c}`}}if(e.startsWith("#"))return t?{sheetName:t,error:e}:{error:e};const n=this.decodeAddress(e);return t?{sheetName:t,...n}:n},encodeAddress:(a,r)=>o.n2l(r)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,r){const[t,e,,l,n]=a,[i,c]=r;return i>=t&&i<=l&&c>=e&&c<=n}};T.exports=o},{}],20:[function(s,T,S){const m=(a,r)=>({...a,...r.reduce((t,e)=>(a[e]&&(t[e]={...a[e]}),t),{})}),o=function(a,r,t){let e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[t]&&(r[t]=m(a[t],e))};S.copyStyle=a=>{if(!a)return a;if(r=a,Object.keys(r).length===0)return{};var r;const t={...a};return o(a,t,"font",["color"]),o(a,t,"alignment"),o(a,t,"protection"),a.border&&(o(a,t,"border"),o(a.border,t.border,"top",["color"]),o(a.border,t.border,"left",["color"]),o(a.border,t.border,"bottom",["color"]),o(a.border,t.border,"right",["color"]),o(a.border,t.border,"diagonal",["color"])),a.fill&&(o(a,t,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(t.fill.stops=a.fill.stops.map(e=>m(e,["color"])))),t}},{}],21:[function(s,T,S){(function(m){(function(){const o=s("crypto"),a={hash(r){const t=o.createHash(r);for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;no.randomBytes(r)};T.exports=a}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(s,T,S){const{SaxesParser:m}=s("saxes"),{PassThrough:o}=s("readable-stream"),{bufferToString:a}=s("./browser-buffer-decode");T.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new o));const t=new m;let e;t.on("error",n=>{e=n});let l=[];t.on("opentag",n=>l.push({eventType:"opentag",value:n})),t.on("text",n=>l.push({eventType:"text",value:n})),t.on("closetag",n=>l.push({eventType:"closetag",value:n}));for await(const n of r){if(t.write(a(n)),e)throw e;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(s,T,S){const m=s("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;T.exports={slideFormula:function(r,t,e){const l=m.decode(t),n=m.decode(e);return r.replace(o,(i,c,h,u,d)=>{if(d)return i;const f=a.exec(u);if(f){const w=f[1],_=f[2].toUpperCase(),A=f[3],N=f[4];if(_.length>3||_.length===3&&_>"XFD")return i;let L=m.l2n(_),I=parseInt(N,10);return w||(L+=n.col-l.col),A||(I+=n.row-l.row),(c||"")+(w||"")+m.n2l(L)+(A||"")+I}return i})}}},{"./col-cache":19}],24:[function(s,T,S){(function(m,o){(function(){const a=s("readable-stream"),r=s("./utils"),t=s("./string-buf");class e{constructor(u,d){this._data=u,this._encoding=d}get length(){return this.toBuffer().length}copy(u,d,f,w){return this.toBuffer().copy(u,d,f,w)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){return this._data._buf.copy(u,d,f,w)}toBuffer(){return this._data.toBuffer()}}class n{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){this._data.copy(u,d,f,w)}toBuffer(){return this._data}}class i{constructor(u){this.size=u,this.buffer=o.alloc(u),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const u=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(u,0,this.iRead,this.iWrite),u}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(u){let d;return u===0?null:u===void 0||u>=this.length?(d=this.toBuffer(),this.iRead=this.iWrite,d):(d=o.alloc(u),this.buffer.copy(d,0,this.iRead,u),this.iRead+=u,d)}write(u,d,f){const w=Math.min(f,this.size-this.iWrite);return u.copy(this.buffer,this.iWrite,d,d+w),this.iWrite+=w,w}}const c=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(c,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const u=this.buffers[this.buffers.length-1];if(!u.full)return u}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(u){return new Promise(d=>{u.write(h.toBuffer(),()=>{d()})})}))},_writeToBuffers(h){let u=0;const d=h.length;for(;u1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(f),m.nextTick(d)):(await this._pipe(f),d());else this.paused||this.emit("data",f.toBuffer()),this._writeToBuffers(f),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,u,d){const f=w=>{w?d(w):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,u,f):f()},read(h){let u;if(h){for(u=[];h&&this.buffers.length&&!this.buffers[0].eod;){const d=this.buffers[0],f=d.read(h);h-=f.length,u.push(f),d.eod&&d.full&&this.buffers.shift()}return o.concat(u)}return u=this.buffers.map(d=>d.toBuffer()).filter(Boolean),this.buffers=[],o.concat(u)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(u=>u!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),T.exports=c}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(s,T,S){(function(m){(function(){T.exports=class{constructor(o){this._buf=m.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=m.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],26:[function(s,T,S){const{toString:m}=Object.prototype,o=/["&<>]/,a={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(e=>{t(r[e],e)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(e=>t(r[e],e)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(e=>t(r[e],e)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(e=>t(r[e],e)):[]},keyBy:(r,t)=>r.reduce((e,l)=>(e[l[t]]=l,e),{}),isEqual:function(r,t){const e=typeof r,l=typeof t,n=Array.isArray(r),i=Array.isArray(t);let c;if(e!==l)return!1;switch(typeof r){case"object":if(n||i)return!(!n||!i)&&r.length===t.length&&r.every((h,u)=>{const d=t[u];return a.isEqual(h,d)});if(r===null||t===null)return r===t;if(c=Object.keys(r),Object.keys(t).length!==c.length)return!1;for(const h of c)if(!t.hasOwnProperty(h))return!1;return a.every(r,(h,u)=>{const d=t[u];return a.isEqual(h,d)});default:return r===t}},escapeHtml(r){const t=o.exec(r);if(!t)return r;let e="",l="",n=0,i=t.index;for(;i":l=">";break;default:continue}n!==i&&(e+=r.substring(n,i)),n=i+1,e+=l}return n!==i?e+r.substring(n,i):e},strcmp:(r,t)=>rt?1:0,isUndefined:r=>m.call(r)==="[object Undefined]",isObject:r=>m.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let e,l,n;function i(c,h){e=r[h],n=Array.isArray(c),a.isObject(c)||n?(n?(n=!1,l=e&&Array.isArray(e)?e:[]):l=e&&a.isObject(e)?e:{},r[h]=a.deepMerge(l,c)):a.isUndefined(c)||(r[h]=c)}for(let c=0;c&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:e=>new Promise(l=>{m.setImmediate?o(()=>{l(e)}):setTimeout(()=>{l(e)},1)}),inherits:function(e,l,n,i){e.super_=l,i||(i=n,n=null),n&&Object.keys(n).forEach(h=>{Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(n,h))});const c={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{c[h]=Object.getOwnPropertyDescriptor(i,h)}),e.prototype=Object.create(l.prototype,c)},dateToExcel:(e,l)=>25569+e.getTime()/864e5-(l?1462:0),excelToDate(e,l){const n=Math.round(24*(e-25569+(l?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const l=e.lastIndexOf("/");return{path:e.substring(0,l),name:e.substring(l+1)}},getRelsPath(e){const l=t.parsePath(e);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(e){const l=r.exec(e);if(!l)return e;let n="",i="",c=0,h=l.index;for(;h=11&&u!==13)){i="";break}continue}c!==h&&(n+=e.substring(c,h)),c=h+1,i&&(n+=i)}return c!==h?n+e.substring(c,h):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,l=>{switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}}),validInt(e){const l=parseInt(e,10);return Number.isNaN(l)?0:l},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(l=>{a.access(e,a.constants.F_OK,n=>{l(!n)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>e===!0||e==="true"||e===1||e==="1"};T.exports=t}).call(this)}).call(this,typeof Kt<"u"?Kt:typeof self<"u"?self:typeof window<"u"?window:{},s("timers").setImmediate)},{fs:216,timers:523}],28:[function(s,T,S){const m=s("./under-dash"),o=s("./utils");function a(e,l,n){e.push(` ${l}="${o.xmlEncode(n.toString())}"`)}function r(e,l){if(l){const n=[];m.each(l,(i,c)=>{i!==void 0&&a(n,c,i)}),e.push(n.join(""))}}class t{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const n=this._xml;n.push(" `)}openNode(l,n){const i=this.tos,c=this._xml;i&&this.open&&c.push(">"),this._stack.push(l),c.push("<"),c.push(l),r(c,n),this.leaf=!0,this.open=!0}addAttribute(l,n){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n!==void 0&&a(this._xml,l,n)}addAttributes(l){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");r(this._xml,l)}writeText(l){const n=this._xml;this.open&&(n.push(">"),this.open=!1),this.leaf=!1,n.push(o.xmlEncode(l.toString()))}writeXml(l){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(l)}closeNode(){const l=this._stack.pop(),n=this._xml;this.leaf?n.push("/>"):(n.push("")),this.open=!1,this.leaf=!1}leafNode(l,n,i){this.openNode(l,n),i!==void 0&&this.writeText(i),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const l=this._rollbacks.pop();this._xml.length>l.xml&&this._xml.splice(l.xml,this._xml.length-l.xml),this._stack.length>l.stack&&this._stack.splice(l.stack,this._stack.length-l.stack),this.leaf=l.leaf,this.open=l.open}get xml(){return this.closeAll(),this._xml.join("")}}t.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},T.exports=t},{"./under-dash":26,"./utils":27}],29:[function(s,T,S){(function(m){(function(){const o=s("events"),a=s("jszip"),r=s("./stream-buf"),{stringToBuffer:t}=s("./browser-buffer-encode");class e extends o.EventEmitter{constructor(n){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},n),this.zip=new a,this.stream=new r}append(n,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,n,{base64:!0}):(m.browser&&typeof n=="string"&&(n=t(n)),this.zip.file(i.name,n))}async finalize(){const n=await this.zip.generateAsync(this.options);this.stream.end(n),this.emit("finish")}read(n){return this.stream.read(n)}setEncoding(n){return this.stream.setEncoding(n)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(n,i){return this.stream.pipe(n,i)}unpipe(n){return this.stream.unpipe(n)}unshift(n){return this.stream.unshift(n)}wrap(n){return this.stream.wrap(n)}}T.exports={ZipWriter:e}}).call(this)}).call(this,s("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(s,T,S){T.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(s,T,S){T.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(s,T,S){const m=s("../../utils/parse-sax"),o=s("../../utils/xml-stream");class a{prepare(){}render(){}parseOpen(t){}parseText(t){}parseClose(t){}reconcile(t,e){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(t=>{t instanceof a?t.reset():t.xform&&t.xform.reset()})}mergeModel(t){this.model=Object.assign(this.model||{},t)}async parse(t){for await(const e of t)for(const{eventType:l,value:n}of e)if(l==="opentag")this.parseOpen(n);else if(l==="text")this.parseText(n);else if(l==="closetag"&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(t){return this.parse(m(t))}get xml(){return this.toXml(this.model)}toXml(t){const e=new o;return this.render(e,t),e.xml}static toAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t.toString()}static toStringAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toStringValue(t,e){return t===void 0?e:t}static toBoolAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t?"1":"0"}static toBoolValue(t,e){return t===void 0?e:t==="1"}static toIntAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toIntValue(t,e){return t===void 0?e:parseInt(t,10)}static toFloatAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toFloatValue(t,e){return t===void 0?e:parseFloat(t)}}T.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(s,T,S){const m=s("../base-xform"),o=s("../../../utils/col-cache");function a(t){try{return o.decodeEx(t),!0}catch{return!1}}function r(t){const e=[];let l=!1,n="";return t.split(",").forEach(i=>{if(!i)return;const c=(i.match(/'/g)||[]).length;if(!c)return void(l?n+=i+",":a(i)&&e.push(i));const h=c%2==0;!l&&h&&a(i)?e.push(i):l&&!h?(l=!1,a(n+i)&&e.push(n+i),n=""):(l=!0,n+=i+",")}),e}T.exports=class extends m{render(t,e){t.openNode("definedName",{name:e.name,localSheetId:e.localSheetId}),t.writeText(e.ranges.join(",")),t.closeNode()}parseOpen(t){switch(t.name){case"definedName":return this._parsedName=t.attributes.name,this._parsedLocalSheetId=t.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(t){this._parsedText.push(t)}parseClose(){return this.model={name:this._parsedName,ranges:r(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(s,T,S){const m=s("../../../utils/utils"),o=s("../base-xform");T.exports=class extends o{render(a,r){a.leafNode("sheet",{sheetId:r.id,name:r.name,state:r.state,"r:id":r.rId})}parseOpen(a){return a.name==="sheet"&&(this.model={name:m.xmlDecode(a.attributes.name),id:parseInt(a.attributes.sheetId,10),state:a.attributes.state,rId:a.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:a.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.leafNode("workbookPr",{date1904:a.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){const r={xWindow:a.x||0,yWindow:a.y||0,windowWidth:a.width||12e3,windowHeight:a.height||24e3,firstSheet:a.firstSheet,activeTab:a.activeTab};a.visibility&&a.visibility!=="visible"&&(r.visibility=a.visibility),o.leafNode("workbookView",r)}parseOpen(o){if(o.name==="workbookView"){const a=this.model={},r=function(e,l,n){const i=l!==void 0?a[e]=l:n;i!==void 0&&(a[e]=i)},t=function(e,l,n){const i=l!==void 0?a[e]=parseInt(l,10):n;i!==void 0&&(a[e]=i)};return t("x",o.attributes.xWindow,0),t("y",o.attributes.yWindow,0),t("width",o.attributes.windowWidth,25e3),t("height",o.attributes.windowHeight,1e4),r("visibility",o.attributes.visibility,"visible"),t("activeTab",o.attributes.activeTab,void 0),t("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),r=s("../base-xform"),t=s("../static-xform"),e=s("../list-xform"),l=s("./defined-name-xform"),n=s("./sheet-xform"),i=s("./workbook-view-xform"),c=s("./workbook-properties-xform"),h=s("./workbook-calc-properties-xform");class u extends r{constructor(){super(),this.map={fileVersion:u.STATIC_XFORMS.fileVersion,workbookPr:new c,bookViews:new e({tag:"bookViews",count:!1,childXform:new i}),sheets:new e({tag:"sheets",count:!1,childXform:new n}),definedNames:new e({tag:"definedNames",count:!1,childXform:new l}),calcPr:new h}}prepare(f){f.sheets=f.worksheets;const w=[];let _=0;f.sheets.forEach(A=>{if(A.pageSetup&&A.pageSetup.printArea&&A.pageSetup.printArea.split("&&").forEach(N=>{const L=N.split(":"),I={name:"_xlnm.Print_Area",ranges:[`'${A.name}'!$${L[0]}:$${L[1]}`],localSheetId:_};w.push(I)}),A.pageSetup&&(A.pageSetup.printTitlesRow||A.pageSetup.printTitlesColumn)){const N=[];if(A.pageSetup.printTitlesColumn){const I=A.pageSetup.printTitlesColumn.split(":");N.push(`'${A.name}'!$${I[0]}:$${I[1]}`)}if(A.pageSetup.printTitlesRow){const I=A.pageSetup.printTitlesRow.split(":");N.push(`'${A.name}'!$${I[0]}:$${I[1]}`)}const L={name:"_xlnm.Print_Titles",ranges:N,localSheetId:_};w.push(L)}_++}),w.length&&(f.definedNames=f.definedNames.concat(w)),(f.media||[]).forEach((A,N)=>{A.name=A.type+(N+1)})}render(f,w){f.openXml(a.StdDocAttributes),f.openNode("workbook",u.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(f),this.map.workbookPr.render(f,w.properties),this.map.bookViews.render(f,w.views),this.map.sheets.render(f,w.sheets),this.map.definedNames.render(f,w.definedNames),this.map.calcPr.render(f,w.calcProperties),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"workbook":return!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(f){const w=(f.workbookRels||[]).reduce((I,P)=>(I[P.Id]=P,I),{}),_=[];let A,N=0;(f.sheets||[]).forEach(I=>{const P=w[I.rId];P&&(A=f.worksheetHash["xl/"+P.Target.replace(/^(\s|\/xl\/)+/,"")],A&&(A.name=I.name,A.id=I.id,A.state=I.state,_[N++]=A))});const L=[];m.each(f.definedNames,I=>{if(I.name==="_xlnm.Print_Area"){if(A=_[I.localSheetId],A){A.pageSetup||(A.pageSetup={});const P=o.decodeEx(I.ranges[0]);A.pageSetup.printArea=A.pageSetup.printArea?`${A.pageSetup.printArea}&&${P.dimensions}`:P.dimensions}}else if(I.name==="_xlnm.Print_Titles"){if(A=_[I.localSheetId],A){A.pageSetup||(A.pageSetup={});const P=I.ranges.join(","),D=/\$/g,U=/\$\d+:\$\d+/,B=P.match(U);if(B&&B.length){const v=B[0];A.pageSetup.printTitlesRow=v.replace(D,"")}const x=/\$[A-Z]+:\$[A-Z]+/,M=P.match(x);if(M&&M.length){const v=M[0];A.pageSetup.printTitlesColumn=v.replace(D,"")}}}else L.push(I)}),f.definedNames=L,f.media.forEach((I,P)=>{I.index=P})}}u.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},u.STATIC_XFORMS={fileVersion:new t({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},T.exports=u},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(s,T,S){const m=s("../strings/rich-text-xform"),o=s("../../../utils/utils"),a=s("../base-xform"),r=T.exports=function(t){this.model=t};o.inherits(r,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new m),this._richTextXform},render(t,e){e=e||this.model,t.openNode("comment",{ref:e.ref,authorId:0}),t.openNode("text"),e&&e.note&&e.note.texts&&e.note.texts.forEach(l=>{this.richTextXform.render(t,l)}),t.closeNode(),t.closeNode()},parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"comment":return this.model={type:"note",note:{texts:[]},...t.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(t),!0;default:return!1}},parseText(t){this.parser&&this.parser.parseText(t)},parseClose(t){switch(t){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(t),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../../../utils/utils"),a=s("../base-xform"),r=s("./comment-xform"),t=T.exports=function(){this.map={comment:new r}};o.inherits(t,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,l){l=l||this.model,e.openXml(m.StdDocAttributes),e.openNode("comments",t.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),l.comments.forEach(n=>{this.map.comment.render(e,n)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a,r){(a===r[2]||this.tag==="x:SizeWithCells"&&a===r[1])&&o.leafNode(this.tag)}parseOpen(o){switch(o.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"x:Anchor"}getAnchorRect(o){const a=Math.floor(o.left),r=Math.floor(68*(o.left-a)),t=Math.floor(o.top),e=Math.floor(18*(o.top-t)),l=Math.floor(o.right),n=Math.floor(68*(o.right-l)),i=Math.floor(o.bottom);return[a,r,t,e,l,n,i,Math.floor(18*(o.bottom-i))]}getDefaultRect(o){const a=o.col,r=Math.max(o.row-2,0);return[a,6,r,14,a+2,2,r+4,16]}render(o,a){const r=a.anchor?this.getAnchorRect(a.anchor):this.getDefaultRect(a.refAddress);o.leafNode("x:Anchor",null,r.join(", "))}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(s,T,S){const m=s("../base-xform"),o=s("./vml-anchor-xform"),a=s("./style/vml-protection-xform"),r=s("./style/vml-position-xform"),t=["twoCells","oneCells","absolute"];T.exports=class extends m{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new r({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,l){const{protection:n,editAs:i}=l.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,t),this.map["x:SizeWithCells"].render(e,i,t),this.map["x:Anchor"].render(e,l),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,l.refAddress.row-1),e.leafNode("x:Column",null,l.refAddress.col-1),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),l=Object.keys(e).length;this.model.editAs=t[l],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./vml-shape-xform");class r extends o{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(e,l){e.openXml(m.StdDocAttributes),e.openNode(this.tag,r.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),l.comments.forEach((n,i)=>{this.map["v:shape"].render(e,n,i)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,l){e.anchors.forEach(n=>{n.br?this.map["xdr:twoCellAnchor"].reconcile(n,l):this.map["xdr:oneCellAnchor"].reconcile(n,l)})}}r.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},T.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(s,T,S){const m=s("../base-xform"),o=s("./vml-textbox-xform"),a=s("./vml-client-data-xform");class r extends m{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new a}}get tag(){return"v:shape"}render(e,l,n){e.openNode("v:shape",r.V_SHAPE_ATTRIBUTES(l,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,l),this.map["x:ClientData"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}r.V_SHAPE_ATTRIBUTES=(t,e)=>({id:"_x0000_s"+(1025+e),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":t.note.margins&&t.note.margins.insetmode}),T.exports=r},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"v:textbox"}conversionUnit(o,a,r){return`${parseFloat(o)*a.toFixed(2)}${r}`}reverseConversionUnit(o){return(o||"").split(",").map(a=>Number(parseFloat(this.conversionUnit(parseFloat(a),.1,"")).toFixed(2)))}render(o,a){const r={style:"mso-direction-alt:auto"};if(a&&a.note){let{inset:t}=a.note&&a.note.margins;Array.isArray(t)&&(t=t.map(e=>this.conversionUnit(e,10,"mm")).join(",")),t&&(r.inset=t)}o.openNode("v:textbox",r),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:return this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(s,T,S){const m=s("./base-xform");T.exports=class extends m{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,a){this.model[o]=a.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,a.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:a.length,baseType:"lpstr"}),a.forEach(r=>{o.leafNode("vt:lpstr",void 0,r.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../simple/string-xform"),r=s("./app-heading-pairs-xform"),t=s("./app-titles-of-parts-xform");class e extends o{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new r,TitleOfParts:new t}}render(n,i){n.openXml(m.StdDocAttributes),n.openNode("Properties",e.PROPERTY_ATTRIBUTES),n.leafNode("Application",void 0,"Microsoft Excel"),n.leafNode("DocSecurity",void 0,"0"),n.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(n,i.worksheets),this.map.TitleOfParts.render(n,i.worksheets),this.map.Company.render(n,i.company||""),this.map.Manager.render(n,i.manager),n.leafNode("LinksUpToDate",void 0,"false"),n.leafNode("SharedDoc",void 0,"false"),n.leafNode("HyperlinksChanged",void 0,"false"),n.leafNode("AppVersion",void 0,"16.0300"),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"Properties":return!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},T.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform");class a extends o{render(t,e){t.openXml(m.StdDocAttributes),t.openNode("Types",a.PROPERTY_ATTRIBUTES);const l={};(e.media||[]).forEach(n=>{if(n.type==="image"){const i=n.extension;l[i]||(l[i]=!0,t.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),t.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),t.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),t.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),e.worksheets.forEach(n=>{const i=`/xl/worksheets/sheet${n.id}.xml`;t.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),t.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),t.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),e.sharedStrings&&e.sharedStrings.count&&t.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),e.tables&&e.tables.forEach(n=>{t.leafNode("Override",{PartName:"/xl/tables/"+n.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),e.drawings&&e.drawings.forEach(n=>{t.leafNode("Override",{PartName:`/xl/drawings/${n.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),e.commentRefs&&(t.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),e.commentRefs.forEach(n=>{let{commentName:i}=n;t.leafNode("Override",{PartName:`/xl/${i}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),t.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),t.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),t.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},T.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../simple/date-xform"),r=s("../simple/string-xform"),t=s("../simple/integer-xform");class e extends o{constructor(){super(),this.map={"dc:creator":new r({tag:"dc:creator"}),"dc:title":new r({tag:"dc:title"}),"dc:subject":new r({tag:"dc:subject"}),"dc:description":new r({tag:"dc:description"}),"dc:identifier":new r({tag:"dc:identifier"}),"dc:language":new r({tag:"dc:language"}),"cp:keywords":new r({tag:"cp:keywords"}),"cp:category":new r({tag:"cp:category"}),"cp:lastModifiedBy":new r({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:e.DateFormat}),"cp:revision":new t({tag:"cp:revision"}),"cp:version":new r({tag:"cp:version"}),"cp:contentStatus":new r({tag:"cp:contentStatus"}),"cp:contentType":new r({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:e.DateAttrs,format:e.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:e.DateAttrs,format:e.DateFormat})}}render(n,i){n.openXml(m.StdDocAttributes),n.openNode("cp:coreProperties",e.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(n,i.creator),this.map["dc:title"].render(n,i.title),this.map["dc:subject"].render(n,i.subject),this.map["dc:description"].render(n,i.description),this.map["dc:identifier"].render(n,i.identifier),this.map["dc:language"].render(n,i.language),this.map["cp:keywords"].render(n,i.keywords),this.map["cp:category"].render(n,i.category),this.map["cp:lastModifiedBy"].render(n,i.lastModifiedBy),this.map["cp:lastPrinted"].render(n,i.lastPrinted),this.map["cp:revision"].render(n,i.revision),this.map["cp:version"].render(n,i.version),this.map["cp:contentStatus"].render(n,i.contentStatus),this.map["cp:contentType"].render(n,i.contentType),this.map["dcterms:created"].render(n,i.created),this.map["dcterms:modified"].render(n,i.modified),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[n.name],this.parser)return this.parser.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},T.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.leafNode("Relationship",a)}parseOpen(o){switch(o.name){case"Relationship":return this.model=o.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./relationship-xform");class r extends o{constructor(){super(),this.map={Relationship:new a}}render(e,l){l=l||this._values,e.openXml(m.StdDocAttributes),e.openNode("Relationships",r.RELATIONSHIPS_ATTRIBUTES),l.forEach(n=>{this.map.Relationship.render(e,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}r.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},T.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,a){if(o&&o.rId){const r=a.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const t=r[1],e=a.mediaIndex[t];return a.media[e]}}}}},{"../base-xform":32}],57:[function(s,T,S){const m=s("../base-xform"),o=s("./blip-xform");T.exports=class extends m{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(a,r){a.openNode(this.tag),this.map["a:blip"].render(a,r),a.openNode("a:stretch"),a.leafNode("a:fillRect"),a.closeNode(),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"a:blip"}render(o,a){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":a.rId,cstate:"print"})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(s,T,S){const m=s("../base-xform"),o=s("./hlink-click-xform"),a=s("./ext-lst-xform");T.exports=class extends m{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(r,t){r.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(r,t),this.map["a:extLst"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(s,T,S){const m=s("../base-xform"),o=s("../simple/integer-xform");T.exports=class extends m{constructor(a){super(),this.tag=a.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(a,r){a.openNode(this.tag),this.map["xdr:col"].render(a,r.nativeCol),this.map["xdr:colOff"].render(a,r.nativeColOff),this.map["xdr:row"].render(a,r.nativeRow),this.map["xdr:rowOff"].render(a,r.nativeRowOff),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(s,T,S){const m=s("../../../utils/col-cache"),o=s("../../../utils/xml-stream"),a=s("../base-xform"),r=s("./two-cell-anchor-xform"),t=s("./one-cell-anchor-xform");class e extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new r,"xdr:oneCellAnchor":new t}}prepare(n){n.anchors.forEach((i,c)=>{i.anchorType=function(h){return(typeof h.range=="string"?m.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:c})})}get tag(){return"xdr:wsDr"}render(n,i){n.openXml(o.StdDocAttributes),n.openNode(this.tag,e.DRAWING_ATTRIBUTES),i.anchors.forEach(c=>{this.map[c.anchorType].render(n,c)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}reconcile(n,i){n.anchors.forEach(c=>{c.br?this.map["xdr:twoCellAnchor"].reconcile(c,i):this.map["xdr:oneCellAnchor"].reconcile(c,i)})}}e.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},T.exports=e},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,a){o.openNode(this.tag);const r=Math.floor(9525*a.width),t=Math.floor(9525*a.height);o.addAttribute("cx",r),o.addAttribute("cy",t),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"a:hlinkClick"}render(o,a){a.hyperlinks&&a.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":a.hyperlinks.rId,tooltip:a.hyperlinks.tooltip})}parseOpen(o){switch(o.name){case this.tag:return this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(s,T,S){const m=s("../base-xform"),o=s("./c-nv-pr-xform"),a=s("./c-nv-pic-pr-xform");T.exports=class extends m{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(r,t){r.openNode(this.tag),this.map["xdr:cNvPr"].render(r,t),this.map["xdr:cNvPicPr"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(s,T,S){const m=s("./base-cell-anchor-xform"),o=s("../static-xform"),a=s("./cell-position-xform"),r=s("./ext-xform"),t=s("./pic-xform");T.exports=class extends m{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new r({tag:"xdr:ext"}),"xdr:pic":new t,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,l){this.map["xdr:pic"].prepare(e.picture,l)}render(e,l){e.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,l.range.tl),this.map["xdr:ext"].render(e,l.range.ext),this.map["xdr:pic"].render(e,l.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,l){e.medium=this.reconcilePicture(e.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(s,T,S){const m=s("../base-xform"),o=s("../static-xform"),a=s("./blip-fill-xform"),r=s("./nv-pic-pr-xform"),t=s("./sp-pr");T.exports=class extends m{constructor(){super(),this.map={"xdr:nvPicPr":new r,"xdr:blipFill":new a,"xdr:spPr":new o(t)}}get tag(){return"xdr:pic"}prepare(e,l){e.index=l.index+1}render(e,l){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,l),this.map["xdr:blipFill"].render(e,l),this.map["xdr:spPr"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(s,T,S){T.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(s,T,S){const m=s("./base-cell-anchor-xform"),o=s("../static-xform"),a=s("./cell-position-xform"),r=s("./pic-xform");T.exports=class extends m{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new r,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(t,e){this.map["xdr:pic"].prepare(t.picture,e)}render(t,e){t.openNode(this.tag,{editAs:e.range.editAs||"oneCell"}),this.map["xdr:from"].render(t,e.range.tl),this.map["xdr:to"].render(t,e.range.br),this.map["xdr:pic"].render(t,e.picture),this.map["xdr:clientData"].render(t,{}),t.closeNode()}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(t,e){t.medium=this.reconcilePicture(t.picture,e)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(s,T,S){const m=s("./base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,a){const{childXform:r}=this;o&&o.forEach((t,e)=>{a.index=e,r.prepare(t,a)})}render(o,a){if(this.always||a&&a.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,a&&a.length||0);const{childXform:r}=this;(a||[]).forEach((t,e)=>{r.render(o,t,e)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(o,a){if(o){const{childXform:r}=this;o.forEach(t=>{r.reconcile(t,a)})}}}},{"./base-xform":32}],72:[function(s,T,S){const m=s("../../../utils/col-cache"),o=s("../base-xform");T.exports=class extends o{get tag(){return"autoFilter"}render(a,r){if(r)if(typeof r=="string")a.leafNode("autoFilter",{ref:r});else{const t=function(n){return typeof n=="string"?n:m.getAddress(n.row,n.column).address},e=t(r.from),l=t(r.to);e&&l&&a.leafNode("autoFilter",{ref:`${e}:${l}`})}}parseOpen(a){a.name==="autoFilter"&&(this.model=a.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(s,T,S){const m=s("../../../utils/utils"),o=s("../base-xform"),a=s("../../../doc/range"),r=s("../../../doc/enums"),t=s("../strings/rich-text-xform");function e(l){if(l==null)return r.ValueType.Null;if(l instanceof String||typeof l=="string")return r.ValueType.String;if(typeof l=="number")return r.ValueType.Number;if(typeof l=="boolean")return r.ValueType.Boolean;if(l instanceof Date)return r.ValueType.Date;if(l.text&&l.hyperlink)return r.ValueType.Hyperlink;if(l.formula)return r.ValueType.Formula;if(l.error)return r.ValueType.Error;throw new Error("I could not understand type of value")}T.exports=class extends o{constructor(){super(),this.richTextXForm=new t}get tag(){return"c"}prepare(l,n){const i=n.styles.addStyleModel(l.style||{},function(c){switch(c.type){case r.ValueType.Formula:return e(c.result);default:return c.type}}(l));switch(i&&(l.styleId=i),l.comment&&n.comments.push({...l.comment,ref:l.address}),l.type){case r.ValueType.String:case r.ValueType.RichText:n.sharedStrings&&(l.ssId=n.sharedStrings.add(l.value));break;case r.ValueType.Date:n.date1904&&(l.date1904=!0);break;case r.ValueType.Hyperlink:n.sharedStrings&&l.text!==void 0&&l.text!==null&&(l.ssId=n.sharedStrings.add(l.text)),n.hyperlinks.push({address:l.address,target:l.hyperlink,tooltip:l.tooltip});break;case r.ValueType.Merge:n.merges.add(l);break;case r.ValueType.Formula:if(n.date1904&&(l.date1904=!0),l.shareType==="shared"&&(l.si=n.siFormulae++),l.formula)n.formulae[l.address]=l;else if(l.sharedFormula){const c=n.formulae[l.sharedFormula];if(!c)throw new Error("Shared Formula master must exist above and or left of clone for cell "+l.address);c.si===void 0?(c.shareType="shared",c.si=n.siFormulae++,c.range=new a(c.address,l.address)):c.range&&c.range.expandToAddress(l.address),l.si=c.si}}}renderFormula(l,n){let i=null;switch(n.shareType){case"shared":i={t:"shared",ref:n.ref||n.range.range,si:n.si};break;case"array":i={t:"array",ref:n.ref};break;default:n.si!==void 0&&(i={t:"shared",si:n.si})}switch(e(n.result)){case r.ValueType.Null:l.leafNode("f",i,n.formula);break;case r.ValueType.String:l.addAttribute("t","str"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Number:l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result?1:0);break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result.error);break;case r.ValueType.Date:l.leafNode("f",i,n.formula),l.leafNode("v",null,m.dateToExcel(n.result,n.date1904));break;default:throw new Error("I could not understand type of value")}}render(l,n){if(n.type!==r.ValueType.Null||n.styleId){switch(l.openNode("c"),l.addAttribute("r",n.address),n.styleId&&l.addAttribute("s",n.styleId),n.type){case r.ValueType.Null:break;case r.ValueType.Number:l.leafNode("v",null,n.value);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("v",null,n.value?"1":"0");break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("v",null,n.value.error);break;case r.ValueType.String:case r.ValueType.RichText:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):n.value&&n.value.richText?(l.addAttribute("t","inlineStr"),l.openNode("is"),n.value.richText.forEach(i=>{this.richTextXForm.render(l,i)}),l.closeNode("is")):(l.addAttribute("t","str"),l.leafNode("v",null,n.value));break;case r.ValueType.Date:l.leafNode("v",null,m.dateToExcel(n.value,n.date1904));break;case r.ValueType.Hyperlink:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):(l.addAttribute("t","str"),l.leafNode("v",null,n.text));break;case r.ValueType.Formula:this.renderFormula(l,n);break;case r.ValueType.Merge:}l.closeNode()}}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"c":return this.model={address:l.attributes.r},this.t=l.attributes.t,l.attributes.s&&(this.model.styleId=parseInt(l.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=l.attributes.si,this.model.shareType=l.attributes.t,this.model.ref=l.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){if(this.parser)this.parser.parseText(l);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+l:l;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+l:l:this.model.value=this.model.value?this.model.value+l:l}}parseClose(l){switch(l){case"c":{const{model:n}=this;if(n.formula||n.shareType)n.type=r.ValueType.Formula,n.value&&(this.t==="str"?n.result=m.xmlDecode(n.value):this.t==="b"?n.result=parseInt(n.value,10)!==0:this.t==="e"?n.result={error:n.value}:n.result=parseFloat(n.value),n.value=void 0);else if(n.value!==void 0)switch(this.t){case"s":n.type=r.ValueType.String,n.value=parseInt(n.value,10);break;case"str":n.type=r.ValueType.String,n.value=m.xmlDecode(n.value);break;case"inlineStr":n.type=r.ValueType.String;break;case"b":n.type=r.ValueType.Boolean,n.value=parseInt(n.value,10)!==0;break;case"e":n.type=r.ValueType.Error,n.value={error:n.value};break;default:n.type=r.ValueType.Number,n.value=parseFloat(n.value)}else n.styleId?n.type=r.ValueType.Null:n.type=r.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(l),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(l),!0)}}reconcile(l,n){const i=l.styleId&&n.styles&&n.styles.getStyleModel(l.styleId);switch(i&&(l.style=i),l.styleId!==void 0&&(l.styleId=void 0),l.type){case r.ValueType.String:typeof l.value=="number"&&n.sharedStrings&&(l.value=n.sharedStrings.getString(l.value)),l.value.richText&&(l.type=r.ValueType.RichText);break;case r.ValueType.Number:i&&m.isDateFmt(i.numFmt)&&(l.type=r.ValueType.Date,l.value=m.excelToDate(l.value,n.date1904));break;case r.ValueType.Formula:l.result!==void 0&&i&&m.isDateFmt(i.numFmt)&&(l.result=m.excelToDate(l.result,n.date1904)),l.shareType==="shared"&&(l.ref?n.formulae[l.si]=l.address:(l.sharedFormula=n.formulae[l.si],delete l.shareType),delete l.si)}const c=n.hyperlinkMap[l.address];c&&(l.type===r.ValueType.Formula?(l.text=l.result,l.result=void 0):(l.text=l.value,l.value=void 0),l.type=r.ValueType.Hyperlink,l.hyperlink=c);const h=n.commentsMap&&n.commentsMap[l.address];h&&(l.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"x14:cfIcon"}render(o,a){o.leafNode(this.tag,{iconSet:a.iconSet,iconId:a.iconId})}parseOpen(o){let{attributes:a}=o;this.model={iconSet:a.iconSet,iconId:m.toIntValue(a.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(s,T,S){const{v4:m}=s("uuid"),o=s("../../base-xform"),a=s("../../composite-xform"),r=s("./databar-ext-xform"),t=s("./icon-set-ext-xform"),e={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new r,"x14:iconSet":this.iconSetXform=new t}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?r.isExt(i):!(i.type!=="iconSet"||!i.custom&&!e[i.iconSet])}prepare(i){l.isExt(i)&&(i.x14Id=`{${m()}}`.toUpperCase())}render(i,c){if(l.isExt(c))switch(c.type){case"dataBar":this.renderDataBar(i,c);break;case"iconSet":this.renderIconSet(i,c)}}renderDataBar(i,c){i.openNode(this.tag,{type:"dataBar",id:c.x14Id}),this.databarXform.render(i,c),i.closeNode()}renderIconSet(i,c){i.openNode(this.tag,{type:"iconSet",priority:c.priority,id:c.x14Id||`{${m()}}`}),this.iconSetXform.render(i,c),i.closeNode()}createNewModel(i){let{attributes:c}=i;return{type:c.type,x14Id:c.id,priority:o.toIntValue(c.priority)}}onParserClose(i,c){Object.assign(this.model,c.model)}}T.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(s,T,S){const m=s("../../composite-xform"),o=s("./f-ext-xform");T.exports=class extends m{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(a,r){a.openNode(this.tag,{type:r.type}),r.value!==void 0&&this.fExtXform.render(a,r.value),a.closeNode()}createNewModel(a){return{type:a.attributes.type}}onParserClose(a,r){switch(a){case"xm:f":this.model.value=r.model?parseFloat(r.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(s,T,S){const m=s("../../composite-xform"),o=s("./sqref-ext-xform"),a=s("./cf-rule-ext-xform");T.exports=class extends m{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(r,t){r.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(r,t){t.rules.some(a.isExt)&&(r.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach(e=>this.cfRule.render(r,e)),this.sqRef.render(r,t.ref),r.closeNode())}createNewModel(){return{rules:[]}}onParserClose(r,t){switch(r){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(s,T,S){const m=s("../../composite-xform"),o=s("./cf-rule-ext-xform"),a=s("./conditional-formatting-ext-xform");T.exports=class extends m{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(r){return r.hasExtContent===void 0&&(r.hasExtContent=r.some(t=>t.rules.some(o.isExt))),r.hasExtContent}prepare(r,t){r.forEach(e=>{this.cfXform.prepare(e,t)})}render(r,t){this.hasContent(t)&&(r.openNode(this.tag),t.forEach(e=>this.cfXform.render(r,e)),r.closeNode())}createNewModel(){return[]}onParserClose(r,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("../../style/color-xform"),r=s("./cfvo-ext-xform");T.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new r,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(t){return!t.gradient}get tag(){return"x14:dataBar"}render(t,e){t.openNode(this.tag,{minLength:m.toIntAttribute(e.minLength,0,!0),maxLength:m.toIntAttribute(e.maxLength,100,!0),border:m.toBoolAttribute(e.border,!1),gradient:m.toBoolAttribute(e.gradient,!0),negativeBarColorSameAsPositive:m.toBoolAttribute(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolAttribute(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toAttribute(e.axisPosition,"auto"),direction:m.toAttribute(e.direction,"leftToRight")}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),this.borderColorXform.render(t,e.borderColor),this.negativeBorderColorXform.render(t,e.negativeBorderColor),this.negativeFillColorXform.render(t,e.negativeFillColor),this.axisColorXform.render(t,e.axisColor),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],minLength:m.toIntValue(e.minLength,0),maxLength:m.toIntValue(e.maxLength,100),border:m.toBoolValue(e.border,!1),gradient:m.toBoolValue(e.gradient,!0),negativeBarColorSameAsPositive:m.toBoolValue(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolValue(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toStringValue(e.axisPosition,"auto"),direction:m.toStringValue(e.direction,"leftToRight")}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"xm:f"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("./cfvo-ext-xform"),r=s("./cf-icon-ext-xform");T.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new r}}get tag(){return"x14:iconSet"}render(t,e){t.openNode(this.tag,{iconSet:m.toStringAttribute(e.iconSet),reverse:m.toBoolAttribute(e.reverse,!1),showValue:m.toBoolAttribute(e.showValue,!0),custom:m.toBoolAttribute(e.icons,!1)}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),e.icons&&e.icons.forEach((l,n)=>{l.iconId=n,this.cfIconXform.render(t,l)}),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],iconSet:m.toStringValue(e.iconSet,"3TrafficLights"),reverse:m.toBoolValue(e.reverse,!1),showValue:m.toBoolValue(e.showValue,!0)}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"xm:sqref"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("../../../../doc/range"),r=s("./databar-xform"),t=s("./ext-lst-ref-xform"),e=s("./formula-xform"),l=s("./color-scale-xform"),n=s("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},c=u=>{const{type:d,operator:f}=u;switch(d){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:d};default:return{type:d,operator:f}}};class h extends o{constructor(){super(),this.map={dataBar:this.databarXform=new r,extLst:this.extLstRefXform=new t,formula:this.formulaXform=new e,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new n}}get tag(){return"cfRule"}static isPrimitive(d){return d.type!=="iconSet"||!d.custom&&!i[d.iconSet]}render(d,f){switch(f.type){case"expression":this.renderExpression(d,f);break;case"cellIs":this.renderCellIs(d,f);break;case"top10":this.renderTop10(d,f);break;case"aboveAverage":this.renderAboveAverage(d,f);break;case"dataBar":this.renderDataBar(d,f);break;case"colorScale":this.renderColorScale(d,f);break;case"iconSet":this.renderIconSet(d,f);break;case"containsText":this.renderText(d,f);break;case"timePeriod":this.renderTimePeriod(d,f)}}renderExpression(d,f){d.openNode(this.tag,{type:"expression",dxfId:f.dxfId,priority:f.priority}),this.formulaXform.render(d,f.formulae[0]),d.closeNode()}renderCellIs(d,f){d.openNode(this.tag,{type:"cellIs",dxfId:f.dxfId,priority:f.priority,operator:f.operator}),f.formulae.forEach(w=>{this.formulaXform.render(d,w)}),d.closeNode()}renderTop10(d,f){d.leafNode(this.tag,{type:"top10",dxfId:f.dxfId,priority:f.priority,percent:m.toBoolAttribute(f.percent,!1),bottom:m.toBoolAttribute(f.bottom,!1),rank:m.toIntValue(f.rank,10,!0)})}renderAboveAverage(d,f){d.leafNode(this.tag,{type:"aboveAverage",dxfId:f.dxfId,priority:f.priority,aboveAverage:m.toBoolAttribute(f.aboveAverage,!0)})}renderDataBar(d,f){d.openNode(this.tag,{type:"dataBar",priority:f.priority}),this.databarXform.render(d,f),this.extLstRefXform.render(d,f),d.closeNode()}renderColorScale(d,f){d.openNode(this.tag,{type:"colorScale",priority:f.priority}),this.colorScaleXform.render(d,f),d.closeNode()}renderIconSet(d,f){h.isPrimitive(f)&&(d.openNode(this.tag,{type:"iconSet",priority:f.priority}),this.iconSetXform.render(d,f),d.closeNode())}renderText(d,f){d.openNode(this.tag,{type:f.operator,dxfId:f.dxfId,priority:f.priority,operator:m.toStringAttribute(f.operator,"containsText")});const w=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const A=new a(_.ref),{tl:N}=A;switch(_.operator){case"containsText":return`NOT(ISERROR(SEARCH("${_.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(f);w&&this.formulaXform.render(d,w),d.closeNode()}renderTimePeriod(d,f){d.openNode(this.tag,{type:"timePeriod",dxfId:f.dxfId,priority:f.priority,timePeriod:f.timePeriod});const w=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const A=new a(_.ref),{tl:N}=A;switch(_.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(f);w&&this.formulaXform.render(d,w),d.closeNode()}createNewModel(d){let{attributes:f}=d;return{...c(f),dxfId:m.toIntValue(f.dxfId),priority:m.toIntValue(f.priority),timePeriod:f.timePeriod,percent:m.toBoolValue(f.percent),bottom:m.toBoolValue(f.bottom),rank:m.toIntValue(f.rank),aboveAverage:m.toBoolValue(f.aboveAverage)}}onParserClose(d,f){switch(d){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,f.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(f.model)}}}T.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"cfvo"}render(o,a){o.leafNode(this.tag,{type:a.type,val:a.value})}parseOpen(o){this.model={type:o.attributes.type,value:m.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(s,T,S){const m=s("../../composite-xform"),o=s("../../style/color-xform"),a=s("./cfvo-xform");T.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"colorScale"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),t.color.forEach(e=>{this.colorXform.render(r,e)}),r.closeNode()}createNewModel(r){return{cfvo:[],color:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(s,T,S){const m=s("../../composite-xform"),o=s("./cf-rule-xform");T.exports=class extends m{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(a,r){r.rules.some(o.isPrimitive)&&(a.openNode(this.tag,{sqref:r.ref}),r.rules.forEach(t=>{o.isPrimitive(t)&&(t.ref=r.ref,this.map.cfRule.render(a,t))}),a.closeNode())}createNewModel(a){let{attributes:r}=a;return{ref:r.sqref,rules:[]}}onParserClose(a,r){this.model.rules.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(s,T,S){const m=s("../../base-xform"),o=s("./conditional-formatting-xform");T.exports=class extends m{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(a,r){let t=a.reduce((e,l)=>Math.max(e,...l.rules.map(n=>n.priority||0)),1);a.forEach(e=>{e.rules.forEach(l=>{l.priority||(l.priority=t++),l.style&&(l.dxfId=r.styles.addDxfStyle(l.style))})})}render(a,r){r.forEach(t=>{this.cfXform.render(a,t)})}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(!!this.parser.parseClose(a)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(a,r){a.forEach(t=>{t.rules.forEach(e=>{e.dxfId!==void 0&&(e.style=r.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(s,T,S){const m=s("../../composite-xform"),o=s("../../style/color-xform"),a=s("./cfvo-xform");T.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"dataBar"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),this.colorXform.render(r,t.color),r.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(r,t){switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform");class a extends m{get tag(){return"x14:id"}render(e,l){e.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class r extends o{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(e,l){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,l.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,l){this.model.x14Id=l.model}}T.exports=class extends o{constructor(){super(),this.map={ext:new r}}get tag(){return"extLst"}render(t,e){t.openNode(this.tag),this.map.ext.render(t,e),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){Object.assign(this.model,e.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"formula"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("./cfvo-xform");T.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(r,t){r.openNode(this.tag,{iconSet:m.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:m.toBoolAttribute(t.reverse,!1),showValue:m.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),r.closeNode()}createNewModel(r){let{attributes:t}=r;return{iconSet:m.toStringValue(t.iconSet,"3TrafficLights"),reverse:m.toBoolValue(t.reverse),showValue:m.toBoolValue(t.showValue),cfvo:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(s,T,S){const m=s("../../../utils/utils"),o=s("../base-xform");T.exports=class extends o{get tag(){return"col"}prepare(a,r){const t=r.styles.addStyleModel(a.style||{});t&&(a.styleId=t)}render(a,r){a.openNode("col"),a.addAttribute("min",r.min),a.addAttribute("max",r.max),r.width&&a.addAttribute("width",r.width),r.styleId&&a.addAttribute("style",r.styleId),r.hidden&&a.addAttribute("hidden","1"),r.bestFit&&a.addAttribute("bestFit","1"),r.outlineLevel&&a.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}parseOpen(a){if(a.name==="col"){const r=this.model={min:parseInt(a.attributes.min||"0",10),max:parseInt(a.attributes.max||"0",10),width:a.attributes.width===void 0?void 0:parseFloat(a.attributes.width||"0")};return a.attributes.style&&(r.styleId=parseInt(a.attributes.style,10)),m.parseBoolean(a.attributes.hidden)&&(r.hidden=!0),m.parseBoolean(a.attributes.bestFit)&&(r.bestFit=!0),a.attributes.outlineLevel&&(r.outlineLevel=parseInt(a.attributes.outlineLevel,10)),m.parseBoolean(a.attributes.collapsed)&&(r.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(a,r){a.styleId&&(a.style=r.styles.getStyleModel(a.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/utils"),a=s("../../../utils/col-cache"),r=s("../base-xform"),t=s("../../../doc/range");function e(n,i,c,h){const u=i[c];u!==void 0?n[c]=u:h!==void 0&&(n[c]=h)}function l(n,i,c,h){const u=i[c];u!==void 0&&(n[c]=o.parseBoolean(u))}T.exports=class extends r{get tag(){return"dataValidations"}render(n,i){const c=function(h){const u=m.map(h,(w,_)=>({address:_,dataValidation:w,marked:!1})).sort((w,_)=>m.strcmp(w.address,_.address)),d=m.keyBy(u,"address"),f=(w,_,A)=>{for(let N=0;N<_;N++){const L=a.encodeAddress(w.row+N,A);if(!h[L]||!m.isEqual(h[w.address],h[L]))return!1}return!0};return u.map(w=>{if(!w.marked){const _=a.decodeEx(w.address);if(_.dimensions)return d[_.dimensions].marked=!0,{...w.dataValidation,sqref:w.address};let A=1,N=a.encodeAddress(_.row+A,_.col);for(;h[N]&&m.isEqual(w.dataValidation,h[N]);)A++,N=a.encodeAddress(_.row+A,_.col);let L=1;for(;f(_,A,_.col+L);)L++;for(let I=0;I1||L>1){const I=_.row+(A-1),P=_.col+(L-1);return{...w.dataValidation,sqref:`${w.address}:${a.encodeAddress(I,P)}`}}return{...w.dataValidation,sqref:w.address}}return null}).filter(Boolean)}(i);c.length&&(n.openNode("dataValidations",{count:c.length}),c.forEach(h=>{n.openNode("dataValidation"),h.type!=="any"&&(n.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&n.addAttribute("operator",h.operator),h.allowBlank&&n.addAttribute("allowBlank","1")),h.showInputMessage&&n.addAttribute("showInputMessage","1"),h.promptTitle&&n.addAttribute("promptTitle",h.promptTitle),h.prompt&&n.addAttribute("prompt",h.prompt),h.showErrorMessage&&n.addAttribute("showErrorMessage","1"),h.errorStyle&&n.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&n.addAttribute("errorTitle",h.errorTitle),h.error&&n.addAttribute("error",h.error),n.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((u,d)=>{n.openNode("formula"+(d+1)),h.type==="date"?n.writeText(o.dateToExcel(new Date(u))):n.writeText(u),n.closeNode()}),n.closeNode()}),n.closeNode())}parseOpen(n){switch(n.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=n.attributes.sqref;const i={type:n.attributes.type||"any",formulae:[]};switch(n.attributes.type&&l(i,n.attributes,"allowBlank"),l(i,n.attributes,"showInputMessage"),l(i,n.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:e(i,n.attributes,"operator","between")}return e(i,n.attributes,"promptTitle"),e(i,n.attributes,"prompt"),e(i,n.attributes,"errorStyle"),e(i,n.attributes,"errorTitle"),e(i,n.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(n){this._formula&&this._formula.push(n)}parseClose(n){switch(n){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(i=>{i.includes(":")?new t(i).forEachAddress(c=>{this.model[c]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=o.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"dimension"}render(o,a){a&&o.leafNode("dimension",{ref:a})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"drawing"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(s,T,S){const m=s("../composite-xform"),o=s("./cf-ext/conditional-formattings-ext-xform");class a extends m{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(t){return this.conditionalFormattings.hasContent(t.conditionalFormattings)}prepare(t,e){this.conditionalFormattings.prepare(t.conditionalFormattings,e)}render(t,e){t.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(t,e.conditionalFormattings),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){this.model[t]=e.model}}T.exports=class extends m{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(r,t){this.ext.prepare(r,t)}hasContent(r){return this.ext.hasContent(r)}render(r,t){this.hasContent(t)&&(r.openNode("extLst"),this.ext.render(r,t),r.closeNode())}createNewModel(){return{}}onParserClose(r,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"headerFooter"}render(o,a){if(a){o.addRollback();let r=!1;o.openNode("headerFooter"),a.differentFirst&&(o.addAttribute("differentFirst","1"),r=!0),a.differentOddEven&&(o.addAttribute("differentOddEven","1"),r=!0),a.oddHeader&&typeof a.oddHeader=="string"&&(o.leafNode("oddHeader",null,a.oddHeader),r=!0),a.oddFooter&&typeof a.oddFooter=="string"&&(o.leafNode("oddFooter",null,a.oddFooter),r=!0),a.evenHeader&&typeof a.evenHeader=="string"&&(o.leafNode("evenHeader",null,a.evenHeader),r=!0),a.evenFooter&&typeof a.evenFooter=="string"&&(o.leafNode("evenFooter",null,a.evenFooter),r=!0),a.firstHeader&&typeof a.firstHeader=="string"&&(o.leafNode("firstHeader",null,a.firstHeader),r=!0),a.firstFooter&&typeof a.firstFooter=="string"&&(o.leafNode("firstFooter",null,a.firstFooter),r=!0),r?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"hyperlink"}render(o,a){this.isInternalLink(a)?o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip,location:a.target}):o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"mergeCell"}render(o,a){o.leafNode("mergeCell",{ref:a})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../doc/range"),a=s("../../../utils/col-cache"),r=s("../../../doc/enums");T.exports=class{constructor(){this.merges={}}add(t){if(this.merges[t.master])this.merges[t.master].expandToAddress(t.address);else{const e=`${t.master}:${t.address}`;this.merges[t.master]=new o(e)}}get mergeCells(){return m.map(this.merges,t=>t.range)}reconcile(t,e){m.each(t,l=>{const n=a.decode(l);for(let i=n.top;i<=n.bottom;i++){const c=e[i-1];for(let h=n.left;h<=n.right;h++){const u=c.cells[h-1];u?u.type===r.ValueType.Merge&&(u.master=n.tl):c.cells[h]={type:r.ValueType.Null,address:a.encodeAddress(i,h)}}}})}getMasterAddress(t){const e=this.hash[t];return e&&e.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(s,T,S){const m=s("../base-xform"),o=a=>a!==void 0;T.exports=class extends m{get tag(){return"outlinePr"}render(a,r){return!(!r||!o(r.summaryBelow)&&!o(r.summaryRight))&&(a.leafNode(this.tag,{summaryBelow:o(r.summaryBelow)?Number(r.summaryBelow):void 0,summaryRight:o(r.summaryRight)?Number(r.summaryRight):void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={summaryBelow:o(a.attributes.summaryBelow)?!!Number(a.attributes.summaryBelow):void 0,summaryRight:o(a.attributes.summaryRight)?!!Number(a.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"brk"}render(o,a){o.leafNode("brk",a)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");T.exports=class extends o{get tag(){return"pageMargins"}render(a,r){if(r){const t={left:r.left,right:r.right,top:r.top,bottom:r.bottom,header:r.header,footer:r.footer};m.some(t,e=>e!==void 0)&&a.leafNode(this.tag,t)}}parseOpen(a){switch(a.name){case this.tag:return this.model={left:parseFloat(a.attributes.left||.7),right:parseFloat(a.attributes.right||.7),top:parseFloat(a.attributes.top||.75),bottom:parseFloat(a.attributes.bottom||.75),header:parseFloat(a.attributes.header||.3),footer:parseFloat(a.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"pageSetUpPr"}render(o,a){return!(!a||!a.fitToPage)&&(o.leafNode(this.tag,{fitToPage:a.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(l){return l?"1":void 0}function r(l){switch(l){case"overThenDown":return l;default:return}}function t(l){switch(l){case"atEnd":case"asDisplyed":return l;default:return}}function e(l){switch(l){case"dash":case"blank":case"NA":return l;default:return}}T.exports=class extends o{get tag(){return"pageSetup"}render(l,n){if(n){const i={paperSize:n.paperSize,orientation:n.orientation,horizontalDpi:n.horizontalDpi,verticalDpi:n.verticalDpi,pageOrder:r(n.pageOrder),blackAndWhite:a(n.blackAndWhite),draft:a(n.draft),cellComments:t(n.cellComments),errors:e(n.errors),scale:n.scale,fitToWidth:n.fitToWidth,fitToHeight:n.fitToHeight,firstPageNumber:n.firstPageNumber,useFirstPageNumber:a(n.firstPageNumber),usePrinterDefaults:a(n.usePrinterDefaults),copies:n.copies};m.some(i,c=>c!==void 0)&&l.leafNode(this.tag,i)}}parseOpen(l){switch(l.name){case this.tag:return this.model={paperSize:(n=l.attributes.paperSize,n!==void 0?parseInt(n,10):void 0),orientation:l.attributes.orientation||"portrait",horizontalDpi:parseInt(l.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(l.attributes.verticalDpi||"4294967295",10),pageOrder:l.attributes.pageOrder||"downThenOver",blackAndWhite:l.attributes.blackAndWhite==="1",draft:l.attributes.draft==="1",cellComments:l.attributes.cellComments||"None",errors:l.attributes.errors||"displayed",scale:parseInt(l.attributes.scale||"100",10),fitToWidth:parseInt(l.attributes.fitToWidth||"1",10),fitToHeight:parseInt(l.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(l.attributes.firstPageNumber||"1",10),useFirstPageNumber:l.attributes.useFirstPageNumber==="1",usePrinterDefaults:l.attributes.usePrinterDefaults==="1",copies:parseInt(l.attributes.copies||"1",10)},!0;default:return!1}var n}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"picture"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(r){return r?"1":void 0}T.exports=class extends o{get tag(){return"printOptions"}render(r,t){if(t){const e={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};m.some(e,l=>l!==void 0)&&r.leafNode(this.tag,e)}}parseOpen(r){switch(r.name){case this.tag:return this.model={showRowColHeaders:r.attributes.headings==="1",showGridLines:r.attributes.gridLines==="1",horizontalCentered:r.attributes.horizontalCentered==="1",verticalCentered:r.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(s,T,S){const m=s("./page-breaks-xform"),o=s("../list-xform");T.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new m})}render(a,r){if(r&&r.length){a.openNode(this.tag,this.$),this.count&&(a.addAttribute(this.$count,r.length),a.addAttribute("manualBreakCount",r.length));const{childXform:t}=this;r.forEach(e=>{t.render(a,e)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(s,T,S){const m=s("../base-xform"),o=s("../../../utils/utils"),a=s("./cell-xform");T.exports=class extends m{constructor(r){super(),this.maxItems=r&&r.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(r,t){const e=t.styles.addStyleModel(r.style);e&&(r.styleId=e);const l=this.map.c;r.cells.forEach(n=>{l.prepare(n,t)})}render(r,t,e){r.openNode("row"),r.addAttribute("r",t.number),t.height&&(r.addAttribute("ht",t.height),r.addAttribute("customHeight","1")),t.hidden&&r.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&r.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(r.addAttribute("s",t.styleId),r.addAttribute("customFormat","1")),r.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&r.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&r.addAttribute("collapsed","1");const l=this.map.c;t.cells.forEach(n=>{l.render(r,n,e)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;if(r.name==="row"){this.numRowsSeen+=1;const t=r.attributes.spans?r.attributes.spans.split(":").map(l=>parseInt(l,10)):[void 0,void 0],e=this.model={number:parseInt(r.attributes.r,10),min:t[0],max:t[1],cells:[]};return r.attributes.s&&(e.styleId=parseInt(r.attributes.s,10)),o.parseBoolean(r.attributes.hidden)&&(e.hidden=!0),o.parseBoolean(r.attributes.bestFit)&&(e.bestFit=!0),r.attributes.ht&&(e.height=parseFloat(r.attributes.ht)),r.attributes.outlineLevel&&(e.outlineLevel=parseInt(r.attributes.outlineLevel,10)),o.parseBoolean(r.attributes.collapsed)&&(e.collapsed=!0),!0}return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(r,t){r.style=r.styleId?t.styles.getStyleModel(r.styleId):{},r.styleId!==void 0&&(r.styleId=void 0);const e=this.map.c;r.cells.forEach(l=>{e.reconcile(l,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");T.exports=class extends o{get tag(){return"sheetFormatPr"}render(a,r){if(r){const t={defaultRowHeight:r.defaultRowHeight,outlineLevelRow:r.outlineLevelRow,outlineLevelCol:r.outlineLevelCol,"x14ac:dyDescent":r.dyDescent};r.defaultColWidth&&(t.defaultColWidth=r.defaultColWidth),r.defaultRowHeight&&r.defaultRowHeight===15||(t.customHeight="1"),m.some(t,e=>e!==void 0)&&a.leafNode("sheetFormatPr",t)}}parseOpen(a){return a.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(a.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(a.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(a.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(a.attributes.outlineLevelCol||"0",10)},a.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(a.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(s,T,S){const m=s("../base-xform"),o=s("../style/color-xform"),a=s("./page-setup-properties-xform"),r=s("./outline-properties-xform");T.exports=class extends m{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new a,outlinePr:new r}}get tag(){return"sheetPr"}render(t,e){if(e){t.addRollback(),t.openNode("sheetPr");let l=!1;l=this.map.tabColor.render(t,e.tabColor)||l,l=this.map.pageSetUpPr.render(t,e.pageSetup)||l,l=this.map.outlinePr.render(t,e.outlineProperties)||l,l?(t.closeNode(),t.commit()):t.rollback()}}parseOpen(t){return this.parser?(this.parser.parseOpen(t),!0):t.name===this.tag?(this.reset(),!0):!!this.map[t.name]&&(this.parser=this.map[t.name],this.parser.parseOpen(t),!0)}parseText(t){return!!this.parser&&(this.parser.parseText(t),!0)}parseClose(t){return this.parser?(this.parser.parseClose(t)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(t,e){return t?e:void 0}function r(t,e){return t===e||void 0}T.exports=class extends o{get tag(){return"sheetProtection"}render(t,e){if(e){const l={sheet:a(e.sheet,"1"),selectLockedCells:e.selectLockedCells===!1?"1":void 0,selectUnlockedCells:e.selectUnlockedCells===!1?"1":void 0,formatCells:a(e.formatCells,"0"),formatColumns:a(e.formatColumns,"0"),formatRows:a(e.formatRows,"0"),insertColumns:a(e.insertColumns,"0"),insertRows:a(e.insertRows,"0"),insertHyperlinks:a(e.insertHyperlinks,"0"),deleteColumns:a(e.deleteColumns,"0"),deleteRows:a(e.deleteRows,"0"),sort:a(e.sort,"0"),autoFilter:a(e.autoFilter,"0"),pivotTables:a(e.pivotTables,"0")};e.sheet&&(l.algorithmName=e.algorithmName,l.hashValue=e.hashValue,l.saltValue=e.saltValue,l.spinCount=e.spinCount,l.objects=a(e.objects===!1,"1"),l.scenarios=a(e.scenarios===!1,"1")),m.some(l,n=>n!==void 0)&&t.leafNode(this.tag,l)}}parseOpen(t){switch(t.name){case this.tag:return this.model={sheet:r(t.attributes.sheet,"1"),objects:t.attributes.objects!=="1"&&void 0,scenarios:t.attributes.scenarios!=="1"&&void 0,selectLockedCells:t.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:t.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:r(t.attributes.formatCells,"0"),formatColumns:r(t.attributes.formatColumns,"0"),formatRows:r(t.attributes.formatRows,"0"),insertColumns:r(t.attributes.insertColumns,"0"),insertRows:r(t.attributes.insertRows,"0"),insertHyperlinks:r(t.attributes.insertHyperlinks,"0"),deleteColumns:r(t.attributes.deleteColumns,"0"),deleteRows:r(t.attributes.deleteRows,"0"),sort:r(t.attributes.sort,"0"),autoFilter:r(t.attributes.autoFilter,"0"),pivotTables:r(t.attributes.pivotTables,"0")},t.attributes.algorithmName&&(this.model.algorithmName=t.attributes.algorithmName,this.model.hashValue=t.attributes.hashValue,this.model.saltValue=t.attributes.saltValue,this.model.spinCount=parseInt(t.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(s,T,S){const m=s("../../../utils/col-cache"),o=s("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};T.exports=class extends o{get tag(){return"sheetView"}prepare(r){switch(r.state){case"frozen":case"split":break;default:r.state="normal"}}render(r,t){r.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const e=function(h,u,d){d&&r.addAttribute(h,u)};let l,n,i,c;switch(e("rightToLeft","1",t.rightToLeft===!0),e("tabSelected","1",t.tabSelected),e("showRuler","0",t.showRuler===!1),e("showRowColHeaders","0",t.showRowColHeaders===!1),e("showGridLines","0",t.showGridLines===!1),e("zoomScale",t.zoomScale,t.zoomScale),e("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),e("view",t.style,t.style),t.state){case"frozen":n=t.xSplit||0,i=t.ySplit||0,l=t.topLeftCell||m.getAddress(i+1,n+1).address,c=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:l,activePane:c,state:"frozen"}),r.leafNode("selection",{pane:c,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":t.activePane==="topLeft"&&(t.activePane=void 0),r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),r.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&r.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}r.closeNode()}parseOpen(r){switch(r.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(r.attributes.workbookViewId,10),rightToLeft:r.attributes.rightToLeft==="1",tabSelected:r.attributes.tabSelected==="1",showRuler:r.attributes.showRuler!=="0",showRowColHeaders:r.attributes.showRowColHeaders!=="0",showGridLines:r.attributes.showGridLines!=="0",zoomScale:parseInt(r.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(r.attributes.zoomScaleNormal||"100",10),style:r.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(r.attributes.xSplit||"0",10),ySplit:parseInt(r.attributes.ySplit||"0",10),topLeftCell:r.attributes.topLeftCell,activePane:r.attributes.activePane||"topLeft",state:r.attributes.state},!0;case"selection":{const t=r.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:r.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(r){let t,e;switch(r){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(t.activePane=this.pane.activePane),e=this.selections[this.pane.activePane],e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},e=this.selections.topLeft,e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"tablePart"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),r=s("../../rel-type"),t=s("./merges"),e=s("../base-xform"),l=s("../list-xform"),n=s("./row-xform"),i=s("./col-xform"),c=s("./dimension-xform"),h=s("./hyperlink-xform"),u=s("./merge-cell-xform"),d=s("./data-validations-xform"),f=s("./sheet-properties-xform"),w=s("./sheet-format-properties-xform"),_=s("./sheet-view-xform"),A=s("./sheet-protection-xform"),N=s("./page-margins-xform"),L=s("./page-setup-xform"),I=s("./print-options-xform"),P=s("./auto-filter-xform"),D=s("./picture-xform"),U=s("./drawing-xform"),B=s("./table-part-xform"),x=s("./row-breaks-xform"),M=s("./header-footer-xform"),v=s("./cf/conditional-formattings-xform"),p=s("./ext-lst-xform"),b=(y,k)=>{if(!k||!k.length)return y;if(!y||!y.length)return k;const R={},O={};return y.forEach(z=>{R[z.ref]=z,z.rules.forEach($=>{const{x14Id:W}=$;W&&(O[W]=$)})}),k.forEach(z=>{z.rules.forEach($=>{const W=O[$.x14Id];W?((j,H)=>{Object.keys(H).forEach(E=>{const C=j[E],F=H[E];C===void 0&&F!==void 0&&(j[E]=F)})})(W,$):R[z.ref]?R[z.ref].rules.push($):y.push({ref:z.ref,rules:[$]})})}),y};class g extends e{constructor(k){super();const{maxRows:R,maxCols:O,ignoreNodes:z}=k||{};this.ignoreNodes=z||[],this.map={sheetPr:new f,dimension:new c,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new _}),sheetFormatPr:new w,cols:new l({tag:"cols",count:!1,childXform:new i}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new n({maxItems:O}),maxItems:R}),autoFilter:new P,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new u}),rowBreaks:new x,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new N,dataValidations:new d,pageSetup:new L,headerFooter:new M,printOptions:new I,picture:new D,drawing:new U,sheetProtection:new A,tableParts:new l({tag:"tableParts",count:!0,childXform:new B}),conditionalFormatting:new v,extLst:new p}}prepare(k,R){R.merges=new t,k.hyperlinks=R.hyperlinks=[],k.comments=R.comments=[],R.formulae={},R.siFormulae=0,this.map.cols.prepare(k.cols,R),this.map.sheetData.prepare(k.rows,R),this.map.conditionalFormatting.prepare(k.conditionalFormattings,R),k.mergeCells=R.merges.mergeCells;const O=k.rels=[];function z(j){return"rId"+(j.length+1)}if(k.hyperlinks.forEach(j=>{const H=z(O);j.rId=H,O.push({Id:H,Type:r.Hyperlink,Target:j.target,TargetMode:"External"})}),k.comments.length>0){const j={Id:z(O),Type:r.Comments,Target:`../comments${k.id}.xml`};O.push(j);const H={Id:z(O),Type:r.VmlDrawing,Target:`../drawings/vmlDrawing${k.id}.vml`};O.push(H),k.comments.forEach(E=>{E.refAddress=o.decodeAddress(E.ref)}),R.commentRefs.push({commentName:"comments"+k.id,vmlDrawing:"vmlDrawing"+k.id})}const $=[];let W;k.media.forEach(j=>{if(j.type==="background"){const H=z(O);W=R.media[j.imageId],O.push({Id:H,Type:r.Image,Target:`../media/${W.name}.${W.extension}`}),k.background={rId:H},k.image=R.media[j.imageId]}else if(j.type==="image"){let{drawing:H}=k;W=R.media[j.imageId],H||(H=k.drawing={rId:z(O),name:"drawing"+ ++R.drawingsCount,anchors:[],rels:[]},R.drawings.push(H),O.push({Id:H.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${H.name}.xml`}));let E=this.preImageId===j.imageId?$[j.imageId]:$[H.rels.length];E||(E=z(H.rels),$[H.rels.length]=E,H.rels.push({Id:E,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${W.name}.${W.extension}`}));const C={picture:{rId:E},range:j.range};if(j.hyperlinks&&j.hyperlinks.hyperlink){const F=z(H.rels);$[H.rels.length]=F,C.picture.hyperlinks={tooltip:j.hyperlinks.tooltip,rId:F},H.rels.push({Id:F,Type:r.Hyperlink,Target:j.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=j.imageId,H.anchors.push(C)}}),k.tables.forEach(j=>{const H=z(O);j.rId=H,O.push({Id:H,Type:r.Table,Target:"../tables/"+j.target}),j.columns.forEach(E=>{const{style:C}=E;C&&(E.dxfId=R.styles.addDxfStyle(C))})}),this.map.extLst.prepare(k,R)}render(k,R){k.openXml(a.StdDocAttributes),k.openNode("worksheet",g.WORKSHEET_ATTRIBUTES);const O=R.properties?{defaultRowHeight:R.properties.defaultRowHeight,dyDescent:R.properties.dyDescent,outlineLevelCol:R.properties.outlineLevelCol,outlineLevelRow:R.properties.outlineLevelRow}:void 0;R.properties&&R.properties.defaultColWidth&&(O.defaultColWidth=R.properties.defaultColWidth);const z={outlineProperties:R.properties&&R.properties.outlineProperties,tabColor:R.properties&&R.properties.tabColor,pageSetup:R.pageSetup&&R.pageSetup.fitToPage?{fitToPage:R.pageSetup.fitToPage}:void 0},$=R.pageSetup&&R.pageSetup.margins,W={showRowColHeaders:R.pageSetup&&R.pageSetup.showRowColHeaders,showGridLines:R.pageSetup&&R.pageSetup.showGridLines,horizontalCentered:R.pageSetup&&R.pageSetup.horizontalCentered,verticalCentered:R.pageSetup&&R.pageSetup.verticalCentered},j=R.sheetProtection;this.map.sheetPr.render(k,z),this.map.dimension.render(k,R.dimensions),this.map.sheetViews.render(k,R.views),this.map.sheetFormatPr.render(k,O),this.map.cols.render(k,R.cols),this.map.sheetData.render(k,R.rows),this.map.sheetProtection.render(k,j),this.map.autoFilter.render(k,R.autoFilter),this.map.mergeCells.render(k,R.mergeCells),this.map.conditionalFormatting.render(k,R.conditionalFormattings),this.map.dataValidations.render(k,R.dataValidations),this.map.hyperlinks.render(k,R.hyperlinks),this.map.printOptions.render(k,W),this.map.pageMargins.render(k,$),this.map.pageSetup.render(k,R.pageSetup),this.map.headerFooter.render(k,R.headerFooter),this.map.rowBreaks.render(k,R.rowBreaks),this.map.drawing.render(k,R.drawing),this.map.picture.render(k,R.background),this.map.tableParts.render(k,R.tables),this.map.extLst.render(k,R),R.rels&&R.rels.forEach(H=>{H.Type===r.VmlDrawing&&k.leafNode("legacyDrawing",{"r:id":H.Id})}),k.closeNode()}parseOpen(k){return this.parser?(this.parser.parseOpen(k),!0):k.name==="worksheet"?(m.each(this.map,R=>{R.reset()}),!0):(this.map[k.name]&&!this.ignoreNodes.includes(k.name)&&(this.parser=this.map[k.name],this.parser.parseOpen(k)),!0)}parseText(k){this.parser&&this.parser.parseText(k)}parseClose(k){if(this.parser)return this.parser.parseClose(k)||(this.parser=void 0),!0;switch(k){case"worksheet":{const R=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(R.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(R.outlineProperties=this.map.sheetPr.model.outlineProperties);const O={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},z=Object.assign(O,this.map.pageSetup.model,this.map.printOptions.model),$=b(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:R,views:this.map.sheetViews.model,pageSetup:z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:$},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(k,R){const O=(k.relationships||[]).reduce(($,W)=>{if($[W.Id]=W,W.Type===r.Comments&&(k.comments=R.comments[W.Target].comments),W.Type===r.VmlDrawing&&k.comments&&k.comments.length){const j=R.vmlDrawings[W.Target].comments;k.comments.forEach((H,E)=>{H.note=Object.assign({},H.note,j[E])})}return $},{});if(R.commentsMap=(k.comments||[]).reduce(($,W)=>(W.ref&&($[W.ref]=W),$),{}),R.hyperlinkMap=(k.hyperlinks||[]).reduce(($,W)=>(W.rId&&($[W.address]=O[W.rId].Target),$),{}),R.formulae={},k.rows=k.rows&&k.rows.filter(Boolean)||[],k.rows.forEach($=>{$.cells=$.cells&&$.cells.filter(Boolean)||[]}),this.map.cols.reconcile(k.cols,R),this.map.sheetData.reconcile(k.rows,R),this.map.conditionalFormatting.reconcile(k.conditionalFormattings,R),k.media=[],k.drawing){const $=O[k.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if($){const W=$[1];R.drawings[W].anchors.forEach(j=>{if(j.medium){const H={type:"image",imageId:j.medium.index,range:j.range,hyperlinks:j.picture.hyperlinks};k.media.push(H)}})}}const z=k.background&&O[k.background.rId];if(z){const $=z.Target.split("/media/")[1],W=R.mediaIndex&&R.mediaIndex[$];W!==void 0&&k.media.push({type:"background",imageId:W})}k.tables=(k.tables||[]).map($=>{const W=O[$.rId];return R.tables[W.Target]}),delete k.relationships,delete k.hyperlinks,delete k.comments}}g.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},T.exports=g},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,a){a&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(a){try{return Number.isNaN(a.getTime())?"":a.toISOString()}catch{return""}},this._parse=o.parse||function(a){return new Date(a)}}render(o,a){a&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(a)):o.writeText(this._format(a)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,a){(a||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,a){a!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(s,T,S){const m=s("./base-xform"),o=s("../../utils/xml-stream");T.exports=class extends m{constructor(a){super(),this._model=a}render(a){if(!this._xml){const r=new o;(function t(e,l){e.openNode(l.tag,l.$),l.c&&l.c.forEach(n=>{t(e,n)}),l.t&&e.writeText(l.t),e.closeNode()})(r,this._model),this._xml=r.xml}a.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(a){switch(a){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(s,T,S){const m=s("./text-xform"),o=s("./rich-text-xform"),a=s("../base-xform");T.exports=class extends a{constructor(){super(),this.map={r:new o,t:new m}}get tag(){return"rPh"}render(r,t){if(r.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:e}=this.map;t.richText.forEach(l=>{e.render(r,l)})}else t&&this.map.t.render(r,t.text);r.closeNode()}parseOpen(r){const{name:t}=r;return this.parser?(this.parser.parseOpen(r),!0):t===this.tag?(this.model={sb:parseInt(r.attributes.sb,10),eb:parseInt(r.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(s,T,S){const m=s("./text-xform"),o=s("../style/font-xform"),a=s("../base-xform");class r extends a{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new m)}get fontXform(){return this._fontXform||(this._fontXform=new o(r.FONT_OPTIONS))}render(e,l){l=l||this.model,e.openNode("r"),l.font&&this.fontXform.render(e,l.font),this.textXform.render(e,l.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}r.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},T.exports=r},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(s,T,S){const m=s("./text-xform"),o=s("./rich-text-xform"),a=s("./phonetic-text-xform"),r=s("../base-xform");T.exports=class extends r{constructor(t){super(),this.model=t,this.map={r:new o,t:new m,rPh:new a}}get tag(){return"si"}render(t,e){t.openNode(this.tag),e&&e.hasOwnProperty("richText")&&e.richText?e.richText.length?e.richText.forEach(l=>{this.map.r.render(t,l)}):this.map.t.render(t,""):e!=null&&this.map.t.render(t,e),t.closeNode()}parseOpen(t){const{name:e}=t;return this.parser?(this.parser.parseOpen(t),!0):e===this.tag?(this.model={},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(t),!0))}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser){if(!this.parser.parseClose(t)){switch(t){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(t){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./shared-string-xform");T.exports=class extends o{constructor(r){super(),this.model=r||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(r){return this.model.values[r]}add(r){return r.richText?this.addRichText(r):this.addText(r)}addText(r){let t=this.hash[r];return t===void 0&&(t=this.hash[r]=this.model.values.length,this.model.values.push(r)),this.model.count++,t}addRichText(r){const t=this.sharedStringXform.toXml(r);let e=this.rich[t];return e===void 0&&(e=this.rich[t]=this.model.values.length,this.model.values.push(r)),this.model.count++,e}render(r,t){t=t||this._values,r.openXml(m.StdDocAttributes),r.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const e=this.sharedStringXform;t.values.forEach(l=>{e.render(r,l)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(r),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(r){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"t"}render(o,a){o.openNode("t"),/^\s|\n|\s$/.test(a)&&o.addAttribute("xml:space","preserve"),o.writeText(a),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,a)=>String.fromCharCode(parseInt(a,16)))}parseOpen(o){switch(o.name){case"t":return this._text=[],!0;default:return!1}}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(s,T,S){const m=s("../../../doc/enums"),o=s("../../../utils/utils"),a=s("../base-xform"),r={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),vertical(e){return e==="middle"?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){switch(e){case"vertical":return e;default:return(e=o.validInt(e))>=-90&&e<=90?e:void 0}},indent:e=>(e=o.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return m.ReadingOrder.LeftToRight;case"rtl":return m.ReadingOrder.RightToLeft;default:return}}},t={toXml(e){if(e=r.textRotation(e)){if(e==="vertical")return 255;const l=Math.round(e);if(l>=0&&l<=90)return l;if(l<0&&l>=-90)return 90-l}},toModel(e){const l=o.validInt(e);if(l!==void 0){if(l===255)return"vertical";if(l>=0&&l<=90)return l;if(l>90&&l<=180)return 90-l}}};T.exports=class extends a{get tag(){return"alignment"}render(e,l){e.addRollback(),e.openNode("alignment");let n=!1;function i(c,h){h&&(e.addAttribute(c,h),n=!0)}i("horizontal",r.horizontal(l.horizontal)),i("vertical",r.vertical(l.vertical)),i("wrapText",!!r.wrapText(l.wrapText)&&"1"),i("shrinkToFit",!!r.shrinkToFit(l.shrinkToFit)&&"1"),i("indent",r.indent(l.indent)),i("textRotation",t.toXml(l.textRotation)),i("readingOrder",r.readingOrder(l.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const l={};let n=!1;function i(c,h,u){c&&(l[h]=u,n=!0)}i(e.attributes.horizontal,"horizontal",e.attributes.horizontal),i(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical),i(e.attributes.wrapText,"wrapText",o.parseBoolean(e.attributes.wrapText)),i(e.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(e.attributes.shrinkToFit)),i(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),i(e.attributes.textRotation,"textRotation",t.toModel(e.attributes.textRotation)),i(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=n?l:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(s,T,S){const m=s("../base-xform"),o=s("../../../utils/utils"),a=s("./color-xform");class r extends m{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,l,n){const i=l&&l.color||n||this.defaultColor;e.openNode(this.name),l&&l.style&&(e.addAttribute("style",l.style),i&&this.map.color.render(e,i)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:l}=e.attributes;return this.model=l?{style:l}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return r.validStyleValues[e]}}r.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((t,e)=>(t[e]=!0,t),{}),T.exports=class extends m{constructor(){super(),this.map={top:new r("top"),left:new r("left"),bottom:new r("bottom"),right:new r("right"),diagonal:new r("diagonal")}}render(t,e){const{color:l}=e;function n(i,c){i&&!i.color&&e.color&&(i={...i,color:e.color}),c.render(t,i,l)}t.openNode("border"),e.diagonal&&e.diagonal.style&&(e.diagonal.up&&t.addAttribute("diagonalUp","1"),e.diagonal.down&&t.addAttribute("diagonalDown","1")),n(e.left,this.map.left),n(e.right,this.map.right),n(e.top,this.map.top),n(e.bottom,this.map.bottom),n(e.diagonal,this.map.diagonal),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"border":return this.reset(),this.diagonalUp=o.parseBoolean(t.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(t.attributes.diagonalDown),!0;default:return this.parser=this.map[t.name],!!this.parser&&(this.parser.parseOpen(t),!0)}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;if(t==="border"){const e=this.model={},l=function(n,i,c){i&&(c&&Object.assign(i,c),e[n]=i)};l("left",this.map.left.model),l("right",this.map.right.model),l("top",this.map.top.model),l("bottom",this.map.bottom.model),l("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,a){return!!a&&(o.openNode(this.name),a.argb?o.addAttribute("rgb",a.argb):a.theme!==void 0?(o.addAttribute("theme",a.theme),a.tint!==void 0&&o.addAttribute("tint",a.tint)):a.indexed!==void 0?o.addAttribute("indexed",a.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(s,T,S){const m=s("../base-xform"),o=s("./alignment-xform"),a=s("./border-xform"),r=s("./fill-xform"),t=s("./font-xform"),e=s("./numfmt-xform"),l=s("./protection-xform");T.exports=class extends m{constructor(){super(),this.map={alignment:new o,border:new a,fill:new r,font:new t,numFmt:new e,protection:new l}}get tag(){return"dxf"}render(n,i){if(n.openNode(this.tag),i.font&&this.map.font.render(n,i.font),i.numFmt&&i.numFmtId){const c={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(n,c)}i.fill&&this.map.fill.render(n,i.fill),i.alignment&&this.map.alignment.render(n,i.alignment),i.border&&this.map.border.render(n,i.border),i.protection&&this.map.protection.render(n,i.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n),!0}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(s,T,S){const m=s("../base-xform"),o=s("./color-xform");class a extends m{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(n,i){n.openNode("stop"),n.addAttribute("position",i.position),this.map.color.render(n,i.color),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"stop":return this.model={position:parseFloat(n.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(n),!0;default:return!1}}parseText(){}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class r extends m{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(n,i){n.openNode("patternFill"),n.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(n,i.fgColor),i.bgColor&&this.map.bgColor.render(n,i.bgColor),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"patternFill":return this.model={type:"pattern",pattern:n.attributes.patternType},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.parser.model&&(this.model[n]=this.parser.model),this.parser=void 0),!0)}}class t extends m{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(n,i){switch(n.openNode("gradientFill"),i.gradient){case"angle":n.addAttribute("degree",i.degree);break;case"path":n.addAttribute("type","path"),i.center.left&&(n.addAttribute("left",i.center.left),i.center.right===void 0&&n.addAttribute("right",i.center.left)),i.center.right&&n.addAttribute("right",i.center.right),i.center.top&&(n.addAttribute("top",i.center.top),i.center.bottom===void 0&&n.addAttribute("bottom",i.center.top)),i.center.bottom&&n.addAttribute("bottom",i.center.bottom)}const c=this.map.stop;i.stops.forEach(h=>{c.render(n,h)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"gradientFill":{const i=this.model={stops:[]};return n.attributes.degree?(i.gradient="angle",i.degree=parseInt(n.attributes.degree,10)):n.attributes.type==="path"&&(i.gradient="path",i.center={left:n.attributes.left?parseFloat(n.attributes.left):0,top:n.attributes.top?parseFloat(n.attributes.top):0},n.attributes.right!==n.attributes.left&&(i.center.right=n.attributes.right?parseFloat(n.attributes.right):0),n.attributes.bottom!==n.attributes.top&&(i.center.bottom=n.attributes.bottom?parseFloat(n.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class e extends m{constructor(){super(),this.map={patternFill:new r,gradientFill:new t}}get tag(){return"fill"}render(n,i){switch(n.addRollback(),n.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(n,i);break;case"gradient":this.map.gradientFill.render(n,i);break;default:return void n.rollback()}n.closeNode(),n.commit()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"fill":return this.model={},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(n){return e.validPatternValues[n]}}e.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((l,n)=>(l[n]=!0,l),{}),e.StopXform=a,e.PatternFillXform=r,e.GradientFillXform=t,T.exports=e},{"../base-xform":32,"./color-xform":128}],131:[function(s,T,S){const m=s("./color-xform"),o=s("../simple/boolean-xform"),a=s("../simple/integer-xform"),r=s("../simple/string-xform"),t=s("./underline-xform"),e=s("../../../utils/under-dash"),l=s("../base-xform");class n extends l{constructor(c){super(),this.options=c||n.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new t},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new m},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new r({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new r({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new r({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(c,h){const{map:u}=this;c.openNode(this.options.tagName),e.each(this.map,(d,f)=>{u[f].xform.render(c,h[d.prop])}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;if(this.map[c.name])return this.parser=this.map[c.name].xform,this.parser.parseOpen(c);switch(c.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser&&!this.parser.parseClose(c)){const h=this.map[c];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(c){case this.options.tagName:return!1;default:return!0}}}n.OPTIONS={tagName:"font",fontNameTag:"name"},T.exports=n},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../defaultnumformats"),a=s("../base-xform"),r=function(){const e={};return m.each(o,(l,n)=>{l.f&&(e[l.f]=parseInt(n,10))}),e}();class t extends a{constructor(l,n){super(),this.id=l,this.formatCode=n}get tag(){return"numFmt"}render(l,n){l.leafNode("numFmt",{numFmtId:n.id,formatCode:n.formatCode})}parseOpen(l){switch(l.name){case"numFmt":return this.model={id:parseInt(l.attributes.numFmtId,10),formatCode:l.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}t.getDefaultFmtId=function(e){return r[e]},t.getDefaultFmtCode=function(e){return o[e]&&o[e].f},T.exports=t},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(s,T,S){const m=s("../base-xform"),o={boolean:(a,r)=>a===void 0?r:a};T.exports=class extends m{get tag(){return"protection"}render(a,r){a.addRollback(),a.openNode("protection");let t=!1;function e(l,n){n!==void 0&&(a.addAttribute(l,n),t=!0)}e("locked",o.boolean(r.locked,!0)?void 0:"0"),e("hidden",o.boolean(r.hidden,!1)?"1":void 0),a.closeNode(),t?a.commit():a.rollback()}parseOpen(a){const r={locked:a.attributes.locked!=="0",hidden:a.attributes.hidden==="1"},t=!r.locked||r.hidden;this.model=t?r:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(s,T,S){const m=s("../base-xform"),o=s("./alignment-xform"),a=s("./protection-xform");T.exports=class extends m{constructor(r){super(),this.xfId=!(!r||!r.xfId),this.map={alignment:new o,protection:new a}}get tag(){return"xf"}render(r,t){r.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&r.addAttribute("xfId",t.xfId||0),t.numFmtId&&r.addAttribute("applyNumberFormat","1"),t.fontId&&r.addAttribute("applyFont","1"),t.fillId&&r.addAttribute("applyFill","1"),t.borderId&&r.addAttribute("applyBorder","1"),t.alignment&&r.addAttribute("applyAlignment","1"),t.protection&&r.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(r,t.alignment),t.protection&&this.map.protection.render(r,t.protection),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"xf":return this.model={numFmtId:parseInt(r.attributes.numFmtId,10),fontId:parseInt(r.attributes.fontId,10),fillId:parseInt(r.attributes.fillId,10),borderId:parseInt(r.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(r.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(r),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):r!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(s,T,S){const m=s("../../../doc/enums"),o=s("../../../utils/xml-stream"),a=s("../base-xform"),r=s("../static-xform"),t=s("../list-xform"),e=s("./font-xform"),l=s("./fill-xform"),n=s("./border-xform"),i=s("./numfmt-xform"),c=s("./style-xform"),h=s("./dxf-xform");class u extends a{constructor(f){super(),this.map={numFmts:new t({tag:"numFmts",count:!0,childXform:new i}),fonts:new t({tag:"fonts",count:!0,childXform:new e,$:{"x14ac:knownFonts":1}}),fills:new t({tag:"fills",count:!0,childXform:new l}),borders:new t({tag:"borders",count:!0,childXform:new n}),cellStyleXfs:new t({tag:"cellStyleXfs",count:!0,childXform:new c}),cellXfs:new t({tag:"cellXfs",count:!0,childXform:new c({xfId:!0})}),dxfs:new t({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new i,font:new e,fill:new l,border:new n,style:new c({xfId:!0}),cellStyles:u.STATIC_XFORMS.cellStyles,tableStyles:u.STATIC_XFORMS.tableStyles,extLst:u.STATIC_XFORMS.extLst},f&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(f,w){w=w||this.model,f.openXml(o.StdDocAttributes),f.openNode("styleSheet",u.STYLESHEET_ATTRIBUTES),this.index?(w.numFmts&&w.numFmts.length&&(f.openNode("numFmts",{count:w.numFmts.length}),w.numFmts.forEach(_=>{f.writeXml(_)}),f.closeNode()),w.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),f.openNode("fonts",{count:w.fonts.length,"x14ac:knownFonts":1}),w.fonts.forEach(_=>{f.writeXml(_)}),f.closeNode(),f.openNode("fills",{count:w.fills.length}),w.fills.forEach(_=>{f.writeXml(_)}),f.closeNode(),f.openNode("borders",{count:w.borders.length}),w.borders.forEach(_=>{f.writeXml(_)}),f.closeNode(),this.map.cellStyleXfs.render(f,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),f.openNode("cellXfs",{count:w.styles.length}),w.styles.forEach(_=>{f.writeXml(_)}),f.closeNode()):(this.map.numFmts.render(f,w.numFmts),this.map.fonts.render(f,w.fonts),this.map.fills.render(f,w.fills),this.map.borders.render(f,w.borders),this.map.cellStyleXfs.render(f,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(f,w.styles)),u.STATIC_XFORMS.cellStyles.render(f),this.map.dxfs.render(f,w.dxfs),u.STATIC_XFORMS.tableStyles.render(f),u.STATIC_XFORMS.extLst.render(f),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"styleSheet":{this.model={};const w=(_,A)=>{A.model&&A.model.length&&(this.model[_]=A.model)};if(w("numFmts",this.map.numFmts),w("fonts",this.map.fonts),w("fills",this.map.fills),w("borders",this.map.borders),w("styles",this.map.cellXfs),w("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const _=this.index.numFmt;this.model.numFmts.forEach(A=>{_[A.id]=A.formatCode})}return!1}default:return!0}}addStyleModel(f,w){if(!f)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(f))return this.weakMap.get(f);const _={};if(w=w||m.ValueType.Number,f.numFmt)_.numFmtId=this._addNumFmtStr(f.numFmt);else switch(w){case m.ValueType.Number:_.numFmtId=this._addNumFmtStr("General");break;case m.ValueType.Date:_.numFmtId=this._addNumFmtStr("mm-dd-yy")}f.font&&(_.fontId=this._addFont(f.font)),f.border&&(_.borderId=this._addBorder(f.border)),f.fill&&(_.fillId=this._addFill(f.fill)),f.alignment&&(_.alignment=f.alignment),f.protection&&(_.protection=f.protection);const A=this._addStyle(_);return this.weakMap&&this.weakMap.set(f,A),A}getStyleModel(f){const w=this.model.styles[f];if(!w)return null;let _=this.index.model[f];if(_)return _;if(_=this.index.model[f]={},w.numFmtId){const N=this.index.numFmt[w.numFmtId]||i.getDefaultFmtCode(w.numFmtId);N&&(_.numFmt=N)}function A(N,L,I){if(I||I===0){const P=L[I];P&&(_[N]=P)}}return A("font",this.model.fonts,w.fontId),A("border",this.model.borders,w.borderId),A("fill",this.model.fills,w.fillId),w.alignment&&(_.alignment=w.alignment),w.protection&&(_.protection=w.protection),_}addDxfStyle(f){return f.numFmt&&(f.numFmtId=this._addNumFmtStr(f.numFmt)),this.model.dxfs.push(f),this.model.dxfs.length-1}getDxfStyle(f){return this.model.dxfs[f]}_addStyle(f){const w=this.map.style.toXml(f);let _=this.index.style[w];return _===void 0&&(_=this.index.style[w]=this.model.styles.length,this.model.styles.push(w)),_}_addNumFmtStr(f){let w=i.getDefaultFmtId(f);if(w!==void 0||(w=this.index.numFmt[f],w!==void 0))return w;w=this.index.numFmt[f]=164+this.model.numFmts.length;const _=this.map.numFmt.toXml({id:w,formatCode:f});return this.model.numFmts.push(_),w}_addFont(f){const w=this.map.font.toXml(f);let _=this.index.font[w];return _===void 0&&(_=this.index.font[w]=this.model.fonts.length,this.model.fonts.push(w)),_}_addBorder(f){const w=this.map.border.toXml(f);let _=this.index.border[w];return _===void 0&&(_=this.index.border[w]=this.model.borders.length,this.model.borders.push(w)),_}_addFill(f){const w=this.map.fill.toXml(f);let _=this.index.fill[w];return _===void 0&&(_=this.index.fill[w]=this.model.fills.length,this.model.fills.push(w)),_}}u.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},u.STATIC_XFORMS={cellStyles:new r({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new r({tag:"dxfs",$:{count:0}}),tableStyles:new r({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new r({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},u.Mock=class extends u{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(d){return d.autodrain(),Promise.resolve()}addStyleModel(d,f){switch(f){case m.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const d={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(d)}return this._dateStyleId}getStyleModel(){return{}}},T.exports=u},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(s,T,S){const m=s("../base-xform");class o extends m{constructor(r){super(),this.model=r}get tag(){return"u"}render(r,t){if((t=t||this.model)===!0)r.leafNode("u");else{const e=o.Attributes[t];e&&r.leafNode("u",e)}}parseOpen(r){r.name==="u"&&(this.model=r.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},T.exports=o},{"../base-xform":32}],137:[function(s,T,S){const m=s("../base-xform"),o=s("./filter-column-xform");T.exports=class extends m{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(a){a.columns.forEach((r,t)=>{this.map.filterColumn.prepare(r,{index:t})})}render(a,r){return a.openNode(this.tag,{ref:r.autoFilterRef}),r.columns.forEach(t=>{this.map.filterColumn.render(a,t)}),a.closeNode(),!0}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model={autoFilterRef:a.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"customFilter"}render(o,a){o.leafNode(this.tag,{val:a.val,operator:a.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(s,T,S){const m=s("../base-xform"),o=s("../list-xform"),a=s("./custom-filter-xform"),r=s("./filter-xform");T.exports=class extends m{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new r})}}get tag(){return"filterColumn"}prepare(t,e){t.colId=e.index.toString()}render(t,e){return e.customFilters?(t.openNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),this.map.customFilters.render(t,e.customFilters),t.closeNode(),!0):(t.leafNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),!0)}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;const{attributes:e}=t;switch(t.name){case this.tag:return this.model={filterButton:e.hiddenButton==="0"},!0;default:if(this.parser=this.map[t.name],this.parser)return this.parseOpen(t),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(t))}}parseText(){}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"filter"}render(o,a){o.leafNode(this.tag,{val:a.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"tableColumn"}prepare(o,a){o.id=a.index+1}render(o,a){return o.leafNode(this.tag,{id:a.id.toString(),name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"tableStyleInfo"}render(o,a){return o.leafNode(this.tag,{name:a.theme?a.theme:void 0,showFirstColumn:a.showFirstColumn?"1":"0",showLastColumn:a.showLastColumn?"1":"0",showRowStripes:a.showRowStripes?"1":"0",showColumnStripes:a.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={theme:a.name?a.name:null,showFirstColumn:a.showFirstColumn==="1",showLastColumn:a.showLastColumn==="1",showRowStripes:a.showRowStripes==="1",showColumnStripes:a.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../list-xform"),r=s("./auto-filter-xform"),t=s("./table-column-xform"),e=s("./table-style-info-xform");class l extends o{constructor(){super(),this.map={autoFilter:new r,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new t}),tableStyleInfo:new e}}prepare(i,c){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,c)}get tag(){return"table"}render(i,c){i.openXml(m.StdDocAttributes),i.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:c.id,name:c.name,displayName:c.displayName||c.name,ref:c.tableRef,totalsRowCount:c.totalsRow?"1":void 0,totalsRowShown:c.totalsRow?void 0:"1",headerRowCount:c.headerRow?"1":"0"}),this.map.autoFilter.render(i,c),this.map.tableColumns.render(i,c.columns),this.map.tableStyleInfo.render(i,c.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:c,attributes:h}=i;switch(c){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((c,h)=>{this.model.columns[h].filterButton=c.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,c){i.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=c.styles.getDxfStyle(h.dxfId))})}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},T.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(s,T,S){(function(m,o){(function(){const a=s("fs"),r=s("jszip"),{PassThrough:t}=s("readable-stream"),e=s("../utils/zip-stream"),l=s("../utils/stream-buf"),n=s("../utils/utils"),i=s("../utils/xml-stream"),{bufferToString:c}=s("../utils/browser-buffer-decode"),h=s("./xform/style/styles-xform"),u=s("./xform/core/core-xform"),d=s("./xform/strings/shared-strings-xform"),f=s("./xform/core/relationships-xform"),w=s("./xform/core/content-types-xform"),_=s("./xform/core/app-xform"),A=s("./xform/book/workbook-xform"),N=s("./xform/sheet/worksheet-xform"),L=s("./xform/drawing/drawing-xform"),I=s("./xform/table/table-xform"),P=s("./xform/comment/comments-xform"),D=s("./xform/comment/vml-notes-xform"),U=s("./xml/theme1");class B{constructor(M){this.workbook=M}async readFile(M,v){if(!await n.fs.exists(M))throw new Error("File not found: "+M);const p=a.createReadStream(M);try{const b=await this.read(p,v);return p.close(),b}catch(b){throw p.close(),b}}parseRels(M){return new f().parseStream(M)}parseWorkbook(M){return new A().parseStream(M)}parseSharedStrings(M){return new d().parseStream(M)}reconcile(M,v){const p=new A,b=new N(v),g=new L,y=new I;p.reconcile(M);const k={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(z=>{const $=M.drawings[z],W=M.drawingRels[z];W&&(k.rels=W.reduce((j,H)=>(j[H.Id]=H,j),{}),($.anchors||[]).forEach(j=>{const H=j.picture&&j.picture.hyperlinks;H&&k.rels[H.rId]&&(H.hyperlink=k.rels[H.rId].Target,delete H.rId)}),g.reconcile($,k))});const R={styles:M.styles};Object.values(M.tables).forEach(z=>{y.reconcile(z,R)});const O={styles:M.styles,sharedStrings:M.sharedStrings,media:M.media,mediaIndex:M.mediaIndex,date1904:M.properties&&M.properties.date1904,drawings:M.drawings,comments:M.comments,tables:M.tables,vmlDrawings:M.vmlDrawings};M.worksheets.forEach(z=>{z.relationships=M.worksheetRels[z.sheetNo],b.reconcile(z,O)}),delete M.worksheetHash,delete M.worksheetRels,delete M.globalRels,delete M.sharedStrings,delete M.workbookRels,delete M.sheetDefs,delete M.styles,delete M.mediaIndex,delete M.drawings,delete M.drawingRels,delete M.vmlDrawings}async _processWorksheetEntry(M,v,p,b,g){const y=new N(b),k=await y.parseStream(M);k.sheetNo=p,v.worksheetHash[g]=k,v.worksheets.push(k)}async _processCommentEntry(M,v,p){const b=new P,g=await b.parseStream(M);v.comments[`../${p}.xml`]=g}async _processTableEntry(M,v,p){const b=new I,g=await b.parseStream(M);v.tables[`../tables/${p}.xml`]=g}async _processWorksheetRelsEntry(M,v,p){const b=new f,g=await b.parseStream(M);v.worksheetRels[p]=g}async _processMediaEntry(M,v,p){const b=p.lastIndexOf(".");if(b>=1){const g=p.substr(b+1),y=p.substr(0,b);await new Promise((k,R)=>{const O=new l;O.on("finish",()=>{v.mediaIndex[p]=v.media.length,v.mediaIndex[y]=v.media.length;const z={type:"image",name:y,extension:g,buffer:O.toBuffer()};v.media.push(z),k()}),M.on("error",z=>{R(z)}),M.pipe(O)})}}async _processDrawingEntry(M,v,p){const b=new L,g=await b.parseStream(M);v.drawings[p]=g}async _processDrawingRelsEntry(M,v,p){const b=new f,g=await b.parseStream(M);v.drawingRels[p]=g}async _processVmlDrawingEntry(M,v,p){const b=new D,g=await b.parseStream(M);v.vmlDrawings[`../drawings/${p}.vml`]=g}async _processThemeEntry(M,v,p){await new Promise((b,g)=>{const y=new l;M.on("error",g),y.on("error",g),y.on("finish",()=>{v.themes[p]=y.read().toString(),b()}),M.pipe(y)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(M,v){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new t));const p=[];for await(const b of M)p.push(b);return this.load(o.concat(p),v)}async load(M,v){let p;p=v&&v.base64?o.from(M.toString(),"base64"):M;const b={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},g=await r.loadAsync(p);for(const y of Object.values(g.files))if(!y.dir){let k,R=y.name;if(R[0]==="/"&&(R=R.substr(1)),R.match(/xl\/media\//)||R.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))k=new t,k.write(await y.async("nodebuffer"));else{let O;k=new t({writableObjectMode:!0,readableObjectMode:!0}),O=m.browser?c(await y.async("nodebuffer")):await y.async("string");const z=16384;for(let $=0;${if(p.type==="image"){const b=`xl/media/${p.name}.${p.extension}`;if(p.filename){const g=await function(y,k){return new Promise((R,O)=>{a.readFile(y,k,(z,$)=>{z?O(z):R($)})})}(p.filename);return M.append(g,{name:b})}if(p.buffer)return M.append(p.buffer,{name:b});if(p.base64){const g=p.base64,y=g.substring(g.indexOf(",")+1);return M.append(y,{name:b,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,v){const p=new L,b=new f;v.worksheets.forEach(g=>{const{drawing:y}=g;if(y){p.prepare(y,{});let k=p.toXml(y);M.append(k,{name:`xl/drawings/${y.name}.xml`}),k=b.toXml(y.rels),M.append(k,{name:`xl/drawings/_rels/${y.name}.xml.rels`})}})}addTables(M,v){const p=new I;v.worksheets.forEach(b=>{const{tables:g}=b;g.forEach(y=>{p.prepare(y,{});const k=p.toXml(y);M.append(k,{name:"xl/tables/"+y.target})})})}async addContentTypes(M,v){const p=new w().toXml(v);M.append(p,{name:"[Content_Types].xml"})}async addApp(M,v){const p=new _().toXml(v);M.append(p,{name:"docProps/app.xml"})}async addCore(M,v){const p=new u;M.append(p.toXml(v),{name:"docProps/core.xml"})}async addThemes(M,v){const p=v.themes||{theme1:U};Object.keys(p).forEach(b=>{const g=p[b],y=`xl/theme/${b}.xml`;M.append(g,{name:y})})}async addOfficeRels(M){const v=new f().toXml([{Id:"rId1",Type:B.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:B.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:B.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);M.append(v,{name:"_rels/.rels"})}async addWorkbookRels(M,v){let p=1;const b=[{Id:"rId"+p++,Type:B.RelType.Styles,Target:"styles.xml"},{Id:"rId"+p++,Type:B.RelType.Theme,Target:"theme/theme1.xml"}];v.sharedStrings.count&&b.push({Id:"rId"+p++,Type:B.RelType.SharedStrings,Target:"sharedStrings.xml"}),v.worksheets.forEach(y=>{y.rId="rId"+p++,b.push({Id:y.rId,Type:B.RelType.Worksheet,Target:`worksheets/sheet${y.id}.xml`})});const g=new f().toXml(b);M.append(g,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,v){v.sharedStrings&&v.sharedStrings.count&&M.append(v.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,v){const{xml:p}=v.styles;p&&M.append(p,{name:"xl/styles.xml"})}async addWorkbook(M,v){const p=new A;M.append(p.toXml(v),{name:"xl/workbook.xml"})}async addWorksheets(M,v){const p=new N,b=new f,g=new P,y=new D;v.worksheets.forEach(k=>{let R=new i;p.render(R,k),M.append(R.xml,{name:`xl/worksheets/sheet${k.id}.xml`}),k.rels&&k.rels.length&&(R=new i,b.render(R,k.rels),M.append(R.xml,{name:`xl/worksheets/_rels/sheet${k.id}.xml.rels`})),k.comments.length>0&&(R=new i,g.render(R,k),M.append(R.xml,{name:`xl/comments${k.id}.xml`}),R=new i,y.render(R,k),M.append(R.xml,{name:`xl/drawings/vmlDrawing${k.id}.vml`}))})}_finalize(M){return new Promise((v,p)=>{M.on("finish",()=>{v(this)}),M.on("error",p),M.finalize()})}prepareModel(M,v){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=v.useSharedStrings===void 0||v.useSharedStrings,M.useStyles=v.useStyles===void 0||v.useStyles,M.sharedStrings=new d,M.styles=M.useStyles?new h(!0):new h.Mock;const p=new A,b=new N;p.prepare(M);const g={sharedStrings:M.sharedStrings,styles:M.styles,date1904:M.properties.date1904,drawingsCount:0,media:M.media};g.drawings=M.drawings=[],g.commentRefs=M.commentRefs=[];let y=0;M.tables=[],M.worksheets.forEach(k=>{k.tables.forEach(R=>{y++,R.target=`table${y}.xml`,R.id=y,M.tables.push(R)}),b.prepare(k,g)})}async write(M,v){v=v||{};const{model:p}=this.workbook,b=new e.ZipWriter(v.zip);return b.pipe(M),this.prepareModel(p,v),await this.addContentTypes(b,p),await this.addOfficeRels(b,p),await this.addWorkbookRels(b,p),await this.addWorksheets(b,p),await this.addSharedStrings(b,p),await this.addDrawings(b,p),await this.addTables(b,p),await Promise.all([this.addThemes(b,p),this.addStyles(b,p)]),await this.addMedia(b,p),await Promise.all([this.addApp(b,p),this.addCore(b,p)]),await this.addWorkbook(b,p),this._finalize(b)}writeFile(M,v){const p=a.createWriteStream(M);return new Promise((b,g)=>{p.on("finish",()=>{b()}),p.on("error",y=>{g(y)}),this.write(p,v).then(()=>{p.end()}).catch(y=>{g(y)})})}async writeBuffer(M){const v=new l;return await this.write(v,M),v.read()}}B.RelType=s("./rel-type"),T.exports=B}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(s,T,S){T.exports=` `},{}],146:[function(s,T,S){(function(m){(function(){Object.defineProperty(S,"__esModule",{value:!0}),S.CsvFormatterStream=void 0;const o=s("stream"),a=s("./formatter");class r extends o.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new a.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,l,n){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(c,h)=>c?(i=!0,n(c)):(h&&h.forEach(u=>{this.push(m.from(u,"utf8"))}),i=!0,n()))}catch(c){if(i)throw c;n(c)}}_flush(e){this.rowFormatter.finish((l,n)=>l?e(l):(n&&n.forEach(i=>{this.push(m.from(i,"utf8"))}),e()))}}S.CsvFormatterStream=r}).call(this)}).call(this,s("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(s,T,S){Object.defineProperty(S,"__esModule",{value:!0}),S.FormatterOptions=void 0,S.FormatterOptions=class{constructor(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,m||{}),(m==null?void 0:m.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(m==null?void 0:m.quote)===!0?this.quote='"':(m==null?void 0:m.quote)===!1&&(this.quote=""),typeof(m==null?void 0:m.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=m.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(s,T,S){var m=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S,"__esModule",{value:!0}),S.FieldFormatter=void 0;const o=m(s("lodash.isboolean")),a=m(s("lodash.isnil")),r=m(s("lodash.escaperegexp"));S.FieldFormatter=class{constructor(t){this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");const e=`[${t.delimiter}${r.default(t.rowDelimiter)}|\r| diff --git a/public/admin-assets/assets/exceljs.min-CdZChlhg.js.gz b/public/admin-assets/assets/exceljs.min-CdZChlhg.js.gz new file mode 100644 index 0000000..b6c9f4b Binary files /dev/null and b/public/admin-assets/assets/exceljs.min-CdZChlhg.js.gz differ diff --git a/public/admin-assets/assets/handlebars-DC8CSLaW.js.gz b/public/admin-assets/assets/handlebars-DC8CSLaW.js.gz deleted file mode 100644 index ea04143..0000000 Binary files a/public/admin-assets/assets/handlebars-DC8CSLaW.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/handlebars-DC8CSLaW.js b/public/admin-assets/assets/handlebars-HvTq5gyi.js similarity index 97% rename from public/admin-assets/assets/handlebars-DC8CSLaW.js rename to public/admin-assets/assets/handlebars-HvTq5gyi.js index f0ee853..12f6f9b 100644 --- a/public/admin-assets/assets/handlebars-DC8CSLaW.js +++ b/public/admin-assets/assets/handlebars-HvTq5gyi.js @@ -1 +1 @@ -import{l as e}from"./editor.main-zqPJG_fq.js";import"./index-CgQH3-O6.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{r as conf,m as language}; +import{l as e}from"./editor.main-BblzkW2o.js";import"./index-Hn-s1JD5.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{r as conf,m as language}; diff --git a/public/admin-assets/assets/handlebars-HvTq5gyi.js.gz b/public/admin-assets/assets/handlebars-HvTq5gyi.js.gz new file mode 100644 index 0000000..7a80bb9 Binary files /dev/null and b/public/admin-assets/assets/handlebars-HvTq5gyi.js.gz differ diff --git a/public/admin-assets/assets/hls-WSe3mu62.js b/public/admin-assets/assets/hls-CC8gKmy7.js similarity index 99% rename from public/admin-assets/assets/hls-WSe3mu62.js rename to public/admin-assets/assets/hls-CC8gKmy7.js index 97719fd..ebb65c0 100644 --- a/public/admin-assets/assets/hls-WSe3mu62.js +++ b/public/admin-assets/assets/hls-CC8gKmy7.js @@ -1,4 +1,4 @@ -import{o as wt,p as Wt}from"./index-CgQH3-O6.js";function Gt(Lt,Ot){for(var W=0;WM[T]})}}}return Object.freeze(Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"}))}var Mt={exports:{}};(function(Lt,Ot){typeof window<"u"&&function(M,T){Lt.exports=T()}(Wt,function(){return function(W){var M={};function T(C){if(M[C])return M[C].exports;var D=M[C]={i:C,l:!1,exports:{}};return W[C].call(D.exports,D,D.exports,T),D.l=!0,D.exports}return T.m=W,T.c=M,T.d=function(C,D,A){T.o(C,D)||Object.defineProperty(C,D,{enumerable:!0,get:A})},T.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},T.t=function(C,D){if(D&1&&(C=T(C)),D&8||D&4&&typeof C=="object"&&C&&C.__esModule)return C;var A=Object.create(null);if(T.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:C}),D&2&&typeof C!="string")for(var b in C)T.d(A,b,(function(I){return C[I]}).bind(null,b));return A},T.n=function(C){var D=C&&C.__esModule?function(){return C.default}:function(){return C};return T.d(D,"a",D),D},T.o=function(C,D){return Object.prototype.hasOwnProperty.call(C,D)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(W,M,T){var C=Object.prototype.hasOwnProperty,D="~";function A(){}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(D=!1));function b(m,S,p){this.fn=m,this.context=S,this.once=p||!1}function I(m,S,p,y,E){if(typeof p!="function")throw new TypeError("The listener must be a function");var v=new b(p,y||m,E),n=D?D+S:S;return m._events[n]?m._events[n].fn?m._events[n]=[m._events[n],v]:m._events[n].push(v):(m._events[n]=v,m._eventsCount++),m}function O(m,S){--m._eventsCount===0?m._events=new A:delete m._events[S]}function L(){this._events=new A,this._eventsCount=0}L.prototype.eventNames=function(){var S=[],p,y;if(this._eventsCount===0)return S;for(y in p=this._events)C.call(p,y)&&S.push(D?y.slice(1):y);return Object.getOwnPropertySymbols?S.concat(Object.getOwnPropertySymbols(p)):S},L.prototype.listeners=function(S){var p=D?D+S:S,y=this._events[p];if(!y)return[];if(y.fn)return[y.fn];for(var E=0,v=y.length,n=new Array(v);E0},!1)}function m(S,p){for(var y={main:[p]},E={main:[]},v={main:{}};L(y);)for(var n=Object.keys(y),t=0;tM[T]})}}}return Object.freeze(Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"}))}var Mt={exports:{}};(function(Lt,Ot){typeof window<"u"&&function(M,T){Lt.exports=T()}(Wt,function(){return function(W){var M={};function T(C){if(M[C])return M[C].exports;var D=M[C]={i:C,l:!1,exports:{}};return W[C].call(D.exports,D,D.exports,T),D.l=!0,D.exports}return T.m=W,T.c=M,T.d=function(C,D,A){T.o(C,D)||Object.defineProperty(C,D,{enumerable:!0,get:A})},T.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},T.t=function(C,D){if(D&1&&(C=T(C)),D&8||D&4&&typeof C=="object"&&C&&C.__esModule)return C;var A=Object.create(null);if(T.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:C}),D&2&&typeof C!="string")for(var b in C)T.d(A,b,(function(I){return C[I]}).bind(null,b));return A},T.n=function(C){var D=C&&C.__esModule?function(){return C.default}:function(){return C};return T.d(D,"a",D),D},T.o=function(C,D){return Object.prototype.hasOwnProperty.call(C,D)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(W,M,T){var C=Object.prototype.hasOwnProperty,D="~";function A(){}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(D=!1));function b(m,S,p){this.fn=m,this.context=S,this.once=p||!1}function I(m,S,p,y,E){if(typeof p!="function")throw new TypeError("The listener must be a function");var v=new b(p,y||m,E),n=D?D+S:S;return m._events[n]?m._events[n].fn?m._events[n]=[m._events[n],v]:m._events[n].push(v):(m._events[n]=v,m._eventsCount++),m}function O(m,S){--m._eventsCount===0?m._events=new A:delete m._events[S]}function L(){this._events=new A,this._eventsCount=0}L.prototype.eventNames=function(){var S=[],p,y;if(this._eventsCount===0)return S;for(y in p=this._events)C.call(p,y)&&S.push(D?y.slice(1):y);return Object.getOwnPropertySymbols?S.concat(Object.getOwnPropertySymbols(p)):S},L.prototype.listeners=function(S){var p=D?D+S:S,y=this._events[p];if(!y)return[];if(y.fn)return[y.fn];for(var E=0,v=y.length,n=new Array(v);E0},!1)}function m(S,p){for(var y={main:[p]},E={main:[]},v={main:{}};L(y);)for(var n=Object.keys(y),t=0;t=2*o/h||x<=P)){var _=Number.POSITIVE_INFINITY,F;for(F=n.level-1;F>a;F--){var B=u[F].maxBitrate;if(_=o*B/(8*.8*g),_=x)){var U=this.bwEstimator.getEstimate();L.logger.warn("Fragment "+n.sn+(t?" part "+t.index:"")+" of level "+n.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+F+` Current BW estimate: `+(Object(C.isFiniteNumber)(U)?(U/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+x.toFixed(3)+` s diff --git a/public/admin-assets/assets/hls-CC8gKmy7.js.gz b/public/admin-assets/assets/hls-CC8gKmy7.js.gz new file mode 100644 index 0000000..48d79b9 Binary files /dev/null and b/public/admin-assets/assets/hls-CC8gKmy7.js.gz differ diff --git a/public/admin-assets/assets/hls-WSe3mu62.js.gz b/public/admin-assets/assets/hls-WSe3mu62.js.gz deleted file mode 100644 index 5bd8277..0000000 Binary files a/public/admin-assets/assets/hls-WSe3mu62.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/html-COPzPFoE.js.gz b/public/admin-assets/assets/html-COPzPFoE.js.gz deleted file mode 100644 index 9add54b..0000000 Binary files a/public/admin-assets/assets/html-COPzPFoE.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/html-COPzPFoE.js b/public/admin-assets/assets/html-DFebxkkb.js similarity index 97% rename from public/admin-assets/assets/html-COPzPFoE.js rename to public/admin-assets/assets/html-DFebxkkb.js index 9124d91..f23fb00 100644 --- a/public/admin-assets/assets/html-COPzPFoE.js +++ b/public/admin-assets/assets/html-DFebxkkb.js @@ -1 +1 @@ -import{l as e}from"./editor.main-zqPJG_fq.js";import"./index-CgQH3-O6.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language}; +import{l as e}from"./editor.main-BblzkW2o.js";import"./index-Hn-s1JD5.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language}; diff --git a/public/admin-assets/assets/html-DFebxkkb.js.gz b/public/admin-assets/assets/html-DFebxkkb.js.gz new file mode 100644 index 0000000..9b19422 Binary files /dev/null and b/public/admin-assets/assets/html-DFebxkkb.js.gz differ diff --git a/public/admin-assets/assets/htmlMode-CQSxHhWo.js.gz b/public/admin-assets/assets/htmlMode-CQSxHhWo.js.gz deleted file mode 100644 index 445164a..0000000 Binary files a/public/admin-assets/assets/htmlMode-CQSxHhWo.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/htmlMode-CQSxHhWo.js b/public/admin-assets/assets/htmlMode-DQtrbM7a.js similarity index 99% rename from public/admin-assets/assets/htmlMode-CQSxHhWo.js rename to public/admin-assets/assets/htmlMode-DQtrbM7a.js index af11511..2849fe0 100644 --- a/public/admin-assets/assets/htmlMode-CQSxHhWo.js +++ b/public/admin-assets/assets/htmlMode-DQtrbM7a.js @@ -1,4 +1,4 @@ -import{e as Oe,R as Pe,l as f,U as Xe}from"./editor.main-zqPJG_fq.js";import"./index-CgQH3-O6.js";var $e=2*60*1e3,Fe=function(){function n(r){var i=this;this._defaults=r,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return i._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return i._stopWorker()})}return n.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},n.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},n.prototype._checkIfIdle=function(){if(this._worker){var r=Date.now()-this._lastUsedTime;r>$e&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Oe.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var r=this,i=[],t=0;t0&&(s.arguments=a),s}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.title)&&o.string(e.command)}n.is=i})(P||(P={}));var x;(function(n){function r(a,u){return{range:a,newText:u}}n.replace=r;function i(a,u){return{range:{start:a,end:a},newText:u}}n.insert=i;function t(a){return{range:a,newText:""}}n.del=t;function e(a){var u=a;return o.objectLiteral(u)&&o.string(u.newText)&&m.is(u.range)}n.is=e})(x||(x={}));var C;(function(n){function r(t,e,a){var u={label:t};return e!==void 0&&(u.needsConfirmation=e),a!==void 0&&(u.description=a),u}n.create=r;function i(t){var e=t;return e!==void 0&&o.objectLiteral(e)&&o.string(e.label)&&(o.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(o.string(e.description)||e.description===void 0)}n.is=i})(C||(C={}));var w;(function(n){function r(i){var t=i;return typeof t=="string"}n.is=r})(w||(w={}));var E;(function(n){function r(a,u,s){return{range:a,newText:u,annotationId:s}}n.replace=r;function i(a,u,s){return{range:{start:a,end:a},newText:u,annotationId:s}}n.insert=i;function t(a,u){return{range:a,newText:"",annotationId:u}}n.del=t;function e(a){var u=a;return x.is(u)&&(C.is(u.annotationId)||w.is(u.annotationId))}n.is=e})(E||(E={}));var N;(function(n){function r(t,e){return{textDocument:t,edits:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&U.is(e.textDocument)&&Array.isArray(e.edits)}n.is=i})(N||(N={}));var F;(function(n){function r(t,e,a){var u={kind:"create",uri:t};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="create"&&o.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(F||(F={}));var T;(function(n){function r(t,e,a,u){var s={kind:"rename",oldUri:t,newUri:e};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),u!==void 0&&(s.annotationId=u),s}n.create=r;function i(t){var e=t;return e&&e.kind==="rename"&&o.string(e.oldUri)&&o.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(T||(T={}));var D;(function(n){function r(t,e,a){var u={kind:"delete",uri:t};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="delete"&&o.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||o.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||o.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(D||(D={}));var X;(function(n){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(e){return o.string(e.kind)?F.is(e)||T.is(e)||D.is(e):N.is(e)}))}n.is=r})(X||(X={}));var M=function(){function n(r,i){this.edits=r,this.changeAnnotations=i}return n.prototype.insert=function(r,i,t){var e,a;if(t===void 0?e=x.insert(r,i):w.is(t)?(a=t,e=E.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.insert(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.replace=function(r,i,t){var e,a;if(t===void 0?e=x.replace(r,i):w.is(t)?(a=t,e=E.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.replace(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.delete=function(r,i){var t,e;if(i===void 0?t=x.del(r):w.is(i)?(e=i,t=E.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),t=E.del(r,e)),this.edits.push(t),e!==void 0)return e},n.prototype.add=function(r){this.edits.push(r)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),re=function(){function n(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(r,i){var t;if(w.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new re(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(N.is(t)){var e=new M(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=e}})):r.changes&&Object.keys(r.changes).forEach(function(t){var e=new M(r.changes[t]);i._textEditChanges[t]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(r){if(U.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},t=this._textEditChanges[i.uri];if(!t){var e=[],a={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(a),t=new M(e,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var e=[];this._workspaceEdit.changes[r]=e,t=new M(e),this._textEditChanges[r]=t}return t}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new re,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=F.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=F.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n.prototype.renameFile=function(r,i,t,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;C.is(t)||w.is(t)?a=t:e=t;var u,s;if(a===void 0?u=T.create(r,i,e):(s=w.is(a)?a:this._changeAnnotations.manage(a),u=T.create(r,i,e,s)),this._workspaceEdit.documentChanges.push(u),s!==void 0)return s},n.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=D.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=D.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n})();var ie;(function(n){function r(t){return{uri:t}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)}n.is=i})(ie||(ie={}));var ae;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.integer(e.version)}n.is=i})(ae||(ae={}));var U;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&(e.version===null||o.integer(e.version))}n.is=i})(U||(U={}));var ue;(function(n){function r(t,e,a,u){return{uri:t,languageId:e,version:a,text:u}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.string(e.languageId)&&o.integer(e.version)&&o.string(e.text)}n.is=i})(ue||(ue={}));var S;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(S||(S={}));(function(n){function r(i){var t=i;return t===n.PlainText||t===n.Markdown}n.is=r})(S||(S={}));var $;(function(n){function r(i){var t=i;return o.objectLiteral(i)&&S.is(t.kind)&&o.string(t.value)}n.is=r})($||($={}));var h;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(h||(h={}));var B;(function(n){n.PlainText=1,n.Snippet=2})(B||(B={}));var oe;(function(n){n.Deprecated=1})(oe||(oe={}));var se;(function(n){function r(t,e,a){return{newText:t,insert:e,replace:a}}n.create=r;function i(t){var e=t;return e&&o.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=i})(se||(se={}));var ce;(function(n){n.asIs=1,n.adjustIndentation=2})(ce||(ce={}));var de;(function(n){function r(i){return{label:i}}n.create=r})(de||(de={}));var fe;(function(n){function r(i,t){return{items:i||[],isIncomplete:!!t}}n.create=r})(fe||(fe={}));var H;(function(n){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=r;function i(t){var e=t;return o.string(e)||o.objectLiteral(e)&&o.string(e.language)&&o.string(e.value)}n.is=i})(H||(H={}));var ge;(function(n){function r(i){var t=i;return!!t&&o.objectLiteral(t)&&($.is(t.contents)||H.is(t.contents)||o.typedArray(t.contents,H.is))&&(i.range===void 0||m.is(i.range))}n.is=r})(ge||(ge={}));var le;(function(n){function r(i,t){return t?{label:i,documentation:t}:{label:i}}n.create=r})(le||(le={}));var he;(function(n){function r(i,t){for(var e=[],a=2;a=0;d--){var p=g[d],b=a.offsetAt(p.range.start),c=a.offsetAt(p.range.end);if(c<=l)s=s.substring(0,b)+p.newText+s.substring(c,s.length);else throw new Error("Overlapping edit");l=b}return s}n.applyEdits=t;function e(a,u){if(a.length<=1)return a;var s=a.length/2|0,g=a.slice(0,s),l=a.slice(s);e(g,u),e(l,u);for(var d=0,p=0,b=0;d$e&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Oe.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var r=this,i=[],t=0;t0&&(s.arguments=a),s}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.title)&&o.string(e.command)}n.is=i})(P||(P={}));var x;(function(n){function r(a,u){return{range:a,newText:u}}n.replace=r;function i(a,u){return{range:{start:a,end:a},newText:u}}n.insert=i;function t(a){return{range:a,newText:""}}n.del=t;function e(a){var u=a;return o.objectLiteral(u)&&o.string(u.newText)&&m.is(u.range)}n.is=e})(x||(x={}));var C;(function(n){function r(t,e,a){var u={label:t};return e!==void 0&&(u.needsConfirmation=e),a!==void 0&&(u.description=a),u}n.create=r;function i(t){var e=t;return e!==void 0&&o.objectLiteral(e)&&o.string(e.label)&&(o.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(o.string(e.description)||e.description===void 0)}n.is=i})(C||(C={}));var w;(function(n){function r(i){var t=i;return typeof t=="string"}n.is=r})(w||(w={}));var E;(function(n){function r(a,u,s){return{range:a,newText:u,annotationId:s}}n.replace=r;function i(a,u,s){return{range:{start:a,end:a},newText:u,annotationId:s}}n.insert=i;function t(a,u){return{range:a,newText:"",annotationId:u}}n.del=t;function e(a){var u=a;return x.is(u)&&(C.is(u.annotationId)||w.is(u.annotationId))}n.is=e})(E||(E={}));var N;(function(n){function r(t,e){return{textDocument:t,edits:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&U.is(e.textDocument)&&Array.isArray(e.edits)}n.is=i})(N||(N={}));var F;(function(n){function r(t,e,a){var u={kind:"create",uri:t};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="create"&&o.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(F||(F={}));var T;(function(n){function r(t,e,a,u){var s={kind:"rename",oldUri:t,newUri:e};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),u!==void 0&&(s.annotationId=u),s}n.create=r;function i(t){var e=t;return e&&e.kind==="rename"&&o.string(e.oldUri)&&o.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(T||(T={}));var D;(function(n){function r(t,e,a){var u={kind:"delete",uri:t};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="delete"&&o.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||o.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||o.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(D||(D={}));var X;(function(n){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(e){return o.string(e.kind)?F.is(e)||T.is(e)||D.is(e):N.is(e)}))}n.is=r})(X||(X={}));var M=function(){function n(r,i){this.edits=r,this.changeAnnotations=i}return n.prototype.insert=function(r,i,t){var e,a;if(t===void 0?e=x.insert(r,i):w.is(t)?(a=t,e=E.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.insert(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.replace=function(r,i,t){var e,a;if(t===void 0?e=x.replace(r,i):w.is(t)?(a=t,e=E.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.replace(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.delete=function(r,i){var t,e;if(i===void 0?t=x.del(r):w.is(i)?(e=i,t=E.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),t=E.del(r,e)),this.edits.push(t),e!==void 0)return e},n.prototype.add=function(r){this.edits.push(r)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),re=function(){function n(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(r,i){var t;if(w.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new re(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(N.is(t)){var e=new M(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=e}})):r.changes&&Object.keys(r.changes).forEach(function(t){var e=new M(r.changes[t]);i._textEditChanges[t]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(r){if(U.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},t=this._textEditChanges[i.uri];if(!t){var e=[],a={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(a),t=new M(e,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var e=[];this._workspaceEdit.changes[r]=e,t=new M(e),this._textEditChanges[r]=t}return t}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new re,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=F.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=F.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n.prototype.renameFile=function(r,i,t,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;C.is(t)||w.is(t)?a=t:e=t;var u,s;if(a===void 0?u=T.create(r,i,e):(s=w.is(a)?a:this._changeAnnotations.manage(a),u=T.create(r,i,e,s)),this._workspaceEdit.documentChanges.push(u),s!==void 0)return s},n.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=D.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=D.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n})();var ie;(function(n){function r(t){return{uri:t}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)}n.is=i})(ie||(ie={}));var ae;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.integer(e.version)}n.is=i})(ae||(ae={}));var U;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&(e.version===null||o.integer(e.version))}n.is=i})(U||(U={}));var ue;(function(n){function r(t,e,a,u){return{uri:t,languageId:e,version:a,text:u}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.string(e.languageId)&&o.integer(e.version)&&o.string(e.text)}n.is=i})(ue||(ue={}));var S;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(S||(S={}));(function(n){function r(i){var t=i;return t===n.PlainText||t===n.Markdown}n.is=r})(S||(S={}));var $;(function(n){function r(i){var t=i;return o.objectLiteral(i)&&S.is(t.kind)&&o.string(t.value)}n.is=r})($||($={}));var h;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(h||(h={}));var B;(function(n){n.PlainText=1,n.Snippet=2})(B||(B={}));var oe;(function(n){n.Deprecated=1})(oe||(oe={}));var se;(function(n){function r(t,e,a){return{newText:t,insert:e,replace:a}}n.create=r;function i(t){var e=t;return e&&o.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=i})(se||(se={}));var ce;(function(n){n.asIs=1,n.adjustIndentation=2})(ce||(ce={}));var de;(function(n){function r(i){return{label:i}}n.create=r})(de||(de={}));var fe;(function(n){function r(i,t){return{items:i||[],isIncomplete:!!t}}n.create=r})(fe||(fe={}));var H;(function(n){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=r;function i(t){var e=t;return o.string(e)||o.objectLiteral(e)&&o.string(e.language)&&o.string(e.value)}n.is=i})(H||(H={}));var ge;(function(n){function r(i){var t=i;return!!t&&o.objectLiteral(t)&&($.is(t.contents)||H.is(t.contents)||o.typedArray(t.contents,H.is))&&(i.range===void 0||m.is(i.range))}n.is=r})(ge||(ge={}));var le;(function(n){function r(i,t){return t?{label:i,documentation:t}:{label:i}}n.create=r})(le||(le={}));var he;(function(n){function r(i,t){for(var e=[],a=2;a=0;d--){var p=g[d],b=a.offsetAt(p.range.start),c=a.offsetAt(p.range.end);if(c<=l)s=s.substring(0,b)+p.newText+s.substring(c,s.length);else throw new Error("Overlapping edit");l=b}return s}n.applyEdits=t;function e(a,u){if(a.length<=1)return a;var s=a.length/2|0,g=a.slice(0,s),l=a.slice(s);e(g,u),e(l,u);for(var d=0,p=0,b=0;d0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},n.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),t=0,e=i.length;if(e===0)return k.create(0,r);for(;tr?e=a:t=a+1}var u=t-1;return k.create(u,r-i[u])},n.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var t=i[r.line],e=r.line+1"u"}n.undefined=t;function e(c){return c===!0||c===!1}n.boolean=e;function a(c){return r.call(c)==="[object String]"}n.string=a;function u(c){return r.call(c)==="[object Number]"}n.number=u;function s(c,y,L){return r.call(c)==="[object Number]"&&y<=c&&c<=L}n.numberRange=s;function g(c){return r.call(c)==="[object Number]"&&-2147483648<=c&&c<=2147483647}n.integer=g;function l(c){return r.call(c)==="[object Number]"&&0<=c&&c<=2147483647}n.uinteger=l;function d(c){return r.call(c)==="[object Function]"}n.func=d;function p(c){return c!==null&&typeof c=="object"}n.objectLiteral=p;function b(c,y){return Array.isArray(c)&&c.every(y)}n.typedArray=b})(o||(o={}));function A(n){if(n)return{character:n.column-1,line:n.lineNumber-1}}function qe(n){if(n)return{start:A(n.getStartPosition()),end:A(n.getEndPosition())}}function _(n){if(n)return new Pe(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)}function Qe(n){return typeof n.insert<"u"&&typeof n.replace<"u"}function Ge(n){var r=f.CompletionItemKind;switch(n){case h.Text:return r.Text;case h.Method:return r.Method;case h.Function:return r.Function;case h.Constructor:return r.Constructor;case h.Field:return r.Field;case h.Variable:return r.Variable;case h.Class:return r.Class;case h.Interface:return r.Interface;case h.Module:return r.Module;case h.Property:return r.Property;case h.Unit:return r.Unit;case h.Value:return r.Value;case h.Enum:return r.Enum;case h.Keyword:return r.Keyword;case h.Snippet:return r.Snippet;case h.Color:return r.Color;case h.File:return r.File;case h.Reference:return r.Reference}return r.Property}function q(n){if(n)return{range:_(n.range),text:n.newText}}function Je(n){return n&&n.command==="editor.action.triggerSuggest"?{id:n.command,title:n.title,arguments:n.arguments}:void 0}var Te=function(){function n(r){this._worker=r}return Object.defineProperty(n.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"]},enumerable:!1,configurable:!0}),n.prototype.provideCompletionItems=function(r,i,t,e){var a=r.uri;return this._worker(a).then(function(u){return u.doComplete(a.toString(),A(i))}).then(function(u){if(u){var s=r.getWordUntilPosition(i),g=new Pe(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn),l=u.items.map(function(d){var p={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,command:Je(d.command),detail:d.detail,range:g,kind:Ge(d.kind)};return d.textEdit&&(Qe(d.textEdit)?p.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:p.range=_(d.textEdit.range),p.insertText=d.textEdit.newText),d.additionalTextEdits&&(p.additionalTextEdits=d.additionalTextEdits.map(q)),d.insertTextFormat===B.Snippet&&(p.insertTextRules=f.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:u.isIncomplete,suggestions:l}}})},n}();function Ye(n){return n&&typeof n=="object"&&typeof n.kind=="string"}function Re(n){return typeof n=="string"?{value:n}:Ye(n)?n.kind==="plaintext"?{value:n.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:n.value}:{value:"```"+n.language+` `+n.value+"\n```\n"}}function Ze(n){if(n)return Array.isArray(n)?n.map(Re):[Re(n)]}var De=function(){function n(r){this._worker=r}return n.prototype.provideHover=function(r,i,t){var e=r.uri;return this._worker(e).then(function(a){return a.doHover(e.toString(),A(i))}).then(function(a){if(a)return{range:_(a.range),contents:Ze(a.contents)}})},n}();function Ke(n){var r=f.DocumentHighlightKind;switch(n){case I.Read:return r.Read;case I.Write:return r.Write;case I.Text:return r.Text}return r.Text}var Se=function(){function n(r){this._worker=r}return n.prototype.provideDocumentHighlights=function(r,i,t){var e=r.uri;return this._worker(e).then(function(a){return a.findDocumentHighlights(e.toString(),A(i))}).then(function(a){if(a)return a.map(function(u){return{range:_(u.range),kind:Ke(u.kind)}})})},n}();function en(n){var r=f.SymbolKind;switch(n){case v.File:return r.Array;case v.Module:return r.Module;case v.Namespace:return r.Namespace;case v.Package:return r.Package;case v.Class:return r.Class;case v.Method:return r.Method;case v.Property:return r.Property;case v.Field:return r.Field;case v.Constructor:return r.Constructor;case v.Enum:return r.Enum;case v.Interface:return r.Interface;case v.Function:return r.Function;case v.Variable:return r.Variable;case v.Constant:return r.Constant;case v.String:return r.String;case v.Number:return r.Number;case v.Boolean:return r.Boolean;case v.Array:return r.Array}return r.Function}var Le=function(){function n(r){this._worker=r}return n.prototype.provideDocumentSymbols=function(r,i){var t=r.uri;return this._worker(t).then(function(e){return e.findDocumentSymbols(t.toString())}).then(function(e){if(e)return e.map(function(a){return{name:a.name,detail:"",containerName:a.containerName,kind:en(a.kind),tags:[],range:_(a.location.range),selectionRange:_(a.location.range)}})})},n}(),Me=function(){function n(r){this._worker=r}return n.prototype.provideLinks=function(r,i){var t=r.uri;return this._worker(t).then(function(e){return e.findDocumentLinks(t.toString())}).then(function(e){if(e)return{links:e.map(function(a){return{range:_(a.range),url:a.target}})}})},n}();function je(n){return{tabSize:n.tabSize,insertSpaces:n.insertSpaces}}var We=function(){function n(r){this._worker=r}return n.prototype.provideDocumentFormattingEdits=function(r,i,t){var e=r.uri;return this._worker(e).then(function(a){return a.format(e.toString(),null,je(i)).then(function(u){if(!(!u||u.length===0))return u.map(q)})})},n}(),Ne=function(){function n(r){this._worker=r}return n.prototype.provideDocumentRangeFormattingEdits=function(r,i,t,e){var a=r.uri;return this._worker(a).then(function(u){return u.format(a.toString(),qe(i),je(t)).then(function(s){if(!(!s||s.length===0))return s.map(q)})})},n}(),Ue=function(){function n(r){this._worker=r}return n.prototype.provideRenameEdits=function(r,i,t,e){var a=r.uri;return this._worker(a).then(function(u){return u.doRename(a.toString(),A(i),t)}).then(function(u){return nn(u)})},n}();function nn(n){if(!(!n||!n.changes)){var r=[];for(var i in n.changes)for(var t=Xe.parse(i),e=0,a=n.changes[i];ev[N]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var ke={exports:{}},oe={exports:{}},ie;function we(){return ie||(ie=1,function(H,X){(function(u){u(Z())})(function(u){var v={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},N={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(O,D){var F=O.indentUnit,b={},$=D.htmlMode?v:N;for(var C in $)b[C]=$[C];for(var C in D)b[C]=D[C];var p,l;function m(t,i){function o(U){return i.tokenize=U,U(t,i)}var s=t.next();if(s=="<")return t.eat("!")?t.eat("[")?t.match("CDATA[")?o(P("atom","]]>")):null:t.match("--")?o(P("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),o(K(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),i.tokenize=P("meta","?>"),"meta"):(p=t.eat("/")?"closeTag":"openTag",i.tokenize=k,"tag bracket");if(s=="&"){var S;return t.eat("#")?t.eat("x")?S=t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):S=t.eatWhile(/[\d]/)&&t.eat(";"):S=t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),S?"atom":"error"}else return t.eatWhile(/[^&<]/),null}m.isInText=!0;function k(t,i){var o=t.next();if(o==">"||o=="/"&&t.eat(">"))return i.tokenize=m,p=o==">"?"endTag":"selfcloseTag","tag bracket";if(o=="=")return p="equals",null;if(o=="<"){i.tokenize=m,i.state=A,i.tagName=i.tagStart=null;var s=i.tokenize(t,i);return s?s+" tag error":"tag error"}else return/[\'\"]/.test(o)?(i.tokenize=z(o),i.stringStartCol=t.column(),i.tokenize(t,i)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function z(t){var i=function(o,s){for(;!o.eol();)if(o.next()==t){s.tokenize=k;break}return"string"};return i.isInAttribute=!0,i}function P(t,i){return function(o,s){for(;!o.eol();){if(o.match(i)){s.tokenize=m;break}o.next()}return t}}function K(t){return function(i,o){for(var s;(s=i.next())!=null;){if(s=="<")return o.tokenize=K(t+1),o.tokenize(i,o);if(s==">")if(t==1){o.tokenize=m;break}else return o.tokenize=K(t-1),o.tokenize(i,o)}return"meta"}}function j(t){return t&&t.toLowerCase()}function f(t,i,o){this.prev=t.context,this.tagName=i||"",this.indent=t.indented,this.startOfLine=o,(b.doNotIndent.hasOwnProperty(i)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function _(t,i){for(var o;;){if(!t.context||(o=t.context.tagName,!b.contextGrabbers.hasOwnProperty(j(o))||!b.contextGrabbers[j(o)].hasOwnProperty(j(i))))return;h(t)}}function A(t,i,o){return t=="openTag"?(o.tagStart=i.column(),I):t=="closeTag"?L:A}function I(t,i,o){return t=="word"?(o.tagName=i.current(),l="tag",a):b.allowMissingTagName&&t=="endTag"?(l="tag bracket",a(t,i,o)):(l="error",I)}function L(t,i,o){if(t=="word"){var s=i.current();return o.context&&o.context.tagName!=s&&b.implicitlyClosed.hasOwnProperty(j(o.context.tagName))&&h(o),o.context&&o.context.tagName==s||b.matchClosing===!1?(l="tag",T):(l="tag error",c)}else return b.allowMissingTagName&&t=="endTag"?(l="tag bracket",T(t,i,o)):(l="error",c)}function T(t,i,o){return t!="endTag"?(l="error",T):(h(o),A)}function c(t,i,o){return l="error",T(t,i,o)}function a(t,i,o){if(t=="word")return l="attribute",q;if(t=="endTag"||t=="selfcloseTag"){var s=o.tagName,S=o.tagStart;return o.tagName=o.tagStart=null,t=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(j(s))?_(o,s):(_(o,s),o.context=new f(o,s,S==o.indented)),A}return l="error",a}function q(t,i,o){return t=="equals"?M:(b.allowMissing||(l="error"),a(t,i,o))}function M(t,i,o){return t=="string"?B:t=="word"&&b.allowUnquoted?(l="string",a):(l="error",a(t,i,o))}function B(t,i,o){return t=="string"?B:a(t,i,o)}return{startState:function(t){var i={tokenize:m,state:A,indented:t||0,tagName:null,tagStart:null,context:null};return t!=null&&(i.baseIndent=t),i},token:function(t,i){if(!i.tagName&&t.sol()&&(i.indented=t.indentation()),t.eatSpace())return null;p=null;var o=i.tokenize(t,i);return(o||p)&&o!="comment"&&(l=null,i.state=i.state(p||o,t,i),l&&(o=l=="error"?o+" error":l)),o},indent:function(t,i,o){var s=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+F;if(s&&s.noIndent)return u.Pass;if(t.tokenize!=k&&t.tokenize!=m)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return b.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+F*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/$/,blockCommentStart:"",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(t){t.state==M&&(t.state=a)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:t.type=="closeTag"}:null},xmlCurrentContext:function(t){for(var i=[],o=t.context;o;o=o.prev)i.push(o.tagName);return i.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),oe.exports}var ae={exports:{}},le;function ve(){return le||(le=1,function(H,X){(function(u){u(Z())})(function(u){u.defineMode("css",function(c,a){var q=a.inline;a.propertyKeywords||(a=u.resolveMode("text/css"));var M=c.indentUnit,B=a.tokenHooks,t=a.documentTypes||{},i=a.mediaTypes||{},o=a.mediaFeatures||{},s=a.mediaValueKeywords||{},S=a.propertyKeywords||{},U=a.nonStandardPropertyKeywords||{},ce=a.fontProperties||{},ue=a.counterDescriptors||{},J=a.colorKeywords||{},Q=a.valueKeywords||{},R=a.allowNested,de=a.lineComment,pe=a.supportsAtComponent===!0,ee=c.highlightNonStandardPropertyKeywords!==!1,Y,d;function x(e,n){return Y=n,e}function fe(e,n){var r=e.next();if(B[r]){var g=B[r](e,n);if(g!==!1)return g}if(r=="@")return e.eatWhile(/[\w\\\-]/),x("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return x(null,"compare");if(r=='"'||r=="'")return n.tokenize=re(r),n.tokenize(e,n);if(r=="#")return e.eatWhile(/[\w\\\-]/),x("atom","hash");if(r=="!")return e.match(/^\s*\w*/),x("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),x("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),x("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable");if(e.match(/^\w+-/))return x("meta","meta")}else return/[,+>*\/]/.test(r)?x(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(n.tokenize=me),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null)}function re(e){return function(n,r){for(var g=!1,E;(E=n.next())!=null;){if(E==e&&!g){e==")"&&n.backUp(1);break}g=!g&&E=="\\"}return(E==e||!g&&e!=")")&&(r.tokenize=null),x("string","string")}}function me(e,n){return e.next(),e.match(/^\s*[\"\')]/,!1)?n.tokenize=null:n.tokenize=re(")"),x(null,"(")}function te(e,n,r){this.type=e,this.indent=n,this.prev=r}function y(e,n,r,g){return e.context=new te(r,n.indentation()+(g===!1?0:M),e.context),r}function W(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function G(e,n,r){return w[r.context.type](e,n,r)}function V(e,n,r,g){for(var E=g||1;E>0;E--)r.context=r.context.prev;return G(e,n,r)}function ne(e){var n=e.current().toLowerCase();Q.hasOwnProperty(n)?d="atom":J.hasOwnProperty(n)?d="keyword":d="variable"}var w={};return w.top=function(e,n,r){if(e=="{")return y(r,n,"block");if(e=="}"&&r.context.prev)return W(r);if(pe&&/@component/i.test(e))return y(r,n,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return y(r,n,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return y(r,n,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return y(r,n,"at");if(e=="hash")d="builtin";else if(e=="word")d="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return y(r,n,"interpolation");if(e==":")return"pseudo";if(R&&e=="(")return y(r,n,"parens")}return r.context.type},w.block=function(e,n,r){if(e=="word"){var g=n.current().toLowerCase();return S.hasOwnProperty(g)?(d="property","maybeprop"):U.hasOwnProperty(g)?(d=ee?"string-2":"property","maybeprop"):R?(d=n.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(d+=" error","maybeprop")}else return e=="meta"?"block":!R&&(e=="hash"||e=="qualifier")?(d="error","block"):w.top(e,n,r)},w.maybeprop=function(e,n,r){return e==":"?y(r,n,"prop"):G(e,n,r)},w.prop=function(e,n,r){if(e==";")return W(r);if(e=="{"&&R)return y(r,n,"propBlock");if(e=="}"||e=="{")return V(e,n,r);if(e=="(")return y(r,n,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(n.current()))d+=" error";else if(e=="word")ne(n);else if(e=="interpolation")return y(r,n,"interpolation");return"prop"},w.propBlock=function(e,n,r){return e=="}"?W(r):e=="word"?(d="property","maybeprop"):r.context.type},w.parens=function(e,n,r){return e=="{"||e=="}"?V(e,n,r):e==")"?W(r):e=="("?y(r,n,"parens"):e=="interpolation"?y(r,n,"interpolation"):(e=="word"&&ne(n),"parens")},w.pseudo=function(e,n,r){return e=="meta"?"pseudo":e=="word"?(d="variable-3",r.context.type):G(e,n,r)},w.documentTypes=function(e,n,r){return e=="word"&&t.hasOwnProperty(n.current())?(d="tag",r.context.type):w.atBlock(e,n,r)},w.atBlock=function(e,n,r){if(e=="(")return y(r,n,"atBlock_parens");if(e=="}"||e==";")return V(e,n,r);if(e=="{")return W(r)&&y(r,n,R?"block":"top");if(e=="interpolation")return y(r,n,"interpolation");if(e=="word"){var g=n.current().toLowerCase();g=="only"||g=="not"||g=="and"||g=="or"?d="keyword":i.hasOwnProperty(g)?d="attribute":o.hasOwnProperty(g)?d="property":s.hasOwnProperty(g)?d="keyword":S.hasOwnProperty(g)?d="property":U.hasOwnProperty(g)?d=ee?"string-2":"property":Q.hasOwnProperty(g)?d="atom":J.hasOwnProperty(g)?d="keyword":d="error"}return r.context.type},w.atComponentBlock=function(e,n,r){return e=="}"?V(e,n,r):e=="{"?W(r)&&y(r,n,R?"block":"top",!1):(e=="word"&&(d="error"),r.context.type)},w.atBlock_parens=function(e,n,r){return e==")"?W(r):e=="{"||e=="}"?V(e,n,r,2):w.atBlock(e,n,r)},w.restricted_atBlock_before=function(e,n,r){return e=="{"?y(r,n,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(d="variable","restricted_atBlock_before"):G(e,n,r)},w.restricted_atBlock=function(e,n,r){return e=="}"?(r.stateArg=null,W(r)):e=="word"?(r.stateArg=="@font-face"&&!ce.hasOwnProperty(n.current().toLowerCase())||r.stateArg=="@counter-style"&&!ue.hasOwnProperty(n.current().toLowerCase())?d="error":d="property","maybeprop"):"restricted_atBlock"},w.keyframes=function(e,n,r){return e=="word"?(d="variable","keyframes"):e=="{"?y(r,n,"top"):G(e,n,r)},w.at=function(e,n,r){return e==";"?W(r):e=="{"||e=="}"?V(e,n,r):(e=="word"?d="tag":e=="hash"&&(d="builtin"),"at")},w.interpolation=function(e,n,r){return e=="}"?W(r):e=="{"||e==";"?V(e,n,r):(e=="word"?d="variable":e!="variable"&&e!="("&&e!=")"&&(d="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:q?"block":"top",stateArg:null,context:new te(q?"block":"top",e||0,null)}},token:function(e,n){if(!n.tokenize&&e.eatSpace())return null;var r=(n.tokenize||fe)(e,n);return r&&typeof r=="object"&&(Y=r[1],r=r[0]),d=r,Y!="comment"&&(n.state=w[n.state](Y,e,n)),d},indent:function(e,n){var r=e.context,g=n&&n.charAt(0),E=r.indent;return r.type=="prop"&&(g=="}"||g==")")&&(r=r.prev),r.prev&&(g=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,E=r.indent):(g==")"&&(r.type=="parens"||r.type=="atBlock_parens")||g=="{"&&(r.type=="at"||r.type=="atBlock"))&&(E=Math.max(0,r.indent-M))),E},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:de,fold:"brace"}});function v(c){for(var a={},q=0;q-1?p.backUp(k.length-z):k.match(/<\/?$/)&&(p.backUp(k.length),p.match(l,!1)||p.match(k)),m}var O={};function D(p){var l=O[p];return l||(O[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function F(p,l){var m=p.match(D(l));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function b(p,l){return new RegExp((l?"^":"")+"","i")}function $(p,l){for(var m in p)for(var k=l[m]||(l[m]=[]),z=p[m],P=z.length-1;P>=0;P--)k.unshift(z[P])}function C(p,l){for(var m=0;m=0;K--)k.script.unshift(["type",P[K].matches,P[K].mode]);function j(f,h){var _=m.token(f,h.htmlState),A=/\btag\b/.test(_),I;if(A&&!/[<>\s\/]/.test(f.current())&&(I=h.htmlState.tagName&&h.htmlState.tagName.toLowerCase())&&k.hasOwnProperty(I))h.inTag=I+" ";else if(h.inTag&&A&&/>$/.test(f.current())){var L=/^([\S]+) (.*)/.exec(h.inTag);h.inTag=null;var T=f.current()==">"&&C(k[L[1]],L[2]),c=u.getMode(p,T),a=b(L[1],!0),q=b(L[1],!1);h.token=function(M,B){return M.match(a,!1)?(B.token=j,B.localState=B.localMode=null,null):N(M,q,B.localMode.token(M,B.localState))},h.localMode=c,h.localState=u.startState(c,m.indent(h.htmlState,"",""))}else h.inTag&&(h.inTag+=f.current(),f.eol()&&(h.inTag+=" "));return _}return{startState:function(){var f=u.startState(m);return{token:j,inTag:null,localMode:null,localState:null,htmlState:f}},copyState:function(f){var h;return f.localState&&(h=u.copyState(f.localMode,f.localState)),{token:f.token,inTag:f.inTag,localMode:f.localMode,localState:h,htmlState:u.copyState(m,f.htmlState)}},token:function(f,h){return h.token(f,h)},indent:function(f,h,_){return!f.localMode||/^\s*<\//.test(h)?m.indent(f.htmlState,h,_):f.localMode.indent?f.localMode.indent(f.localState,h,_):u.Pass},innerMode:function(f){return{state:f.localState||f.htmlState,mode:f.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})})();var se=ke.exports;const ye=ge(se),Se=be({__proto__:null,default:ye},[se]);export{Se as h}; +import{o as ge}from"./index-Hn-s1JD5.js";import{r as Z}from"./codemirror-I2c5QWqw.js";import{a as he}from"./javascript-DwFocQV0.js";function be(H,X){for(var u=0;uv[N]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var ke={exports:{}},oe={exports:{}},ie;function we(){return ie||(ie=1,function(H,X){(function(u){u(Z())})(function(u){var v={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},N={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(O,D){var F=O.indentUnit,b={},$=D.htmlMode?v:N;for(var C in $)b[C]=$[C];for(var C in D)b[C]=D[C];var p,l;function m(t,i){function o(U){return i.tokenize=U,U(t,i)}var s=t.next();if(s=="<")return t.eat("!")?t.eat("[")?t.match("CDATA[")?o(P("atom","]]>")):null:t.match("--")?o(P("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),o(K(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),i.tokenize=P("meta","?>"),"meta"):(p=t.eat("/")?"closeTag":"openTag",i.tokenize=k,"tag bracket");if(s=="&"){var S;return t.eat("#")?t.eat("x")?S=t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):S=t.eatWhile(/[\d]/)&&t.eat(";"):S=t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),S?"atom":"error"}else return t.eatWhile(/[^&<]/),null}m.isInText=!0;function k(t,i){var o=t.next();if(o==">"||o=="/"&&t.eat(">"))return i.tokenize=m,p=o==">"?"endTag":"selfcloseTag","tag bracket";if(o=="=")return p="equals",null;if(o=="<"){i.tokenize=m,i.state=A,i.tagName=i.tagStart=null;var s=i.tokenize(t,i);return s?s+" tag error":"tag error"}else return/[\'\"]/.test(o)?(i.tokenize=z(o),i.stringStartCol=t.column(),i.tokenize(t,i)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function z(t){var i=function(o,s){for(;!o.eol();)if(o.next()==t){s.tokenize=k;break}return"string"};return i.isInAttribute=!0,i}function P(t,i){return function(o,s){for(;!o.eol();){if(o.match(i)){s.tokenize=m;break}o.next()}return t}}function K(t){return function(i,o){for(var s;(s=i.next())!=null;){if(s=="<")return o.tokenize=K(t+1),o.tokenize(i,o);if(s==">")if(t==1){o.tokenize=m;break}else return o.tokenize=K(t-1),o.tokenize(i,o)}return"meta"}}function j(t){return t&&t.toLowerCase()}function f(t,i,o){this.prev=t.context,this.tagName=i||"",this.indent=t.indented,this.startOfLine=o,(b.doNotIndent.hasOwnProperty(i)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function _(t,i){for(var o;;){if(!t.context||(o=t.context.tagName,!b.contextGrabbers.hasOwnProperty(j(o))||!b.contextGrabbers[j(o)].hasOwnProperty(j(i))))return;h(t)}}function A(t,i,o){return t=="openTag"?(o.tagStart=i.column(),I):t=="closeTag"?L:A}function I(t,i,o){return t=="word"?(o.tagName=i.current(),l="tag",a):b.allowMissingTagName&&t=="endTag"?(l="tag bracket",a(t,i,o)):(l="error",I)}function L(t,i,o){if(t=="word"){var s=i.current();return o.context&&o.context.tagName!=s&&b.implicitlyClosed.hasOwnProperty(j(o.context.tagName))&&h(o),o.context&&o.context.tagName==s||b.matchClosing===!1?(l="tag",T):(l="tag error",c)}else return b.allowMissingTagName&&t=="endTag"?(l="tag bracket",T(t,i,o)):(l="error",c)}function T(t,i,o){return t!="endTag"?(l="error",T):(h(o),A)}function c(t,i,o){return l="error",T(t,i,o)}function a(t,i,o){if(t=="word")return l="attribute",q;if(t=="endTag"||t=="selfcloseTag"){var s=o.tagName,S=o.tagStart;return o.tagName=o.tagStart=null,t=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(j(s))?_(o,s):(_(o,s),o.context=new f(o,s,S==o.indented)),A}return l="error",a}function q(t,i,o){return t=="equals"?M:(b.allowMissing||(l="error"),a(t,i,o))}function M(t,i,o){return t=="string"?B:t=="word"&&b.allowUnquoted?(l="string",a):(l="error",a(t,i,o))}function B(t,i,o){return t=="string"?B:a(t,i,o)}return{startState:function(t){var i={tokenize:m,state:A,indented:t||0,tagName:null,tagStart:null,context:null};return t!=null&&(i.baseIndent=t),i},token:function(t,i){if(!i.tagName&&t.sol()&&(i.indented=t.indentation()),t.eatSpace())return null;p=null;var o=i.tokenize(t,i);return(o||p)&&o!="comment"&&(l=null,i.state=i.state(p||o,t,i),l&&(o=l=="error"?o+" error":l)),o},indent:function(t,i,o){var s=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+F;if(s&&s.noIndent)return u.Pass;if(t.tokenize!=k&&t.tokenize!=m)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return b.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+F*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/$/,blockCommentStart:"",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(t){t.state==M&&(t.state=a)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:t.type=="closeTag"}:null},xmlCurrentContext:function(t){for(var i=[],o=t.context;o;o=o.prev)i.push(o.tagName);return i.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),oe.exports}var ae={exports:{}},le;function ve(){return le||(le=1,function(H,X){(function(u){u(Z())})(function(u){u.defineMode("css",function(c,a){var q=a.inline;a.propertyKeywords||(a=u.resolveMode("text/css"));var M=c.indentUnit,B=a.tokenHooks,t=a.documentTypes||{},i=a.mediaTypes||{},o=a.mediaFeatures||{},s=a.mediaValueKeywords||{},S=a.propertyKeywords||{},U=a.nonStandardPropertyKeywords||{},ce=a.fontProperties||{},ue=a.counterDescriptors||{},J=a.colorKeywords||{},Q=a.valueKeywords||{},R=a.allowNested,de=a.lineComment,pe=a.supportsAtComponent===!0,ee=c.highlightNonStandardPropertyKeywords!==!1,Y,d;function x(e,n){return Y=n,e}function fe(e,n){var r=e.next();if(B[r]){var g=B[r](e,n);if(g!==!1)return g}if(r=="@")return e.eatWhile(/[\w\\\-]/),x("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return x(null,"compare");if(r=='"'||r=="'")return n.tokenize=re(r),n.tokenize(e,n);if(r=="#")return e.eatWhile(/[\w\\\-]/),x("atom","hash");if(r=="!")return e.match(/^\s*\w*/),x("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),x("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),x("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable");if(e.match(/^\w+-/))return x("meta","meta")}else return/[,+>*\/]/.test(r)?x(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(n.tokenize=me),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null)}function re(e){return function(n,r){for(var g=!1,E;(E=n.next())!=null;){if(E==e&&!g){e==")"&&n.backUp(1);break}g=!g&&E=="\\"}return(E==e||!g&&e!=")")&&(r.tokenize=null),x("string","string")}}function me(e,n){return e.next(),e.match(/^\s*[\"\')]/,!1)?n.tokenize=null:n.tokenize=re(")"),x(null,"(")}function te(e,n,r){this.type=e,this.indent=n,this.prev=r}function y(e,n,r,g){return e.context=new te(r,n.indentation()+(g===!1?0:M),e.context),r}function W(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function G(e,n,r){return w[r.context.type](e,n,r)}function V(e,n,r,g){for(var E=g||1;E>0;E--)r.context=r.context.prev;return G(e,n,r)}function ne(e){var n=e.current().toLowerCase();Q.hasOwnProperty(n)?d="atom":J.hasOwnProperty(n)?d="keyword":d="variable"}var w={};return w.top=function(e,n,r){if(e=="{")return y(r,n,"block");if(e=="}"&&r.context.prev)return W(r);if(pe&&/@component/i.test(e))return y(r,n,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return y(r,n,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return y(r,n,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return y(r,n,"at");if(e=="hash")d="builtin";else if(e=="word")d="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return y(r,n,"interpolation");if(e==":")return"pseudo";if(R&&e=="(")return y(r,n,"parens")}return r.context.type},w.block=function(e,n,r){if(e=="word"){var g=n.current().toLowerCase();return S.hasOwnProperty(g)?(d="property","maybeprop"):U.hasOwnProperty(g)?(d=ee?"string-2":"property","maybeprop"):R?(d=n.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(d+=" error","maybeprop")}else return e=="meta"?"block":!R&&(e=="hash"||e=="qualifier")?(d="error","block"):w.top(e,n,r)},w.maybeprop=function(e,n,r){return e==":"?y(r,n,"prop"):G(e,n,r)},w.prop=function(e,n,r){if(e==";")return W(r);if(e=="{"&&R)return y(r,n,"propBlock");if(e=="}"||e=="{")return V(e,n,r);if(e=="(")return y(r,n,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(n.current()))d+=" error";else if(e=="word")ne(n);else if(e=="interpolation")return y(r,n,"interpolation");return"prop"},w.propBlock=function(e,n,r){return e=="}"?W(r):e=="word"?(d="property","maybeprop"):r.context.type},w.parens=function(e,n,r){return e=="{"||e=="}"?V(e,n,r):e==")"?W(r):e=="("?y(r,n,"parens"):e=="interpolation"?y(r,n,"interpolation"):(e=="word"&&ne(n),"parens")},w.pseudo=function(e,n,r){return e=="meta"?"pseudo":e=="word"?(d="variable-3",r.context.type):G(e,n,r)},w.documentTypes=function(e,n,r){return e=="word"&&t.hasOwnProperty(n.current())?(d="tag",r.context.type):w.atBlock(e,n,r)},w.atBlock=function(e,n,r){if(e=="(")return y(r,n,"atBlock_parens");if(e=="}"||e==";")return V(e,n,r);if(e=="{")return W(r)&&y(r,n,R?"block":"top");if(e=="interpolation")return y(r,n,"interpolation");if(e=="word"){var g=n.current().toLowerCase();g=="only"||g=="not"||g=="and"||g=="or"?d="keyword":i.hasOwnProperty(g)?d="attribute":o.hasOwnProperty(g)?d="property":s.hasOwnProperty(g)?d="keyword":S.hasOwnProperty(g)?d="property":U.hasOwnProperty(g)?d=ee?"string-2":"property":Q.hasOwnProperty(g)?d="atom":J.hasOwnProperty(g)?d="keyword":d="error"}return r.context.type},w.atComponentBlock=function(e,n,r){return e=="}"?V(e,n,r):e=="{"?W(r)&&y(r,n,R?"block":"top",!1):(e=="word"&&(d="error"),r.context.type)},w.atBlock_parens=function(e,n,r){return e==")"?W(r):e=="{"||e=="}"?V(e,n,r,2):w.atBlock(e,n,r)},w.restricted_atBlock_before=function(e,n,r){return e=="{"?y(r,n,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(d="variable","restricted_atBlock_before"):G(e,n,r)},w.restricted_atBlock=function(e,n,r){return e=="}"?(r.stateArg=null,W(r)):e=="word"?(r.stateArg=="@font-face"&&!ce.hasOwnProperty(n.current().toLowerCase())||r.stateArg=="@counter-style"&&!ue.hasOwnProperty(n.current().toLowerCase())?d="error":d="property","maybeprop"):"restricted_atBlock"},w.keyframes=function(e,n,r){return e=="word"?(d="variable","keyframes"):e=="{"?y(r,n,"top"):G(e,n,r)},w.at=function(e,n,r){return e==";"?W(r):e=="{"||e=="}"?V(e,n,r):(e=="word"?d="tag":e=="hash"&&(d="builtin"),"at")},w.interpolation=function(e,n,r){return e=="}"?W(r):e=="{"||e==";"?V(e,n,r):(e=="word"?d="variable":e!="variable"&&e!="("&&e!=")"&&(d="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:q?"block":"top",stateArg:null,context:new te(q?"block":"top",e||0,null)}},token:function(e,n){if(!n.tokenize&&e.eatSpace())return null;var r=(n.tokenize||fe)(e,n);return r&&typeof r=="object"&&(Y=r[1],r=r[0]),d=r,Y!="comment"&&(n.state=w[n.state](Y,e,n)),d},indent:function(e,n){var r=e.context,g=n&&n.charAt(0),E=r.indent;return r.type=="prop"&&(g=="}"||g==")")&&(r=r.prev),r.prev&&(g=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,E=r.indent):(g==")"&&(r.type=="parens"||r.type=="atBlock_parens")||g=="{"&&(r.type=="at"||r.type=="atBlock"))&&(E=Math.max(0,r.indent-M))),E},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:de,fold:"brace"}});function v(c){for(var a={},q=0;q-1?p.backUp(k.length-z):k.match(/<\/?$/)&&(p.backUp(k.length),p.match(l,!1)||p.match(k)),m}var O={};function D(p){var l=O[p];return l||(O[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function F(p,l){var m=p.match(D(l));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function b(p,l){return new RegExp((l?"^":"")+"","i")}function $(p,l){for(var m in p)for(var k=l[m]||(l[m]=[]),z=p[m],P=z.length-1;P>=0;P--)k.unshift(z[P])}function C(p,l){for(var m=0;m=0;K--)k.script.unshift(["type",P[K].matches,P[K].mode]);function j(f,h){var _=m.token(f,h.htmlState),A=/\btag\b/.test(_),I;if(A&&!/[<>\s\/]/.test(f.current())&&(I=h.htmlState.tagName&&h.htmlState.tagName.toLowerCase())&&k.hasOwnProperty(I))h.inTag=I+" ";else if(h.inTag&&A&&/>$/.test(f.current())){var L=/^([\S]+) (.*)/.exec(h.inTag);h.inTag=null;var T=f.current()==">"&&C(k[L[1]],L[2]),c=u.getMode(p,T),a=b(L[1],!0),q=b(L[1],!1);h.token=function(M,B){return M.match(a,!1)?(B.token=j,B.localState=B.localMode=null,null):N(M,q,B.localMode.token(M,B.localState))},h.localMode=c,h.localState=u.startState(c,m.indent(h.htmlState,"",""))}else h.inTag&&(h.inTag+=f.current(),f.eol()&&(h.inTag+=" "));return _}return{startState:function(){var f=u.startState(m);return{token:j,inTag:null,localMode:null,localState:null,htmlState:f}},copyState:function(f){var h;return f.localState&&(h=u.copyState(f.localMode,f.localState)),{token:f.token,inTag:f.inTag,localMode:f.localMode,localState:h,htmlState:u.copyState(m,f.htmlState)}},token:function(f,h){return h.token(f,h)},indent:function(f,h,_){return!f.localMode||/^\s*<\//.test(h)?m.indent(f.htmlState,h,_):f.localMode.indent?f.localMode.indent(f.localState,h,_):u.Pass},innerMode:function(f){return{state:f.localState||f.htmlState,mode:f.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})})();var se=ke.exports;const ye=ge(se),Se=be({__proto__:null,default:ye},[se]);export{Se as h}; diff --git a/public/admin-assets/assets/htmlmixed-DqtUBAxJ.js.gz b/public/admin-assets/assets/htmlmixed-DqtUBAxJ.js.gz new file mode 100644 index 0000000..20a7ce8 Binary files /dev/null and b/public/admin-assets/assets/htmlmixed-DqtUBAxJ.js.gz differ diff --git a/public/admin-assets/assets/index-B4EtMdaX.js.gz b/public/admin-assets/assets/index-B4EtMdaX.js.gz deleted file mode 100644 index 9ca575e..0000000 Binary files a/public/admin-assets/assets/index-B4EtMdaX.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/index-BYiefg95.js.gz b/public/admin-assets/assets/index-BYiefg95.js.gz deleted file mode 100644 index 312ac49..0000000 Binary files a/public/admin-assets/assets/index-BYiefg95.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/index-B4EtMdaX.js b/public/admin-assets/assets/index-Bkcna6kt.js similarity index 99% rename from public/admin-assets/assets/index-B4EtMdaX.js rename to public/admin-assets/assets/index-Bkcna6kt.js index 56430c8..ad5250c 100644 --- a/public/admin-assets/assets/index-B4EtMdaX.js +++ b/public/admin-assets/assets/index-Bkcna6kt.js @@ -1,4 +1,4 @@ -import{Z as k}from"./index-CgQH3-O6.js";var DL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),ML=function(){function r(){this.browser=new DL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Pn=new ML;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Pn.wxa=!0,Pn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Pn.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Pn.node=!0,Pn.svgSupported=!0):IL(navigator.userAgent,Pn);function IL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var At=Pn,lg=12,Cw="sans-serif",Ka=lg+"px "+Cw,LL=20,PL=100,RL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function EL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function r2(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Im(s,o):Im(o,s))}function Nw(r){return r.nodeName.toUpperCase()==="CANVAS"}var a2=/([&<>"'])/g,n2={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ne(r){return r==null?"":(r+"").replace(a2,function(e,t){return n2[t]})}var i2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tv=[],o2=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function Tp(r,e,t,a){return t=t||{},a?Pm(r,e,t):o2&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Pm(r,e,t),t}function Pm(r,e,t){if(At.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Nw(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(wp(tv,r,a,n)){t.zrX=tv[0],t.zrY=tv[1];return}}t.zrX=t.zrY=0}function dg(r){return r||window.event}function Je(r,e,t){if(e=dg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Tp(r,o,e,t)}else{Tp(r,e,e,t);var i=s2(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&i2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function s2(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Cp(r,e,t,a){r.addEventListener(e,t,a)}function l2(r,e,t,a){r.removeEventListener(e,t,a)}var ca=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Rm(r){return r.which===2||r.which===3}var u2=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=Em(a)/Em(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=f2(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Ge(){return[1,0,0,1,0,0]}function _l(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ph(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Yr(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Dr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function an(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function dh(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ci(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function Bw(r){var e=Ge();return ph(e,r),e}const Q7=Object.freeze(Object.defineProperty({__proto__:null,clone:Bw,copy:ph,create:Ge,identity:_l,invert:ci,mul:Yr,rotate:an,scale:dh,translate:Dr},Symbol.toStringTag,{value:"Module"}));var h2=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),ft=h2,Wl=Math.min,Ul=Math.max,sn=new ft,ln=new ft,un=new ft,fn=new ft,No=new ft,Bo=new ft,v2=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Wl(e.x,this.x),a=Wl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ul(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ul(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Ge();return Dr(i,i,[-t.x,-t.y]),dh(i,i,[a,n]),Dr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}sn.x=un.x=t.x,sn.y=fn.y=t.y,ln.x=fn.x=t.x+t.width,ln.y=un.y=t.y+t.height,sn.transform(a),fn.transform(a),ln.transform(a),un.transform(a),e.x=Wl(sn.x,ln.x,un.x,fn.x),e.y=Wl(sn.y,ln.y,un.y,fn.y);var l=Ul(sn.x,ln.x,un.x,fn.x),u=Ul(sn.y,ln.y,un.y,fn.y);e.width=l-e.x,e.height=u-e.y},r}(),ht=v2,Vw="silent";function c2(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:p2}}function p2(){ca(this.event)}var d2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(fr),Vo=function(){function r(e,t){this.x=e,this.y=t}return r}(),g2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rv=new ht(0,0,0,0),zw=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Vo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new d2,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new jL(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(g2,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=Gw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Vo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Vo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=c2(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Vo(t,a);if(km(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(rv.copy(v.getBoundingRect()),v.transform&&rv.applyTransform(v.transform),rv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function y2(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?Vw:!0}return!1}function km(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=y2(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Vw)){e.target=o;break}}}function Gw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var m2=zw,Fw=32,zo=7;function _2(r){for(var e=0;r>=Fw;)e|=r&1,r>>=1;return r+e}function Om(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function S2(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function av(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function nv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function x2(r,e){var t=zo,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=zo||w>=zo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){D=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){D=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(p===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-av(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=zo||C>=zo);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),Nm(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var He=1,hs=2,Wi=4,Bm=!1;function iv(){Bm||(Bm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Vm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var b2=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Vm}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(iv(),f.z=0),isNaN(f.z2)&&(iv(),f.z2=0),isNaN(f.zlevel)&&(iv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),w2=b2,Hw;Hw=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ap=Hw,$u={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-$u.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?$u.bounceIn(r*2)*.5:$u.bounceOut(r*2-1)*.5+.5}},Ww=$u,Yl=Math.pow,Ua=Math.sqrt,df=1e-8,Uw=1e-4,zm=Ua(3),$l=1/3,zr=rn(),ar=rn(),Ji=rn();function Ba(r){return r>-df&&rdf||r<-df}function Jt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Gm(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function gf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Ba(f)&&Ba(h))if(Ba(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(Ba(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Ua(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Yl(-_,$l):_=Yl(_,$l),S<0?S=-Yl(-S,$l):S=Yl(S,$l);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Ua(f*f*f)),x=Math.acos(b)/3,w=Ua(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+zm*Math.sin(x)))/(3*o),C=(-s+w*(T-zm*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function $w(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Ba(o)){if(Yw(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Ba(f))n[0]=-i/(2*o);else if(f>0){var h=Ua(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function ja(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function Xw(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;zr[0]=l,zr[1]=u;for(var m=0;m<1;m+=.05)ar[0]=Jt(r,t,n,o,m),ar[1]=Jt(e,a,i,s,m),g=Wa(zr,ar),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Ba(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Ua(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Zw(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Hs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function qw(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;zr[0]=o,zr[1]=s;for(var v=0;v<1;v+=.05){ar[0]=oe(r,t,n,v),ar[1]=oe(e,a,i,v);var c=Wa(zr,ar);c=0&&c=1?1:gf(0,a,i,1,l,s)&&Jt(0,n,o,1,s[0])}}}var M2=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yt,this.ondestroy=e.ondestroy||Yt,this.onrestart=e.onrestart||Yt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:Ww[e]||gg(e)},r}(),I2=M2,Kw=function(){function r(e){this.value=e}return r}(),L2=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Kw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),P2=function(){function r(e){this._list=new L2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Kw(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Sl=P2,Fm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function wr(r){return r=Math.round(r),r<0?0:r>255?255:r}function R2(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ws(r){return r<0?0:r>1?1:r}function ov(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?wr(parseFloat(e)/100*255):wr(parseInt(e,10))}function Kn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ws(parseFloat(e)/100):Ws(parseFloat(e))}function sv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Va(r,e,t){return r+(e-r)*t}function Qe(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Mp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var jw=new Sl(20),Xl=null;function wi(r,e){Xl&&Mp(Xl,e),Xl=jw.put(r,Xl||e.slice())}function Ce(r,e){if(r){e=e||[];var t=jw.get(r);if(t)return Mp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Fm)return Mp(e,Fm[a]),wi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Qe(e,0,0,0,1);return}return Qe(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),wi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Qe(e,0,0,0,1);return}return Qe(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),wi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qe(e,+u[0],+u[1],+u[2],1):Qe(e,0,0,0,1);f=Kn(u.pop());case"rgb":if(u.length>=3)return Qe(e,ov(u[0]),ov(u[1]),ov(u[2]),u.length===3?f:Kn(u[3])),wi(r,e),e;Qe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Qe(e,0,0,0,1);return}return u[3]=Kn(u[3]),Ip(u,e),wi(r,e),e;case"hsl":if(u.length!==3){Qe(e,0,0,0,1);return}return Ip(u,e),wi(r,e),e;default:return}}Qe(e,0,0,0,1)}}function Ip(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Kn(r[1]),n=Kn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Qe(e,wr(sv(o,i,t+1/3)*255),wr(sv(o,i,t)*255),wr(sv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function E2(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function yf(r,e){var t=Ce(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Tr(t,t.length===4?"rgba":"rgb")}}function k2(r){var e=Ce(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function As(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=wr(Va(o[0],s[0],l)),t[1]=wr(Va(o[1],s[1],l)),t[2]=wr(Va(o[2],s[2],l)),t[3]=Ws(Va(o[3],s[3],l)),t}}var O2=As;function yg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Ce(e[n]),s=Ce(e[i]),l=a-n,u=Tr([wr(Va(o[0],s[0],l)),wr(Va(o[1],s[1],l)),wr(Va(o[2],s[2],l)),Ws(Va(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var N2=yg;function to(r,e,t,a){var n=Ce(r);if(r)return n=E2(n),e!=null&&(n[0]=R2(e)),t!=null&&(n[1]=Kn(t)),a!=null&&(n[2]=Kn(a)),Tr(Ip(n),"rgba")}function Us(r,e){var t=Ce(r);if(t&&e!=null)return t[3]=Ws(e),Tr(t,"rgba")}function Tr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Ys(r,e){var t=Ce(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function B2(){return Tr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Hm=new Sl(100);function mf(r){if(U(r)){var e=Hm.get(r);return e||(e=yf(r,-.1),Hm.put(r,e)),e}else if(yl(r)){var t=B({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:yf(a.color,-.1)}}),t}return r}const J7=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:As,fastMapToColor:O2,lerp:yg,lift:yf,liftColor:mf,lum:Ys,mapToColor:N2,modifyAlpha:Us,modifyHSL:to,parse:Ce,random:B2,stringify:Tr,toHex:k2},Symbol.toStringTag,{value:"Module"}));var _f=Math.round;function $s(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Ce(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Wm=1e-4;function za(r){return r-Wm}function Zl(r){return _f(r*1e3)/1e3}function Lp(r){return _f(r*1e4)/1e4}function V2(r){return"matrix("+Zl(r[0])+","+Zl(r[1])+","+Zl(r[2])+","+Zl(r[3])+","+Lp(r[4])+","+Lp(r[5])+")"}var z2={left:"start",right:"end",center:"middle",middle:"middle"};function G2(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function F2(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function H2(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Qw(r){return r&&!!r.image}function W2(r){return r&&!!r.svgElement}function mg(r){return Qw(r)||W2(r)}function Jw(r){return r.type==="linear"}function tT(r){return r.type==="radial"}function eT(r){return r&&(r.type==="linear"||r.type==="radial")}function gh(r){return"url(#"+r+")"}function rT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function aT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*ws,n=ot(r.scaleX,1),i=ot(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+_f(o*ws)+"deg, "+_f(s*ws)+"deg)"),l.join(" ")}var U2=function(){return At.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Pp=Array.prototype.slice;function na(r,e,t){return(e-r)*t+r}function lv(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Ym,l=t;if(fe(t)){var u=Z2(t);s=u,(u===1&&!Tt(t[0])||u===2&&!Tt(t[0][0]))&&(o=!0)}else if(Tt(t)&&!oo(t))s=Kl;else if(U(t))if(!isNaN(+t))s=Kl;else{var f=Ce(t);f&&(l=f,s=vs)}else if(yl(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Ce(c.color)}}),Jw(t)?s=Rp:tT(t)&&(s=Ep),l=h}i===0?this.valType=s:(s!==this.valType||s===Ym)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:Ww[a]||gg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=jl(n),u=$m(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?Go:e[l];if((jl(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(jl(i))i===Zu?lv(m,c[n],p[n],y):Y2(m,c[n],p[n],y);else if($m(i)){var _=c[n],S=p[n],b=i===Rp;e[l]={type:b?"linear":"radial",x:na(_.x,S.x,y),y:na(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:na(w.offset,C.offset,y),color:Xu(lv([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=na(_.x2,S.x2,y),e[l].y2=na(_.y2,S.y2,y)):e[l].r=na(_.r,S.r,y)}else if(u)lv(m,c[n],p[n],y),a||(e[l]=Xu(m));else{var x=na(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Kl?e[a]=e[a]+n:t===vs?(Ce(e[a],Go),ql(Go,Go,n,1),e[a]=Xu(Go)):t===Zu?ql(e[a],e[a],n,1):t===nT&&Um(e[a],e[a],n,1)},r}(),K2=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){fh("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,mt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Ds(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ds(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}(),_g=K2;function Zi(){return new Date().getTime()}var j2=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Zi()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Ap(a),!t._paused&&t.update())}Ap(a)},e.prototype.start=function(){this._running||(this._time=Zi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new _g(t,a.loop);return this.addAnimator(n),n},e}(fr),Q2=j2,J2=300,uv=At.domSupported,fv=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Xm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zm=!1;function kp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function tP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function hv(r){r&&(r.zrByTouch=!0)}function eP(r,e){return Je(r.dom,new rP(r,e),!0)}function iT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var rP=function(){function r(e,t){this.stopPropagation=Yt,this.stopImmediatePropagation=Yt,this.preventDefault=Yt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),yr={mousedown:function(r){r=Je(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Je(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Je(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Je(this.dom,r);var e=r.toElement||r.relatedTarget;iT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Zm=!0,r=Je(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Zm||(r=Je(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Je(this.dom,r),hv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),yr.mousemove.call(this,r),yr.mousedown.call(this,r)},touchmove:function(r){r=Je(this.dom,r),hv(r),this.handler.processGesture(r,"change"),yr.mousemove.call(this,r)},touchend:function(r){r=Je(this.dom,r),hv(r),this.handler.processGesture(r,"end"),yr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentjm||r<-jm}var vn=[],Ti=[],cv=Ge(),pv=Math.abs,lP=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return hn(this.rotation)||hn(this.x)||hn(this.y)||hn(this.scaleX-1)||hn(this.scaleY-1)||hn(this.skewX)||hn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Km(a),this.invTransform=null);return}a=a||Ge(),t?this.getLocalTransform(a):Km(a),e&&(t?Yr(a,e,a):ph(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(vn);var a=vn[0]<0?-1:1,n=vn[1]<0?-1:1,i=((vn[0]-a)*t+a)/vn[0]||0,o=((vn[1]-n)*t+n)/vn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Ge(),ci(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ge(),Yr(Ti,e.invTransform,t),t=Ti);var a=this.originX,n=this.originY;(a||n)&&(cv[4]=a,cv[5]=n,Yr(Ti,t,cv),Ti[4]-=a,Ti[5]-=n,t=Ti),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&se(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&se(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&pv(e[0]-1)>1e-10&&pv(e[3]-1)>1e-10?Math.sqrt(pv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){sT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&an(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Xr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function sT(r,e){for(var t=0;t"u"&&typeof self<"u"?Pn.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Pn.node=!0,Pn.svgSupported=!0):IL(navigator.userAgent,Pn);function IL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var At=Pn,lg=12,Cw="sans-serif",Ka=lg+"px "+Cw,LL=20,PL=100,RL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function EL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function r2(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Im(s,o):Im(o,s))}function Nw(r){return r.nodeName.toUpperCase()==="CANVAS"}var a2=/([&<>"'])/g,n2={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ne(r){return r==null?"":(r+"").replace(a2,function(e,t){return n2[t]})}var i2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tv=[],o2=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function Tp(r,e,t,a){return t=t||{},a?Pm(r,e,t):o2&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Pm(r,e,t),t}function Pm(r,e,t){if(At.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Nw(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(wp(tv,r,a,n)){t.zrX=tv[0],t.zrY=tv[1];return}}t.zrX=t.zrY=0}function dg(r){return r||window.event}function Je(r,e,t){if(e=dg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Tp(r,o,e,t)}else{Tp(r,e,e,t);var i=s2(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&i2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function s2(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Cp(r,e,t,a){r.addEventListener(e,t,a)}function l2(r,e,t,a){r.removeEventListener(e,t,a)}var ca=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Rm(r){return r.which===2||r.which===3}var u2=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=Em(a)/Em(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=f2(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Ge(){return[1,0,0,1,0,0]}function _l(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ph(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Yr(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Dr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function an(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function dh(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ci(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function Bw(r){var e=Ge();return ph(e,r),e}const Q7=Object.freeze(Object.defineProperty({__proto__:null,clone:Bw,copy:ph,create:Ge,identity:_l,invert:ci,mul:Yr,rotate:an,scale:dh,translate:Dr},Symbol.toStringTag,{value:"Module"}));var h2=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),ft=h2,Wl=Math.min,Ul=Math.max,sn=new ft,ln=new ft,un=new ft,fn=new ft,No=new ft,Bo=new ft,v2=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Wl(e.x,this.x),a=Wl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ul(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ul(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Ge();return Dr(i,i,[-t.x,-t.y]),dh(i,i,[a,n]),Dr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}sn.x=un.x=t.x,sn.y=fn.y=t.y,ln.x=fn.x=t.x+t.width,ln.y=un.y=t.y+t.height,sn.transform(a),fn.transform(a),ln.transform(a),un.transform(a),e.x=Wl(sn.x,ln.x,un.x,fn.x),e.y=Wl(sn.y,ln.y,un.y,fn.y);var l=Ul(sn.x,ln.x,un.x,fn.x),u=Ul(sn.y,ln.y,un.y,fn.y);e.width=l-e.x,e.height=u-e.y},r}(),ht=v2,Vw="silent";function c2(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:p2}}function p2(){ca(this.event)}var d2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(fr),Vo=function(){function r(e,t){this.x=e,this.y=t}return r}(),g2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rv=new ht(0,0,0,0),zw=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Vo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new d2,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new jL(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(g2,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=Gw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Vo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Vo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=c2(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Vo(t,a);if(km(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(rv.copy(v.getBoundingRect()),v.transform&&rv.applyTransform(v.transform),rv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function y2(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?Vw:!0}return!1}function km(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=y2(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Vw)){e.target=o;break}}}function Gw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var m2=zw,Fw=32,zo=7;function _2(r){for(var e=0;r>=Fw;)e|=r&1,r>>=1;return r+e}function Om(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function S2(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function av(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function nv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function x2(r,e){var t=zo,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=zo||w>=zo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){D=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){D=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(p===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-av(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=zo||C>=zo);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),Nm(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var He=1,hs=2,Wi=4,Bm=!1;function iv(){Bm||(Bm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Vm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var b2=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Vm}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(iv(),f.z=0),isNaN(f.z2)&&(iv(),f.z2=0),isNaN(f.zlevel)&&(iv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),w2=b2,Hw;Hw=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ap=Hw,$u={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-$u.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?$u.bounceIn(r*2)*.5:$u.bounceOut(r*2-1)*.5+.5}},Ww=$u,Yl=Math.pow,Ua=Math.sqrt,df=1e-8,Uw=1e-4,zm=Ua(3),$l=1/3,zr=rn(),ar=rn(),Ji=rn();function Ba(r){return r>-df&&rdf||r<-df}function Jt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Gm(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function gf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Ba(f)&&Ba(h))if(Ba(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(Ba(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Ua(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Yl(-_,$l):_=Yl(_,$l),S<0?S=-Yl(-S,$l):S=Yl(S,$l);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Ua(f*f*f)),x=Math.acos(b)/3,w=Ua(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+zm*Math.sin(x)))/(3*o),C=(-s+w*(T-zm*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function $w(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Ba(o)){if(Yw(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Ba(f))n[0]=-i/(2*o);else if(f>0){var h=Ua(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function ja(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function Xw(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;zr[0]=l,zr[1]=u;for(var m=0;m<1;m+=.05)ar[0]=Jt(r,t,n,o,m),ar[1]=Jt(e,a,i,s,m),g=Wa(zr,ar),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Ba(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Ua(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Zw(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Hs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function qw(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;zr[0]=o,zr[1]=s;for(var v=0;v<1;v+=.05){ar[0]=oe(r,t,n,v),ar[1]=oe(e,a,i,v);var c=Wa(zr,ar);c=0&&c=1?1:gf(0,a,i,1,l,s)&&Jt(0,n,o,1,s[0])}}}var M2=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yt,this.ondestroy=e.ondestroy||Yt,this.onrestart=e.onrestart||Yt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:Ww[e]||gg(e)},r}(),I2=M2,Kw=function(){function r(e){this.value=e}return r}(),L2=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Kw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),P2=function(){function r(e){this._list=new L2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Kw(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Sl=P2,Fm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function wr(r){return r=Math.round(r),r<0?0:r>255?255:r}function R2(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ws(r){return r<0?0:r>1?1:r}function ov(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?wr(parseFloat(e)/100*255):wr(parseInt(e,10))}function Kn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ws(parseFloat(e)/100):Ws(parseFloat(e))}function sv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Va(r,e,t){return r+(e-r)*t}function Qe(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Mp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var jw=new Sl(20),Xl=null;function wi(r,e){Xl&&Mp(Xl,e),Xl=jw.put(r,Xl||e.slice())}function Ce(r,e){if(r){e=e||[];var t=jw.get(r);if(t)return Mp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Fm)return Mp(e,Fm[a]),wi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Qe(e,0,0,0,1);return}return Qe(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),wi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Qe(e,0,0,0,1);return}return Qe(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),wi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qe(e,+u[0],+u[1],+u[2],1):Qe(e,0,0,0,1);f=Kn(u.pop());case"rgb":if(u.length>=3)return Qe(e,ov(u[0]),ov(u[1]),ov(u[2]),u.length===3?f:Kn(u[3])),wi(r,e),e;Qe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Qe(e,0,0,0,1);return}return u[3]=Kn(u[3]),Ip(u,e),wi(r,e),e;case"hsl":if(u.length!==3){Qe(e,0,0,0,1);return}return Ip(u,e),wi(r,e),e;default:return}}Qe(e,0,0,0,1)}}function Ip(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Kn(r[1]),n=Kn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Qe(e,wr(sv(o,i,t+1/3)*255),wr(sv(o,i,t)*255),wr(sv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function E2(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function yf(r,e){var t=Ce(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Tr(t,t.length===4?"rgba":"rgb")}}function k2(r){var e=Ce(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function As(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=wr(Va(o[0],s[0],l)),t[1]=wr(Va(o[1],s[1],l)),t[2]=wr(Va(o[2],s[2],l)),t[3]=Ws(Va(o[3],s[3],l)),t}}var O2=As;function yg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Ce(e[n]),s=Ce(e[i]),l=a-n,u=Tr([wr(Va(o[0],s[0],l)),wr(Va(o[1],s[1],l)),wr(Va(o[2],s[2],l)),Ws(Va(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var N2=yg;function to(r,e,t,a){var n=Ce(r);if(r)return n=E2(n),e!=null&&(n[0]=R2(e)),t!=null&&(n[1]=Kn(t)),a!=null&&(n[2]=Kn(a)),Tr(Ip(n),"rgba")}function Us(r,e){var t=Ce(r);if(t&&e!=null)return t[3]=Ws(e),Tr(t,"rgba")}function Tr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Ys(r,e){var t=Ce(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function B2(){return Tr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Hm=new Sl(100);function mf(r){if(U(r)){var e=Hm.get(r);return e||(e=yf(r,-.1),Hm.put(r,e)),e}else if(yl(r)){var t=B({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:yf(a.color,-.1)}}),t}return r}const J7=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:As,fastMapToColor:O2,lerp:yg,lift:yf,liftColor:mf,lum:Ys,mapToColor:N2,modifyAlpha:Us,modifyHSL:to,parse:Ce,random:B2,stringify:Tr,toHex:k2},Symbol.toStringTag,{value:"Module"}));var _f=Math.round;function $s(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Ce(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Wm=1e-4;function za(r){return r-Wm}function Zl(r){return _f(r*1e3)/1e3}function Lp(r){return _f(r*1e4)/1e4}function V2(r){return"matrix("+Zl(r[0])+","+Zl(r[1])+","+Zl(r[2])+","+Zl(r[3])+","+Lp(r[4])+","+Lp(r[5])+")"}var z2={left:"start",right:"end",center:"middle",middle:"middle"};function G2(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function F2(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function H2(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Qw(r){return r&&!!r.image}function W2(r){return r&&!!r.svgElement}function mg(r){return Qw(r)||W2(r)}function Jw(r){return r.type==="linear"}function tT(r){return r.type==="radial"}function eT(r){return r&&(r.type==="linear"||r.type==="radial")}function gh(r){return"url(#"+r+")"}function rT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function aT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*ws,n=ot(r.scaleX,1),i=ot(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+_f(o*ws)+"deg, "+_f(s*ws)+"deg)"),l.join(" ")}var U2=function(){return At.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Pp=Array.prototype.slice;function na(r,e,t){return(e-r)*t+r}function lv(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Ym,l=t;if(fe(t)){var u=Z2(t);s=u,(u===1&&!Tt(t[0])||u===2&&!Tt(t[0][0]))&&(o=!0)}else if(Tt(t)&&!oo(t))s=Kl;else if(U(t))if(!isNaN(+t))s=Kl;else{var f=Ce(t);f&&(l=f,s=vs)}else if(yl(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Ce(c.color)}}),Jw(t)?s=Rp:tT(t)&&(s=Ep),l=h}i===0?this.valType=s:(s!==this.valType||s===Ym)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:Ww[a]||gg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=jl(n),u=$m(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?Go:e[l];if((jl(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(jl(i))i===Zu?lv(m,c[n],p[n],y):Y2(m,c[n],p[n],y);else if($m(i)){var _=c[n],S=p[n],b=i===Rp;e[l]={type:b?"linear":"radial",x:na(_.x,S.x,y),y:na(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:na(w.offset,C.offset,y),color:Xu(lv([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=na(_.x2,S.x2,y),e[l].y2=na(_.y2,S.y2,y)):e[l].r=na(_.r,S.r,y)}else if(u)lv(m,c[n],p[n],y),a||(e[l]=Xu(m));else{var x=na(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Kl?e[a]=e[a]+n:t===vs?(Ce(e[a],Go),ql(Go,Go,n,1),e[a]=Xu(Go)):t===Zu?ql(e[a],e[a],n,1):t===nT&&Um(e[a],e[a],n,1)},r}(),K2=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){fh("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,mt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Ds(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ds(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}(),_g=K2;function Zi(){return new Date().getTime()}var j2=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Zi()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Ap(a),!t._paused&&t.update())}Ap(a)},e.prototype.start=function(){this._running||(this._time=Zi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new _g(t,a.loop);return this.addAnimator(n),n},e}(fr),Q2=j2,J2=300,uv=At.domSupported,fv=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Xm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zm=!1;function kp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function tP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function hv(r){r&&(r.zrByTouch=!0)}function eP(r,e){return Je(r.dom,new rP(r,e),!0)}function iT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var rP=function(){function r(e,t){this.stopPropagation=Yt,this.stopImmediatePropagation=Yt,this.preventDefault=Yt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),yr={mousedown:function(r){r=Je(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Je(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Je(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Je(this.dom,r);var e=r.toElement||r.relatedTarget;iT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Zm=!0,r=Je(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Zm||(r=Je(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Je(this.dom,r),hv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),yr.mousemove.call(this,r),yr.mousedown.call(this,r)},touchmove:function(r){r=Je(this.dom,r),hv(r),this.handler.processGesture(r,"change"),yr.mousemove.call(this,r)},touchend:function(r){r=Je(this.dom,r),hv(r),this.handler.processGesture(r,"end"),yr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentjm||r<-jm}var vn=[],Ti=[],cv=Ge(),pv=Math.abs,lP=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return hn(this.rotation)||hn(this.x)||hn(this.y)||hn(this.scaleX-1)||hn(this.scaleY-1)||hn(this.skewX)||hn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Km(a),this.invTransform=null);return}a=a||Ge(),t?this.getLocalTransform(a):Km(a),e&&(t?Yr(a,e,a):ph(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(vn);var a=vn[0]<0?-1:1,n=vn[1]<0?-1:1,i=((vn[0]-a)*t+a)/vn[0]||0,o=((vn[1]-n)*t+n)/vn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Ge(),ci(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ge(),Yr(Ti,e.invTransform,t),t=Ti);var a=this.originX,n=this.originY;(a||n)&&(cv[4]=a,cv[5]=n,Yr(Ti,t,cv),Ti[4]-=a,Ti[5]-=n,t=Ti),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&se(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&se(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&pv(e[0]-1)>1e-10&&pv(e[3]-1)>1e-10?Math.sqrt(pv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){sT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&an(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Xr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function sT(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function xf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Mr(a[0],t.width),u+=Mr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var dv="__zr_normal__",gv=Xr.concat(["ignore"]),uP=lr(Xr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ci={},fP=new ht(0,0,0,0),Sg=function(){function r(e){this.id=hg(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=fP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ci,a,f):xf(Ci,a,f),i.x=Ci.x,i.y=Ci.y,o=Ci.align,s=Ci.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Mr(h[0],f.width),c=Mr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=He,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Vp:Bp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Ce(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Tr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,n=mt(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(dv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===dv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(vt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){fh("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~He),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~He)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=vt(n,e),o=vt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=d[S];D[y]=Ds(t[y]),vP(t,a,y)}}var b=new _g(t,!1,!1,h?Lt(p,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),D&&b.whenWithKeys(0,D,d),b.whenWithKeys(u??500,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var uT=Sg,fT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=vt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=vt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;ne.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),e.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),e.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),e.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),e.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),e.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),e.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),e.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),e.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),e.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),e.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),e.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),e.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),e.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),e.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),e.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),e.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),e.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),e.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),e.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),e.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),e.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),e.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),e.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),e.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),e.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),e.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),w=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),e.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),e.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),e.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),e.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),e.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),e.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),e.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),e.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),e.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),e.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),e.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),e.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),e.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),e.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),e.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),e.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),e.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),e.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),e.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),e.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),e.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),e.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),e.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),e.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),e.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),e.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),e.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),e.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),e.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),R=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:r,padding:n,paddingXL:s,paddingXS:d,paddingLG:o,marginXS:M,lineHeight:p}=t;return{[l]:{padding:`${E(t.calc(o).mul(2).equal())} ${E(s)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:o,textAlign:"center",[`& > ${r}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:M,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:p,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:o,padding:`${E(o)} ${E(t.calc(n).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:d,"&:last-child":{marginInlineEnd:0}}}}},T=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},G=t=>[R(t),T(t)],P=t=>G(t),O=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`}),X=A("Result",t=>{const l=t.colorInfo,a=t.colorError,r=t.colorSuccess,n=t.colorWarning,s=j(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295});return[P(s)]},O),q=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),e.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),e.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),e.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),e.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),e.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),e.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),e.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),e.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),e.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),e.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),e.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),e.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),e.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),e.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),e.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),e.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),e.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),e.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),e.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),e.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),e.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),e.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),e.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),e.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),e.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),e.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),e.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),U={success:$,error:S,info:x,warning:V},h={404:_,500:w,403:q},J=Object.keys(h),K=t=>{let{prefixCls:l,icon:a,status:r}=t;const n=F(`${l}-icon`);if(J.includes(`${r}`)){const d=h[r];return e.createElement("div",{className:`${n} ${l}-image`},e.createElement(d,null))}const s=e.createElement(U[r]);return a===null||a===!1?null:e.createElement("div",{className:n},a||s)},Q=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:r,subTitle:n,title:s,style:d,children:o,status:M="info",icon:p,extra:u}=t;const{getPrefixCls:f,direction:L,result:i}=e.useContext(z),c=f("result",l),[B,C]=X(c),v=F(c,`${c}-${M}`,a,i==null?void 0:i.className,r,{[`${c}-rtl`]:L==="rtl"},C),g=Object.assign(Object.assign({},i==null?void 0:i.style),d);return B(e.createElement("div",{className:v,style:g},e.createElement(K,{prefixCls:c,status:M,icon:p}),e.createElement("div",{className:`${c}-title`},s),n&&e.createElement("div",{className:`${c}-subtitle`},n),e.createElement(Q,{prefixCls:c,extra:u}),o&&e.createElement("div",{className:`${c}-content`},o)))};m.PRESENTED_IMAGE_403=h[403];m.PRESENTED_IMAGE_404=h[404];m.PRESENTED_IMAGE_500=h[500];const Z=()=>{const{t}=H(),l=I();return k(m,{status:"404",title:"404",subTitle:t("not_found.title"),extra:k(N,{type:"primary",onClick:()=>l.replace("/"),children:t("not_found.back_home")})})};export{Z as default}; +import{r as e,I as D,_ as W,g as A,m as j,u as E,C as z,c as F,a as $,b as S,E as x,d as H,e as I,j as k,B as N}from"./index-Hn-s1JD5.js";var b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},y=function(l,a){return e.createElement(D,W({},l,{ref:a,icon:b}))};const V=e.forwardRef(y),_=()=>e.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),e.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),e.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),e.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),e.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),e.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),e.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),e.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),e.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),e.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),e.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),e.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),e.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),e.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),e.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),e.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),e.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),e.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),e.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),e.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),e.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),e.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),e.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),e.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),e.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),e.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),e.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),w=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),e.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),e.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),e.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),e.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),e.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),e.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),e.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),e.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),e.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),e.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),e.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),e.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),e.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),e.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),e.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),e.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),e.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),e.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),e.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),e.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),e.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),e.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),e.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),e.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),e.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),e.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),e.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),e.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),e.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),R=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:r,padding:n,paddingXL:s,paddingXS:d,paddingLG:o,marginXS:M,lineHeight:p}=t;return{[l]:{padding:`${E(t.calc(o).mul(2).equal())} ${E(s)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:o,textAlign:"center",[`& > ${r}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:M,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:p,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:o,padding:`${E(o)} ${E(t.calc(n).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:d,"&:last-child":{marginInlineEnd:0}}}}},T=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},G=t=>[R(t),T(t)],P=t=>G(t),O=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`}),X=A("Result",t=>{const l=t.colorInfo,a=t.colorError,r=t.colorSuccess,n=t.colorWarning,s=j(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295});return[P(s)]},O),q=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),e.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),e.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),e.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),e.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),e.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),e.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),e.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),e.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),e.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),e.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),e.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),e.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),e.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),e.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),e.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),e.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),e.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),e.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),e.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),e.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),e.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),e.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),e.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),e.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),e.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),e.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),e.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),U={success:$,error:S,info:x,warning:V},h={404:_,500:w,403:q},J=Object.keys(h),K=t=>{let{prefixCls:l,icon:a,status:r}=t;const n=F(`${l}-icon`);if(J.includes(`${r}`)){const d=h[r];return e.createElement("div",{className:`${n} ${l}-image`},e.createElement(d,null))}const s=e.createElement(U[r]);return a===null||a===!1?null:e.createElement("div",{className:n},a||s)},Q=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:r,subTitle:n,title:s,style:d,children:o,status:M="info",icon:p,extra:u}=t;const{getPrefixCls:f,direction:L,result:i}=e.useContext(z),c=f("result",l),[B,C]=X(c),v=F(c,`${c}-${M}`,a,i==null?void 0:i.className,r,{[`${c}-rtl`]:L==="rtl"},C),g=Object.assign(Object.assign({},i==null?void 0:i.style),d);return B(e.createElement("div",{className:v,style:g},e.createElement(K,{prefixCls:c,status:M,icon:p}),e.createElement("div",{className:`${c}-title`},s),n&&e.createElement("div",{className:`${c}-subtitle`},n),e.createElement(Q,{prefixCls:c,extra:u}),o&&e.createElement("div",{className:`${c}-content`},o)))};m.PRESENTED_IMAGE_403=h[403];m.PRESENTED_IMAGE_404=h[404];m.PRESENTED_IMAGE_500=h[500];const Z=()=>{const{t}=H(),l=I();return k(m,{status:"404",title:"404",subTitle:t("not_found.title"),extra:k(N,{type:"primary",onClick:()=>l.replace("/"),children:t("not_found.back_home")})})};export{Z as default}; diff --git a/public/admin-assets/assets/index-Dlcey_5z.js.gz b/public/admin-assets/assets/index-CF1h_lvN.js.gz similarity index 50% rename from public/admin-assets/assets/index-Dlcey_5z.js.gz rename to public/admin-assets/assets/index-CF1h_lvN.js.gz index 290c848..8baa0cb 100644 Binary files a/public/admin-assets/assets/index-Dlcey_5z.js.gz and b/public/admin-assets/assets/index-CF1h_lvN.js.gz differ diff --git a/public/admin-assets/assets/index-CeuPIyls.js b/public/admin-assets/assets/index-CG4JfIgm.js similarity index 91% rename from public/admin-assets/assets/index-CeuPIyls.js rename to public/admin-assets/assets/index-CG4JfIgm.js index 90dbc16..857f309 100644 --- a/public/admin-assets/assets/index-CeuPIyls.js +++ b/public/admin-assets/assets/index-CG4JfIgm.js @@ -1 +1 @@ -import{r as t,j as n,F as f,S as c}from"./index-CgQH3-O6.js";function h({currentRoute:o}){const[a,s]=t.useState(!0),r=t.useRef(null),d=()=>{var i;const e=((i=document.querySelector(".ant-layout-content.overflow-hidden"))==null?void 0:i.offsetTop)||65;return`${window.innerHeight-e}px`},l=()=>{r.current.src=o.iframe_url};return t.useEffect(()=>{l();const e=()=>{r.current.style.height=d()};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[o.iframe_url]),n(f,{children:n(c,{spinning:a,style:{minHeight:a?"500px":""},children:n("iframe",{className:"owl-iframe",ref:r,title:"Iframe Page",width:"100%",style:{border:"none",order:0,boxSizing:"border-box",overflow:"hidden",minHeight:"500px"},onLoad:()=>{s(!1)}})})})}export{h as default}; +import{r as t,j as n,F as f,S as c}from"./index-Hn-s1JD5.js";function h({currentRoute:o}){const[a,s]=t.useState(!0),r=t.useRef(null),d=()=>{var i;const e=((i=document.querySelector(".ant-layout-content.overflow-hidden"))==null?void 0:i.offsetTop)||65;return`${window.innerHeight-e}px`},l=()=>{r.current.src=o.iframe_url};return t.useEffect(()=>{l();const e=()=>{r.current.style.height=d()};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[o.iframe_url]),n(f,{children:n(c,{spinning:a,style:{minHeight:a?"500px":""},children:n("iframe",{className:"owl-iframe",ref:r,title:"Iframe Page",width:"100%",style:{border:"none",order:0,boxSizing:"border-box",overflow:"hidden",minHeight:"500px"},onLoad:()=>{s(!1)}})})})}export{h as default}; diff --git a/public/admin-assets/assets/index-9jD5vm3S.js b/public/admin-assets/assets/index-CIr5HtZS.js similarity index 92% rename from public/admin-assets/assets/index-9jD5vm3S.js rename to public/admin-assets/assets/index-CIr5HtZS.js index 99c41d3..ec31be5 100644 --- a/public/admin-assets/assets/index-9jD5vm3S.js +++ b/public/admin-assets/assets/index-CIr5HtZS.js @@ -1 +1 @@ -import{d as r,R as t,f as i,j as e,h as n,i as h,A as m,k as p,l as u}from"./index-CgQH3-O6.js";const f=()=>{const{t:a}=r(),[s,l]=t.useState(!1),[o,d]=t.useState({}),c={type:"button",label:a("amis_editor.get_php_code"),level:"success",actionType:"ajax",api:{method:"post",url:"/dev_tools/editor_parse",data:{schema:o}},feedback:{title:"PHP Schema",size:"lg",body:{type:"editor",language:"php",name:"schema"}}};return i("div",{className:"h-screen",children:[e(n,{className:"h-full",title:a("amis_editor.editor"),bodyStyle:{padding:0,height:"calc(100% - 55px)"},extra:i(h,{children:[e(m,{schema:c}),e(p,{level:"primary",onClick:()=>l(!s),children:a(s?"amis_editor.edit":"amis_editor.preview")})]}),children:e("div",{className:"w-full h-full overflow-x-auto",children:e(u,{onChange:d,preview:s})})}),e("div",{className:"h-5"})]})};export{f as default}; +import{d as r,R as t,f as i,j as e,h as n,i as h,A as m,k as p,l as u}from"./index-Hn-s1JD5.js";const f=()=>{const{t:a}=r(),[s,l]=t.useState(!1),[o,d]=t.useState({}),c={type:"button",label:a("amis_editor.get_php_code"),level:"success",actionType:"ajax",api:{method:"post",url:"/dev_tools/editor_parse",data:{schema:o}},feedback:{title:"PHP Schema",size:"lg",body:{type:"editor",language:"php",name:"schema"}}};return i("div",{className:"h-screen",children:[e(n,{className:"h-full",title:a("amis_editor.editor"),bodyStyle:{padding:0,height:"calc(100% - 55px)"},extra:i(h,{children:[e(m,{schema:c}),e(p,{level:"primary",onClick:()=>l(!s),children:a(s?"amis_editor.edit":"amis_editor.preview")})]}),children:e("div",{className:"w-full h-full overflow-x-auto",children:e(u,{onChange:d,preview:s})})}),e("div",{className:"h-5"})]})};export{f as default}; diff --git a/public/admin-assets/assets/index-CgQH3-O6.js.gz b/public/admin-assets/assets/index-CgQH3-O6.js.gz deleted file mode 100644 index eb77c5f..0000000 Binary files a/public/admin-assets/assets/index-CgQH3-O6.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/index-Cidhn13S.js.gz b/public/admin-assets/assets/index-Cidhn13S.js.gz deleted file mode 100644 index f681611..0000000 Binary files a/public/admin-assets/assets/index-Cidhn13S.js.gz and /dev/null differ diff --git a/public/admin-assets/assets/index-BYiefg95.js b/public/admin-assets/assets/index-DGVNJl5s.js similarity index 99% rename from public/admin-assets/assets/index-BYiefg95.js rename to public/admin-assets/assets/index-DGVNJl5s.js index b666f09..6024908 100644 --- a/public/admin-assets/assets/index-BYiefg95.js +++ b/public/admin-assets/assets/index-DGVNJl5s.js @@ -1 +1 @@ -import{p as vr,o as fr}from"./index-CgQH3-O6.js";function lr(Q,q){for(var v=0;vo[r]})}}}return Object.freeze(Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}))}var or={exports:{}};(function(Q,q){(function(o,r){Q.exports=r()})(vr,function(){return function(v){var o={};function r(e){if(o[e])return o[e].exports;var L=o[e]={exports:{},id:e,loaded:!1};return v[e].call(L.exports,L,L.exports,r),L.loaded=!0,L.exports}return r.m=v,r.c=o,r.p="",r(0)}([function(v,o,r){var e;e=(function(L){return{clustering:r(1),regression:r(5),statistics:r(6),histogram:r(15),transform:{regression:r(18),histogram:r(21),clustering:r(22)}}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(2),S=g.dataPreprocess,d=g.normalizeDimensions,l=r(3),n=r(4),m=l.size,E=l.sumOfColumn,t=l.sum,p=l.zeros,n=r(4),s=n.isNumber,u=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function f(M,N,y){for(var F=p(M.length,2),I=D(N,z(M,y.dimensions)),A=!0,U,T,R,C;A;){A=!1;for(var P=0;PR&&(T.min=R),T.maxf?1:a0)i=h;else if(D<0)c=h+1;else return h+1}return c}function u(a,f,c){if(a&&f){if(a.map&&a.map===d)return a.map(f,c);for(var i=[],h=0,D=a.length;h=10&&m++,m}return{isNumber:g,isInteger:S,quantityExponent:d}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(2),S=g.dataPreprocess,d=g.normalizeDimensions,l={linear:function(t,p){for(var n=p.dimensions[0],s=p.dimensions[1],u=0,a=0,f=0,c=0,i=t.length,h=0;h=0;i--)i>1?U+=Math.round(y[i]*Math.pow(10,i+1))/Math.pow(10,i+1)+"x^"+i+" + ":i===1?U+=Math.round(y[i]*100)/100+"x + ":U+=Math.round(y[i]*100)/100;return{points:F,parameter:y,expression:U}}};function m(t,p){for(var n=0;nMath.abs(t[n][s])&&(s=u);for(var a=n;a=n;i--)t[i][c]-=t[i][n]/t[n][n]*t[n][c]}for(var h=new Array(p),D=t.length-1,u=t.length-2;u>=0;u--){for(var f=0,n=u+1;nm&&(m=l[E]);return m}return d}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(9);return function(S){var d=g(S);return d&&Math.sqrt(d)}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(4),S=g.isNumber,d=r(10);function l(m){var E=m.length;if(!E||E<2)return 0;if(m.length>=2){for(var t=d(m),p=0,n,s=0;s=1)return g[d-1];var l=(d-1)*S,m=Math.floor(l),E=g[m],t=g[m+1];return E+(t-E)*(l-m)}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(4),S=g.isNumber;function d(l){for(var m=1/0,E=0;E0?T[P-1]:T[P]-y===A?y:T[P]-A,C[P].x1=P50?50:D},scott:function(h,D,x){return Math.ceil((x-D)/(3.5*l(h)*Math.pow(h.length,-1/3)))},freedmanDiaconis:function(h,D,x){return h.sort(n),Math.ceil((x-D)/(2*(d(h,.75)-d(h,.25))*Math.pow(h.length,-1/3)))},sturges:function(h){return Math.ceil(Math.log(h.length)/Math.LN2)+1}};return c}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(2),S=g.getPrecision;return function(d,l,m,E){var t=arguments.length;t<2?(l=d,d=0,m=1):t<3?m=1:t<4?(m=+m,E=S(m)):E=+E;for(var p=Math.ceil(((l-d)/m).toFixed(E)),n=new Array(p+1),s=0;s=Math.sqrt(50)?t*=10:p>=Math.sqrt(10)?t*=5:p>=Math.sqrt(2)&&(t*=2);var n=E<0?-E:0,s=+(d>=S?t:-t).toFixed(n);return{step:s,toFixedPrecision:n}}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(5),S=r(19),d=2;return{type:"ecStat:regression",transform:function(m){var E=m.upstream,t=m.config||{},p=t.method||"linear",n=g(p,E.cloneRawData(),{order:t.order,dimensions:S.normalizeExistingDimensions(m,t.dimensions)}),s=n.points,u=t.formulaOn;u==null&&(u="end");var a;if(u!=="none"){for(var f=0;fo[r]})}}}return Object.freeze(Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}))}var or={exports:{}};(function(Q,q){(function(o,r){Q.exports=r()})(vr,function(){return function(v){var o={};function r(e){if(o[e])return o[e].exports;var L=o[e]={exports:{},id:e,loaded:!1};return v[e].call(L.exports,L,L.exports,r),L.loaded=!0,L.exports}return r.m=v,r.c=o,r.p="",r(0)}([function(v,o,r){var e;e=(function(L){return{clustering:r(1),regression:r(5),statistics:r(6),histogram:r(15),transform:{regression:r(18),histogram:r(21),clustering:r(22)}}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(2),S=g.dataPreprocess,d=g.normalizeDimensions,l=r(3),n=r(4),m=l.size,E=l.sumOfColumn,t=l.sum,p=l.zeros,n=r(4),s=n.isNumber,u=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function f(M,N,y){for(var F=p(M.length,2),I=D(N,z(M,y.dimensions)),A=!0,U,T,R,C;A;){A=!1;for(var P=0;PR&&(T.min=R),T.maxf?1:a0)i=h;else if(D<0)c=h+1;else return h+1}return c}function u(a,f,c){if(a&&f){if(a.map&&a.map===d)return a.map(f,c);for(var i=[],h=0,D=a.length;h=10&&m++,m}return{isNumber:g,isInteger:S,quantityExponent:d}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(2),S=g.dataPreprocess,d=g.normalizeDimensions,l={linear:function(t,p){for(var n=p.dimensions[0],s=p.dimensions[1],u=0,a=0,f=0,c=0,i=t.length,h=0;h=0;i--)i>1?U+=Math.round(y[i]*Math.pow(10,i+1))/Math.pow(10,i+1)+"x^"+i+" + ":i===1?U+=Math.round(y[i]*100)/100+"x + ":U+=Math.round(y[i]*100)/100;return{points:F,parameter:y,expression:U}}};function m(t,p){for(var n=0;nMath.abs(t[n][s])&&(s=u);for(var a=n;a=n;i--)t[i][c]-=t[i][n]/t[n][n]*t[n][c]}for(var h=new Array(p),D=t.length-1,u=t.length-2;u>=0;u--){for(var f=0,n=u+1;nm&&(m=l[E]);return m}return d}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(9);return function(S){var d=g(S);return d&&Math.sqrt(d)}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(4),S=g.isNumber,d=r(10);function l(m){var E=m.length;if(!E||E<2)return 0;if(m.length>=2){for(var t=d(m),p=0,n,s=0;s=1)return g[d-1];var l=(d-1)*S,m=Math.floor(l),E=g[m],t=g[m+1];return E+(t-E)*(l-m)}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(4),S=g.isNumber;function d(l){for(var m=1/0,E=0;E0?T[P-1]:T[P]-y===A?y:T[P]-A,C[P].x1=P50?50:D},scott:function(h,D,x){return Math.ceil((x-D)/(3.5*l(h)*Math.pow(h.length,-1/3)))},freedmanDiaconis:function(h,D,x){return h.sort(n),Math.ceil((x-D)/(2*(d(h,.75)-d(h,.25))*Math.pow(h.length,-1/3)))},sturges:function(h){return Math.ceil(Math.log(h.length)/Math.LN2)+1}};return c}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(2),S=g.getPrecision;return function(d,l,m,E){var t=arguments.length;t<2?(l=d,d=0,m=1):t<3?m=1:t<4?(m=+m,E=S(m)):E=+E;for(var p=Math.ceil(((l-d)/m).toFixed(E)),n=new Array(p+1),s=0;s=Math.sqrt(50)?t*=10:p>=Math.sqrt(10)?t*=5:p>=Math.sqrt(2)&&(t*=2);var n=E<0?-E:0,s=+(d>=S?t:-t).toFixed(n);return{step:s,toFixedPrecision:n}}}).call(o,r,o,v),e!==void 0&&(v.exports=e)},function(v,o,r){var e;e=(function(L){var g=r(5),S=r(19),d=2;return{type:"ecStat:regression",transform:function(m){var E=m.upstream,t=m.config||{},p=t.method||"linear",n=g(p,E.cloneRawData(),{order:t.order,dimensions:S.normalizeExistingDimensions(m,t.dimensions)}),s=n.points,u=t.formulaOn;u==null&&(u="end");var a;if(u!=="none"){for(var f=0;fi.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["assets/editor.main-BblzkW2o.js","assets/editor-B7B_dXF8.css","assets/codemirror-COVsbYii.js","assets/codemirror-I2c5QWqw.js","assets/javascript-DwFocQV0.js","assets/htmlmixed-DqtUBAxJ.js","assets/simple-_AHgMlqW.js","assets/multiplex-BIA0Xvxt.js","assets/placeholder-Bnv0_utY.js","assets/index-BsGFQPbV.js","assets/index-BOF_7bJe.js","assets/bmap-C-xCbTUj.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); var i9e=Object.defineProperty;var o9e=($P,e0e,x_)=>e0e in $P?i9e($P,e0e,{enumerable:!0,configurable:!0,writable:!0,value:x_}):$P[e0e]=x_;var s_e=($P,e0e,x_)=>(o9e($P,typeof e0e!="symbol"?e0e+"":e0e,x_),x_);function _mergeNamespaces($P,e0e){for(var x_=0;x_t0e[a0e]})}}}return Object.freeze(Object.defineProperty($P,Symbol.toStringTag,{value:"Module"}))}(function(){const e0e=document.createElement("link").relList;if(e0e&&e0e.supports&&e0e.supports("modulepreload"))return;for(const a0e of document.querySelectorAll('link[rel="modulepreload"]'))t0e(a0e);new MutationObserver(a0e=>{for(const n0e of a0e)if(n0e.type==="childList")for(const r0e of n0e.addedNodes)r0e.tagName==="LINK"&&r0e.rel==="modulepreload"&&t0e(r0e)}).observe(document,{childList:!0,subtree:!0});function x_(a0e){const n0e={};return a0e.integrity&&(n0e.integrity=a0e.integrity),a0e.referrerPolicy&&(n0e.referrerPolicy=a0e.referrerPolicy),a0e.crossOrigin==="use-credentials"?n0e.credentials="include":a0e.crossOrigin==="anonymous"?n0e.credentials="omit":n0e.credentials="same-origin",n0e}function t0e(a0e){if(a0e.ep)return;a0e.ep=!0;const n0e=x_(a0e);fetch(a0e.href,n0e)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs($P){return $P&&$P.__esModule&&Object.prototype.hasOwnProperty.call($P,"default")?$P.default:$P}function getAugmentedNamespace($P){if($P.__esModule)return $P;var e0e=$P.default;if(typeof e0e=="function"){var x_=function t0e(){return this instanceof t0e?Reflect.construct(e0e,arguments,this.constructor):e0e.apply(this,arguments)};x_.prototype=e0e.prototype}else x_={};return Object.defineProperty(x_,"__esModule",{value:!0}),Object.keys($P).forEach(function(t0e){var a0e=Object.getOwnPropertyDescriptor($P,t0e);Object.defineProperty(x_,t0e,a0e.get?a0e:{enumerable:!0,get:function(){return $P[t0e]}})}),x_}var react={exports:{}},react_production_min={};/* object-assign (c) Sindre Sorhus @@ -449,7 +449,7 @@ function print() { __p += __j.call(arguments, '') } See https://github.com/jayphelps/core-decorators.js/issues/20`));mapStore||(mapStore=new WeakMap),mapStore.has($P)||mapStore.set($P,new WeakMap);var x_=mapStore.get($P);return x_.has(e0e)||x_.set(e0e,bind$3(e0e,$P)),x_.get(e0e)}function createDefaultSetter($P){return function(x_){return defineProperty$3(this,$P,{configurable:!0,writable:!0,enumerable:!0,value:x_}),x_}}function autobindMethod($P,e0e,x_){var t0e=x_.value,a0e=x_.configurable,n0e=x_.enumerable;if(typeof t0e!="function")throw new SyntaxError("@autobind can only be used on functions, not: ".concat(t0e));var r0e=$P.constructor;return{configurable:a0e,enumerable:n0e,get:function(){if(this===$P||this.constructor!==r0e&&getPrototypeOf$1(this).constructor===r0e)return t0e;if(this.constructor!==r0e&&e0e in this.constructor.prototype)return getBoundSuper(this,t0e);var i0e=bind$3(t0e,this);return defineProperty$3(this,e0e,{configurable:!0,writable:!0,enumerable:!1,value:i0e}),i0e},set:createDefaultSetter(e0e)}}function traverseAst$1($P,e0e){!$P||!$P.type||(e0e($P),Object.keys($P).forEach(function(x_){var t0e=$P[x_];Array.isArray(t0e)?t0e.forEach(function(a0e){return traverseAst$1(a0e,e0e)}):traverseAst$1(t0e,e0e)}))}var COLLECT_EXPRESSION_CACHE={};function collectVariables($P,e0e){var x_=[];if(typeof $P=="string"&&COLLECT_EXPRESSION_CACHE[$P])return COLLECT_EXPRESSION_CACHE[$P];var t0e=typeof $P=="string"?memoryParse($P,{evalMode:!1}):$P;return traverseAst$1(t0e,function(a0e){a0e.type==="variable"&&x_.push(a0e.name)}),typeof $P=="string"&&(COLLECT_EXPRESSION_CACHE[$P]=x_),x_}var FORMULA_EVAL_CACHE={},FormulaExec={tpl:function($P,e0e){var x_=e0e||{};return filter$1($P,x_)},formula:function($P,e0e){if(/^\$\{([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})\}$/.test($P))return $P.substring(2,$P.length-1);var x_=e0e||{},t0e=void 0;try{t0e=resolveVariableAndFilter($P,x_,"| raw")}catch{return console.warn("[formula]表达式执行异常,当前表达式: ",$P,",当前上下文数据: ",e0e),$P}return t0e},evalFormula:function($P,e0e){var x_=e0e||{},t0e=void 0;try{t0e=evaluate($P,x_,{evalMode:!0,allowFilter:!1})}catch{return console.warn("[evalFormula]表达式执行异常,当前表达式: ",$P,",当前上下文数据: ",e0e),$P}return t0e??$P},js:function($P,e0e){var x_=!1,t0e=$P.indexOf("debugger");~t0e&&(x_=!0,$P=$P.replace(/debugger;?/,""));var a0e;$P in FORMULA_EVAL_CACHE?a0e=FORMULA_EVAL_CACHE[$P]:(a0e=new Function("data","utils","with(data) {".concat(x_?"debugger;":"","return (").concat($P,");}")),FORMULA_EVAL_CACHE[$P]=a0e),e0e=e0e||{};var n0e=void 0;try{n0e=a0e.call(e0e,e0e,getFilters())}catch{return console.warn("[formula:js]表达式执行异常,当前表达式: ",$P,",当前上下文数据: ",e0e),$P}return n0e},var:function($P,e0e){var x_=e0e||{},t0e=getVariable(x_,$P);return t0e??$P},collect:function($P){var e0e=[];return isObject$r($P)||isString$8($P)?e0e=collectVariables($P):e0e=[],e0e}};function isExpression($P){return!$P||!isString$8($P)?!1:/(^|[^\\])\$\{[\s\S]+\}/.test($P)}function isNeedFormula($P,e0e,x_){try{var t0e=FormulaExec.collect($P);return t0e.some(function(a0e){return FormulaExec.var(a0e,e0e)!==FormulaExec.var(a0e,x_)})}catch{return console.warn("[isNeedFormula]表达式执行异常,当前表达式: ",$P,",当前上下文数据: ",x_),!1}}function replaceExpression($P){return $P&&isString$8($P)&&/(\\)(\${).+(\})/.test($P)?$P.replace(/\\\$\{/g,"${"):$P}function preventDefault($P){(typeof $P.cancelable!="boolean"||$P.cancelable)&&$P.preventDefault()}function isMobile$2(){var $P,e0e;return(e0e=($P=window).matchMedia)===null||e0e===void 0?void 0:e0e.call($P,"(max-width: 768px)").matches}function range$2($P,e0e,x_){return Math.min(Math.max($P,e0e),x_)}function injectPropsToObject($P,e0e){var x_=Object.create($P.__super||null);Object.keys(e0e).forEach(function(a0e){return x_[a0e]=e0e[a0e]});var t0e=Object.create(x_);return Object.keys($P).forEach(function(a0e){return t0e[a0e]=$P[a0e]}),t0e}function isSuperDataModified($P,e0e,x_){var t0e;return x_&&x_.storeType==="FormStore"?t0e=uniq$1(x_.items.map(function(a0e){return"".concat(a0e.name).replace(/\..*$/,"")}).concat(Object.keys(x_.data))):t0e=Object.keys(x_.data),Array.isArray(t0e)&&t0e.length?t0e.some(function(a0e){return $P[a0e]!==e0e[a0e]}):!1}function syncDataFromSuper($P,e0e,x_,t0e,a0e){var n0e=__assign$4({},$P),r0e=[];return t0e&&t0e.storeType==="FormStore"&&t0e.canAccessSuperData!==!1?r0e=uniq$1(t0e.items.map(function(i0e){return"".concat(i0e.name).replace(/\..*$/,"")}).concat(Object.keys(n0e))):a0e&&(r0e=Object.keys(n0e)),(e0e||x_)&&r0e.forEach(function(i0e){i0e&&(e0e&&typeof e0e[i0e]<"u"||x_&&typeof x_[i0e]<"u")&&(x_&&!e0e||!x_&&e0e||x_[i0e]!==e0e[i0e])&&(n0e[i0e]=e0e[i0e])}),n0e}function guid$1(){function $P(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return $P()+$P()+$P()}function findIndex$4($P,e0e){for(var x_=0,t0e=$P.length;x_0&&a0e.length>n0e)return!0;for(var o0e=r0e.length-1;o0e>=0;o0e--){var s0e=r0e[o0e];if(isObjectShallowModified$1($P[s0e],e0e[s0e],x_,t0e,a0e))return!0}return!1}function isArrayChildrenModified($P,e0e,x_){if(x_===void 0&&(x_=!0),!Array.isArray($P)||!Array.isArray(e0e))return x_?$P!==e0e:$P!=e0e;if($P.length!==e0e.length)return!0;for(var t0e=$P.length-1;t0e>=0;t0e--)if((x_?$P[t0e]!==e0e[t0e]:$P[t0e]!=e0e[t0e])||isArrayChildrenModified($P[t0e].children,e0e[t0e].children,x_))return!0;return!1}function immutableExtends($P,e0e,x_){if(!isObject$8($P)||!isObject$8(e0e))return $P;var t0e=$P;return Object.keys(e0e).forEach(function(a0e){var n0e=$P[a0e],r0e=e0e[a0e];n0e!==r0e&&(t0e=t0e!==$P?t0e:__assign$4({},$P),t0e[a0e]=r0e)}),t0e}function hasVisibleExpression($P){return!!($P.visibleOn||$P.hiddenOn)}function isVisible($P,e0e,x_){var t0e;if(($P.id||$P.name)&&x_){var a0e=filter$1($P.id,e0e),n0e=filter$1($P.name,e0e),r0e=isAlive(x_)?(t0e=x_.visibleState[a0e])!==null&&t0e!==void 0?t0e:x_.visibleState[n0e]:void 0;if(typeof r0e<"u")return r0e}return!($P.hidden||$P.visible===!1||$P.hiddenOn&&evalExpressionWithConditionBuilder($P.hiddenOn,e0e)||$P.visibleOn&&!evalExpressionWithConditionBuilder($P.visibleOn,e0e))}function isUnfolded($P,e0e){var x_=e0e.foldedField,t0e=e0e.unfoldedField;return t0e||(t0e="unfolded"),x_||(x_="folded"),t0e&&typeof $P[t0e]<"u"?!!$P[t0e]:x_&&typeof $P[x_]<"u"?!$P[x_]:!1}function visibilityFilter($P,e0e){return $P.filter(function(x_){return isVisible(x_,e0e)})}function isDisabled($P,e0e){return $P.disabled||$P.disabledOn&&evalExpressionWithConditionBuilder($P.disabledOn,e0e)}function hasAbility($P,e0e,x_,t0e){return t0e===void 0&&(t0e=!0),$P.hasOwnProperty(e0e)?$P[e0e]:$P.hasOwnProperty("".concat(e0e,"On"))?evalExpressionWithConditionBuilder($P["".concat(e0e,"On")],$P):t0e}function makeHorizontalDeeper$1($P,e0e){if(e0e>1&&/\bcol-(xs|sm|md|lg)-(\d+)\b/.test($P.left)){var x_=parseInt(RegExp.$2,10)*e0e;return{leftFixed:$P.leftFixed,left:x_,right:12-x_,offset:x_}}else if(e0e>1&&typeof $P.left=="number"){var x_=$P.left*e0e;return{leftFixed:$P.leftFixed,left:x_,right:12-x_,offset:x_}}return $P}function promisify($P){if($P._promisified)return $P;var e0e=function(){try{var x_=$P.apply(null,arguments);return x_&&x_.then?x_:typeof x_=="function"?new Promise(function(t0e,a0e){return x_(function(n0e,r0e){return n0e?a0e(n0e):t0e(r0e)})}):Promise.resolve(x_)}catch(t0e){return Promise.reject(t0e)}};return e0e.raw=$P,e0e._promisified=!0,e0e}function getScrollParent($P,e0e){if(e0e===void 0&&(e0e=function(){return!0}),$P==null)return null;var x_=getComputedStyle($P);if(!x_)return null;var t0e=x_.getPropertyValue("overflow")+x_.getPropertyValue("overflow-x")+x_.getPropertyValue("overflow-y");return $P.nodeName==="BODY"||/auto|scroll/.test(t0e)&&e0e($P)?$P:getScrollParent($P.parentNode,e0e)}function difference$2($P,e0e,x_){function t0e(a0e,n0e){if(isObject$8(a0e)&&isObject$8(n0e)){var r0e=uniq$1(Object.keys(a0e).concat(Object.keys(n0e))),i0e={};return r0e.forEach(function(o0e){var s0e=a0e[o0e],l0e=n0e[o0e];x_&&~x_.indexOf(o0e)&&(i0e[o0e]=s0e),!(a0e.hasOwnProperty(o0e)&&n0e.hasOwnProperty(o0e)&&!isObjectShallowModified$1(s0e,l0e,!0,void 0,void 0,10))&&(a0e.hasOwnProperty(o0e)?Array.isArray(s0e)&&Array.isArray(l0e)?i0e[o0e]=s0e:i0e[o0e]=t0e(s0e,l0e):i0e[o0e]=void 0)}),i0e}return a0e}return t0e($P,e0e)}var padArr=function($P,e0e,x_){e0e===void 0&&(e0e=4),x_===void 0&&(x_=!1);for(var t0e=[[]],a0e=$P.concat(),n0e=0;a0e.length||x_&&t0e[t0e.length-1].length=e0e){n0e+=1;continue}r0e.push(a0e.shift())}return t0e};function isBreakpoint($P){if(typeof $P!="string")return!!$P;var e0e=$P.split(/\s*,\s*|\s+/);if(window.matchMedia)return e0e.some(function(t0e){return t0e==="*"||t0e==="xs"&&matchMedia("screen and (max-width: 767px)").matches||t0e==="sm"&&matchMedia("screen and (min-width: 768px) and (max-width: 991px)").matches||t0e==="md"&&matchMedia("screen and (min-width: 992px) and (max-width: 1199px)").matches||t0e==="lg"&&matchMedia("screen and (min-width: 1200px)").matches});var x_=window.innerWidth;return e0e.some(function(t0e){return t0e==="*"||t0e==="xs"&&x_<768||t0e==="sm"&&x_>=768&&x_<992||t0e==="md"&&x_>=992&&x_<1200||t0e==="lg"&&x_>=1200})}function until($P,e0e,x_,t0e){var a0e=this;t0e===void 0&&(t0e=5e3);var n0e,r0e=!1;return new Promise(function(i0e,o0e){var s0e=function(){clearTimeout(n0e),r0e=!0},l0e=function(){return __awaiter$1(a0e,void 0,void 0,function(){var c0e,d0e;return __generator$1(this,function(u0e){switch(u0e.label){case 0:return u0e.trys.push([0,2,,3]),[4,$P()];case 1:return c0e=u0e.sent(),r0e?[2]:(e0e(c0e)?(r0e=!0,i0e(c0e)):n0e=setTimeout(l0e,t0e),[3,3]);case 2:return d0e=u0e.sent(),o0e(d0e),[3,3];case 3:return[2]}})})};l0e(),x_&&x_(s0e)})}function omitControls$1($P,e0e){return $P.filter(function(x_){return!~e0e.indexOf(x_.name||x_._name)})}function isEmpty$2($P){return!(isObject$8($P)&&Object.keys($P).length)}var uuid$1=function(){return(+new Date).toString(36)},createStr=function(){return("00000000000000000"+(Math.random()*18446744073709552e3).toString(16)).slice(-16)},uuidv4=function(){var $P=createStr(),e0e=createStr();return $P.slice(0,8)+"-"+$P.slice(8,12)+"-4"+$P.slice(13)+"-a"+e0e.slice(1,4)+"-"+e0e.slice(4)};function mapTree($P,e0e,x_,t0e,a0e,n0e){return x_===void 0&&(x_=1),t0e===void 0&&(t0e=!1),a0e===void 0&&(a0e=[]),n0e===void 0&&(n0e=[]),$P.map(function(r0e,i0e){if(t0e){var o0e=r0e.children?mapTree(r0e.children,e0e,x_+1,t0e,a0e.concat(r0e),n0e.concat(i0e)):void 0;return o0e&&(r0e=__assign$4(__assign$4({},r0e),{children:o0e})),r0e=e0e(r0e,i0e,x_,a0e,n0e.concat(i0e))||__assign$4({},r0e),r0e}return r0e=e0e(r0e,i0e,x_,a0e,n0e.concat(i0e))||__assign$4({},r0e),r0e.children&&r0e.children.splice&&(r0e.children=mapTree(r0e.children,e0e,x_+1,t0e,a0e.concat(r0e),n0e.concat(i0e))),r0e})}function eachTree$1($P,e0e,x_,t0e){var a0e;x_===void 0&&(x_=1),t0e===void 0&&(t0e=[]);for(var n0e=$P.length,r0e=0;r0e0;s0e--){var l0e=o0e[s0e-1],c0e=o0e[s0e];t0e.unshift(l0e.children.indexOf(c0e))}};return findTree($P,function(n0e,r0e,i0e,o0e){return e0e(n0e,r0e,i0e,o0e)?(a0e(n0e,r0e,i0e,o0e),!0):!1},x_?__assign$4(__assign$4({},x_),{foundEffect:a0e}):void 0),t0e.length?t0e:void 0}function getTree($P,e0e){for(var x_=Array.isArray(e0e)?e0e.concat():[e0e],t0e=x_.pop(),a0e=$P,n0e=0,r0e=x_.length;n0e0;){var i0e=r0e.pop(),o0e=i0e.item,s0e=i0e.index,l0e=i0e.level,c0e=i0e.paths,d0e=i0e.indexes;if(s0e>=0){var u0e=e0e(o0e,s0e,l0e,c0e,d0e);if(u0e&&(!((n0e=o0e.children)===null||n0e===void 0)&&n0e.splice))for(var p0e=o0e.children,f0e=p0e.length-1;f0e>=0;f0e--)r0e.push({item:p0e[f0e],index:f0e,level:l0e+1,paths:c0e.concat(o0e),indexes:d0e.concat(s0e)});else if(!u0e)return!1}else{if(!Array.isArray($P)&&!isObservableArray($P))return!1;for(var f0e=$P.length-1;f0e>=0;f0e--)r0e.push({item:$P[f0e],index:f0e,level:1,paths:[],indexes:[]})}}return!0}function someTree($P,e0e){var x_=!1;return everyTree($P,function(t0e,a0e,n0e,r0e){return e0e(t0e,a0e,n0e,r0e)?(x_=!0,!1):!0}),x_}function flattenTree($P,e0e){var x_=[];return eachTree$1($P,function(t0e,a0e,n0e,r0e){return x_.push(e0e?e0e(t0e,a0e,n0e,r0e):t0e)}),x_}function flattenTreeWithLeafNodes($P,e0e){var x_=[];return eachTree$1($P,function(t0e,a0e){t0e.hasOwnProperty("children")||x_.push(t0e)}),x_}function spliceTree($P,e0e,x_){x_===void 0&&(x_=0);for(var t0e=[],a0e=3;a0e]+(>|$)/g,""):$P}function normalizeNodePath($P,e0e,x_,t0e,a0e,n0e){var r0e;x_===void 0&&(x_="label"),t0e===void 0&&(t0e="value"),a0e===void 0&&(a0e="/"),n0e===void 0&&(n0e=",");var i0e=[],o0e=[],s0e=function(l0e){return last$6(l0e?l0e.toString().split(a0e):[])};return typeof $P>"u"||!e0e?{nodeValueArray:i0e,nodePathArray:o0e}:(Array.isArray($P)?$P.forEach(function(l0e){var c0e;l0e&&l0e.hasOwnProperty(t0e)?(i0e.push(__assign$4(__assign$4({},l0e),(c0e={},c0e[x_]=s0e(l0e[x_]),c0e[t0e]=s0e(l0e[t0e]),c0e))),o0e.push(l0e[t0e])):(i0e.push(s0e(l0e)),o0e.push(l0e))}):typeof $P=="string"?$P.toString().split(n0e).forEach(function(l0e){i0e.push(s0e(l0e)),o0e.push(l0e)}):(i0e.push(__assign$4(__assign$4({},$P),(r0e={},r0e[x_]=s0e($P[x_]),r0e[t0e||"value"]=s0e($P[t0e]),r0e))),o0e.push($P[t0e])),{nodeValueArray:i0e,nodePathArray:o0e})}function isClickOnInput($P){var e0e=$P.target,x_;return!!(!$P.currentTarget.contains(e0e)||~["INPUT","TEXTAREA"].indexOf(e0e.tagName)||(x_=e0e.closest('button, a, [data-role="form-item"], label[data-role="checkbox"], label[data-role="switch"]'))&&$P.currentTarget.contains(x_))}function hashCode($P){return $P.split("").reduce(function(e0e,x_){return e0e=(e0e<<5)-e0e+x_.charCodeAt(0),e0e&e0e},0)}function JSONTraverse$1($P,e0e,x_){x_===void 0&&(x_=Number.MAX_VALUE),!(x_<=0)&&Object.keys($P).forEach(function(t0e){var a0e=$P[t0e];isObservable(a0e)||(isPlainObject$b(a0e)||Array.isArray(a0e)?JSONTraverse$1(a0e,e0e,x_-1):e0e(a0e,t0e,$P))})}function JSONValueMap($P,e0e,x_,t0e){if(x_===void 0&&(x_=!1),t0e===void 0&&(t0e=[]),!isPlainObject$b($P)&&!Array.isArray($P))return $P;var a0e=function(s0e,l0e,c0e,d0e){var u0e,p0e;if(d0e===void 0&&(d0e=[]),x_){var f0e=JSONValueMap(s0e,e0e,x_,d0e);return(u0e=e0e(f0e,l0e,c0e,d0e))!==null&&u0e!==void 0?u0e:f0e}var h0e=(p0e=e0e(s0e,l0e,c0e,d0e))!==null&&p0e!==void 0?p0e:s0e;return h0e===s0e?JSONValueMap(s0e,e0e,x_,d0e):h0e};if(Array.isArray($P)){var n0e=!1,r0e=$P.map(function(s0e,l0e){var c0e=a0e(s0e,l0e,$P,[$P].concat(t0e));return n0e=n0e||c0e!==s0e,c0e});return n0e?r0e:$P}var i0e=!1,o0e={};return Object.keys($P).forEach(function(s0e){var l0e=$P[s0e],c0e=a0e(l0e,s0e,$P,[$P].concat(t0e));c0e!==l0e&&(i0e=!0,o0e[s0e]=c0e)}),i0e?__assign$4(__assign$4({},$P),o0e):$P}function convertArrayValueToMoment($P,e0e,x_){if($P.length===0)return x_;for(var t0e=0;t0e=-Number.MAX_SAFE_INTEGER&&t0e<=Number.MAX_SAFE_INTEGER){var r0e=Number(t0e);return isNaN$2(r0e)?t0e:r0e}return t0e});return x_}function parseQuery($P,e0e){var x_,t0e=e0e||{},a0e=t0e.parsePrimitive,n0e=a0e===void 0?!1:a0e,r0e=t0e.primitiveTypes,i0e=r0e===void 0?["boolean"]:r0e,o0e=$P&&!($P instanceof Location)&&($P==null?void 0:$P.query)||$P&&($P==null?void 0:$P.search)&&qsparse($P.search.substring(1))||window.location.search&&qsparse(window.location.search.substring(1)),s0e=isPlainObject$b(o0e)?n0e?parsePrimitiveQueryString(o0e,{primitiveTypes:i0e}):o0e:{},l0e=(x_=window.location)===null||x_===void 0?void 0:x_.hash,c0e={},d0e=-1;return typeof l0e=="string"&&~(d0e=l0e.indexOf("?"))&&(c0e=qsparse(l0e.substring(d0e+1))),merge$4(s0e,c0e)}var differenceFromAllCache={allOptions:null,options:null,res:[]};function differenceFromAll($P,e0e,x_){if($P===differenceFromAllCache.allOptions&&e0e===differenceFromAllCache.options)return differenceFromAllCache.res;var t0e=new Map($P.map(function(n0e){return[x_(n0e),n0e]})),a0e=e0e.filter(function(n0e){return!t0e.get(x_(n0e))});return differenceFromAllCache.allOptions=$P,differenceFromAllCache.options=e0e,differenceFromAllCache.res=a0e,a0e}function buildTrackExpression($P){if(!isPlainObject$b($P)&&!Array.isArray($P))return"";var e0e=[];return JSONTraverse$1($P,function(x_,t0e){typeof x_=="string"&&(t0e==="name"?e0e.push(isPureVariable(x_)?x_:"${".concat(x_,"}")):t0e==="source"?e0e.push(x_):t0e.endsWith("On")||t0e==="condition"||t0e==="trackExpression"?e0e.push(x_.startsWith("${")?x_:"